From: Laury GvR Date: Mon, 4 Mar 2019 23:45:09 +0000 (-0500) Subject: Add banquets template with video widget and custom field X-Git-Tag: v1.0.1^2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=eb88d07e702d8735cc8b4c352c09a000ac47f17c;p=WP-Themes%2Fltbaygolf.git Add banquets template with video widget and custom field --- diff --git a/banquets-template.php b/banquets-template.php new file mode 100644 index 0000000..e7266b2 --- /dev/null +++ b/banquets-template.php @@ -0,0 +1,6 @@ + \ No newline at end of file diff --git a/functions.php b/functions.php index 48d9999..f0f99f1 100644 --- a/functions.php +++ b/functions.php @@ -6,6 +6,7 @@ $ancestorId = null; $includePages = array(); $frontPageId = get_option('page_on_front'); add_action('widgets_init', 'glm_quicksite_widget_init'); +add_action('widgets_init', 'glm_video_widget_init'); if (!function_exists('glm_quicksite_widget_init')) { @@ -18,6 +19,15 @@ if (!function_exists('glm_quicksite_widget_init')) { )); } } +if (!function_exists('glm_video_widget_init')) { + function glm_video_widget_init(){ + register_sidebar(array( + 'name' => __('Video'), + 'id' => 'video-widget', + 'description' => __('Video Widget') + )); + } +} /** * Return the client info option for the given key diff --git a/scss/_structure.scss b/scss/_structure.scss index f2bb153..497931f 100644 --- a/scss/_structure.scss +++ b/scss/_structure.scss @@ -63,6 +63,10 @@ a { color: $green; } //6. Main +.widget.widget_media_video { + list-style: none; + margin-top: 60px; +} //7. Slideshow //8. Blog //9. Sidebar diff --git a/sections/banquets-page.php b/sections/banquets-page.php new file mode 100644 index 0000000..f240514 --- /dev/null +++ b/sections/banquets-page.php @@ -0,0 +1,26 @@ +
+
+ "; + echo ''; + bcn_display(); + echo "
"; + } + ?> +
+
+ + + +
+
+ + + +
+
+ +
+ diff --git a/sections/interior-page.php b/sections/interior-page.php index 33337e3..69cb108 100644 --- a/sections/interior-page.php +++ b/sections/interior-page.php @@ -7,18 +7,22 @@
-
-
- - "; - echo ''; - bcn_display(); - echo "
"; - }?> - + ID ) === "banquets-template.php"){ ?> + + +
+ "; + echo ''; + bcn_display(); + echo "
"; + } + get_template_part('parts/main-content'); + ?> +