Updating a screenshot and slideshow
authorIan Weller <ian@gaslightmedia.com>
Fri, 3 Feb 2017 18:39:13 +0000 (13:39 -0500)
committerIan Weller <ian@gaslightmedia.com>
Fri, 3 Feb 2017 18:39:13 +0000 (13:39 -0500)
I got a new screenshot for the generic theme and I also added the widget
area for the slideshow.

functions.php
parts/slide-show.php
screenshot.png

index ffda352..0342460 100644 (file)
@@ -15,6 +15,11 @@ if (!function_exists('glm_quicksite_widget_init')) {
             'id'          => 'sidebar-r',
             'description' => __('Appears in Right Sidebar')
         ));
+        register_sidebar(array(
+            'name'        => __('Slideshow'),
+            'id'          => 'slideshow',
+            'description' => __('Slideshow/Metaslider Area')
+        ));
         //register_sidebar(array(
         //    'name'        => __('Footer'),
         //    'id'          => 'sidebar-f',
index e9cd86b..75ae6d4 100644 (file)
@@ -1,7 +1,7 @@
-<?php if (is_front_page()) {
-    echo '<div id="slideshow">';
-    echo do_shortcode("[metaslider id=90]");
-    echo do_shortcode("[metaslider id=95]");
-    echo '</div>';
-}
-?>
+<?php if (is_front_page()) : ?>
+       <div id="slideshow">
+        <?php if ( is_active_sidebar( 'slideshow' ) ) : ?>
+            <?php dynamic_sidebar( 'slideshow' ); ?>
+        <?php endif; ?>
+       </div>
+<?php endif; ?>
\ No newline at end of file
index 6be0d21..cc54fcb 100644 (file)
Binary files a/screenshot.png and b/screenshot.png differ