From b3ec32efc2a355c0cedfb7201767d0643bcb56c0 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Fri, 20 Nov 2015 11:04:11 -0500 Subject: [PATCH] Take the grid row out for iframe --- page-150.php | 80 +++++++++++++++++++++++++--------------------------- style.css | 2 +- 2 files changed, 40 insertions(+), 42 deletions(-) diff --git a/page-150.php b/page-150.php index 714d941..bb12085 100644 --- a/page-150.php +++ b/page-150.php @@ -12,47 +12,45 @@ get_template_part('parts/bread-crumbs'); ?> -
-
- - - -

- - array( - 'filter' => FILTER_VALIDATE_REGEXP, - 'options' => array( - 'regexp' => '%[0-9]{2}/[0-9]{2}/[0-9]{4}%' - ) - ), - 'DepartureDate' => array( - 'filter' => FILTER_VALIDATE_REGEXP, - 'options' => array( - 'regexp' => '%[0-9]{2}/[0-9]{2}/[0-9]{4}%' - ) - ), - 'Occupancy' => FILTER_VALIDATE_INT, - 'Location' => array( - 'filter' => FILTER_SANITIZE_STRING, - 'flags' => FILTER_FLAG_NO_ENCODE_QUOTES - ), - ) - ); - $location = urlencode($formData['Location']); - $arrival = urlencode($formData['ArrivalDate']); - $departure = urlencode($formData['DepartureDate']); - $occupancy = urlencode($formData['Occupancy']); - if ($arrival == NULL || $departure == NULL || $occupancy == NULL){ - $arrival = urlencode(date("m/d/Y", strtotime("+2 days"))); - $departure = urlencode(date("m/d/Y", strtotime($arrival. ' +2 days'))); - $occupancy = urlencode(1); - } - $iframeSrc = "https://weblink.instantsoftware.com/search/1134?ArrivalDate={$arrival}&DepartureDate={$departure}&Occupancy={$occupancy}&Location={$location}";?> - -
+
+ + + +

+ + array( + 'filter' => FILTER_VALIDATE_REGEXP, + 'options' => array( + 'regexp' => '%[0-9]{2}/[0-9]{2}/[0-9]{4}%' + ) + ), + 'DepartureDate' => array( + 'filter' => FILTER_VALIDATE_REGEXP, + 'options' => array( + 'regexp' => '%[0-9]{2}/[0-9]{2}/[0-9]{4}%' + ) + ), + 'Occupancy' => FILTER_VALIDATE_INT, + 'Location' => array( + 'filter' => FILTER_SANITIZE_STRING, + 'flags' => FILTER_FLAG_NO_ENCODE_QUOTES + ), + ) + ); + $location = urlencode($formData['Location']); + $arrival = urlencode($formData['ArrivalDate']); + $departure = urlencode($formData['DepartureDate']); + $occupancy = urlencode($formData['Occupancy']); + if ($arrival == NULL || $departure == NULL || $occupancy == NULL){ + $arrival = urlencode(date("m/d/Y", strtotime("+2 days"))); + $departure = urlencode(date("m/d/Y", strtotime($arrival. ' +2 days'))); + $occupancy = urlencode(1); + } + $iframeSrc = "https://weblink.instantsoftware.com/search/1134?ArrivalDate={$arrival}&DepartureDate={$departure}&Occupancy={$occupancy}&Location={$location}";?> +
diff --git a/style.css b/style.css index 8427989..6310d71 100644 --- a/style.css +++ b/style.css @@ -3,5 +3,5 @@ Theme Name: BigPowderhornLodging Author: Gaslight Media Author URI: http://www.gaslightmedia.com Description: A theme for BigPowderhornLodging -Version: 1.0.4 +Version: 1.0.5 */ -- 2.17.1