From 5d9186b67f007a1bee3ad965086579492b7e2d93 Mon Sep 17 00:00:00 2001 From: Laury GvR Date: Thu, 16 May 2019 16:17:37 -0400 Subject: [PATCH] Add countdown to secondary header --- functions.php | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/functions.php b/functions.php index fa721ee..18630ed 100644 --- a/functions.php +++ b/functions.php @@ -742,4 +742,28 @@ function fusion_doing_ajax() { return defined( 'DOING_AJAX' ) && DOING_AJAX; } +/* Custom GLM Additions */ +function secondary_header_countdown() { + do_shortcode( + '[fusion_builder_container hundred_percent="no" hundred_percent_height="no" hundred_percent_height_scroll="no" hundred_percent_height_center_content="yes" + equal_height_columns="no" menu_anchor="" hide_on_mobile="small-visibility,medium-visibility,large-visibility" status="published" publish_date="" class="" + id="" background_color="" background_image="" background_position="center center" background_repeat="no-repeat" fade="no" background_parallax="none" + enable_mobile="no" parallax_speed="0.3" video_mp4="" video_webm="" video_ogv="" video_url="" video_aspect_ratio="16:9" video_loop="yes" video_mute="yes" + video_preview_image="" border_size="" border_color="" border_style="solid" margin_top="" margin_bottom="" padding_top="" padding_right="" padding_bottom="" + padding_left=""][fusion_builder_row][fusion_builder_column type="1_1" layout="1_1" spacing="" center_content="no" link="" target="_self" min_height="" + hide_on_mobile="small-visibility,medium-visibility,large-visibility" class="" id="" background_color="" background_image="" background_image_id="" + background_position="left top" background_repeat="no-repeat" hover_type="none" border_size="0" border_color="" border_style="solid" border_position="all" + padding_top="" padding_right="" padding_bottom="" padding_left="" margin_top="" margin_bottom="" animation_type="" animation_direction="left" + animation_speed="0.3" animation_offset="" last="no"][fusion_countdown countdown_end="2019-09-02 12:00:00" timezone="" show_weeks="" border_radius="" + heading_text="August 12-18, 2019 | " subheading_text="Subheading text" link_url="" link_text="" link_target="default" + hide_on_mobile="small-visibility,medium-visibility,large-visibility" class="" id="" background_color="" background_image="" background_position="" + background_repeat="" counter_box_color="" counter_text_color="" heading_text_color="" subheading_text_color="" link_text_color="" /][/fusion_builder_column] + [/fusion_builder_row][/fusion_builder_container]' + ); + +} +add_filter( 'avada_secondary_header_content', 'secondary_header_countdown' ); + + + /* Omit closing PHP tag to avoid "Headers already sent" issues. */ -- 2.17.1