get_template_part('parts/bread-crumbs');
?>
</div>
- <div class="row">
- <div id="main-content" class="small-12 columns">
- <?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 $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']);
- $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}";?>
- <iframe name="res_frame" src="<?php echo $iframeSrc;?>" height="900" id="res_frame" width="100%" frameborder="0"></iframe>
- </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 $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']);
+ $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}";?>
+ <iframe name="res_frame" src="<?php echo $iframeSrc;?>" height="900" id="res_frame" width="100%" frameborder="0"></iframe>
</div>
</div>
</main><!--End of main-->