Changed get_title to get post for top bar nav pages
authorAnthony Talarico <talarico@gaslightmedia.com>
Mon, 23 Nov 2015 14:01:52 +0000 (09:01 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Mon, 23 Nov 2015 14:01:52 +0000 (09:01 -0500)
parts/top-bar_bay-view.php
parts/top-bar_crooked-river.php
parts/top-bar_drawbridge.php
parts/top-bar_perry.php
parts/top-bar_pier.php
parts/top-bar_vacation.php
parts/top-bar_weathervane.php

index 7b591af..1fbcc79 100644 (file)
@@ -1,12 +1,12 @@
 <div class="row show-for-large-up">
-    <?php $bayPage = get_post(310);?>
+    <?php $bayPage = get_post(187);?>
     <?php if($bayPage):?>
         <a class="top-logo" href="<?php echo get_page_link($bayPage->ID);?>"><img src="<?php bloginfo('template_url'); ?>/assets/staffords-bay-view-inn.png"></a>
     <?php endif;?>
 </div>
 <div class="row show-for-small-down">
     <div class="small-11 small-centered text-center columns">
-        <?php $bayPage = get_post(310);?>
+        <?php $bayPage = get_post(187);?>
         <?php if($bayPage):?>
             <a href="<?php echo get_page_link($bayPage->ID);?>"><img src="<?php bloginfo('template_url'); ?>/assets/staffords-bay-view-inn.jpg"></a>
         <?php endif;?>
@@ -29,7 +29,7 @@
         <a class="left-off-canvas-toggle menu-icon" href="#"><span>Menu</span></a>
     </section>
     <section class="middle tab-bar-section">
-        <?php $bayPage = get_post(310);?>
+        <?php $bayPage = get_post(187);?>
         <?php if($bayPage):?>
             <a href="<?php echo get_page_link($bayPage->ID);?>"><img class="show-for-medium-only" src="<?php bloginfo('template_url'); ?>/assets/staffords-bay-view-inn.png"></a>
         <?php endif;?>
index d4617ed..aec23ee 100644 (file)
@@ -1,12 +1,12 @@
 <div class="row show-for-large-up">
-    <?php $riverPage = get_page_by_title('Crooked River Lodge');?>
+    <?php $riverPage = get_post(188);?>
     <?php if($riverPage):?>
         <a class="top-logo" href="<?php echo get_page_link($riverPage->ID);?>"><img src="<?php bloginfo('template_url'); ?>/assets/staffords-crooked-river-lodge.png"></a>
     <?php endif;?>
 </div>
 <div class="row show-for-small-down">
     <div class="small-11 small-centered text-center columns">
-        <?php $riverPage = get_page_by_title('Crooked River Lodge');?>
+        <?php $riverPage = get_post(188);?>
         <?php if($riverPage):?>
             <a href="<?php echo get_page_link($riverPage->ID);?>"><img src="<?php bloginfo('template_url'); ?>/assets/staffords-crooked-river-lodge.jpg"></a>
         <?php endif;?>
@@ -29,7 +29,7 @@
         <a class="left-off-canvas-toggle menu-icon" href="#"><span>Menu</span></a>
     </section>
     <section class="middle tab-bar-section">
-        <?php $riverPage = get_page_by_title('Crooked River Lodge');?>
+        <?php $riverPage = get_post(188);?>
         <?php if($riverPage):?>
             <a href="<?php echo get_page_link($riverPage->ID);?>"><img class="show-for-medium-only" src="<?php bloginfo('template_url'); ?>/assets/staffords-crooked-river-lodge.png"></a>
         <?php endif;?>
index d9f5377..17bb292 100644 (file)
@@ -1,12 +1,12 @@
 <div class="row show-for-large-up">
-    <?php $bridgePage = get_page_by_title('Drawbridge Bistro');?>
+    <?php $bridgePage = get_post(192);?>
     <?php if($bridgePage):?>
         <a class="top-logo" href="<?php echo get_page_link($bridgePage->ID);?>"><img src="<?php bloginfo('template_url'); ?>/assets/staffords-drawbridge-bistro.png"></a>
     <?php endif;?>
 </div>
 <div class="row show-for-small-down">
     <div class="small-11 small-centered text-center columns">
-        <?php $bridgePage = get_page_by_title('Drawbridge Bistro');?>
+        <?php $bridgePage = get_post(192);?>
         <?php if($bridgePage):?>
             <a href="<?php echo get_page_link($bridgePage->ID);?>"><img src="<?php bloginfo('template_url'); ?>/assets/staffords-drawbridge-bristo.jpg"></a>
         <?php endif;?>
@@ -29,7 +29,7 @@
         <a class="left-off-canvas-toggle menu-icon" href="#"><span>Menu</span></a>
     </section>
     <section class="middle tab-bar-section">
-        <?php $bridgePage = get_page_by_title('Drawbridge Bistro');?>
+        <?php $bridgePage = get_post(192);?>
         <?php if($bridgePage):?>
             <a href="<?php echo get_page_link($bridgePage->ID);?>"><img class="show-for-medium-only" src="<?php bloginfo('template_url'); ?>/assets/staffords-drawbridge-bistro.png"></a>
         <?php endif;?>
index f36bc40..e340370 100644 (file)
@@ -1,12 +1,12 @@
 <div class="row show-for-large-up">
-    <?php $perryPage = get_page_by_title('Perry Hotel');?>
+    <?php $perryPage = get_post(189);?>
     <?php if($perryPage):?>
         <a class="top-logo" href="<?php echo get_page_link($perryPage->ID);?>"><img src="<?php bloginfo('template_url'); ?>/assets/staffords-perry-hotel.png"></a>
     <?php endif;?>
 </div>
 <div class="row show-for-small-down">
     <div class="small-11 small-centered text-center columns">
-        <?php $perryPage = get_page_by_title('Perry Hotel');?>
+        <?php $perryPage = get_post(189);?>
         <?php if($perryPage):?>
             <a href="<?php echo get_page_link($perryPage->ID);?>"><img src="<?php bloginfo('template_url'); ?>/assets/staffords-perry-hotel.jpg"></a>
         <?php endif;?>
@@ -29,7 +29,7 @@
         <a class="left-off-canvas-toggle menu-icon" href="#"><span>Menu</span></a>
     </section>
     <section class="middle tab-bar-section">
-        <?php $perryPage = get_page_by_title('Perry Hotel');?>
+        <?php $perryPage = get_post(189);?>
         <?php if($perryPage):?>
             <a href="<?php echo get_page_link($perryPage->ID);?>"><img class="show-for-medium-only" src="<?php bloginfo('template_url'); ?>/assets/staffords-perry-hotel.png"></a>
         <?php endif;?>
index faed24b..c27bed5 100644 (file)
@@ -1,12 +1,12 @@
 <div class="row show-for-large-up">
-    <?php $pierPage = get_page_by_title('Pier Restaurant');?>
+    <?php $pierPage = get_post(190);?>
     <?php if($pierPage):?>
         <a class="top-logo" href="<?php echo get_page_link($pierPage->ID);?>"><img src="<?php bloginfo('template_url'); ?>/assets/staffords-peir-restaurant.png"></a>
     <?php endif;?>
 </div>
 <div class="row show-for-small-down">
     <div class="small-11 small-centered text-center columns">
-        <?php $pierPage = get_page_by_title('Pier Restaurant');?>
+        <?php $pierPage = get_post(190);?>
         <?php if($pierPage):?>
             <a href="<?php echo get_page_link($pierPage->ID);?>"><img src="<?php bloginfo('template_url'); ?>/assets/staffords-peir-restaurant.jpg"></a>
         <?php endif;?>
@@ -29,7 +29,7 @@
         <a class="left-off-canvas-toggle menu-icon" href="#"><span>Menu</span></a>
     </section>
     <section class="middle tab-bar-section">
-        <?php $pierPage = get_page_by_title('Pier Restaurant');?>
+        <?php $pierPage = get_post(190);?>
         <?php if($pierPage):?>
             <a href="<?php echo get_page_link($pierPage->ID);?>"><img class="show-for-medium-only" src="<?php bloginfo('template_url'); ?>/assets/staffords-peir-restaurant.png"></a>
         <?php endif;?>
index 90634d2..8cbd761 100644 (file)
@@ -1,12 +1,12 @@
 <div class="row show-for-large-up">
-    <?php $vacationPage = get_page_by_title('Vacation Rentals');?>
+    <?php $vacationPage = get_post(197);?>
     <?php if($vacationPage):?>
         <a class="top-logo" href="<?php echo get_page_link($vacationPage->ID);?>"><img src="<?php bloginfo('template_url'); ?>/assets/Staffords-oval.png"></a>
     <?php endif;?>
 </div>
 <div class="row show-for-small-down">
     <div class="small-11 small-centered text-center columns">
-        <?php $vacationPage = get_page_by_title('Vacation Rentals');?>
+        <?php $vacationPage = get_post(197);?>
         <?php if($vacationPage):?>
             <a href="<?php echo get_page_link($vacationPage->ID);?>"><img src="<?php bloginfo('template_url'); ?>/assets/staffords-logo-oval.jpg"></a>
         <?php endif;?>
@@ -29,7 +29,7 @@
         <a class="left-off-canvas-toggle menu-icon" href="#"><span>Menu</span></a>
     </section>
     <section class="middle tab-bar-section">
-        <?php $vacationPage = get_page_by_title('Vacation Rentals');?>
+        <?php $vacationPage = get_post(197);?>
         <?php if($vacationPage):?>
             <a class="top-logo"  href="<?php echo get_page_link($vacationPage->ID);?>"><img class="show-for-medium-only" src="<?php bloginfo('template_url'); ?>/assets/Staffords-oval.png"></a>
         <?php endif;?>
index bd01f1b..872af5b 100644 (file)
@@ -1,12 +1,12 @@
 <div class="row show-for-large-up">
-    <?php $weatherPage = get_page_by_title('Weathervane Restaurant');?>
+    <?php $weatherPage = get_post(191);?>
     <?php if($weatherPage):?>
         <a class="top-logo" href="<?php echo get_page_link($weatherPage->ID);?>"><img src="<?php bloginfo('template_url'); ?>/assets/staffords-weathervane.png"></a>
     <?php endif;?>
 </div>
 <div class="row show-for-small-down">
     <div class="small-11 small-centered text-center columns">
-        <?php $weatherPage = get_page_by_title('Weathervane Restaurant');?>
+        <?php $weatherPage = get_post(191);?>
         <?php if($weatherPage):?>
             <a href="<?php echo get_page_link($weatherPage->ID);?>"><img src="<?php bloginfo('template_url'); ?>/assets/staffords-the-weathervane.jpg"></a>
         <?php endif;?>
@@ -29,7 +29,7 @@
         <a class="left-off-canvas-toggle menu-icon" href="#"><span>Menu</span></a>
     </section>
     <section class="middle tab-bar-section">
-        <?php $weatherPage = get_page_by_title('Weathervane Restaurant');?>
+        <?php $weatherPage = get_post(191);?>
         <?php if($weatherPage):?>
             <a href="<?php echo get_page_link($weatherPage->ID);?>"><img class="show-for-medium-only" src="<?php bloginfo('template_url'); ?>/assets/staffords-the-weathervane.png"></a>
         <?php endif;?>