removed extra calls to database for post id and removed about templates
authorAnthony Talarico <talarico@gaslightmedia.com>
Wed, 25 Nov 2015 17:54:54 +0000 (12:54 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Wed, 25 Nov 2015 17:54:54 +0000 (12:54 -0500)
parts/off-canvas_about.php [deleted file]
parts/top-bar_about.php [deleted file]
parts/top-bar_art-gallery.php
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_pointer-boat.php
parts/top-bar_vacation.php
parts/top-bar_weathervane.php

diff --git a/parts/off-canvas_about.php b/parts/off-canvas_about.php
deleted file mode 100644 (file)
index b7429eb..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-<aside class="left-off-canvas-menu hide-for-large-up">
-    <?php feature_mobile_off_canvas(); ?>
-    <?php get_template_part('parts/search');?>
-    <ul class="offcavas-social-list">
-        <li><a class="share" target="_blank" href="#"></a></li>
-        <li><a class="facebook" target="_blank" href="https://www.facebook.com/staffordshospitality"></a></li>
-        <li><a class="tweet" target="_blank" href="https://twitter.com/petoskeylodging"></a></li>
-        <li><a class="pin" target="_blank" href="https://www.pinterest.com/staffordsnmich/"></a></li>
-        <li><a class="youtube" target="_blank" href="https://www.youtube.com/user/staffordsnmichigan"></a></li>
-        <?php $blogPage = get_page_by_title('Blog');?>
-        <?php if($blogPage):?>
-            <li><a class="blog" href="<?php echo get_page_link($blogPage->ID);?>"></a></li>
-        <?php endif;?>
-    </ul>
-    <?php get_template_part('parts/client-info-offcanvas');?>
-    <?php property_mobile_off_canvas(); ?>
-</aside>
-<aside class="right-off-canvas-menu">
-    <div class="row">
-        <div id="title" class="small-11 small-centered columns text-center">
-            <span>Reservations</span>
-        </div>
-    </div>
-    <?php get_template_part('parts/reservation-form-off-canvas');?>
-
-</aside>
\ No newline at end of file
diff --git a/parts/top-bar_about.php b/parts/top-bar_about.php
deleted file mode 100644 (file)
index e632032..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-<div class="row show-for-large-up">
-    <?php $aboutPage = get_page_by_title('About');?>
-    <?php if($aboutPage):?>
-        <a class="top-logo" href="<?php echo get_page_link($aboutPage->ID);?>"><img src="<?php bloginfo('template_url'); ?>/assets/staffords-logo.png"></a>
-    <?php endif;?>
-</div>
-<div class="row show-for-small-down">
-    <div class="small-11 small-centered text-center columns">
-        <?php $aboutPage = get_page_by_title('About');?>
-        <?php if($aboutPage):?>
-            <a href="<?php echo get_page_link($aboutPage->ID);?>"><img src="<?php bloginfo('template_url'); ?>/assets/staffords-logo.jpg"></a>
-        <?php endif;?>
-    </div>
-</div>
-<div id="long-bar" class="show-for-large-up">
-    <div class="row">
-        <div class="large-6 large-offset-4 columns">
-            <nav class="top-bar text-left" data-topbar role="navigation">
-                <section class="top-bar-section">
-                    <?php feature_top_bar(); ?>
-                </section>
-            </nav>
-        </div>
-        <?php get_template_part('parts/reservation-form-main');?>
-    </div>
-</div>
-<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">
-        <?php $aboutPage = get_page_by_title('About');?>
-        <?php if($aboutPage):?>
-            <a href="<?php echo get_page_link($aboutPage->ID);?>"><img class="show-for-medium-only" src="<?php bloginfo('template_url'); ?>/assets/staffords-logo.png"></a>
-        <?php endif;?>
-        <span>Book Now</span>
-    </section>
-    <section class="right-small">
-        <a class="right-off-canvas-toggle menu-icon" href="#"><span></span></a>
-    </section>
-</nav>
index c517c98..c1b421f 100644 (file)
@@ -7,7 +7,7 @@
 </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>
@@ -32,7 +32,7 @@
     </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>
index 1fbcc79..13e8e32 100644 (file)
@@ -6,7 +6,7 @@
 </div>
 <div class="row show-for-small-down">
     <div class="small-11 small-centered text-center columns">
-        <?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(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 aec23ee..304b3e4 100644 (file)
@@ -6,7 +6,7 @@
 </div>
 <div class="row show-for-small-down">
     <div class="small-11 small-centered text-center columns">
-        <?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_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 17bb292..d9a558b 100644 (file)
@@ -6,7 +6,7 @@
 </div>
 <div class="row show-for-small-down">
     <div class="small-11 small-centered text-center columns">
-        <?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_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 e340370..d0c3b95 100644 (file)
@@ -6,7 +6,7 @@
 </div>
 <div class="row show-for-small-down">
     <div class="small-11 small-centered text-center columns">
-        <?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_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 c27bed5..5c66f1a 100644 (file)
@@ -6,7 +6,7 @@
 </div>
 <div class="row show-for-small-down">
     <div class="small-11 small-centered text-center columns">
-        <?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_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 dd9f6cd..758939a 100644 (file)
@@ -6,7 +6,7 @@
 </div>
 <div class="row show-for-small-down">
     <div class="small-11 small-centered text-center columns">
-        <?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_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;?>
index 8cbd761..bca141b 100644 (file)
@@ -6,7 +6,7 @@
 </div>
 <div class="row show-for-small-down">
     <div class="small-11 small-centered text-center columns">
-        <?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_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 872af5b..0c4e84d 100644 (file)
@@ -6,7 +6,7 @@
 </div>
 <div class="row show-for-small-down">
     <div class="small-11 small-centered text-center columns">
-        <?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_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;?>