Changing from locations widget to function call
authorSteve Sutton <steve@gaslightmedia.com>
Thu, 20 Nov 2014 15:34:51 +0000 (10:34 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Thu, 20 Nov 2014 15:34:51 +0000 (10:34 -0500)
footer.php
functions.php

index 3ffacbf..207caab 100644 (file)
@@ -4,8 +4,8 @@
     </div>
     </div>
     <div class="row">
-        <?php if (is_active_sidebar('sidebar-f')) :?>
-            <?php dynamic_sidebar('sidebar-f');?>
+        <?php if (function_exists('preston_feather_get_locations')):?>
+            <?php preston_feather_get_locations();?>
         <?php endif;?>
     </div>
     <div class="row">
index 2800b02..91a9254 100755 (executable)
@@ -90,17 +90,4 @@ function glm_google_map($w = '500px', $h = '200px')
     return sprintf($format, $w, $h);
 }
 add_action('wp_enqueue_scripts', 'preston_feather_scripts');
-add_action('widgets_init', 'preston_widget_init');
-if (!function_exists('preston_widget_init')) {
-
-    function preston_widget_init()
-    {
-        register_sidebar(array(
-            'name'        => __('Footer'),
-            'id'          => 'sidebar-f',
-            'description' => __('Appears in Footer Area')
-        ));
-    }
-
-}
 ?>
\ No newline at end of file