Trying to change the link of Reservations in off-canvas
authorLaury GvR <laury@gaslightmedia.com>
Fri, 19 Feb 2016 21:03:57 +0000 (16:03 -0500)
committerLaury GvR <laury@gaslightmedia.com>
Fri, 19 Feb 2016 21:03:57 +0000 (16:03 -0500)
functions.php
header.php

index 9138f4a..e69eb0e 100755 (executable)
@@ -61,6 +61,15 @@ function glm_page_menu($parent = 0, $class = '')
     echo '</ul><!-- end -->'."\n";
 }
 
+function append_query_string( $url, $post ) {
+    if ($post->ID == 20) {
+        $url = "http://www.booking.com/hotel/us/days-inn-munising.html?aid=389181;label=metagha-link-mapresultsUS-hotel-509425_dev-desktop_los-1_room-0_lang-en_curr-USD;sid=66fec06c0d0367b2df3d172f9eab90ca;dcid=12;checkin=2016-02-28;checkout=2016-02-29;dist=0;room1=A%2CA;sb_price_type=total;srfid=745e6a3182486f4762ee8af26b7a1216db300661X1;type=total;ucfs=1&";
+    } else {
+        $url = "www.google.com";
+    }
+    return $url;
+}
+add_filter( 'post_link', 'append_query_string', 10, 2 );
 
 function SearchFilter($query) {
     if(isset($_GET['searchType'])) {
index f015f3b..2d295e4 100755 (executable)
@@ -37,9 +37,6 @@
                     <div id="header-info" class="small-12 medium-4 columns">
                         <ul>
                             <li><a class="glm-button button" target="_blank" href="http://www.booking.com/hotel/us/days-inn-munising.html?aid=389181;label=metagha-link-mapresultsUS-hotel-509425_dev-desktop_los-1_room-0_lang-en_curr-USD;sid=66fec06c0d0367b2df3d172f9eab90ca;dcid=12;checkin=2016-02-28;checkout=2016-02-29;dist=0;room1=A%2CA;sb_price_type=total;srfid=745e6a3182486f4762ee8af26b7a1216db300661X1;type=total;ucfs=1&">Book A Reservation</a></li>
-                            <li>Pictured Rocks Inn & Suites</li>
-                            <li>420 M28 East</li>
-                            <li>Munising, MI 49862</li>
                             <li>(906) 387-2493</li>
                         </ul>
                     </div>