Changed get_page_by_title links to use IDs instead
authorLaury GvR <laury@gaslightmedia.com>
Fri, 29 Jan 2016 18:08:21 +0000 (13:08 -0500)
committerLaury GvR <laury@gaslightmedia.com>
Fri, 29 Jan 2016 18:08:21 +0000 (13:08 -0500)
parts/client-info-footer.php
parts/client-info-offcanvas.php
sidebar.php

index 390dfe4..b055dcf 100644 (file)
@@ -24,7 +24,7 @@
         <span class="bullet"> &#8226; </span><span><?php echo glm_get_clientinfo_option('extra');?></span>
     <?php endif;?>
     <?php endif;?>
-    <?php $contactPage = get_page_by_title('Contact Us');?>
+    <?php $contactPage = get_page('495');?>
     <?php if($contactPage):?>
     <span id="bullet-extra" class="bullet"> &#8226; </span>
     <a href="<?php echo get_page_link($contactPage->ID);?>">Contact Us</a>
index 8ff0a4a..1c4d794 100644 (file)
@@ -25,7 +25,7 @@
     <?php endif;?>
 </ul>
 <ul class="extra">    
-    <li><?php $contactPage = get_page_by_title('Contact Us');?>
+    <li><?php $contactPage = get_page('495');?>
     <?php if($contactPage):?>
     <a href="<?php echo get_page_link($contactPage->ID);?>">Contact Us</a>
     <?php endif;?> &#8226; <a target="_blank" href="https://secure.instantsoftwareonline.com/OwnerLink/Owners/PropertyOwnerLogin.aspx?coid=1134">Owner Login</a></li>
index 56176e5..b40a8c0 100644 (file)
@@ -2,7 +2,7 @@
                             <div id="event-side" class="small-12 columns">
                                 <h2>Events</h2>
                                 <?php echo do_shortcode('[ai1ec view="stream" events_limit="3"]'); ?>
-                                <?php $eventsPage = get_page_by_title('Events');?>
+                                <?php $eventsPage = get_page('491');?>
                                 <?php if($eventsPage):?>
                                 <a id="calendar-link" href="<?php echo get_page_link($eventsPage->ID);?>">View All Events</a>
                                 <?php endif;?>