Update the book now url and breadcrumbs
authorSteve Sutton <steve@gaslightmedia.com>
Wed, 19 Jul 2017 19:28:54 +0000 (15:28 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Wed, 19 Jul 2017 19:28:54 +0000 (15:28 -0400)
Breadcrumbs now better match flow from current site.
Book now url only shows if book url is not empty

lib/troutcreek-packages.php
sections/troutcreek-packages-single.php

index 95d1130..6e2d0b8 100644 (file)
@@ -194,7 +194,9 @@ function troutcreekPackagesShortcode( $atts )
                         <h3 class="pTitle"><?php echo get_the_title(); ?></h3>
                         <p><?php echo get_the_excerpt(); ?></p>
                         <a class="pDetailButton" href="<?php echo get_permalink(); ?>">&gt;&gt;View Details</a>
-                        <a target="_blank" class="pBooknow" href="<?php echo $bookUrl; ?>">Book Now</a>
+                        <?php if ( $bookUrl ) : ?>
+                            <a target="_blank" class="pBooknow" href="<?php echo $bookUrl; ?>">Book Now</a>
+                        <?php endif; ?>
                         </div>
                     </div>
                 </div>
index 231f9cc..2668433 100644 (file)
@@ -4,9 +4,11 @@
     <div id="content-wrapper">
         <div class="row">
             <?php if ( function_exists('bcn_display') && !is_front_page() ) {
-                echo "<div class=\"breadcrumbs small-12 columns\">";
-                bcn_display();
-                echo "</div>";
+                echo '<div class="breadcrumbs small-12 columns">';
+                echo '<span property="itemListElement" typeof="ListItem"><a href="' . get_permalink( 5229 ). '">Home</a></span>';
+                echo '<span property="itemListElement" typeof="ListItem"><a href="' . get_permalink( 5233 ) . '">Lodging Specials</a></span>';
+                echo '<span property="name">' . get_the_title() . '</span>';
+                echo '</div>';
             }
             ?>
         </div>