|
Server IP : 10.131.40.8 / Your IP : 216.73.216.37 Web Server : Apache System : Linux webd008.cluster131.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64 User : ludmqhh ( 137773) PHP Version : 8.4.10 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0705) : /home/ludmqhh/www/hotel-forum/wp-content/plugins/wp-hotelier/templates/global/ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
<?php
/**
* Datepicker form
*
* This template can be overridden by copying it to yourtheme/hotelier/global/datepicker.php.
*
* @author Benito Lopez <hello@lopezb.com>
* @package Hotelier/Templates
* @version 2.7.0
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
$shortcode_atts = isset( $shortcode_atts ) ? $shortcode_atts : array();
$room_id = is_room() ? get_the_ID() : false;
if ( defined( 'HOTELIER_SHORTCODE_PREVIEW' ) ) {
$datepicker_form_url = '';
} else {
// extensions can hook into here to add their own pages
$datepicker_form_url = apply_filters( 'hotelier_datepicker_form_url', HTL()->cart->get_room_list_form_url( $room_id ) );
}
$datepicker_class = array();
if ( is_array( $shortcode_atts ) ) {
if ( isset( $shortcode_atts['inline'] ) ) {
$datepicker_class[] = 'datepicker-form--inline';
}
if ( isset( $shortcode_atts['rounded'] ) ) {
$datepicker_class[] = 'datepicker-form--rounded';
}
if ( isset( $shortcode_atts['disabled_style'] ) ) {
$datepicker_class[] = 'datepicker-form--disabled-style-' . $shortcode_atts['disabled_style'];
}
if ( isset( $shortcode_atts['bar'] ) && $shortcode_atts['bar'] === 'bottom' ) {
$datepicker_class[] = 'datepicker-form--bottom-bar';
}
}
$datepicker_class = implode( ' ', $datepicker_class );
?>
<?php do_action( 'hotelier_before_datepicker', $shortcode_atts ); ?>
<form name="hotelier_datepicker" method="post" id="hotelier-datepicker" class="datepicker-form <?php echo esc_attr( $datepicker_class ); ?>" action="<?php echo esc_url( $datepicker_form_url ); ?>" enctype="multipart/form-data">
<?php do_action( 'hotelier_datepicker_before_input', $shortcode_atts ); ?>
<span class="datepicker-input-select-wrapper"><input class="datepicker-input-select" type="text" id="hotelier-datepicker-select" value=""></span>
<input type="text" id="hotelier-datepicker-checkin" class="datepicker-input datepicker-input--checkin" name="checkin" value="<?php echo esc_attr( $checkin ); ?>" style="display: none;">
<input type="text" id="hotelier-datepicker-checkout" class="datepicker-input datepicker-input--checkout" name="checkout" value="<?php echo esc_attr( $checkout ); ?>" style="display: none;">
<?php echo apply_filters( 'hotelier_datepicker_button_html', '<input type="submit" class="button button--datepicker" name="hotelier_datepicker_button" id="datepicker-button" value="' . esc_attr__( 'Check availability', 'wp-hotelier' ) . '" />' ); ?>
</form>
<?php do_action( 'hotelier_after_datepicker', $shortcode_atts );
