menu assignment and logo import
authorIan Weller <ian@gaslightmedia.com>
Mon, 26 Oct 2015 14:34:22 +0000 (10:34 -0400)
committerIan Weller <ian@gaslightmedia.com>
Mon, 26 Oct 2015 14:34:22 +0000 (10:34 -0400)
15 files changed:
assets/Art and history Logo_4C.jpg [new file with mode: 0644]
assets/CRL logo outlined.jpg [new file with mode: 0644]
assets/Hospitality_Color.jpg [new file with mode: 0644]
assets/Perry_Color.jpg [new file with mode: 0644]
assets/Pier_color.jpg [new file with mode: 0644]
assets/The Drawbridge Bistro Logo.jpg [new file with mode: 0644]
assets/Vacation Rentals-Pointer Boat hospitality logo-jpeg.jpg [new file with mode: 0644]
assets/Weathervane_color.jpg [new file with mode: 0644]
assets/logo_bayview.jpg [new file with mode: 0644]
functions.php
parts/top-bar_main.php
parts/top-bar_pier.php
parts/top-bar_pointer-boat.php
parts/top-bar_vacation.php
parts/top-bar_weathervane.php

diff --git a/assets/Art and history Logo_4C.jpg b/assets/Art and history Logo_4C.jpg
new file mode 100644 (file)
index 0000000..2d75994
Binary files /dev/null and b/assets/Art and history Logo_4C.jpg differ
diff --git a/assets/CRL logo outlined.jpg b/assets/CRL logo outlined.jpg
new file mode 100644 (file)
index 0000000..6d80688
Binary files /dev/null and b/assets/CRL logo outlined.jpg differ
diff --git a/assets/Hospitality_Color.jpg b/assets/Hospitality_Color.jpg
new file mode 100644 (file)
index 0000000..ff2e73a
Binary files /dev/null and b/assets/Hospitality_Color.jpg differ
diff --git a/assets/Perry_Color.jpg b/assets/Perry_Color.jpg
new file mode 100644 (file)
index 0000000..1a3476a
Binary files /dev/null and b/assets/Perry_Color.jpg differ
diff --git a/assets/Pier_color.jpg b/assets/Pier_color.jpg
new file mode 100644 (file)
index 0000000..5ebeb96
Binary files /dev/null and b/assets/Pier_color.jpg differ
diff --git a/assets/The Drawbridge Bistro Logo.jpg b/assets/The Drawbridge Bistro Logo.jpg
new file mode 100644 (file)
index 0000000..74c706e
Binary files /dev/null and b/assets/The Drawbridge Bistro Logo.jpg differ
diff --git a/assets/Vacation Rentals-Pointer Boat hospitality logo-jpeg.jpg b/assets/Vacation Rentals-Pointer Boat hospitality logo-jpeg.jpg
new file mode 100644 (file)
index 0000000..d04a2f9
Binary files /dev/null and b/assets/Vacation Rentals-Pointer Boat hospitality logo-jpeg.jpg differ
diff --git a/assets/Weathervane_color.jpg b/assets/Weathervane_color.jpg
new file mode 100644 (file)
index 0000000..2875658
Binary files /dev/null and b/assets/Weathervane_color.jpg differ
diff --git a/assets/logo_bayview.jpg b/assets/logo_bayview.jpg
new file mode 100644 (file)
index 0000000..647ccbc
Binary files /dev/null and b/assets/logo_bayview.jpg differ
index fb735f3..901a860 100644 (file)
@@ -81,7 +81,7 @@ function glm_page_menu($parent = 0, $class = '')
 register_nav_menus(array(
   'top-bar' => 'Site Navigation',
   'mobile-off-canvas' => 'Mobile',
-    'art-bar' => 'Art Navigation',
+    'art-bar' => 'Art Gallery Navigation',
     'bay-bar' => 'Bay View Inn Navitgation',
     'river-bar' => 'Crooked River Lodge Navigation',
     'bridge-bar' => 'Drawbridge Bistro Navigation',
@@ -90,7 +90,7 @@ register_nav_menus(array(
     'boat-bar' => 'Pointer Boat Navigation',
     'vacation-bar' => 'Vacation Rental Navigation',
     'weathervane-bar' => 'Weathervane Restaurant Navigation',
-    'about-bar' => 'Weathervane Restaurant Navigation',
+    'about-bar' => 'About Navigation',
 //  'footer' => 'Footer'
 ));
 
@@ -112,8 +112,8 @@ if ( ! function_exists( 'feature_top_bar' ) ) {
       ));
   }
 }
-if ( ! function_exists( 'feature_top_bar' ) ) {
-  function feature_top_bar() {
+if ( ! function_exists( 'bay_top_bar' ) ) {
+  function bay_top_bar() {
       wp_nav_menu(array(
           'container' => false,                           // remove nav container
           'container_class' => '',                        // class of container
@@ -130,8 +130,8 @@ if ( ! function_exists( 'feature_top_bar' ) ) {
       ));
   }
 }
-if ( ! function_exists( 'feature_top_bar' ) ) {
-  function feature_top_bar() {
+if ( ! function_exists( 'art_top_bar' ) ) {
+  function art_top_bar() {
       wp_nav_menu(array(
           'container' => false,                           // remove nav container
           'container_class' => '',                        // class of container
@@ -148,8 +148,8 @@ if ( ! function_exists( 'feature_top_bar' ) ) {
       ));
   }
 }
-if ( ! function_exists( 'feature_top_bar' ) ) {
-  function feature_top_bar() {
+if ( ! function_exists( 'river_top_bar' ) ) {
+  function river_top_bar() {
       wp_nav_menu(array(
           'container' => false,                           // remove nav container
           'container_class' => '',                        // class of container
@@ -166,8 +166,8 @@ if ( ! function_exists( 'feature_top_bar' ) ) {
       ));
   }
 }
-if ( ! function_exists( 'feature_top_bar' ) ) {
-  function feature_top_bar() {
+if ( ! function_exists( 'bridge_top_bar' ) ) {
+  function bridge_top_bar() {
       wp_nav_menu(array(
           'container' => false,                           // remove nav container
           'container_class' => '',                        // class of container
@@ -184,8 +184,8 @@ if ( ! function_exists( 'feature_top_bar' ) ) {
       ));
   }
 }
-if ( ! function_exists( 'feature_top_bar' ) ) {
-  function feature_top_bar() {
+if ( ! function_exists( 'perry_top_bar' ) ) {
+  function perry_top_bar() {
       wp_nav_menu(array(
           'container' => false,                           // remove nav container
           'container_class' => '',                        // class of container
@@ -202,8 +202,8 @@ if ( ! function_exists( 'feature_top_bar' ) ) {
       ));
   }
 }
-if ( ! function_exists( 'feature_top_bar' ) ) {
-  function feature_top_bar() {
+if ( ! function_exists( 'pier_top_bar' ) ) {
+  function pier_top_bar() {
       wp_nav_menu(array(
           'container' => false,                           // remove nav container
           'container_class' => '',                        // class of container
@@ -220,8 +220,8 @@ if ( ! function_exists( 'feature_top_bar' ) ) {
       ));
   }
 }
-if ( ! function_exists( 'feature_top_bar' ) ) {
-  function feature_top_bar() {
+if ( ! function_exists( 'boat_top_bar' ) ) {
+  function boat_top_bar() {
       wp_nav_menu(array(
           'container' => false,                           // remove nav container
           'container_class' => '',                        // class of container
@@ -238,8 +238,8 @@ if ( ! function_exists( 'feature_top_bar' ) ) {
       ));
   }
 }
-if ( ! function_exists( 'feature_top_bar' ) ) {
-  function feature_top_bar() {
+if ( ! function_exists( 'vacation_top_bar' ) ) {
+  function vacation_top_bar() {
       wp_nav_menu(array(
           'container' => false,                           // remove nav container
           'container_class' => '',                        // class of container
@@ -257,7 +257,7 @@ if ( ! function_exists( 'feature_top_bar' ) ) {
   }
 }
 if ( ! function_exists( 'weathervane_top_bar' ) ) {
-  function feature_top_bar() {
+  function weathervane_top_bar() {
       wp_nav_menu(array(
           'container' => false,                           // remove nav container
           'container_class' => '',                        // class of container
@@ -274,6 +274,25 @@ if ( ! function_exists( 'weathervane_top_bar' ) ) {
       ));
   }
 }
+if ( ! function_exists( 'about_top_bar' ) ) {
+  function about_top_bar() {
+      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' => 'about-bar',                  // 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 Feature_Top_Bar_Walker()
+      ));
+  }
+}
+
 if ( ! class_exists( 'Feature_Top_Bar_Walker' ) ) :
 class Feature_Top_Bar_Walker extends Walker_Nav_Menu {
 
@@ -289,43 +308,43 @@ class Feature_Top_Bar_Walker extends Walker_Nav_Menu {
         parent::display_element( $element, $children_elements, $max_depth, $depth, $args, $output );
     }
 
-    function start_el( &$output, $object, $depth = 0, $args = array(), $current_object_id = 0 ) {
-        $item_html = '';
-        parent::start_el( $item_html, $object, $depth, $args );
-
-        // Insert style to display page's thumbnail
-        $item_style = '';
-        if ($depth == 0 && has_post_thumbnail((int)$object->object_id)) {
-            $thumbnail = wp_get_attachment_image_src(get_post_thumbnail_id((int)$object->object_id), 'bpla-drop-down');
-            //$item_style .= "<style>#menu-item-".$object->ID." > .dropdown:before { background-image: url('".$thumbnail[0]."');</style>";
-        }
-        //$output .= ( 0 == $depth ) ? '<li class="divider"></li>' : '';
-        $classes = empty( $object->classes ) ? array() : (array) $object->classes;
-        if ( in_array( 'label', $classes ) ) {
-            //$output .= '<li class="divider"></li>';
-            $item_html = preg_replace( '/<a[^>]*>(.*)<\/a>/iU', '<label>$1</label>', $item_html );
-        }
-        if ( in_array( 'divider', $classes ) ) {
-            $item_html = preg_replace( '/<a[^>]*>( .* )<\/a>/iU', '', $item_html );
-        }
-        if ($item_style) {
-            $output .= $item_style;
-        }
-        if ($depth == 0 && has_post_thumbnail((int)$object->object_id) && $object->has_children) {
-            $thumbnail = wp_get_attachment_image_src(get_post_thumbnail_id((int)$object->object_id), 'bpla-drop-down');
-            $item_html .= '<script>var img_for_menu_' . $object->ID . ' = "' . $thumbnail[0] . '";</script>';
-            //$item_html .= '<pre>' . print_r($object, true) . '</pre>';
-        }
-        $output .= $item_html;
-    }
-
-    function start_lvl( &$output, $depth = 0, $args = array() ) {
-        if ($depth == 0) {
-            $output .= "\n<ul class=\"sub-menu dropdown\">\n";
-            $output .= "\n<li class=\"image-placeholder\">";
-            $output .= "</li>\n";
-        }
-    }
+//    function start_el( &$output, $object, $depth = 0, $args = array(), $current_object_id = 0 ) {
+//        $item_html = '';
+//        parent::start_el( $item_html, $object, $depth, $args );
+//
+//        // Insert style to display page's thumbnail
+//        $item_style = '';
+//        if ($depth == 0 && has_post_thumbnail((int)$object->object_id)) {
+//            $thumbnail = wp_get_attachment_image_src(get_post_thumbnail_id((int)$object->object_id), 'bpla-drop-down');
+//            //$item_style .= "<style>#menu-item-".$object->ID." > .dropdown:before { background-image: url('".$thumbnail[0]."');</style>";
+//        }
+//        //$output .= ( 0 == $depth ) ? '<li class="divider"></li>' : '';
+//        $classes = empty( $object->classes ) ? array() : (array) $object->classes;
+//        if ( in_array( 'label', $classes ) ) {
+//            //$output .= '<li class="divider"></li>';
+//            $item_html = preg_replace( '/<a[^>]*>(.*)<\/a>/iU', '<label>$1</label>', $item_html );
+//        }
+//        if ( in_array( 'divider', $classes ) ) {
+//            $item_html = preg_replace( '/<a[^>]*>( .* )<\/a>/iU', '', $item_html );
+//        }
+//        if ($item_style) {
+//            $output .= $item_style;
+//        }
+//        if ($depth == 0 && has_post_thumbnail((int)$object->object_id) && $object->has_children) {
+//            $thumbnail = wp_get_attachment_image_src(get_post_thumbnail_id((int)$object->object_id), 'bpla-drop-down');
+//            $item_html .= '<script>var img_for_menu_' . $object->ID . ' = "' . $thumbnail[0] . '";</script>';
+//            //$item_html .= '<pre>' . print_r($object, true) . '</pre>';
+//        }
+//        $output .= $item_html;
+//    }
+//
+//    function start_lvl( &$output, $depth = 0, $args = array() ) {
+//        if ($depth == 0) {
+//            $output .= "\n<ul class=\"sub-menu dropdown\">\n";
+//            $output .= "\n<li class=\"image-placeholder\">";
+//            $output .= "</li>\n";
+//        }
+//    }
 
 }
 endif;
index 07361ba..15a0798 100644 (file)
@@ -1,7 +1,7 @@
 <div class="row">
     <nav class="top-bar text-center show-for-large-up" data-topbar role="navigation">
         <section class="top-bar-section">
-            
+            <?php feature_top_bar(); ?>
         </section>
     </nav>
     <nav class="tab-bar show-for-medium-down">
index e8e7df4..6aa1a22 100644 (file)
@@ -1,3 +1,18 @@
 <div class="row">
-    
+    <nav class="top-bar text-center show-for-large-up" data-topbar role="navigation">
+        <section class="top-bar-section">
+            <?php pier_top_bar(); ?>
+        </section>
+    </nav>
+    <nav class="tab-bar show-for-medium-down">
+        <section class="left-small">
+            <a class="left-off-canvas-toggle menu-icon" href="#"><span>Menu</span></a>
+        </section>
+        <section class="middle tab-bar-section">
+            <span>Book Now</span>
+        </section>
+        <section class="right-small">
+            <a class="right-off-canvas-toggle menu-icon" href="#"><span></span></a>
+        </section>
+    </nav>
 </div>
\ No newline at end of file
index e8e7df4..1c28b3e 100644 (file)
@@ -1,3 +1,18 @@
 <div class="row">
-    
+    <nav class="top-bar text-center show-for-large-up" data-topbar role="navigation">
+        <section class="top-bar-section">
+            <?php boat_top_bar(); ?>
+        </section>
+    </nav>
+    <nav class="tab-bar show-for-medium-down">
+        <section class="left-small">
+            <a class="left-off-canvas-toggle menu-icon" href="#"><span>Menu</span></a>
+        </section>
+        <section class="middle tab-bar-section">
+            <span>Book Now</span>
+        </section>
+        <section class="right-small">
+            <a class="right-off-canvas-toggle menu-icon" href="#"><span></span></a>
+        </section>
+    </nav>
 </div>
\ No newline at end of file
index e8e7df4..15a0798 100644 (file)
@@ -1,3 +1,18 @@
 <div class="row">
-    
+    <nav class="top-bar text-center show-for-large-up" data-topbar role="navigation">
+        <section class="top-bar-section">
+            <?php feature_top_bar(); ?>
+        </section>
+    </nav>
+    <nav class="tab-bar show-for-medium-down">
+        <section class="left-small">
+            <a class="left-off-canvas-toggle menu-icon" href="#"><span>Menu</span></a>
+        </section>
+        <section class="middle tab-bar-section">
+            <span>Book Now</span>
+        </section>
+        <section class="right-small">
+            <a class="right-off-canvas-toggle menu-icon" href="#"><span></span></a>
+        </section>
+    </nav>
 </div>
\ No newline at end of file
index e8e7df4..15a0798 100644 (file)
@@ -1,3 +1,18 @@
 <div class="row">
-    
+    <nav class="top-bar text-center show-for-large-up" data-topbar role="navigation">
+        <section class="top-bar-section">
+            <?php feature_top_bar(); ?>
+        </section>
+    </nav>
+    <nav class="tab-bar show-for-medium-down">
+        <section class="left-small">
+            <a class="left-off-canvas-toggle menu-icon" href="#"><span>Menu</span></a>
+        </section>
+        <section class="middle tab-bar-section">
+            <span>Book Now</span>
+        </section>
+        <section class="right-small">
+            <a class="right-off-canvas-toggle menu-icon" href="#"><span></span></a>
+        </section>
+    </nav>
 </div>
\ No newline at end of file