+++ /dev/null
-<?php get_header(); ?>
-<main class="page-inside">
- <div id="head-img">
- <?php echo glm_get_background(); ?>
- </div>
- <div id="content-wrapper">
- <div class="row">
- <div class="tag small-11 small-centered columns">
- <img class="show-for-small-down" src="<?php echo get_template_directory_uri(); ?>/assets/tagline.jpg">
- </div>
- <?php
- get_template_part('parts/bread-crumbs');
- ?>
- </div>
- <div id="main-content">
- <?php if(have_posts()) : while(have_posts()): the_post();?>
- <?php the_content();?>
- <?php endwhile; else:?>
- <p><?php _e('Sorry, no results found.');?></p>
- <?php endif;?>
- <?php
- $formData2 = filter_var_array(
- $_POST,
- array(
- 'ArrivalDate' => array(
- 'filter' => FILTER_VALIDATE_REGEXP,
- 'options' => array(
- 'regexp' => '%[0-9]{4}-[0-9]{2}-[0-9]{2}%'
- )
- ),
- 'DepartureDate' => array(
- 'filter' => FILTER_VALIDATE_REGEXP,
- 'options' => array(
- 'regexp' => '%[0-9]{4}-[0-9]{2}-[0-9]{2}%'
- )
- ),
- )
- );
- $formData = filter_var_array(
- $_POST,
- array(
- 'ArrivalDate' => 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']);
- if ($formData2['ArrivalDate']) {
- $arrival = urlencode( date( "m/d/Y", strtotime( $formData2['ArrivalDate'] ) ) );
- }
- $departure = urlencode($formData['DepartureDate']);
- if ($formData2['DepartureDate']) {
- $departure = urlencode( date( "m/d/Y", strtotime( $formData2['DepartureDate'] ) ) );
- }
- $occupancy = urlencode($formData['Occupancy']);
- if ($arrival == NULL || $departure == NULL){
- $arrival = urlencode(date("m/d/Y", strtotime("+3 days")));
- $departure = urlencode(date("m/d/Y", strtotime($arrival. ' +3 days')));
- }
- if ($occupancy == NULL){
- $occupancy = urlencode(1);
- }
- $iframeSrc = "https://weblink.instantsoftware.com/search/1134?ArrivalDate={$arrival}&DepartureDate={$departure}&Occupancy={$occupancy}&Location={$location}";?>
- <iframe name="res_frame" src="<?php echo $iframeSrc;?>" height="900" id="res_frame" width="100%" frameborder="0"></iframe>
- </div>
- </div>
-</main><!--End of main-->
-<?php get_footer(); ?>