theme file updates for art gallery and navs
authorSteve Sutton <steve@gaslightmedia.com>
Fri, 20 Nov 2015 19:43:40 +0000 (14:43 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Fri, 20 Nov 2015 19:43:40 +0000 (14:43 -0500)
Nav menu for bay view mispelled
use 193 for the page id of art gallery

lib/navigation.php
parts/top-bar_art-gallery.php

index d743fc2..770775b 100644 (file)
@@ -6,7 +6,7 @@ register_nav_menus(array(
     'property-bar' => 'Properties Navigation',
     'property-mobile' => 'Mobile Property Navigation',
     'art-bar' => 'Art Gallery Navigation',
-    'bay-bar' => 'Bay View Inn Navitgation',
+    'bay-bar' => 'Bay View Inn Navigation',
     'river-bar' => 'Crooked River Lodge Navigation',
     'bridge-bar' => 'Drawbridge Bistro Navigation',
     'perry-bar' => 'Perry Hotel Navigation',
index 6cc91bf..30470df 100644 (file)
@@ -1,12 +1,11 @@
 <div class="row show-for-large-up">
-    <?php $artPage = get_page_by_title('Staffords Art Gallery');?>
+    <?php $artPage = 193;?>
     <?php if($artPage):?>
         <a class="top-logo" href="<?php echo get_page_link($artPage->ID);?>"><img src="<?php bloginfo('template_url'); ?>/assets/staffords-gallery.png"></a>
     <?php endif;?>
 </div>
 <div class="row show-for-small-down">
     <div class="small-11 small-centered text-center columns">
-        <?php $artPage = get_page_by_title('Staffords Art Gallery');?>
         <?php if($artPage):?>
             <a href="<?php echo get_page_link($artPage->ID);?>"><img src="<?php bloginfo('template_url'); ?>/assets/staffords-gallery.jpg"></a>
         <?php endif;?>
@@ -29,7 +28,6 @@
         <a class="left-off-canvas-toggle menu-icon" href="#"><span>Menu</span></a>
     </section>
     <section class="middle tab-bar-section">
-        <?php $artPage = get_page_by_title('Staffords Art Gallery');?>
         <?php if($artPage):?>
             <a href="<?php echo get_page_link($artPage->ID);?>"><img class="show-for-medium-only" src="<?php bloginfo('template_url'); ?>/assets/staffords-gallery.png"></a>
         <?php endif;?>
@@ -38,4 +36,4 @@
     <section class="right-small">
         <a class="right-off-canvas-toggle menu-icon" href="#"><span></span></a>
     </section>
-</nav>
\ No newline at end of file
+</nav>