has_hijacked_posts() ) {
$page_template->restore_main_query();
add_action( 'loop_start', [ $page_template, 'hijack_on_loop_start' ], 1000 );
}
}
}
/**
* Open the wrapper before the title.
*
* @access public
*/
public function before_the_title() {
echo '
';
}
/**
* Close the wrapper after the title.
*
* @access public
*/
public function after_the_title() {
echo '
';
}
/**
* Removes arrows from the "previous" link.
*
* @access public
* @param string $anchor The HTML.
* @return string
*/
public function remove_arrow_from_prev_link( $anchor ) {
return tribe_get_prev_event_link( '%title%' );
}
/**
* Removes arrows from the "next" link.
*
* @access public
* @param string $anchor The HTML.
* @return string
*/
public function remove_arrow_from_next_link( $anchor ) {
return tribe_get_next_event_link( '%title%' );
}
/**
* Returns the mobile breakpoint.
*
* @access public
* @return int
*/
public function set_mobile_breakpoint() {
return intval( Avada()->settings->get( 'content_break_point' ) );
}
/**
* Renders the title for single events.
*
* @access public
*/
public static function render_single_event_title() {
$event_id = get_the_ID();
?>
', '' ); ?>
', '' ); // phpcs:ignore WordPress.Security.EscapeOutput ?>
|
';
}
/**
* Renders to correct excerpts on archive pages.
*
* @since 5.1.6
* @access public
* @param string $excerpt The post excerpt.
* @param object $_post The post object.
* @return string The new excerpt.
*/
public function get_the_excerpt( $excerpt, $_post ) {
global $post;
if ( false !== strpos( get_post_type( $_post->ID ), 'tribe_' ) && is_archive() && ! empty( $post->ID ) && $post->ID === $_post->ID ) {
return fusion_get_post_content( $post->ID, 'yes', apply_filters( 'excerpt_length', 55 ), true );
}
return $excerpt;
}
/**
* Add packery library to the Events Calendar Photo View shortcode.
*
* @since 5.3.1
* @access public
* @return void
*/
public function add_packery_library_to_photo_view() {
$version = Avada::get_theme_version();
wp_enqueue_script( 'tribe-events-pro-isotope-packery', FUSION_LIBRARY_URL . '/assets/min/js/library/packery.js', [ 'tribe-events-pro-isotope' ], $version, true );
}
/**
* Add CSS to hide incompatible customizer controls.
*
* @since 5.5.0
* @access public
* @return void
*/
public function ec_customizer_styles() {
?>
add_setting(
$customizer->get_setting_name( 'avada_ec_notice_post_title_color', $section ),
[
'type' => 'hidden',
]
);
$manager->add_control(
'avada_ec_notice_post_title_color',
[
'label' => __( 'NOTE', 'Avada' ),
/* translators: EC Customizer notice. */
'description' => sprintf( __( 'You can control the post title color from the Avada Global Options panel through the