updated the nav locations and I added a new widget area
authorIan Weller <ian@gaslightmedia.com>
Tue, 24 Jan 2017 18:45:56 +0000 (13:45 -0500)
committerIan Weller <ian@gaslightmedia.com>
Tue, 24 Jan 2017 18:45:56 +0000 (13:45 -0500)
I added a widget area for the slideshow and I also updated a few things
for the navigation areas.

functions.php
lib/navigation.php

index a8603e3..e1b86c3 100644 (file)
@@ -16,6 +16,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/Meta Slider')
+        ));
         //register_sidebar(array(
         //    'name'        => __('Footer'),
         //    'id'          => 'sidebar-f',
index 10fcdd6..686c951 100644 (file)
@@ -2,7 +2,8 @@
 
 register_nav_menus(array(
   'top-bar' => 'Site Navigation',
-    'header-bar' => 'Top Links'
+    'header-bar' => 'Top Links',
+  'second-header' => 'Secondary Header Navigation'
 ));
 
 /**
@@ -104,6 +105,27 @@ if ( ! function_exists( 'header_top_bar' ) ) {
       ));
   }
 }
+/**
+ * Secondary Header Navigation
+**/
+if ( ! function_exists( 'glm_theme_second_header' ) ) {
+  function glm_theme_second_header() {
+      wp_nav_menu(array(
+          'container' => false,                           // remove nav container
+          'container_class' => '',                        // class of container
+          'menu' => '',                                   // menu name
+          'menu_class' => '',                             // adding custom nav class
+          'theme_location' => 'second-header',                  // where it's located in the theme
+          'before' => '',                                 // before each link <a>
+          'after' => '',                                  // after each link </a>
+          'link_before' => '',                            // before each link text
+          'link_after' => '',                             // after each link text
+          'depth' => 3,                                   // limit the depth of the nav
+          'fallback_cb' => false,                         // fallback function (see below)
+          'walker' => new Glm_Theme_Top_Bar_Walker()
+      ));
+  }
+}
 
 /**
  * glm_page_menu