$ancestorId = null;
$includePages = array();
$frontPageId = get_option('page_on_front');
+$pages_with_booknow = [
+ 86, // Rooms & Suites
+ 90, // Amenities
+ 92, // Packages & Offers
+ 94, // Weddings
+ 98, // Meeting Venues
+ 100,// Group Activities
+ 116 // Swim & Fitness
+];
add_action('widgets_init', 'glm_quicksite_widget_init');
define("BUILDERS_PAGE_ID", 74 ); // L:34, dev55:74
define("HOTEL_PAGE_ID", 84 ); // L:13, dev55:84
+
+ <?php
+ if ( in_array( get_the_id(), $pages_with_booknow ) ) {
+ ?>
+ <div class="booknow-button-container">
+ <a class="booknow-button" href="<?php echo get_permalink(1384); ?>">Book Now</a>
+ </div>
+ <?php
+ }
+ ?>
<?php if ( is_page( HOTEL_PAGE_ID ) ) { ?>
<div id="main-content" class="small-12 medium-9 columns">
<?php } else if ( is_in_tree( BUILDERS_PAGE_ID ) ) { ?>
bcn_display();
echo "</div>";
}?>
- <?php
- // 86 Rooms & Suites
- // 90 Amenities
- // 92 Packages & Offers
- // 94 Weddings
- // 98 Meeting Venues
- // 100 Group Activities
- // 116 Swim & Fitness
- $pages_with_booknow = [
- 86, 90, 92, 94, 98, 100, 116
- ];
- if ( in_array( get_the_id(), $pages_with_booknow ) ) {
- ?>
- <div class="booknow-button-container">
- <a class="booknow-button" href="<?php echo get_permalink(1384); ?>">Book Now</a>
- </div>
- <?php
- } else {
- echo "The id is " . get_the_id();
- }
- ?>
<?php get_template_part('parts/main-content');?>
</div>
<?php }