Changed page get_title to get_post testing
authorAnthony Talarico <talarico@gaslightmedia.com>
Mon, 23 Nov 2015 13:47:04 +0000 (08:47 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Mon, 23 Nov 2015 13:47:04 +0000 (08:47 -0500)
parts/top-bar_art-gallery.php
parts/top-bar_bay-view.php
parts/top-bar_pointer-boat.php

index 30470df..c517c98 100644 (file)
@@ -1,11 +1,14 @@
 <div class="row show-for-large-up">
-    <?php $artPage = 193;?>
+    <?php $artPage = get_post(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_post(193);?>
+
         <?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;?>
@@ -28,6 +31,9 @@
         <a class="left-off-canvas-toggle menu-icon" href="#"><span>Menu</span></a>
     </section>
     <section class="middle tab-bar-section">
+
+        <?php $artPage = get_post(193);?>
+
         <?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;?>
index 44efff8..7b591af 100644 (file)
@@ -1,12 +1,12 @@
 <div class="row show-for-large-up">
-    <?php $bayPage = get_page_by_title('Bay View Inn');?>
+    <?php $bayPage = get_post(310);?>
     <?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_page_by_title('Bay View Inn');?>
+        <?php $bayPage = get_post(310);?>
         <?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_page_by_title('Bay View Inn');?>
+        <?php $bayPage = get_post(310);?>
         <?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 b2b94a9..dd9f6cd 100644 (file)
@@ -1,12 +1,12 @@
 <div class="row show-for-large-up">
-    <?php $pointerPage = get_page_by_title('The Pointer Boat');?>
+    <?php $pointerPage = get_post(230);?>
     <?php if($pointerPage):?>
         <a class="top-logo" href="<?php echo get_page_link($pointerPage->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 $pointerPage = get_page_by_title('The Pointer Boat');?>
+        <?php $pointerPage = get_post(230);?>
         <?php if($pointerPage):?>
             <a href="<?php echo get_page_link($pointerPage->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 $pointerPage = get_page_by_title('The Pointer Boat');?>
+        <?php $pointerPage = get_post(230);?>
         <?php if($pointerPage):?>
             <a href="<?php echo get_page_link($pointerPage->ID);?>"><img class="show-for-medium-only" src="<?php bloginfo('template_url'); ?>/assets/Staffords-oval.png"></a>
         <?php endif;?>