Change function calls to mobile oc
authorLaury GvR <laury@gaslightmedia.com>
Wed, 21 Feb 2018 17:03:45 +0000 (12:03 -0500)
committerLaury GvR <laury@gaslightmedia.com>
Wed, 21 Feb 2018 17:03:45 +0000 (12:03 -0500)
lib/navigation.php
sections/off-canvas.php

index 1fd1aa8..4ea5719 100644 (file)
@@ -50,7 +50,7 @@ if ( ! function_exists( 'government_mobile_off_canvas' ) ) {
           'container_class' => '',                        // class of container
           'menu' => '',                                   // menu name
           'menu_class' => 'government',                             // adding custom nav class
-          'theme_location' => 'gov',                  // where it's located in the theme
+          'theme_location' => 'gov-nav',                  // where it's located in the theme
           'before' => '',                                 // before each link <a>
           'after' => '',                                  // after each link </a>
           'link_before' => '',                            // before each link text
@@ -73,7 +73,7 @@ if ( ! function_exists( 'chamber_mobile_off_canvas' ) ) {
           'container_class' => '',                        // class of container
           'menu' => '',                                   // menu name
           'menu_class' => 'chamber',                             // adding custom nav class
-          'theme_location' => 'chamber',                  // where it's located in the theme
+          'theme_location' => 'chamber-nav',                  // where it's located in the theme
           'before' => '',                                 // before each link <a>
           'after' => '',                                  // after each link </a>
           'link_before' => '',                            // before each link text
@@ -86,8 +86,8 @@ if ( ! function_exists( 'chamber_mobile_off_canvas' ) ) {
   }
 }
 
-if ( ! function_exists( 'visitors_mobile_off_canvas' ) ) {
-  function visitors_mobile_off_canvas() {
+if ( ! function_exists( 'cvb_mobile_off_canvas' ) ) {
+  function cvb_mobile_off_canvas() {
       echo '<ul class="left-off-canvas-list">';
       echo '<li class="page_item"><a href="' . get_bloginfo('url') . '">Home</a></li>';
       echo '<h3 class="propertyLabel"> Visitor Information </h3>';
@@ -96,7 +96,7 @@ if ( ! function_exists( 'visitors_mobile_off_canvas' ) ) {
           'container_class' => '',                        // class of container
           'menu' => '',                                   // menu name
           'menu_class' => 'visitors',                             // adding custom nav class
-          'theme_location' => 'cvb',                  // where it's located in the theme
+          'theme_location' => 'cvb-nav',                  // where it's located in the theme
           'before' => '',                                 // before each link <a>
           'after' => '',                                  // after each link </a>
           'link_before' => '',                            // before each link text
@@ -109,8 +109,8 @@ if ( ! function_exists( 'visitors_mobile_off_canvas' ) ) {
   }
 }
 
-if ( ! function_exists( 'economic_mobile_off_canvas' ) ) {
-  function economic_mobile_off_canvas() {
+if ( ! function_exists( 'edc_mobile_off_canvas' ) ) {
+  function edc_mobile_off_canvas() {
       echo '<ul class="left-off-canvas-list">';
       echo '<li class="page_item"><a href="' . get_bloginfo('url') . '">Home</a></li>';
       echo '<h3 class="propertyLabel"> Economic Development </h3>';
@@ -119,7 +119,7 @@ if ( ! function_exists( 'economic_mobile_off_canvas' ) ) {
           'container_class' => '',                        // class of container
           'menu' => '',                                   // menu name
           'menu_class' => 'economic',                             // adding custom nav class
-          'theme_location' => 'edc',                  // where it's located in the theme
+          'theme_location' => 'edc-nav',                  // where it's located in the theme
           'before' => '',                                 // before each link <a>
           'after' => '',                                  // after each link </a>
           'link_before' => '',                            // before each link text
index 30d557e..66c66f4 100644 (file)
@@ -8,19 +8,19 @@
 <?php 
     switch($GLOBALS['entity_page_slug']){
         case "government":
-           glm_theme_mobile_off_canvas('government-nav'); 
+            government_mobile_off_canvas();
             break;
         case "chamber-of-commerce":
-            glm_theme_mobile_off_canvas('chamber-nav'); 
+            chamber_mobile_off_canvas();
             break;
         case "convention-visitors-bureau":
-            glm_theme_mobile_off_canvas('visitors-nav'); 
+            cvb_mobile_off_canvas();
             break;
         case "edc":
-            glm_theme_mobile_off_canvas('economic-nav'); 
+            edc_mobile_off_canvas();
             break;
         default:
-             glm_theme_mobile_off_canvas('top-bar'); 
+            glm_theme_mobile_off_canvas('top-bar'); 
             break;
     }