From f8e1f832bb790997d0a16ffb5aaf3e458b642aa8 Mon Sep 17 00:00:00 2001 From: Laury GvR Date: Thu, 18 Apr 2019 19:34:16 -0400 Subject: [PATCH] Ensure even pages with different templates are allowed the book now button --- functions.php | 9 +++++++++ parts/main-content.php | 10 ++++++++++ sections/interior-page.php | 21 --------------------- 3 files changed, 19 insertions(+), 21 deletions(-) diff --git a/functions.php b/functions.php index 4003bbc..f5a0ff1 100644 --- a/functions.php +++ b/functions.php @@ -6,6 +6,15 @@ require_once 'lib/rooms.php'; $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 diff --git a/parts/main-content.php b/parts/main-content.php index ef48b63..10349ca 100644 --- a/parts/main-content.php +++ b/parts/main-content.php @@ -1,3 +1,13 @@ + + +
+ Book Now +
+
diff --git a/sections/interior-page.php b/sections/interior-page.php index 4a0f1c0..e315557 100644 --- a/sections/interior-page.php +++ b/sections/interior-page.php @@ -45,27 +45,6 @@ bcn_display(); echo "
"; }?> - -
- Book Now -
-