'; } /** * 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(); ?>
', '' ); ?>
', '' ); // WPCS: XSS ok. ?> |
'; } /** * 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 ) { if ( 'tribe_events' === get_post_type() && is_archive() ) { 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() { wp_enqueue_script( 'tribe-events-pro-isotope-packery', FUSION_LIBRARY_URL . '/assets/min/js/library/packery.js', array( 'tribe-events-pro-isotope' ), '', 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 ), array( 'type' => 'hidden', ) ); $manager->add_control( 'avada_ec_notice_post_title_color', array( 'label' => __( 'NOTE', 'Avada' ), /* translators: EC Customizer notice. */ 'description' => sprintf( __( 'You can control the post title color from Avada theme options panel through the Events Primary Color Overlay Text Color setting. Avada has additional Event Calendar settings in theme options.', 'Avada' ), Avada()->settings->get_setting_link( 'primary_overlay_text_color' ), Avada()->settings->get_setting_link( 'primary_overlay_text_color' ) ), 'section' => $section->id, 'settings' => $customizer->get_setting_name( 'avada_ec_notice_post_title_color', $section ), 'type' => 'hidden', ) ); } /** * Add notice to Events Calendar photo view customizer section. * * @since 5.5.0 * @access public * @param WP_Customize_Section $section The WordPress section instance. * @param WP_Customize_Manager $manager The WordPress Customizer manager. * @return void */ public function add_photo_view_notice( WP_Customize_Section $section, WP_Customize_Manager $manager ) { $customizer = Tribe__Customizer::instance(); $manager->add_setting( $customizer->get_setting_name( 'avada_ec_notice_photo_bg_color', $section ), array( 'type' => 'hidden', ) ); $manager->add_control( 'avada_ec_notice_photo_bg_color', array( 'label' => __( 'NOTE', 'Avada' ), /* translators: EC Customizer notice. */ 'description' => sprintf( __( 'You can control the photo background color from Avada theme options panel through the Grid Box Color setting. Avada has additional Event Calendar settings in theme options.', 'Avada' ), Avada()->settings->get_setting_link( 'timeline_bg_color' ), Avada()->settings->get_setting_link( 'primary_overlay_text_color' ) ), 'section' => $section->id, 'settings' => $customizer->get_setting_name( 'avada_ec_notice_photo_bg_color', $section ), 'type' => 'hidden', ) ); } /** * Add notice to Events Calendar month/week view customizer section. * * @since 5.5.0 * @access public * @param WP_Customize_Section $section The WordPress section instance. * @param WP_Customize_Manager $manager The WordPress Customizer manager. * @return void */ public function add_month_week_view_notice( WP_Customize_Section $section, WP_Customize_Manager $manager ) { $customizer = Tribe__Customizer::instance(); $manager->add_setting( $customizer->get_setting_name( 'avada_ec_notice_highlight_color', $section ), array( 'type' => 'hidden', ) ); $manager->add_control( 'avada_ec_notice_highlight_color', array( 'label' => __( 'NOTE', 'Avada' ), /* translators: EC Customizer notice. */ 'description' => sprintf( __( 'You can control the calendar highlight color from Avada theme options panel through the Primary Color setting. Avada has additional Event Calendar settings in theme options.', 'Avada' ), Avada()->settings->get_setting_link( 'primary_color' ), Avada()->settings->get_setting_link( 'primary_overlay_text_color' ) ), 'section' => $section->id, 'settings' => $customizer->get_setting_name( 'avada_ec_notice_highlight_color', $section ), 'type' => 'hidden', ) ); } /** * Change the map link text. * * @since 5.5.0 * @access public * @param string $link The link markup. * @return string The adapted link markup. */ public function change_map_link_html( $link ) { $link = str_replace( 'target="_blank">+', 'target="_blank">', $link ); return $link; } /** * Style Event Notices. * * @since 5.5.0 * @access public * @param string $html The notice markup. * @param string $notices The actual notices. * @return string The newly styled notice markup. */ public function style_notices( $html, $notices ) { if ( ! empty( $notices ) && shortcode_exists( 'fusion_alert' ) ) { $html = do_shortcode( '[fusion_alert class="tribe-events-notices" type="general"]' . implode( '
', $notices ) . '[/fusion_alert]' ); } return $html; } }