Hotel Raxa - Advanced Booking System Implementation
🏨 Hotel Booking Enhancements: - Implemented Eagle Booking Advanced Pricing add-on - Added Booking.com-style rate management system - Created professional calendar interface for pricing - Integrated deals and discounts functionality 💰 Advanced Pricing Features: - Dynamic pricing models (per room, per person, per adult) - Base rates, adult rates, and child rates management - Length of stay discounts and early bird deals - Mobile rates and secret deals implementation - Seasonal promotions and flash sales 📅 Availability Management: - Real-time availability tracking - Stop sell and restriction controls - Closed to arrival/departure functionality - Minimum/maximum stay requirements - Automatic sold-out management 💳 Payment Integration: - Maintained Redsys payment gateway integration - Seamless integration with existing Eagle Booking - No modifications to core Eagle Booking plugin 🛠️ Technical Implementation: - Custom database tables for advanced pricing - WordPress hooks and filters integration - AJAX-powered admin interface - Data migration from existing Eagle Booking - Professional calendar view for revenue management 📊 Admin Interface: - Booking.com-style management dashboard - Visual rate and availability calendar - Bulk operations for date ranges - Statistics and analytics dashboard - Modal dialogs for quick editing 🔧 Code Quality: - WordPress coding standards compliance - Secure database operations with prepared statements - Proper input validation and sanitization - Error handling and logging - Responsive admin interface 🤖 Generated with Claude Code (https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,144 @@
|
||||
<?php
|
||||
/**
|
||||
* The Template for displaying all archive rooms
|
||||
*
|
||||
* This template can be overridden by copying it to yourtheme/eb-templates/archive-room/archive-room.php.
|
||||
*
|
||||
* Author: Eagle Themes
|
||||
* Package: Eagle-Booking/Templates
|
||||
* Version: 1.1.6
|
||||
*/
|
||||
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
get_header();
|
||||
|
||||
?>
|
||||
|
||||
<?php
|
||||
/**
|
||||
* Include Archive Room Title
|
||||
*/
|
||||
include eb_load_template('archive-room/header.php');
|
||||
?>
|
||||
|
||||
<?php
|
||||
/**
|
||||
* Rooms Query
|
||||
*/
|
||||
$args = array(
|
||||
'post_type' => 'eagle_rooms',
|
||||
'posts_per_page' => eb_get_option('eagle_booking_rooms_archive_rooms_per_page'),
|
||||
'orderby' => eb_get_option('eagle_booking_rooms_archive_rooms_orderby'),
|
||||
//'order' => $order,
|
||||
//'offset' => $offset
|
||||
'paged' => get_query_var('paged') ? get_query_var('paged') : 1
|
||||
);
|
||||
$rooms_qry = new WP_Query($args);
|
||||
?>
|
||||
|
||||
<main class="rooms-list eb-archive-rooms">
|
||||
<div class="container">
|
||||
|
||||
<?php if ($rooms_qry->have_posts()): while ($rooms_qry->have_posts()) : $rooms_qry->the_post();
|
||||
|
||||
// Default
|
||||
$eagle_booking_room_id = get_the_ID();
|
||||
$eagle_booking_room_title = get_the_title();
|
||||
$eagle_booking_room_url = get_permalink();
|
||||
$eagle_booking_room_image = get_the_post_thumbnail_url();
|
||||
|
||||
// MTB
|
||||
$eagle_booking_room_price = get_post_meta(get_the_ID(), 'eagle_booking_mtb_room_price', true);
|
||||
$eagle_booking_room_header = get_post_meta(get_the_ID(), 'eagle_booking_mtb_room_header', true);
|
||||
$eagke_booking_room_sidebar = get_post_meta( get_the_ID(), 'eagle_booking_mtb_room_sidebar', true);
|
||||
$eagle_booking_room_similar = get_post_meta( get_the_ID(), 'eagle_booking_mtb_room_similar', true);
|
||||
$eagle_booking_room_description = get_post_meta( get_the_ID(), 'eagle_booking_mtb_room_description', true );
|
||||
?>
|
||||
|
||||
<!-- Room Item -->
|
||||
<div id="eb-archive-room-<?php echo $eagle_booking_room_id ?>" class="room-list-item room-list-item-archive sidebar-none">
|
||||
|
||||
<div class="room-list-item-grid">
|
||||
|
||||
<?php if ( has_post_thumbnail() ) : ?>
|
||||
<figure class="gradient-overlay overlay-opacity-02 slide-right-hover">
|
||||
<a href="<?php echo esc_url($eagle_booking_room_url) ?>">
|
||||
<img alt="<?php echo esc_html($eagle_booking_room_title) ?>" src="<?php echo eagle_booking_get_room_img_url(get_the_ID(), 'eagle_booking_image_size_720_470') ?>">
|
||||
</a>
|
||||
</figure>
|
||||
<?php endif ?>
|
||||
|
||||
<div class="room-details">
|
||||
<h2 class="title"><a href="<?php echo esc_url($eagle_booking_room_url) ?>"><?php echo $eagle_booking_room_title ?></a></h2>
|
||||
<p style="margin-top: 20px;"><?php echo $eagle_booking_room_description ?></p>
|
||||
<div class="room-services">
|
||||
<div class="dragscroll">
|
||||
<?php
|
||||
$eagle_booking_services_array = get_post_meta( $eagle_booking_room_id, 'eagle_booking_mtb_room_services', true ) ;
|
||||
|
||||
if ( !empty($eagle_booking_services_array) ) :
|
||||
|
||||
$eagle_booking_services_counter = count($eagle_booking_services_array);
|
||||
|
||||
if ($eagle_booking_services_counter >= '8') { $eagle_booking_services_counter = '8'; }
|
||||
|
||||
if ( !empty(get_post_meta( $eagle_booking_room_id, 'eagle_booking_mtb_room_services', true ) ) ) :
|
||||
for ($eagle_booking_services_array_i = 0; $eagle_booking_services_array_i < $eagle_booking_services_counter; $eagle_booking_services_array_i++) :
|
||||
$eagle_booking_page_by_path = get_post($eagle_booking_services_array[$eagle_booking_services_array_i],OBJECT,'eagle_services');
|
||||
$eagle_booking_service_id = $eagle_booking_page_by_path->ID;
|
||||
$eagle_booking_service_name = get_the_title($eagle_booking_service_id);
|
||||
|
||||
// FONT ICON & CUSTOM IMAGE
|
||||
$eagle_booking_service_icon_type = get_post_meta( $eagle_booking_service_id, 'eagle_booking_mtb_service_icon_type', true );
|
||||
if ($eagle_booking_service_icon_type == 'fontawesome') {
|
||||
$eagle_booking_service_icon = get_post_meta( $eagle_booking_service_id, 'eagle_booking_mtb_service_icon_fontawesome', true );
|
||||
} else {
|
||||
$eagle_booking_service_icon = get_post_meta( $eagle_booking_service_id, 'eagle_booking_mtb_service_icon', true );
|
||||
}
|
||||
|
||||
$eagle_booking_mtb_service_image = get_post_meta( $eagle_booking_service_id, 'eagle_booking_mtb_service_image', true );
|
||||
$eagle_booking_mtb_service_image_class_original = str_replace(' ', '-', $eagle_booking_service_name);
|
||||
$eagle_booking_mtb_service_image_class = strtolower($eagle_booking_mtb_service_image_class_original);
|
||||
$eagle_booking_service_description = get_post_meta( $eagle_booking_service_id, 'eagle_booking_mtb_service_description', true );
|
||||
?>
|
||||
<div class="room-service-item" data-toggle="popover" data-placement="top" data-trigger="hover" data-content="<?php echo $eagle_booking_service_description ?>" data-original-title="<?php echo $eagle_booking_service_name ?>">
|
||||
<?php if ($eagle_booking_service_icon_type == 'customicon') : ?>
|
||||
<img src="<?php echo esc_url($eagle_booking_mtb_service_image) ?>" class="<?php echo esc_attr($eagle_booking_mtb_service_image_class) ?>">
|
||||
<?php else : ?>
|
||||
<i class="<?php echo $eagle_booking_service_icon ?>"></i>
|
||||
<?php endif ?>
|
||||
</div>
|
||||
<?php endfor ?>
|
||||
<?php endif; ?>
|
||||
<?php endif ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="room-price-details eb-archive-price-details">
|
||||
<?php eb_room_price( get_the_ID(), __('per night', 'eagle-booking') ) ?>
|
||||
<a href="<?php echo esc_url ( $eagle_booking_room_url ) ?>" class="btn eb-btn"><?php echo esc_html__('More Details', 'eagle-booking') ?> <i class="fa fa fa-chevron-right"></i></a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<?php endwhile; endif; ?>
|
||||
|
||||
<!-- Pagination -->
|
||||
<?php if($pagination = get_the_posts_pagination(array('mid_size' => 3, 'prev_text' => esc_html__('Previous', 'eagle-booking'), 'next_text' => esc_html__('Next', 'eagle-booking')))) : ?>
|
||||
<div class="text-center">
|
||||
<div class="eb-pagination pagination">
|
||||
<?php echo wp_kses_post($pagination); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php endif; ?>
|
||||
<?php wp_reset_postdata(); ?>
|
||||
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<?php get_footer() ?>
|
||||
@@ -0,0 +1,49 @@
|
||||
<?php
|
||||
/**
|
||||
* The Template for displaying all archive header
|
||||
*
|
||||
* This template can be overridden by copying it to yourtheme/eb-templates/archive-room/header.php.
|
||||
*
|
||||
* Author: Eagle Themes
|
||||
* Package: Eagle-Booking/Templates
|
||||
* Version: 1.1.6
|
||||
*/
|
||||
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
get_header();
|
||||
|
||||
?>
|
||||
|
||||
<?php
|
||||
|
||||
$eb_rooms_archive_header = eb_get_option('rooms_archive_header');
|
||||
$eb_rooms_archive_header_type = eb_get_option('rooms_archive_header_type');
|
||||
$eb_rooms_archive_header_image = eb_get_option('rooms_archive_header_image');
|
||||
|
||||
if( $eb_rooms_archive_header_type == 'image' ) {
|
||||
|
||||
$eb_rooms_archive_header_class = 'image';
|
||||
$eb_rooms_archive_header_style = 'background:url('.$eb_rooms_archive_header_image.'); background-size: cover;';
|
||||
|
||||
} else {
|
||||
|
||||
$eb_rooms_archive_header_class = 'color';
|
||||
$eb_rooms_archive_header_style = '';
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<?php if ( $eb_rooms_archive_header ) : ?>
|
||||
|
||||
<div class="eb-page-header eb-page-header-<?php echo esc_attr( $eb_rooms_archive_header_class ) ?>" style="<?php echo esc_attr( $eb_rooms_archive_header_style )?>">
|
||||
<div class="container">
|
||||
<div class="title">
|
||||
<h1><?php echo post_type_archive_title(); ?></h1>
|
||||
<?php if ( eb_get_option('rooms_archive_breadcrumbs')) : eb_breadcrumb(); endif ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php endif ?>
|
||||
@@ -0,0 +1,185 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* The Template for the additional services
|
||||
*
|
||||
* This template can be overridden by copying it to yourtheme/eb-templates/booking/additional-services.php.
|
||||
*
|
||||
* Author: Eagle Themes
|
||||
* Package: Eagle-Booking/Templates
|
||||
* Version: 1.1.7
|
||||
*/
|
||||
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
$eb_room_additional_services = get_post_meta( $eb_room_id, 'eagle_booking_mtb_room_additional_services', true );
|
||||
|
||||
if ( $eb_room_additional_services ) : ?>
|
||||
|
||||
<div class="eb-section eb-checkout-form">
|
||||
<h2 class="title"><?php echo __('Additional Services','eagle-booking') ?></h2>
|
||||
<div class="inner">
|
||||
<?php
|
||||
|
||||
$eb_room_additional_services = get_post_meta( $eb_room_id, 'eagle_booking_mtb_room_additional_services', true );
|
||||
|
||||
for ( $eb_i = 0; $eb_i < count($eb_room_additional_services); $eb_i++) :
|
||||
|
||||
// Get service mtb
|
||||
$eb_room_additional_service = get_post($eb_room_additional_services[$eb_i],OBJECT,'eagle_services');
|
||||
$eb_additional_service_id = $eb_room_additional_service->ID;
|
||||
$eb_additional_service_name = get_the_title($eb_additional_service_id);
|
||||
$eb_service_price = get_post_meta( $eb_additional_service_id, 'eagle_booking_mtb_service_price', true );
|
||||
$eb_additional_service_description = get_post_meta( $eb_additional_service_id, 'eagle_booking_mtb_service_description', true );
|
||||
|
||||
// Get service type
|
||||
$eb_additional_service_price_type = get_post_meta( $eb_additional_service_id, 'eagle_booking_mtb_service_price_type', true );
|
||||
|
||||
// Get service type 2
|
||||
$eb_additional_service_price_type_2 = get_post_meta( $eb_additional_service_id, 'eagle_booking_mtb_service_price_type_2', true );
|
||||
|
||||
// Check service price type
|
||||
if ( $eb_additional_service_price_type == 'guest' ) {
|
||||
|
||||
$eb_additional_service_price_operator = $eb_guests;
|
||||
$eb_additional_service_price_word = __('Guest','eagle-booking');
|
||||
|
||||
} elseif ($eb_additional_service_price_type == 'adult') {
|
||||
|
||||
$eb_additional_service_price_operator = $eb_adults ;
|
||||
$eb_additional_service_price_word = __('Adult','eagle-booking');
|
||||
|
||||
} elseif ($eb_additional_service_price_type == 'children') {
|
||||
|
||||
$eb_additional_service_price_operator = $eb_children ;
|
||||
$eb_additional_service_price_word = __('Children','eagle-booking');
|
||||
|
||||
} elseif ($eb_additional_service_price_type == 'adult_children') {
|
||||
|
||||
$eb_additional_service_price_operator = $eb_adults + $eb_children;
|
||||
$eb_additional_service_price_word = __('Adults + Children','eagle-booking');
|
||||
|
||||
} else {
|
||||
|
||||
$eb_additional_service_price_operator = 1;
|
||||
$eb_additional_service_price_word = __('Room','eagle-booking');
|
||||
}
|
||||
|
||||
// Check service price type 2
|
||||
if ( $eb_additional_service_price_type_2 == 'night' ) {
|
||||
|
||||
$eb_additional_service_price_operator_2 = eb_total_booking_nights($eb_checkin, $eb_checkout);
|
||||
$eb_additional_service_price_word_2 = __('Night','eagle-booking');
|
||||
|
||||
} else {
|
||||
|
||||
$eb_additional_service_price_operator_2 = 1;
|
||||
$eb_additional_service_price_word_2 = __('Trip','eagle-booking');
|
||||
}
|
||||
|
||||
/**
|
||||
* Calculate Additional Services Price
|
||||
*/
|
||||
$eb_service_price_before_tax = $eb_service_price * $eb_additional_service_price_operator * $eb_additional_service_price_operator_2;
|
||||
|
||||
/**
|
||||
* Add Taxes to Additional Services
|
||||
*/
|
||||
$eb_taxes = get_option('eb_taxes');
|
||||
$eb_room_taxes = get_post_meta( $eb_room_id, 'eagle_booking_mtb_room_taxes', true );
|
||||
if ( empty( $eb_room_taxes ) ) $eb_room_taxes = array();
|
||||
|
||||
$entry_id = '';
|
||||
|
||||
if ( $eb_taxes ) {
|
||||
|
||||
$eb_tax_percentage = 0;
|
||||
$out = array();
|
||||
|
||||
foreach( $eb_taxes as $key => $item ) {
|
||||
|
||||
$entry_id = !empty( $item["id"] ) ? $item["id"] : '';
|
||||
$global = !empty( $item["global"] ) ? $item["global"] : '';
|
||||
$services = !empty( $item["services"] ) ? $item["services"] : '';
|
||||
$amount = !empty( $item["amount"] ) ? $item["amount"] : '';
|
||||
|
||||
// Lets check if the tax is global or if is asigned to the room and if tax is aplied on services
|
||||
if ( ( $global == true || in_array( $entry_id, $eb_room_taxes) ) && $services == true ) {
|
||||
|
||||
$eb_tax_percentage += $amount;
|
||||
array_push($out, $entry_id);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// Add the tax price to the service price
|
||||
$eb_service_price = $eb_service_price + $eb_tax_percentage * $eb_service_price / 100;
|
||||
$eb_service_total_price = $eb_service_price_before_tax + ( $eb_service_price_before_tax * $eb_tax_percentage / 100 );
|
||||
$eb_applied_taxes = implode(', ', $out);
|
||||
|
||||
} else {
|
||||
|
||||
$eb_service_price = $eb_service_price;
|
||||
$eb_service_total_price = $eb_service_price_before_tax;
|
||||
$eb_applied_taxes = '';
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Additional Services Display
|
||||
*/
|
||||
if ( eb_get_option('price_taxes') === 'excluding' ){
|
||||
|
||||
$eb_service_total_price = $eb_service_price_before_tax;
|
||||
|
||||
} else {
|
||||
|
||||
$eb_service_total_price = $eb_service_total_price;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Services Price
|
||||
*/
|
||||
if ( $eb_service_total_price == 0 ) {
|
||||
|
||||
$eb_service_displayed_total_price = __('Free', 'eagle-booking');
|
||||
|
||||
} else if ( eb_currency_position() == 'before' ) {
|
||||
|
||||
$eb_service_displayed_price = eb_currency().''.eb_formatted_price( $eb_service_price, false );
|
||||
$eb_service_displayed_total_price = eb_currency().''.eb_formatted_price( $eb_service_total_price, false );
|
||||
|
||||
|
||||
} else {
|
||||
|
||||
$eb_service_displayed_price = eb_formatted_price( $eb_service_price, false ).''.eb_currency();
|
||||
$eb_service_displayed_total_price = eb_formatted_price( $eb_service_total_price, false ).''.eb_currency();
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
<div class="additional-service-item" data-service-id="<?php echo $eb_additional_service_id ?>">
|
||||
|
||||
<input type="checkbox" data-id="<?php echo $eb_additional_service_id ?>" data-amount="<?php echo $eb_service_price_before_tax ?>" data-aplied-taxes="<?php echo $eb_applied_taxes?>" value="<?php echo $eb_service_price_before_tax ?>" >
|
||||
|
||||
<div class="additional-service-details">
|
||||
<span class="eb-booking-service-title"><strong><?php echo $eb_additional_service_name ?></strong></span>
|
||||
<?php if ( eb_get_option( 'show_price' ) == true ) : ?>
|
||||
<span><?php if ( $eb_service_total_price != 0 ) : ?><?php echo $eb_service_displayed_price ?> (<?php echo $eb_additional_service_price_word ?> / <?php echo $eb_additional_service_price_word_2 ?>)<?php endif ?></span>
|
||||
<span class="eb-booking-service-price"><strong><?php echo $eb_service_displayed_total_price ?></strong></span>
|
||||
<?php endif ?>
|
||||
</div>
|
||||
<?php if( $eb_additional_service_description ) : ?> <span class="toggle-service-full-details"> <i class="far fa-question-circle"></i> </span> <?php endif ?>
|
||||
<?php if( $eb_additional_service_description ) : ?> <div class="additional-service-full-details"> <?php echo $eb_additional_service_description ?> </div><?php endif ?>
|
||||
</div>
|
||||
|
||||
<?php endfor ?>
|
||||
|
||||
<input type="hidden" id="eb_services_amount" value="0">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php endif ?>
|
||||
117
wp-content/plugins/eagle-booking/templates/booking/details.php
Normal file
117
wp-content/plugins/eagle-booking/templates/booking/details.php
Normal file
@@ -0,0 +1,117 @@
|
||||
<?php
|
||||
/**
|
||||
* The Template for the booking details
|
||||
*
|
||||
* This template can be overridden by copying it to yourtheme/eb-templates/booking/details.php.
|
||||
*
|
||||
* Author: Eagle Themes
|
||||
* Package: Eagle-Booking/Templates
|
||||
* Version: 1.1.7
|
||||
*/
|
||||
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
?>
|
||||
|
||||
<div class="booking-sidebar <?php if ( eb_get_option('eb_booking_page_sticky_sidebar') == true ) echo 'sticky-sidebar'; ?>">
|
||||
<div class="eb-widget no-title">
|
||||
<div class="inner">
|
||||
|
||||
<!-- Selected Room -->
|
||||
<?php
|
||||
$eagle_booking_selected_room_image = eagle_booking_get_room_img_url($eb_room_id, 'eagle_booking_image_size_720_470');
|
||||
$eagle_booking_selected_room_url = get_permalink( $eb_room_id );
|
||||
if ( !empty($eagle_booking_selected_room_image) ) : ?>
|
||||
<div class="selected-room">
|
||||
<a href="<?php echo esc_url($eagle_booking_selected_room_url) ?>" target="_blank">
|
||||
<img src="<?php echo $eagle_booking_selected_room_image ?>" class="img-responsive">
|
||||
</a>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
|
||||
<div class="booking-info">
|
||||
|
||||
<!-- Booking Details -->
|
||||
<div class="booking-details">
|
||||
|
||||
<div class="title"> <?php echo __('Booking Details', 'eagle-booking') ?> </div>
|
||||
|
||||
<?php if ( eb_room_has_branch( $eb_room_id ) ) : ?>
|
||||
<div class="item branch">
|
||||
<span class="desc"><?php echo esc_html__('Branch', 'eagle-booking') ?></span>
|
||||
<span class="value"><strong><?php echo eb_room_branch( $eb_room_id, true, true ) ?></strong></span>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
|
||||
<div class="item checkin">
|
||||
<span class="desc"><?php echo esc_html__('Check In', 'eagle-booking') ?></span>
|
||||
<span class="value"><strong><?php echo eagle_booking_displayd_date_format($eb_checkin); ?></strong><?php eb_checkin_checkout_time('checkin') ?></span>
|
||||
</div>
|
||||
|
||||
<div class="item checkout">
|
||||
<span class="desc"> <?php echo esc_html__('Check Out', 'eagle-booking') ?></span>
|
||||
<span class="value"><strong><?php echo eagle_booking_displayd_date_format($eb_checkout); ?></strong><?php eb_checkin_checkout_time('checkout') ?></span>
|
||||
</div>
|
||||
<div class="item booking-nights">
|
||||
<span class="desc"><?php echo esc_html__('Nights', 'eagle-booking') ?></span>
|
||||
<span class="value"><strong><?php echo eb_total_booking_nights($eb_checkin, $eb_checkout) ?></strong></span>
|
||||
</div>
|
||||
|
||||
<div class="item guests">
|
||||
<span class="desc"><?php echo esc_html__('Guests', 'eagle-booking') ?></span>
|
||||
<span class="value">
|
||||
<strong>
|
||||
<?php if ( eb_get_option('eb_adults_children') == true ) : ?>
|
||||
<?php echo $eb_adults.' '. esc_html__('Adults', 'eagle-booking'). ', ' .$eb_children.' '.esc_html__('Children', 'eagle-booking') ?>
|
||||
<?php else : ?>
|
||||
<?php echo $eb_guests ?>
|
||||
<?php endif ?>
|
||||
</strong>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div id="eb_services_info" class="title" style="display: none"> <?php echo __('Additional Services', 'eagle-booking') ?> </div>
|
||||
|
||||
<?php if ( eb_get_option('show_price') == true ) : ?>
|
||||
<div class="eb-price-summary">
|
||||
<div class="title"><?php echo __('Price Summary', 'eagle-booking') ?></div>
|
||||
|
||||
<div class="item room">
|
||||
<span class="desc"><a href="<?php echo esc_url($eagle_booking_selected_room_url) ?>" target="_blank"><?php echo get_the_title($eb_room_id) ?></a></span>
|
||||
<span class="value">
|
||||
<strong>
|
||||
<?php if ( eb_currency_position() == 'before' ) : ?>
|
||||
<?php echo eb_currency() ?><?php eb_formatted_price($eb_room_total_price) ?>
|
||||
<?php else : ?>
|
||||
<?php eb_formatted_price($eb_room_total_price) ?><?php echo eb_currency() ?>
|
||||
<?php endif ?>
|
||||
</strong>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<?php include eb_load_template('booking/taxesfees.php'); ?>
|
||||
|
||||
</div>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if ( eb_get_option('show_price') == true ) : ?>
|
||||
<div id="eb_total_price_text" class="item total-price">
|
||||
<span class="desc"><strong><?php echo esc_html__('Total Price', 'eagle-booking') ?></strong></span>
|
||||
<span class="value">
|
||||
|
||||
<strong><?php echo eb_price( eb_total_price($eb_room_id, $eb_room_total_price, $eb_booking_nights, $eb_guests, true) ); ?></strong>
|
||||
|
||||
</span>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
|
||||
</div>
|
||||
<button id="submit_booking_form" class="btn eb-btn mt10" type="submit">
|
||||
<span class="eb-btn-text"><?php echo __('Proceed to Checkout','eagle-booking') ?></span>
|
||||
</button>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
169
wp-content/plugins/eagle-booking/templates/booking/form.php
Normal file
169
wp-content/plugins/eagle-booking/templates/booking/form.php
Normal file
@@ -0,0 +1,169 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* The Template for the booking form
|
||||
*
|
||||
* This template can be overridden by copying it to yourtheme/eb-templates/booking/form.php.
|
||||
*
|
||||
* Author: Eagle Themes
|
||||
* Package: Eagle-Booking/Templates
|
||||
* Version: 1.1.5
|
||||
*/
|
||||
|
||||
defined('ABSPATH') || exit;
|
||||
?>
|
||||
|
||||
<div class="eb-section eb-checkout-form">
|
||||
|
||||
<h2 class="title"><?php echo __('Billing Details','eagle-booking') ?></h2>
|
||||
|
||||
<?php
|
||||
|
||||
$eb_current_user_id = get_current_user_id();
|
||||
$eb_current_user = wp_get_current_user();
|
||||
$eb_booking_forms = eb_get_option('checkout_form');
|
||||
|
||||
// check if signin & signup option is enabled
|
||||
if ( $eb_booking_forms['signin'] == true || $eb_booking_forms['signup'] == true || $eb_booking_forms['guest'] == true ) {
|
||||
|
||||
include eb_load_template('booking/form/signedin.php');
|
||||
|
||||
?>
|
||||
|
||||
<div id="eb_billing_tabs" class="eb-tabs" style="<?php if (is_user_logged_in()) { echo esc_attr('display: none;'); } ?>">
|
||||
|
||||
<div class="eb-tabs-titles">
|
||||
|
||||
<?php
|
||||
|
||||
foreach ($eb_booking_forms as $eb_booking_form => $value) :
|
||||
|
||||
switch ($eb_booking_form) :
|
||||
|
||||
case 'signin': if ($value == 1) : ?>
|
||||
<div class="eb-tab" data-tab="signin">
|
||||
<input class="tab-radio" id="eb_signin" name="eb_billing_tab" type="radio" value="signin">
|
||||
<label for="eb_signin" class="radio-label"><?php echo __('Existing Customer Login', 'eagle-booking') ?></label>
|
||||
</div>
|
||||
<?php endif;
|
||||
break; ?>
|
||||
|
||||
<?php case 'signup': if ($value == 1) : ?>
|
||||
<div class="eb-tab" data-tab="signup">
|
||||
<input class="tab-radio" id="eb_signup" name="eb_billing_tab" type="radio" value="signup">
|
||||
<label for="eb_signup" class="radio-label"><?php echo __('Create a New Account', 'eagle-booking') ?></label>
|
||||
</div>
|
||||
<?php endif;
|
||||
break; ?>
|
||||
|
||||
<?php case 'guest': if ($value == 1) : ?>
|
||||
<div class="eb-tab" data-tab="guest">
|
||||
<input class="tab-radio" id="eb_guest" name="eb_billing_tab" type="radio" value="guest">
|
||||
<label for="eb_guest" class="radio-label"><?php echo __('Checkout as Guest', 'eagle-booking') ?></label>
|
||||
</div>
|
||||
<?php endif;
|
||||
break;
|
||||
|
||||
endswitch;
|
||||
|
||||
endforeach; ?>
|
||||
</div>
|
||||
|
||||
<div id="eb_billing_tabs_content" class="eb-tabs-content">
|
||||
<?php
|
||||
|
||||
foreach ($eb_booking_forms as $eb_booking_form => $value) {
|
||||
|
||||
switch ($eb_booking_form) {
|
||||
|
||||
case 'signin': if ($value == 1) {
|
||||
include eb_load_template('booking/form/signin.php');
|
||||
}
|
||||
break;
|
||||
|
||||
case 'signup': if ($value == 1) {
|
||||
include eb_load_template('booking/form/signup.php');
|
||||
}
|
||||
break;
|
||||
|
||||
case 'guest': if ($value == 1) {
|
||||
include eb_load_template('booking/form/guest.php');
|
||||
}
|
||||
break;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<?php
|
||||
|
||||
} else {
|
||||
|
||||
echo '<div id="eb_billing_tabs_content" class="eb-tabs-content">';
|
||||
|
||||
include eb_load_template('booking/form/guest.php');
|
||||
|
||||
echo '</div>';
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
|
||||
<form id="eb_booking_form" method="post" class="eagle-booking-booking-form" action="<?php echo eb_checkout_page() ?>">
|
||||
<input type="hidden" id="eb_security" value="<?php echo wp_create_nonce('eb_nonce', 'security'); ?>">
|
||||
<input type="hidden" id="eb_arrive" name="eb_arrive" value="1">
|
||||
<input type="hidden" id="eb_booking_price" name="eb_booking_price" data-initial-amount="<?php echo eb_total_price($eb_room_id, $eb_trip_price, $eb_booking_nights, $eb_guests, true); ?>" value="<?php echo eb_total_price($eb_room_id, $eb_trip_price, $eb_booking_nights, $eb_guests, true); ?>">
|
||||
<input type="hidden" id="eb_room_price" name="eb_room_price" value="<?php echo $eb_room_total_price ?>">
|
||||
<input type="hidden" id="eb_services_taxes">
|
||||
<input type="hidden" id="eb_date_from" name="eb_date_from" value="<?php echo $eb_checkin ?>">
|
||||
<input type="hidden" id="eb_date_to" name="eb_date_to" value="<?php echo $eb_checkout ?>">
|
||||
<input type="hidden" id="eb_guests" name="eb_guests" value="<?php echo $eb_guests ?>">
|
||||
<input type="hidden" id="eb_adults" name="eb_adults" value="<?php echo $eb_adults ?>">
|
||||
<input type="hidden" id="eb_children" name="eb_children" value="<?php echo $eb_children ?>">
|
||||
<input type="hidden" id="eb_id" name="eb_room_id" value="<?php echo $eb_room_id ?>">
|
||||
<input type="hidden" id="eb_title" name="eb_room_title" value="<?php echo get_the_title($eb_room_id) ?>">
|
||||
<input type="hidden" id="eb_additional_services_id" name="eb_additional_services_id">
|
||||
<input type="hidden" id="eb_user_first_name" name="eb_user_firstname">
|
||||
<input type="hidden" id="eb_user_last_name" name="eb_user_lastname">
|
||||
<input type="hidden" id="eb_user_email" name="eb_user_email">
|
||||
<input type="hidden" id="eb_user_phone" name="eb_user_phone">
|
||||
<input type="hidden" id="eb_user_country" name="eb_user_country">
|
||||
<input type="hidden" id="eb_user_city" name="eb_user_city">
|
||||
<input type="hidden" id="eb_user_address" name="eb_user_address">
|
||||
<input type="hidden" id="eb_user_zip" name="eb_user_zip">
|
||||
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Include booking details
|
||||
*/
|
||||
if ( eb_get_option('eb_booking_form_fields')['requests'] == true ) include eb_load_template('booking/form/details.php');
|
||||
|
||||
/**
|
||||
* Include arrival time
|
||||
*/
|
||||
if ( eb_get_option('eb_booking_form_fields')['arrival'] == true && eb_get_option('arrival_slots') != '' ) include eb_load_template('booking/form/arrival.php');
|
||||
|
||||
/**
|
||||
* Include coupon code
|
||||
*/
|
||||
if ( eb_get_option('eb_booking_form_fields')['coupon'] == true ) include eb_load_template('booking/form/coupon.php');
|
||||
|
||||
/**
|
||||
* Include terms & condition checkbox
|
||||
*/
|
||||
if ( eb_get_option('eb_booking_form_fields')['terms_conditions'] == true ) include eb_load_template('booking/form/terms.php');
|
||||
|
||||
/**
|
||||
* Include phone field translation
|
||||
*/
|
||||
include eb_load_template('elements/phone-field.php');
|
||||
?>
|
||||
|
||||
</form>
|
||||
|
||||
</div>
|
||||
@@ -0,0 +1,22 @@
|
||||
|
||||
<div class="form-panel">
|
||||
<h2 class="title"><?php echo __('Arrival Time','eagle-booking') ?></h2>
|
||||
<div class="eb-arrival-slots">
|
||||
|
||||
<?php
|
||||
|
||||
$eb_arrival_slots = eb_get_option('arrival_slots');
|
||||
|
||||
if ( $eb_arrival_slots ) foreach ( $eb_arrival_slots as $eb_arrival_slot ) {
|
||||
|
||||
echo '<div class="time-slot eb-radio-box">';
|
||||
echo '<input type="radio" name="eb_user_arrival" id="'.str_replace(" ","",$eb_arrival_slot).'" value="'.$eb_arrival_slot.'">';
|
||||
echo '<label for="'.str_replace(" ","",$eb_arrival_slot).'" >' . $eb_arrival_slot . '</label>';
|
||||
echo '</div>';
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
/**
|
||||
* The Template for the coupon code
|
||||
*
|
||||
* This template can be overridden by copying it to yourtheme/eb-templates/booking/form/coupon.php.
|
||||
*
|
||||
* Author: Eagle Themes
|
||||
* Package: Eagle-Booking/Templates
|
||||
* Version: 1.1
|
||||
*/
|
||||
|
||||
defined('ABSPATH') || exit;
|
||||
?>
|
||||
|
||||
<div class="form-panel">
|
||||
|
||||
<h2 class="title"><?php echo __('Coupon','eagle-booking') ?></h2>
|
||||
|
||||
<div id="eb_coupon_code_response" class="eb-alert eb-alert-small eb-alert-icon" style="display: none" role="alert">
|
||||
<span id="eb_coupon_code_response_text"></span>
|
||||
</div>
|
||||
|
||||
<div id="eb_coupon_code_group" class="eb-g-5-2">
|
||||
<div>
|
||||
<input name="eb_coupon" type="text" id="eb_coupon" class="eb-field eb-coupon" style="margin-bottom: 0;" placeholder="<?php echo __('Enter coupon code if you have one', 'eagle-booking') ?>">
|
||||
<input type="hidden" id="eb_coupon_code" name="eb_coupon_code">
|
||||
<input type="hidden" id="eb_coupon_value">
|
||||
</div>
|
||||
<div>
|
||||
<button id="eb_validate_coupon" class="btn eb-btn btn-full btn-coupon">
|
||||
<span class="eb-btn-text"><?php echo __('Validate Code', 'eagle-booking') ?></span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@@ -0,0 +1,6 @@
|
||||
<div class="form-panel">
|
||||
|
||||
<h2 class="title"><?php echo __('Special Requests','eagle-booking') ?></h2>
|
||||
<textarea name="eb_user_requests" id="eagle_booking_requests" class="eb-field" rows="6" placeholder="<?php echo __('Let us know if you have any special requests.', 'eagle-booking') ?>"></textarea>
|
||||
|
||||
</div>
|
||||
@@ -0,0 +1,64 @@
|
||||
<?php
|
||||
/**
|
||||
* The Template for the guest form
|
||||
*
|
||||
* This template can be overridden by copying it to yourtheme/eb-templates/booking/form/coupon.php.
|
||||
*
|
||||
* Author: Eagle Themes
|
||||
* Package: Eagle-Booking/Templates
|
||||
* Version: 1.0
|
||||
*/
|
||||
|
||||
defined('ABSPATH') || exit;
|
||||
?>
|
||||
|
||||
<div class="eb-tab-content guest" data-tab="guest">
|
||||
<div class="eb-g-lg-2 eb-g-md-1">
|
||||
|
||||
<div class="eb-form-col">
|
||||
<input type="text" id="eb_guest_first_name" class="eb-field">
|
||||
<label><?php echo __('First Name','eagle-booking') ?></label>
|
||||
</div>
|
||||
|
||||
<div class="eb-form-col">
|
||||
<input type="text" id="eb_guest_last_name" class="eb-field">
|
||||
<label><?php echo __('Last Name','eagle-booking') ?></label>
|
||||
</div>
|
||||
|
||||
<div class="eb-form-col">
|
||||
<input type="email" id="eb_guest_email" class="eb-field">
|
||||
<label><?php echo __('Email','eagle-booking') ?></label>
|
||||
</div>
|
||||
|
||||
|
||||
<input type="tel" id="eb_guest_phone" class="eb_user_phone_field eb-field" placeholder="<?php echo __('Phone','eagle-booking') ?> *">
|
||||
|
||||
<?php if ( eb_get_option('eb_booking_form_fields')['address'] == true ) : ?>
|
||||
<div class="eb-form-col">
|
||||
<input type="text" id="eb_guest_address" class="eb-field">
|
||||
<label><?php echo __('Address','eagle-booking') ?></label>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if ( eb_get_option('eb_booking_form_fields')['city'] == true ) : ?>
|
||||
<div class="eb-form-col">
|
||||
<input type="text" id="eb_guest_city" class="eb-field">
|
||||
<label><?php echo __('City','eagle-booking') ?></label>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if ( eb_get_option('eb_booking_form_fields')['country'] == true ) : ?>
|
||||
<div class="eb-form-col">
|
||||
<input type="text" id="eb_guest_country" class="eb-field">
|
||||
<label><?php echo __('Country','eagle-booking') ?></label>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if ( eb_get_option('eb_booking_form_fields')['zip'] == true ) : ?>
|
||||
<div class="eb-form-col">
|
||||
<input type="text" id="eb_guest_zip" class="eb-field">
|
||||
<label><?php echo __('ZIP','eagle-booking') ?></label>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,74 @@
|
||||
<?php
|
||||
/**
|
||||
* The Template for the signed in user
|
||||
*
|
||||
* This template can be overridden by copying it to yourtheme/eb-templates/booking/form/coupon.php.
|
||||
*
|
||||
* Author: Eagle Themes
|
||||
* Package: Eagle-Booking/Templates
|
||||
* Version: 1.1
|
||||
*/
|
||||
|
||||
defined('ABSPATH') || exit;
|
||||
?>
|
||||
|
||||
<div id="eb_signed_in_user" style="<?php if ( !is_user_logged_in() ) echo esc_attr('display: none;') ?>">
|
||||
|
||||
<div class="eb-alert eb-alert-success eb-alert-small eb-alert-icon mb25">
|
||||
<span id="eb_signed_in_user_text"><?php echo __('Logged in as', 'eagle-booking') ?>, <?php echo $eb_current_user->user_login ?>!</span>
|
||||
<span id="eb_user_sign_out" class="pull-right" style="cursor: pointer;"><?php echo __('Log Out', 'eagle-booking') ?></span>
|
||||
</div>
|
||||
|
||||
<div class="eb-g-lg-2 eb-g-md-1">
|
||||
|
||||
<div class="eb-form-col">
|
||||
<input type="text" id="eb_signed_in_user_first_name" class="eb-field" value="<?php eb_user('first_name') ?>">
|
||||
<label><?php echo __('First Name','eagle-booking') ?></label>
|
||||
</div>
|
||||
|
||||
<div class="eb-form-col">
|
||||
<input type="text" id="eb_signed_in_user_last_name" class="eb-field" value="<?php eb_user('last_name') ?>">
|
||||
<label><?php echo __('Last Name','eagle-booking') ?> </label>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="eb-form-col">
|
||||
<input type="email" id="eb_signed_in_user_email" class="eb-field" value="<?php eb_user('user_email') ?>">
|
||||
<label><?php echo __('Email','eagle-booking') ?></label>
|
||||
</div>
|
||||
|
||||
|
||||
<input type="tel" id="eb_signed_in_user_phone" class="eb_user_phone_field eb-field" placeholder="<?php echo __('Phone','eagle-booking') ?> *" value="<?php eb_user('user_phone') ?>">
|
||||
|
||||
|
||||
<?php if ( eb_get_option('eb_booking_form_fields')['address'] == true ) : ?>
|
||||
<div class="eb-form-col">
|
||||
<input type="text" id="eb_signed_in_user_address" class="eb-field" value="<?php eb_user('user_address') ?>">
|
||||
<label><?php echo __('Address','eagle-booking') ?><label>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if ( eb_get_option('eb_booking_form_fields')['city'] == true ) : ?>
|
||||
<div class="eb-form-col">
|
||||
<input type="text" id="eb_signed_in_user_city" class="eb-field" value="<?php eb_user('user_city') ?>">
|
||||
<label><?php echo __('City','eagle-booking') ?><label>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if ( eb_get_option('eb_booking_form_fields')['country'] == true ) : ?>
|
||||
<div class="eb-form-col">
|
||||
<input type="text" id="eb_signed_in_user_country" class="eb-field" value="<?php eb_user('user_country') ?>">
|
||||
<label><?php echo __('Country','eagle-booking') ?><label>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if ( eb_get_option('eb_booking_form_fields')['zip'] == true ) : ?>
|
||||
<div class="eb-form-col">
|
||||
<input type="text" id="eb_signed_in_user_zip" class="eb-field" value="<?php eb_user('user_zip') ?>">
|
||||
<label><?php echo __('ZIP','eagle-booking') ?><label>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
/**
|
||||
* The Template for the signin form
|
||||
*
|
||||
* This template can be overridden by copying it to yourtheme/eb-templates/booking/form/coupon.php.
|
||||
*
|
||||
* Author: Eagle Themes
|
||||
* Package: Eagle-Booking/Templates
|
||||
* Version: 1.1
|
||||
*/
|
||||
|
||||
defined('ABSPATH') || exit;
|
||||
?>
|
||||
|
||||
<div class="eb-tab-content signin" data-tab="signin">
|
||||
|
||||
<div id="eb_user_sign_in_response" class="eb-alert eb-alert-small mb20" style="display: none">
|
||||
<span id="eb_user_sign_in_response_text"></span>
|
||||
</div>
|
||||
|
||||
<form class="eb-g-3-3-1 eb-g-m-1" id="eb_user_sign_in_form">
|
||||
|
||||
<div class="eb-form-col">
|
||||
<input type="text" id="eb_user_sign_in_username" class="eb-field">
|
||||
<label><?php echo __('Username or Email Address', 'eagle-booking') ?></label>
|
||||
</div>
|
||||
|
||||
<div class="eb-form-col">
|
||||
<input type="password" id="eb_user_sign_in_password" class="eb-field" autocomplete="on">
|
||||
<label><?php echo __('Password', 'eagle-booking') ?></label>
|
||||
</div>
|
||||
|
||||
<button id="eb_user_sign_in" class="btn eb-btn btn-full" type="submit">
|
||||
<span class="eb-btn-text"><?php echo __('Sign In','eagle-booking') ?></span>
|
||||
</button>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
@@ -0,0 +1,82 @@
|
||||
<?php
|
||||
/**
|
||||
* The Template for the signup form
|
||||
*
|
||||
* This template can be overridden by copying it to yourtheme/eb-templates/booking/form/coupon.php.
|
||||
*
|
||||
* Author: Eagle Themes
|
||||
* Package: Eagle-Booking/Templates
|
||||
* Version: 1.0
|
||||
*/
|
||||
|
||||
defined('ABSPATH') || exit;
|
||||
?>
|
||||
|
||||
<div class="eb-tab-content signup" data-tab="signup">
|
||||
<form id="eb_user_signup_booking_form" action="" method="POST">
|
||||
|
||||
<div id="eb_user_sign_up_response" class="eb-alert eb-alert-small mb20" role="alert" style="display:none">
|
||||
<span id="eb_user_sign_up_response_text"></span>
|
||||
</div>
|
||||
|
||||
<div class="eb-g-lg-2 eb-g-md-1">
|
||||
|
||||
<div class="eb-form-col">
|
||||
<input type="email" id="eb_user_sign_up_username" class="eb-field">
|
||||
<label><?php echo __('Username','eagle-booking') ?></label>
|
||||
</div>
|
||||
|
||||
<div class="eb-form-col">
|
||||
<input type="email" id="eb_user_sign_up_email" class="eb-field">
|
||||
<label><?php echo __('Email','eagle-booking') ?></label>
|
||||
</div>
|
||||
|
||||
<div class="eb-form-col">
|
||||
<input type="password" id="eb_user_sign_up_password" class="eb-field" autocomplete="on">
|
||||
<label><?php echo __('Password','eagle-booking') ?></label>
|
||||
</div>
|
||||
|
||||
<div class="eb-form-col">
|
||||
<input type="text" id="eb_user_sign_up_first_name" class="eb-field">
|
||||
<label><?php echo __('First Name','eagle-booking') ?></label>
|
||||
</div>
|
||||
|
||||
<div class="eb-form-col">
|
||||
<input type="text" id="eb_user_sign_up_last_name" class="eb-field">
|
||||
<label><?php echo __('Last Name','eagle-booking') ?></label>
|
||||
</div>
|
||||
|
||||
<input type="tel" id="eb_user_sign_up_phone" class="eb_user_phone_field eb-field" placeholder="<?php echo __('Phone','eagle-booking') ?> *">
|
||||
|
||||
<?php if ( eb_get_option('eb_booking_form_fields')['address'] == true ) : ?>
|
||||
<div class="eb-form-col">
|
||||
<input type="text" id="eb_user_sign_up_address" class="eb-field">
|
||||
<label><?php echo __('Address','eagle-booking') ?></label>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if ( eb_get_option('eb_booking_form_fields')['city'] == true ) : ?>
|
||||
<div class="eb-form-col">
|
||||
<input type="text" id="eb_user_sign_up_city" class="eb-field">
|
||||
<label><?php echo __('City','eagle-booking') ?></label>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if ( eb_get_option('eb_booking_form_fields')['country'] == true ) : ?>
|
||||
<div class="eb-form-col">
|
||||
<input type="text" id="eb_user_sign_up_country" class="eb-field">
|
||||
<label><?php echo __('Country','eagle-booking') ?></label>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if ( eb_get_option('eb_booking_form_fields')['zip'] == true ) : ?>
|
||||
<div class="eb-form-col">
|
||||
<input type="text" id="eb_user_sign_up_zip" class="eb-field">
|
||||
<label><?php echo __('ZIP','eagle-booking') ?></label>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
@@ -0,0 +1,5 @@
|
||||
<!-- Terms -->
|
||||
<div class="mt50 gdpr">
|
||||
<input type="checkbox" id="eb_terms" value="0">
|
||||
<label for="eb_terms"><?php echo __('I agree to the', 'eagle-booking') ?> <a class="terms-conditions" target="_blank" href="<?php echo eagle_booking_terms_page() ?>"><?php echo __('Terms and Conditions','eagle-booking') ?></a></label>
|
||||
</div>
|
||||
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* The Template for the notification mssg
|
||||
*
|
||||
* This template can be overridden by copying it to yourtheme/eb-templates/booking/notification-mssg.php.
|
||||
*
|
||||
* Author: Eagle Themes
|
||||
* Package: Eagle-Booking/Templates
|
||||
* Version: 1.0
|
||||
*/
|
||||
|
||||
defined('ABSPATH') || exit;
|
||||
?>
|
||||
|
||||
<?php
|
||||
|
||||
if ( eb_get_option('booking_page_mssg') ) : ?>
|
||||
|
||||
<div class="eb-alert eb-alert-info eb-alert-icon mb50" role="alert">
|
||||
<div class="alert-inner">
|
||||
<?php echo wp_kses_post(eb_get_option('booking_page_mssg')) ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php endif ?>
|
||||
105
wp-content/plugins/eagle-booking/templates/booking/taxesfees.php
Normal file
105
wp-content/plugins/eagle-booking/templates/booking/taxesfees.php
Normal file
@@ -0,0 +1,105 @@
|
||||
<?php
|
||||
|
||||
$eb_taxes = array();
|
||||
$eb_fees = array();
|
||||
$eb_room_taxes = array();
|
||||
$eb_room_fees = array();
|
||||
|
||||
// Get All Taxes & Fees
|
||||
$eb_taxes = get_option('eb_taxes');
|
||||
$eb_fees = get_option('eb_fees');
|
||||
|
||||
// Get taxes & fees asigned to the room
|
||||
$eb_room_taxes = get_post_meta( $eb_room_id, 'eagle_booking_mtb_room_taxes', true );
|
||||
$eb_room_fees = get_post_meta ( $eb_room_id, 'eagle_booking_mtb_room_fees', true );
|
||||
|
||||
if ( empty( $eb_taxes ) ) $eb_taxes = array();
|
||||
if ( empty( $eb_fees ) ) $eb_fees = array();
|
||||
if ( empty( $eb_room_taxes ) ) $eb_room_taxes = array();
|
||||
if ( empty( $eb_room_fees ) ) $eb_room_fees = array();
|
||||
|
||||
// Merge Taxes & Fees
|
||||
$eb_entries = array_merge( $eb_taxes, $eb_fees );
|
||||
$eb_room_entries = array_merge( $eb_room_taxes, $eb_room_fees );
|
||||
|
||||
if ( empty( $eb_room_entries ) ) $eb_room_entries = array();
|
||||
|
||||
$html = '';
|
||||
|
||||
if ( eb_get_option('eb_adults_children') == true ) {
|
||||
|
||||
$guests = $eb_adults + $eb_children;
|
||||
|
||||
} else {
|
||||
|
||||
$guests = $eb_guests;
|
||||
|
||||
}
|
||||
|
||||
if ( $eb_entries ) {
|
||||
|
||||
$total_amount = 0;
|
||||
$taxes_fees_amount = 0;
|
||||
|
||||
foreach( $eb_entries as $key => $item ) {
|
||||
|
||||
$entry_id = !empty( $item["id"] ) ? $item["id"] : '';
|
||||
$entry_title = !empty( $item["title"] ) ? $item["title"] : '';
|
||||
$type = !empty( $item["type"] ) ? $item["type"] : '';
|
||||
$amount = !empty( $item["amount"] ) ? $item["amount"] : '';
|
||||
$global = !empty( $item["global"] ) ? $item["global"] : '';
|
||||
$services = !empty( $item["services"] ) ? $item["services"] : '';
|
||||
$fees = !empty( $item["fees"] ) ? $item["fees"] : '';
|
||||
|
||||
if ( $item["global"] == true || in_array( $entry_id, $eb_room_entries) ) {
|
||||
|
||||
// Calculate the tax & fees total based on the type
|
||||
if ( $type === 'per_booking' ) {
|
||||
|
||||
$taxes_fees_amount = $amount;
|
||||
|
||||
} elseif ( $type === 'per_booking_nights' ) {
|
||||
|
||||
$taxes_fees_amount = $amount * $eb_booking_nights;
|
||||
|
||||
} elseif ( $type === 'per_guests' ) {
|
||||
|
||||
$taxes_fees_amount = $amount * $guests;
|
||||
|
||||
} elseif ( $type === 'per_booking_nights_guests' ) {
|
||||
|
||||
$taxes_fees_amount = $amount * $guests * $eb_booking_nights;
|
||||
|
||||
} else {
|
||||
|
||||
$taxes_fees_amount = $amount * $eb_trip_price / 100;
|
||||
|
||||
}
|
||||
|
||||
// Check if is tax or fee
|
||||
if( $services != '' ) {
|
||||
$id = 'tax-id='.$entry_id.'';
|
||||
$data = 'data-amount='.round( $taxes_fees_amount).' data-percentage='.$amount.'';
|
||||
} else {
|
||||
$id = 'vat-id='.$entry_id.'';
|
||||
$data = 'data-amount='.round( $taxes_fees_amount).'';
|
||||
}
|
||||
|
||||
$html .= "<div class='item taxfee' data-$id $data>";
|
||||
$html .= "<span class='desc'>$entry_title</span>";
|
||||
$html .= "<span class='value'><strong>".eb_price( round( $taxes_fees_amount ) ). "</strong></span>";
|
||||
$html .= "</div>";
|
||||
|
||||
}
|
||||
|
||||
// Get the total cost of the taxes
|
||||
$total_amount += $taxes_fees_amount;
|
||||
|
||||
}
|
||||
|
||||
// Add the total tax cost to the total price
|
||||
$eb_trip_price = $eb_trip_price + $total_amount;
|
||||
|
||||
}
|
||||
|
||||
echo $html;
|
||||
@@ -0,0 +1,52 @@
|
||||
<?php
|
||||
/**
|
||||
* The Template for the additional services
|
||||
*
|
||||
* This template can be overridden by copying it to yourtheme/eb-templates/checkout/additional-services.php.
|
||||
*
|
||||
* Author: Eagle Themes
|
||||
* Package: Eagle-Booking/Templates
|
||||
* Version: 1.1.5
|
||||
*/
|
||||
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
?>
|
||||
|
||||
<?php
|
||||
|
||||
$eagle_booking_form_extra_services = '';
|
||||
|
||||
if ( $eagle_booking_form_services ) :
|
||||
|
||||
$eagle_booking_additional_services_array = explode(',', $eagle_booking_form_services );
|
||||
|
||||
for ($eagle_booking_additional_services_array_i = 0; $eagle_booking_additional_services_array_i < count($eagle_booking_additional_services_array)-1; $eagle_booking_additional_services_array_i++) {
|
||||
|
||||
$eagle_booking_service_id = $eagle_booking_additional_services_array[$eagle_booking_additional_services_array_i];
|
||||
|
||||
// SERVICE MTB
|
||||
$eagle_booking_mtb_service_price = get_post_meta( $eagle_booking_service_id, 'eagle_booking_mtb_service_price', true );
|
||||
|
||||
$eagle_booking_mtb_service_price_type_1 = get_post_meta( $eagle_booking_service_id, 'eagle_booking_mtb_service_price_type', true );
|
||||
$eagle_booking_mtb_service_price_type_2 = get_post_meta( $eagle_booking_service_id, 'eagle_booking_mtb_service_price_type_2', true );
|
||||
|
||||
|
||||
if ( $eagle_booking_mtb_service_price_type_1 == 'guest' ) {
|
||||
$eagle_booking_operator_1 = $eagle_booking_form_guests;
|
||||
} else {
|
||||
$eagle_booking_operator_1 = 1;
|
||||
}
|
||||
|
||||
if ( $eagle_booking_mtb_service_price_type_2 == 'night' ) {
|
||||
$eagle_booking_operator_2 = eb_total_booking_nights($eagle_booking_form_date_from, $eagle_booking_form_date_to);
|
||||
} else {
|
||||
$eagle_booking_operator_2 = 1;
|
||||
}
|
||||
|
||||
$eagle_booking_additional_service_total_price = $eagle_booking_mtb_service_price*$eagle_booking_operator_1*$eagle_booking_operator_2;
|
||||
$eagle_booking_form_extra_services .= $eagle_booking_service_id.'['.$eagle_booking_additional_service_total_price.'],';
|
||||
|
||||
}
|
||||
|
||||
endif;
|
||||
105
wp-content/plugins/eagle-booking/templates/checkout/details.php
Normal file
105
wp-content/plugins/eagle-booking/templates/checkout/details.php
Normal file
@@ -0,0 +1,105 @@
|
||||
<?php
|
||||
/**
|
||||
* The Template for the checkout booking details
|
||||
*
|
||||
* This template can be overridden by copying it to yourtheme/eb-templates/checkout/details.php.
|
||||
*
|
||||
* Author: Eagle Themes
|
||||
* Package: Eagle-Booking/Templates
|
||||
* Version: 1.1.6
|
||||
*/
|
||||
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
/**
|
||||
* Include Stepline
|
||||
*/
|
||||
if ( eb_get_option('eb_stepline' ) == true ) include eb_load_template('elements/stepline.php');
|
||||
|
||||
?>
|
||||
|
||||
|
||||
<div class="checkout-details eb-g-3">
|
||||
|
||||
<h4 class="title"><?php echo esc_html__('Booking Details','eagle-booking') ?></h4>
|
||||
|
||||
<div class="checkout-details-inner">
|
||||
|
||||
<div><strong><?php echo esc_html__('Full Name','eagle-booking') ?>:</strong> <?php echo $eagle_booking_form_name .' '.$eagle_booking_form_surname ?></div>
|
||||
|
||||
<div><strong><?php echo esc_html__('Email','eagle-booking') ?>:</strong> <?php echo $eagle_booking_form_email ?></div>
|
||||
|
||||
<div><strong><?php echo esc_html__('Phone','eagle-booking') ?>:</strong> <?php echo $eagle_booking_form_phone ?></div>
|
||||
|
||||
<?php if ( eb_get_option('eb_booking_form_fields')['address'] == true && !empty( $eagle_booking_form_address.$eagle_booking_form_zip.$eagle_booking_form_city.$eagle_booking_form_country ) ) : ?>
|
||||
<div><strong><?php echo esc_html__('Address','eagle-booking') ?>:</strong> <?php echo $eagle_booking_form_address .', '.$eagle_booking_form_zip .', '.$eagle_booking_form_city .', '.$eagle_booking_form_country ?></div>
|
||||
<?php endif ?>
|
||||
|
||||
<div><strong><?php echo esc_html__('Room','eagle-booking') ?>:</strong> <?php echo $eagle_booking_room_title ?></div>
|
||||
|
||||
<?php if ( eb_room_branch( $eagle_booking_room_id ) ) : ?>
|
||||
<div><strong><?php echo esc_html__('Branch','eagle-booking') ?>:</strong> <?php echo eb_room_branch( $eagle_booking_room_id ) ?></div>
|
||||
<?php endif ?>
|
||||
|
||||
<div><strong><?php echo esc_html__('Check In/Out','eagle-booking') ?>:</strong> <?php echo eagle_booking_displayd_date_format($eagle_booking_form_date_from) ?><?php eb_checkin_checkout_time('checkin') ?> → <?php echo eagle_booking_displayd_date_format($eagle_booking_form_date_to) ?><?php eb_checkin_checkout_time('checkout') ?></div>
|
||||
|
||||
<div><strong><?php echo esc_html__('Guests','eagle-booking') ?>:</strong>
|
||||
<?php if ( eb_get_option('eb_adults_children') == true ) : ?>
|
||||
<?php echo $eagle_booking_form_adults . ' ' .esc_html__('Adults', 'eagle-booking'). ', ' . $eagle_booking_form_children . ' ' .esc_html__('Children', 'eagle-booking') ?>
|
||||
<?php else : ?>
|
||||
<?php echo $eagle_booking_form_guests ?>
|
||||
<?php endif ?>
|
||||
</div>
|
||||
|
||||
<?php if ( eb_get_option('eb_booking_form_fields')['arrival'] == true && $eagle_booking_form_arrival != '') : ?>
|
||||
<div><strong><?php echo esc_html__('Arrival','eagle-booking') ?> :</strong> <?php echo $eagle_booking_form_arrival ?></div>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if (!empty($eagle_booking_form_services)) : ?>
|
||||
<div class="checkout-details-services"><strong><?php echo esc_html__('Additional Services','eagle-booking') ?>:</strong>
|
||||
<?php
|
||||
if ( !empty($eagle_booking_form_services) ) :
|
||||
$eagle_booking_services_array = explode(',', $eagle_booking_form_services );
|
||||
for ($eagle_booking_services_array_i = 0; $eagle_booking_services_array_i < count($eagle_booking_services_array)-1; $eagle_booking_services_array_i++) :
|
||||
|
||||
$eagle_booking_service_id = $eagle_booking_services_array[$eagle_booking_services_array_i];
|
||||
$eagle_booking_service_name = get_the_title($eagle_booking_service_id);
|
||||
|
||||
echo $eagle_booking_service_name;
|
||||
if (next($eagle_booking_services_array )) :
|
||||
echo ', ';
|
||||
endif;
|
||||
|
||||
endfor;
|
||||
endif;
|
||||
?>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if ( !empty($eagle_booking_form_requests) ) : ?>
|
||||
<div><strong><?php echo esc_html__('Requests','eagle-booking') ?>:</strong> <?php echo $eagle_booking_form_requests ?></div>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if ( eb_get_option('show_price') == true ) : ?>
|
||||
|
||||
<div>
|
||||
<strong><?php echo esc_html__('Total Price','eagle-booking') ?>:</strong>
|
||||
<?php echo eb_price( $eagle_booking_form_final_price ) ?>
|
||||
</div>
|
||||
|
||||
<?php endif ?>
|
||||
|
||||
<?php if ( eb_get_option('eagle_booking_deposit_amount') < 100 ) : ?>
|
||||
<div>
|
||||
<strong><?php echo esc_html__('Deposit Amount','eagle-booking') ?>:</strong>
|
||||
<?php if ( eb_currency_position() == 'before' ) : ?>
|
||||
<?php echo eb_currency()?><?php eb_formatted_price($eagle_booking_deposit_amount) ?>
|
||||
<?php else : ?>
|
||||
<?php eb_formatted_price($eagle_booking_deposit_amount) ?><?php echo eb_currency()?>
|
||||
<?php endif ?>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
/**
|
||||
* The Template for the payment tabs
|
||||
*
|
||||
* This template can be overridden by copying it to yourtheme/eb-templates/checkout/payment.php.
|
||||
*
|
||||
* Author: Eagle Themes
|
||||
* Package: Eagle-Booking/Templates
|
||||
* Version: 1.1.6
|
||||
*/
|
||||
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
?>
|
||||
|
||||
<div class="checkout-payment-tabs">
|
||||
<h4 class="title"><?php echo esc_html__('Payment Options','eagle-booking') ?></h4>
|
||||
<ul class="eb-payment-tabs">
|
||||
<?php
|
||||
/**
|
||||
* Include payment tabs
|
||||
*/
|
||||
include_once EB_PATH . 'core/admin/gateways/payment-tabs.php';
|
||||
?>
|
||||
</ul>
|
||||
<div class="payment-tabs-content">
|
||||
<?php
|
||||
/**
|
||||
* Include payment caontent
|
||||
*/
|
||||
include_once EB_PATH . 'core/admin/gateways/payment-content.php';
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
181
wp-content/plugins/eagle-booking/templates/checkout/thankyou.php
Normal file
181
wp-content/plugins/eagle-booking/templates/checkout/thankyou.php
Normal file
@@ -0,0 +1,181 @@
|
||||
<?php
|
||||
/**
|
||||
* The Template for the thank you page
|
||||
*
|
||||
* This template can be overridden by copying it to yourtheme/eb-templates/checkout/thankyou.php.
|
||||
*
|
||||
* Author: Eagle Themes
|
||||
* Package: Eagle-Booking/Templates
|
||||
* Version: 1.1.7
|
||||
*/
|
||||
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
/**
|
||||
* Include Stepline
|
||||
*/
|
||||
if ( eb_get_option('eb_stepline' ) == true ) include eb_load_template('elements/stepline.php');
|
||||
|
||||
?>
|
||||
|
||||
<div id="thankyou-page" class="thankyou-page">
|
||||
|
||||
<div class="eb-alert eb-alert-success eb-alert-icon mb50" role="alert"> <?php echo __('Your booking has been submitted successfully.', 'eagle-booking') ?>
|
||||
<?php if (eb_get_option('eagle_booking_message')['email_guest'] == true) : ?>
|
||||
<?php echo __('We just sent you a confirmation email to', 'eagle-booking') ?>
|
||||
<?php echo $eagle_booking_form_email ?>
|
||||
<?php endif ?>
|
||||
</div>
|
||||
|
||||
<div class="eb-printable eb-thank-details">
|
||||
|
||||
<div class="eb-hotel-logo eb-only-printable">
|
||||
<?php
|
||||
if (!empty( eb_get_option('hotel_logo') )) {
|
||||
echo "<img src=".eb_get_option('hotel_logo')." height='20px'>";
|
||||
} else {
|
||||
echo get_bloginfo( 'name' );
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
|
||||
<h4 class="title"><?php echo __('Booking Details', 'eagle-booking') ?></h4>
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<span><?php echo __('Transaction ID', 'eagle-booking') ?></span>
|
||||
<strong><?php echo $eagle_booking_transaction_id ?></strong>
|
||||
</l1>
|
||||
|
||||
<li>
|
||||
<span><?php echo __('Full Name', 'eagle-booking') ?></span>
|
||||
<strong><?php echo $eagle_booking_form_name .' '.$eagle_booking_form_surname ?></strong>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<span><?php echo __('Email', 'eagle-booking') ?></span>
|
||||
<strong><?php echo $eagle_booking_form_email ?></strong>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<span><?php echo __('Phone', 'eagle-booking') ?></span>
|
||||
<strong><?php echo $eagle_booking_form_phone ?></strong>
|
||||
</li>
|
||||
|
||||
<?php if ( !empty( $eagle_booking_form_address.$eagle_booking_form_zip.$eagle_booking_form_city.$eagle_booking_form_country ) ) : ?>
|
||||
|
||||
<li>
|
||||
<span><?php echo __('Address', 'eagle-booking') ?></span>
|
||||
<strong> <?php echo $eagle_booking_form_address . ', ' .$eagle_booking_form_zip . ', ' .$eagle_booking_form_city . ', ' . $eagle_booking_form_country ?> </strong>
|
||||
</li>
|
||||
|
||||
<?php endif ?>
|
||||
|
||||
<li>
|
||||
<span><?php echo __('Room', 'eagle-booking') ?></span>
|
||||
<strong><?php echo $eagle_booking_room_title ?></strong>
|
||||
</li>
|
||||
|
||||
<?php if ( eb_room_branch( $eagle_booking_room_id ) ) : ?>
|
||||
<li>
|
||||
<span><?php echo __('Branch','eagle-booking') ?></span>
|
||||
<strong><?php echo eb_room_branch( $eagle_booking_room_id ) ?></strong>
|
||||
</li>
|
||||
<?php endif ?>
|
||||
|
||||
<li>
|
||||
<span><?php echo __('Check In/Out', 'eagle-booking') ?></span>
|
||||
<strong><?php echo eagle_booking_displayd_date_format($eagle_booking_form_date_from) ?><?php eb_checkin_checkout_time('checkin') ?> → <?php echo eagle_booking_displayd_date_format($eagle_booking_form_date_to) ?><?php eb_checkin_checkout_time('checkout') ?></strong>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<span><?php echo __('Guests','eagle-booking') ?></span>
|
||||
<strong>
|
||||
<?php if ( eb_get_option('eb_adults_children') == true ) : ?>
|
||||
<?php echo $eagle_booking_form_adults . ' ' .__('Adults', 'eagle-booking'). ', ' . $eagle_booking_form_children . ' ' .__('Children', 'eagle-booking') ?>
|
||||
<?php else : ?>
|
||||
<?php echo $eagle_booking_form_guests ?>
|
||||
<?php endif ?>
|
||||
</strong>
|
||||
</li>
|
||||
|
||||
<?php if ( !empty($eagle_booking_form_arrival)) : ?>
|
||||
<li>
|
||||
<span><?php echo __('Arrival', 'eagle-booking') ?></span>
|
||||
<strong><?php echo $eagle_booking_form_arrival ?></strong>
|
||||
</li>
|
||||
<?php endif ?>
|
||||
|
||||
<li>
|
||||
<span><?php echo __('Payment', 'eagle-booking') ?></span>
|
||||
<strong><?php echo $eagle_booking_checkout_payment_type ?></strong>
|
||||
</li>
|
||||
|
||||
<?php if (!empty($eagle_booking_form_services)) : ?>
|
||||
<li>
|
||||
<span><?php echo __('Additional Services', 'eagle-booking') ?></span>
|
||||
<strong>
|
||||
<?php
|
||||
$eagle_booking_services_array = explode(',', $eagle_booking_form_services);
|
||||
for ($eagle_booking_services_array_i = 0; $eagle_booking_services_array_i < count($eagle_booking_services_array)-1; $eagle_booking_services_array_i++) :
|
||||
|
||||
$eagle_booking_service_id = $eagle_booking_services_array[$eagle_booking_services_array_i];
|
||||
$eagle_booking_service_name = get_the_title($eagle_booking_service_id);
|
||||
|
||||
echo $eagle_booking_service_name;
|
||||
if (next($eagle_booking_services_array)) :
|
||||
echo ', ';
|
||||
endif;
|
||||
|
||||
endfor;
|
||||
?>
|
||||
</strong>
|
||||
</li>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if (!empty($eagle_booking_form_requests)) : ?>
|
||||
<li>
|
||||
<span><?php echo __('Requests', 'eagle-booking') ?></span>
|
||||
<strong><?php echo $eagle_booking_form_requests ?></strong>
|
||||
</li>
|
||||
|
||||
<?php endif ?>
|
||||
|
||||
<?php if ( eb_get_option('show_price') == true ) : ?>
|
||||
<li>
|
||||
<span><?php echo __('Total Price', 'eagle-booking') ?></span>
|
||||
<strong>
|
||||
<?php if (eb_currency_position() == 'before') : ?>
|
||||
<?php echo eb_currency()?><?php eb_formatted_price($eagle_booking_form_final_price) ?>
|
||||
<?php else : ?>
|
||||
<?php eb_formatted_price($eagle_booking_form_final_price) ?><?php echo eb_currency()?>
|
||||
<?php endif ?>
|
||||
</strong>
|
||||
</li>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if ( eb_get_option('eagle_booking_deposit_amount') < 100 ) : ?>
|
||||
<li>
|
||||
<span><?php echo __('Deposit Amount','eagle-booking') ?></span>
|
||||
<strong>
|
||||
<?php if ( eb_currency_position() == 'before' ) : ?>
|
||||
<?php echo eb_currency()?><?php eb_formatted_price($eagle_booking_deposit_amount) ?>
|
||||
<?php else : ?>
|
||||
<?php eb_formatted_price($eagle_booking_deposit_amount) ?><?php echo eb_currency()?>
|
||||
<?php endif ?>
|
||||
</strong>
|
||||
</li>
|
||||
<?php endif ?>
|
||||
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="thankyou-buttons">
|
||||
<?php if ( is_user_logged_in() ) : ?>
|
||||
<a href="<?php echo eb_account_page() ?>" class="btn eb-btn"><?php echo __('Manage Your Bookings', 'eagle-booking') ?></a>
|
||||
<?php endif ?>
|
||||
<a class="btn eb-btn print-booking-details" onClick="window.print()"><?php echo __('Print Booking Details', 'eagle-booking') ?></a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@@ -0,0 +1,55 @@
|
||||
<?php
|
||||
/**
|
||||
* The Template for the branch selector
|
||||
*
|
||||
* This template can be overridden by copying it to yourtheme/eb-templates/elements/branch-selector.php.
|
||||
*
|
||||
* Author: Eagle Themes
|
||||
* Package: Eagle-Booking/Templates
|
||||
* Version: 1.0
|
||||
*/
|
||||
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
?>
|
||||
|
||||
<div class="eb-field-group">
|
||||
|
||||
<label><?php echo __('Branch','eagle-booking') ?></label>
|
||||
|
||||
<div class="eb-select">
|
||||
|
||||
<div class="eb-field" id="branch_text"><?php echo __('All Branches', 'eagle-booking') ?></div>
|
||||
|
||||
<ul class="eb-select-list">
|
||||
|
||||
<li class="selected"><?php echo __('All Branches', 'eagle-booking') ?></li>
|
||||
|
||||
<?php
|
||||
|
||||
$args = array(
|
||||
'taxonomy' => 'eagle_branch',
|
||||
'hide_empty' => true,
|
||||
);
|
||||
|
||||
$branch_query = new WP_Term_Query($args);
|
||||
|
||||
if ( !empty( $branch_query->terms ) ) {
|
||||
|
||||
foreach ( $branch_query->terms as $eb_branch ) {
|
||||
|
||||
$eb_branch_id = $eb_branch->term_id;
|
||||
$eb_branch_name = get_term_field( 'name', $eb_branch );
|
||||
|
||||
echo '<li data-branch-id="'.$eb_branch_id.'">'.$eb_branch_name.'</li >';
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
</ul>
|
||||
|
||||
<input type="hidden" id="eb_branch" name="eb_branch" value="all">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
/**
|
||||
* The Template for the custom parameters
|
||||
*
|
||||
* This template can be overridden by copying it to yourtheme/eb-templates/elements/custom-parameters.php.
|
||||
*
|
||||
* Author: Eagle Themes
|
||||
* Package: Eagle-Booking/Templates
|
||||
* Version: 1.1.5
|
||||
*/
|
||||
|
||||
defined('ABSPATH') || exit;
|
||||
?>
|
||||
|
||||
<?php if (eb_get_option('booking_type') == 'custom' ) : ?>
|
||||
<input type="hidden" name="<?php echo esc_html( $eagle_booking_hotel_id_param ) ?>" value="<?php echo esc_html($eagle_booking_hotel_id) ?>" >
|
||||
<input type="hidden" name="<?php echo esc_html( $eagle_booking_additional_param ) ?>" value="<?php echo esc_html($eagle_booking_additional_id) ?>" >
|
||||
<?php endif ?>
|
||||
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
/**
|
||||
* The Template for the dates picker
|
||||
*
|
||||
* This template can be overridden by copying it to yourtheme/eb-templates/elements/dates-picker.php.
|
||||
*
|
||||
* Author: Eagle Themes
|
||||
* Package: Eagle-Booking/Templates
|
||||
* Version: 1.1.5
|
||||
*/
|
||||
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
?>
|
||||
<div class="eb-field-group">
|
||||
<label><?php echo __('Check In/Out','eagle-booking') ?></label>
|
||||
<input type="text" class="eb-datepicker eb-field" placeholder="<?php echo esc_html__('Check In', 'eagle-booking') ?> → <?php echo esc_html__('Check Out', 'eagle-booking') ?>" value="<?php echo $eagle_booking_dates ?>" autocomplete="off" readonly>
|
||||
<input type="hidden" class="eb_checkin" name="<?php echo $eagle_booking_checkin_param ?>">
|
||||
<input type="hidden" class="eb_checkout" name="<?php echo $eagle_booking_checkout_param ?>">
|
||||
</div>
|
||||
|
||||
<?php $eb_end_period = "+".eb_get_option('eb_calendar_availability_period'). " months" ?>
|
||||
@@ -0,0 +1,75 @@
|
||||
<?php
|
||||
/**
|
||||
* The Template for the guests picker
|
||||
*
|
||||
* This template can be overridden by copying it to yourtheme/eb-templates/elements/guests-picker.php.
|
||||
*
|
||||
* Author: Eagle Themes
|
||||
* Package: Eagle-Booking/Templates
|
||||
* Version: 1.1.5
|
||||
*/
|
||||
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
// Include form parameters
|
||||
include_once EB_PATH . '/core/admin/form-parameters.php';
|
||||
|
||||
?>
|
||||
<div class="eb-field-group">
|
||||
<label><?php echo __('Guests','eagle-booking') ?></label>
|
||||
<div class="eb-guestspicker eb-field">
|
||||
|
||||
<div class="guestspicker">
|
||||
<?php echo __('Guests','eagle-booking') ?> <span class="gueststotal"><?php echo $eb_default_guests ?></span>
|
||||
</div>
|
||||
|
||||
<div class="eb-guestspicker-content">
|
||||
|
||||
<?php if (eb_get_option('eb_adults_children') == true ) : ?>
|
||||
|
||||
<div class="guests-buttons">
|
||||
<div class="description">
|
||||
<label><?php echo __('Adults','eagle-booking') ?></label>
|
||||
<?php if (!empty(eb_get_option('eb_adult_age'))) : ?>
|
||||
<div class="ages"><?php echo esc_html__('Ages', 'eagle-booking') .' ' .eb_get_option('eb_adult_age') ?></div>
|
||||
<?php endif ?>
|
||||
</div>
|
||||
<div class="guests-button">
|
||||
<div class="minus"></div>
|
||||
<input type="text" id="eagle_booking_adults" name="<?php echo $eagle_booking_adults_param ?>" class="booking-guests" value="<?php echo $eagle_booking_adults ?>" data-min="1" data-max="<?php echo esc_html($eb_max_adults) ?>">
|
||||
<div class="plus"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="guests-buttons">
|
||||
<div class="description">
|
||||
<label><?php echo __('Children','eagle-booking') ?></label>
|
||||
<?php if (!empty(eb_get_option('eb_child_age'))) : ?>
|
||||
<div class="ages"><?php echo esc_html__('Ages', 'eagle-booking') .' ' .eb_get_option('eb_child_age') ?></div>
|
||||
<?php endif ?>
|
||||
</div>
|
||||
<div class="guests-button">
|
||||
<div class="minus"></div>
|
||||
<input type="text" id ="eagle_booking_children" name="<?php echo $eagle_booking_children_param ?>" class="booking-guests" value="<?php echo $eagle_booking_children ?>" data-min="0" data-max="<?php echo esc_html($eb_max_children) ?>">
|
||||
<div class="plus"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php else : ?>
|
||||
|
||||
<div class="guests-buttons">
|
||||
<div class="description">
|
||||
<label><?php echo __('Guests','eagle-booking') ?></label>
|
||||
</div>
|
||||
<div class="guests-button">
|
||||
<div class="minus"></div>
|
||||
<input type="text" id ="eagle_booking_guests" name="<?php echo $eagle_booking_guests_param ?>" class="booking-guests" value="<?php echo $eagle_booking_guests ?>" data-min="1" data-max="<?php echo esc_html($eb_max_guests) ?>">
|
||||
<div class="plus"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php endif ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,289 @@
|
||||
<script>
|
||||
|
||||
jQuery(document).ready(function ($) {
|
||||
|
||||
jQuery(function($) {
|
||||
|
||||
// Phone
|
||||
var eb_countries = []
|
||||
eb_countries = {
|
||||
"af": "<?php echo normalize_whitespace( __('Afghanistan', 'eagle-booking') ) ?>",
|
||||
"al": "<?php echo normalize_whitespace( __('Albania', 'eagle-booking') ) ?>",
|
||||
"dz": "<?php echo normalize_whitespace( __('Algeria', 'eagle-booking') ) ?>",
|
||||
"as": "<?php echo normalize_whitespace( __('American Samoa', 'eagle-booking') ) ?>",
|
||||
"ad": "<?php echo normalize_whitespace( __('Andorra', 'eagle-booking') ) ?>",
|
||||
"ao": "<?php echo normalize_whitespace( __('Angola', 'eagle-booking') ) ?>",
|
||||
"ai": "<?php echo normalize_whitespace( __('Anguilla', 'eagle-booking') ) ?>",
|
||||
"ag": "<?php echo normalize_whitespace( __('Antigua and Barbuda', 'eagle-booking') ) ?>",
|
||||
"ar": "<?php echo normalize_whitespace( __('Argentina', 'eagle-booking') ) ?>",
|
||||
"am": "<?php echo normalize_whitespace( __('Armenia', 'eagle-booking') ) ?>",
|
||||
"aw": "<?php echo normalize_whitespace( __('Aruba', 'eagle-booking') ) ?>",
|
||||
"au": "<?php echo normalize_whitespace( __('Australia', 'eagle-booking') ) ?>",
|
||||
"at": "<?php echo normalize_whitespace( __('Austria', 'eagle-booking') ) ?>",
|
||||
"az": "<?php echo normalize_whitespace( __('Azerbaijan', 'eagle-booking') ) ?>",
|
||||
"bs": "<?php echo normalize_whitespace( __('Bahamas', 'eagle-booking') ) ?>",
|
||||
"bh": "<?php echo normalize_whitespace( __('Bahrain', 'eagle-booking') ) ?>",
|
||||
"bd": "<?php echo normalize_whitespace( __('Bangladesh', 'eagle-booking') ) ?>",
|
||||
"bb": "<?php echo normalize_whitespace( __('Barbados', 'eagle-booking') ) ?>",
|
||||
"by": "<?php echo normalize_whitespace( __('Belarus', 'eagle-booking') ) ?>",
|
||||
"be": "<?php echo normalize_whitespace( __('Belgium', 'eagle-booking') ) ?>",
|
||||
"bz": "<?php echo normalize_whitespace( __('Belize', 'eagle-booking') ) ?>",
|
||||
"bj": "<?php echo normalize_whitespace( __('Benin', 'eagle-booking') ) ?>",
|
||||
"bm": "<?php echo normalize_whitespace( __('Bermuda', 'eagle-booking') ) ?>",
|
||||
"bt": "<?php echo normalize_whitespace( __('Bhutan', 'eagle-booking') ) ?>",
|
||||
"bo": "<?php echo normalize_whitespace( __('Bolivia', 'eagle-booking') ) ?>",
|
||||
"ba": "<?php echo normalize_whitespace( __('Bosnia and Herzegovina', 'eagle-booking') ) ?>",
|
||||
"bw": "<?php echo normalize_whitespace( __('Botswana', 'eagle-booking') ) ?>",
|
||||
"br": "<?php echo normalize_whitespace( __('Brazil', 'eagle-booking') ) ?>",
|
||||
"io": "<?php echo normalize_whitespace( __('British Indian Ocean Territory', 'eagle-booking') ) ?>",
|
||||
"vg": "<?php echo normalize_whitespace( __('Virgin Islands, British', 'eagle-booking') ) ?>",
|
||||
"bn": "<?php echo normalize_whitespace( __('Brunei Darussalam', 'eagle-booking') ) ?>",
|
||||
"bg": "<?php echo normalize_whitespace( __('Bulgaria', 'eagle-booking') ) ?>",
|
||||
"bf": "<?php echo normalize_whitespace( __('Burkina Faso', 'eagle-booking') ) ?>",
|
||||
"bi": "<?php echo normalize_whitespace( __('Burundi', 'eagle-booking') ) ?>",
|
||||
"kh": "<?php echo normalize_whitespace( __('Cambodia', 'eagle-booking') ) ?>",
|
||||
"cm": "<?php echo normalize_whitespace( __('Cameroon', 'eagle-booking') ) ?>",
|
||||
"ca": "<?php echo normalize_whitespace( __('Canada', 'eagle-booking') ) ?>",
|
||||
"cv": "<?php echo normalize_whitespace( __('Cape Verde', 'eagle-booking') ) ?>",
|
||||
"bq": "<?php echo normalize_whitespace( __('Caribbean Netherlands', 'eagle-booking') ) ?>",
|
||||
"ky": "<?php echo normalize_whitespace( __('Cayman Islands', 'eagle-booking') ) ?>",
|
||||
"cf": "<?php echo normalize_whitespace( __('Central African Republic', 'eagle-booking') ) ?>",
|
||||
"td": "<?php echo normalize_whitespace( __('Chad', 'eagle-booking') ) ?>",
|
||||
"cl": "<?php echo normalize_whitespace( __('Chile', 'eagle-booking') ) ?>",
|
||||
"cn": "<?php echo normalize_whitespace( __('China', 'eagle-booking') ) ?>",
|
||||
"co": "<?php echo normalize_whitespace( __('Colombia', 'eagle-booking') ) ?>",
|
||||
"km": "<?php echo normalize_whitespace( __('Comoros', 'eagle-booking') ) ?>",
|
||||
"cd": "<?php echo normalize_whitespace( __('Congo', 'eagle-booking') ) ?>",
|
||||
"cg": "<?php echo normalize_whitespace( __('Congo, The Democratic Republic of The', 'eagle-booking') ) ?>",
|
||||
"ck": "<?php echo normalize_whitespace( __('Cook Islands', 'eagle-booking') ) ?>",
|
||||
"cr": "<?php echo normalize_whitespace( __('Costa Rica', 'eagle-booking') ) ?>",
|
||||
"ci": "<?php echo normalize_whitespace( __("Cote D'ivoire", 'eagle-booking') ) ?>",
|
||||
"hr": "<?php echo normalize_whitespace( __('Croatia', 'eagle-booking') ) ?>",
|
||||
"cu": "<?php echo normalize_whitespace( __('Cuba', 'eagle-booking') ) ?>",
|
||||
"cw": "<?php echo normalize_whitespace( __('Curaçao', 'eagle-booking') ) ?>",
|
||||
"cy": "<?php echo normalize_whitespace( __('Cyprus', 'eagle-booking') ) ?>",
|
||||
"cz": "<?php echo normalize_whitespace( __('Czech Republic', 'eagle-booking') ) ?>",
|
||||
"dk": "<?php echo normalize_whitespace( __('Denmark', 'eagle-booking') ) ?>",
|
||||
"dj": "<?php echo normalize_whitespace( __('Djibouti', 'eagle-booking') ) ?>",
|
||||
"dm": "<?php echo normalize_whitespace( __('Dominica', 'eagle-booking') ) ?>",
|
||||
"do": "<?php echo normalize_whitespace( __('Dominican Republic', 'eagle-booking') ) ?>",
|
||||
"ec": "<?php echo normalize_whitespace( __('Ecuador', 'eagle-booking') ) ?>",
|
||||
"eg": "<?php echo normalize_whitespace( __('Egypt', 'eagle-booking') ) ?>",
|
||||
"sv": "<?php echo normalize_whitespace( __('El Salvador', 'eagle-booking') ) ?>",
|
||||
"gq": "<?php echo normalize_whitespace( __('Equatorial Guinea', 'eagle-booking') ) ?>",
|
||||
"er": "<?php echo normalize_whitespace( __('Eritrea', 'eagle-booking') ) ?>",
|
||||
"ee": "<?php echo normalize_whitespace( __('Estonia', 'eagle-booking') ) ?>",
|
||||
"et": "<?php echo normalize_whitespace( __('Ethiopia', 'eagle-booking') ) ?>",
|
||||
"fk": "<?php echo normalize_whitespace( __('Falkland Islands (Malvinas)', 'eagle-booking') ) ?>",
|
||||
"fo": "<?php echo normalize_whitespace( __('Faroe Islands', 'eagle-booking') ) ?>",
|
||||
"fj": "<?php echo normalize_whitespace( __('Fiji', 'eagle-booking') ) ?>",
|
||||
"fi": "<?php echo normalize_whitespace( __('Finland', 'eagle-booking') ) ?>",
|
||||
"fr": "<?php echo normalize_whitespace( __('France', 'eagle-booking') ) ?>",
|
||||
"gf": "<?php echo normalize_whitespace( __('French Guiana', 'eagle-booking') ) ?>",
|
||||
"pf": "<?php echo normalize_whitespace( __('French Polynesia', 'eagle-booking') ) ?>",
|
||||
"ga": "<?php echo normalize_whitespace( __('Gabon', 'eagle-booking') ) ?>",
|
||||
"gm": "<?php echo normalize_whitespace( __('Gambia', 'eagle-booking') ) ?>",
|
||||
"ge": "<?php echo normalize_whitespace( __('Georgia', 'eagle-booking') ) ?>",
|
||||
"de": "<?php echo normalize_whitespace( __('Germany', 'eagle-booking') ) ?>",
|
||||
"gh": "<?php echo normalize_whitespace( __('Ghana', 'eagle-booking') ) ?>",
|
||||
"gi": "<?php echo normalize_whitespace( __('Gibraltar', 'eagle-booking') ) ?>",
|
||||
"gr": "<?php echo normalize_whitespace( __('Greece', 'eagle-booking') ) ?> ",
|
||||
"gl": "<?php echo normalize_whitespace( __('Greenland', 'eagle-booking') ) ?>",
|
||||
"gd": "<?php echo normalize_whitespace( __('Grenada', 'eagle-booking') ) ?>",
|
||||
"gp": "<?php echo normalize_whitespace( __('Guadeloupe', 'eagle-booking') ) ?>",
|
||||
"gu": "<?php echo normalize_whitespace( __('Guam', 'eagle-booking') ) ?>",
|
||||
"gt": "<?php echo normalize_whitespace( __('Guatemala', 'eagle-booking') ) ?>",
|
||||
"gn": "<?php echo normalize_whitespace( __('Guinea', 'eagle-booking') ) ?>",
|
||||
"gw": "<?php echo normalize_whitespace( __('Guinea-bissau', 'eagle-booking') ) ?>",
|
||||
"gy": "<?php echo normalize_whitespace( __('Guyana', 'eagle-booking') ) ?>",
|
||||
"ht": "<?php echo normalize_whitespace( __('Haiti', 'eagle-booking') ) ?>",
|
||||
"hn": "<?php echo normalize_whitespace( __('Honduras', 'eagle-booking') ) ?>",
|
||||
"hk": "<?php echo normalize_whitespace( __('Hong Kong', 'eagle-booking') ) ?>",
|
||||
"hu": "<?php echo normalize_whitespace( __('Hungary', 'eagle-booking') ) ?>",
|
||||
"is": "<?php echo normalize_whitespace( __('Iceland', 'eagle-booking') ) ?>",
|
||||
"in": "<?php echo normalize_whitespace( __('India', 'eagle-booking') ) ?>",
|
||||
"id": "<?php echo normalize_whitespace( __('Indonesia', 'eagle-booking') ) ?>",
|
||||
"ir": "<?php echo normalize_whitespace( __('Iran, Islamic Republic of', 'eagle-booking') ) ?>",
|
||||
"iq": "<?php echo normalize_whitespace( __('Iraq', 'eagle-booking') ) ?>",
|
||||
"ie": "<?php echo normalize_whitespace( __('Ireland', 'eagle-booking') ) ?>",
|
||||
"il": "<?php echo normalize_whitespace( __('Israel', 'eagle-booking') ) ?>",
|
||||
"it": "<?php echo normalize_whitespace( __('Italy', 'eagle-booking') ) ?>",
|
||||
"jm": "<?php echo normalize_whitespace( __('Jamaica', 'eagle-booking') ) ?>",
|
||||
"jp": "<?php echo normalize_whitespace( __('Japan', 'eagle-booking') ) ?>",
|
||||
"jo": "<?php echo normalize_whitespace( __('Jordan', 'eagle-booking') ) ?>",
|
||||
"kz": "<?php echo normalize_whitespace( __('Kazakhstan', 'eagle-booking') ) ?>",
|
||||
"ke": "<?php echo normalize_whitespace( __('Kenya', 'eagle-booking') ) ?>",
|
||||
"ki": "<?php echo normalize_whitespace( __('Kiribati', 'eagle-booking') ) ?>",
|
||||
"kw": "<?php echo normalize_whitespace( __('Kuwait', 'eagle-booking') ) ?>",
|
||||
"kg": "<?php echo normalize_whitespace( __('Kyrgyzstan', 'eagle-booking') ) ?>",
|
||||
"la": "<?php echo normalize_whitespace( __('Kyrgyzstan', 'eagle-booking') ) ?>",
|
||||
"lv": "<?php echo normalize_whitespace( __('Latvia', 'eagle-booking') ) ?>",
|
||||
"lb": "<?php echo normalize_whitespace( __('Lebanon', 'eagle-booking') ) ?>",
|
||||
"ls": "<?php echo normalize_whitespace( __('Lesotho', 'eagle-booking') ) ?>",
|
||||
"lr": "<?php echo normalize_whitespace( __('Liberia', 'eagle-booking') ) ?>",
|
||||
"ly": "<?php echo normalize_whitespace( __('Libyan Arab Jamahiriya', 'eagle-booking') ) ?>",
|
||||
"li": "<?php echo normalize_whitespace( __('Liechtenstein', 'eagle-booking') ) ?>",
|
||||
"lt": "<?php echo normalize_whitespace( __('Lithuania', 'eagle-booking') ) ?>",
|
||||
"lu": "<?php echo normalize_whitespace( __('Luxembourg', 'eagle-booking') ) ?>",
|
||||
"mo": "<?php echo normalize_whitespace( __('Macao', 'eagle-booking') ) ?>",
|
||||
"mk": "<?php echo normalize_whitespace( __('North Macedonia', 'eagle-booking') ) ?>",
|
||||
"mg": "<?php echo normalize_whitespace( __('Madagascar', 'eagle-booking') ) ?>",
|
||||
"mw": "<?php echo normalize_whitespace( __('Malawi', 'eagle-booking') ) ?>",
|
||||
"my": "<?php echo normalize_whitespace( __('Malaysia', 'eagle-booking') ) ?>",
|
||||
"mv": "<?php echo normalize_whitespace( __('Maldives', 'eagle-booking') ) ?>",
|
||||
"ml": "<?php echo normalize_whitespace( __('Mali', 'eagle-booking') ) ?>",
|
||||
"mt": "<?php echo normalize_whitespace( __('Malta', 'eagle-booking') ) ?>",
|
||||
"mh": "<?php echo normalize_whitespace( __('Marshall Islands', 'eagle-booking') ) ?>",
|
||||
"mq": "<?php echo normalize_whitespace( __('Martinique', 'eagle-booking') ) ?>",
|
||||
"mr": "<?php echo normalize_whitespace( __('Mauritania', 'eagle-booking') ) ?>",
|
||||
"mu": "<?php echo normalize_whitespace( __('Mauritius', 'eagle-booking') ) ?>>",
|
||||
"mx": "<?php echo normalize_whitespace( __('Mexico', 'eagle-booking') ) ?>",
|
||||
"fm": "<?php echo normalize_whitespace( __('Micronesia, Federated States of', 'eagle-booking') ) ?>",
|
||||
"md": "<?php echo normalize_whitespace( __('Moldova, Republic of', 'eagle-booking') ) ?>",
|
||||
"mc": "<?php echo normalize_whitespace( __('Monaco', 'eagle-booking') ) ?>",
|
||||
"mn": "<?php echo normalize_whitespace( __('Mongolia', 'eagle-booking') ) ?>",
|
||||
"me": "<?php echo normalize_whitespace( __('Montenegro', 'eagle-booking') ) ?>",
|
||||
"ms": "<?php echo normalize_whitespace( __('Montserrat', 'eagle-booking') ) ?>",
|
||||
"ma": "<?php echo normalize_whitespace( __('Morocco', 'eagle-booking') ) ?>",
|
||||
"mz": "<?php echo normalize_whitespace( __('Mozambique', 'eagle-booking') ) ?>",
|
||||
"mm": "<?php echo normalize_whitespace( __('Myanmar', 'eagle-booking') ) ?>",
|
||||
"na": "<?php echo normalize_whitespace( __('Namibia', 'eagle-booking') ) ?>",
|
||||
"nr": "<?php echo normalize_whitespace( __('Nauru', 'eagle-booking') ) ?>",
|
||||
"np": "<?php echo normalize_whitespace( __('Nepal', 'eagle-booking') ) ?>",
|
||||
"nl": "<?php echo normalize_whitespace( __('Netherlands', 'eagle-booking') ) ?>",
|
||||
"nc": "<?php echo normalize_whitespace( __('New Caledonia', 'eagle-booking') ) ?>",
|
||||
"nz": "<?php echo normalize_whitespace( __('New Zealand', 'eagle-booking') ) ?>",
|
||||
"ni": "<?php echo normalize_whitespace( __('Nicaragua', 'eagle-booking') ) ?>",
|
||||
"ne": "<?php echo normalize_whitespace( __('Niger', 'eagle-booking') ) ?>",
|
||||
"ng": "<?php echo normalize_whitespace( __('Nigeria', 'eagle-booking') ) ?>",
|
||||
"nu": "<?php echo normalize_whitespace( __('Niue', 'eagle-booking') ) ?>",
|
||||
"nf": "<?php echo normalize_whitespace( __('Norfolk Island', 'eagle-booking') ) ?>",
|
||||
"kp": "<?php echo normalize_whitespace( __('North Korea', 'eagle-booking') ) ?>",
|
||||
"mp": "<?php echo normalize_whitespace( __('Northern Mariana Islands', 'eagle-booking') ) ?>",
|
||||
"no": "<?php echo normalize_whitespace( __('Norway', 'eagle-booking') ) ?>",
|
||||
"om": "<?php echo normalize_whitespace( __('Oman', 'eagle-booking') ) ?>",
|
||||
"pk": "<?php echo normalize_whitespace( __('Pakistan', 'eagle-booking') ) ?>",
|
||||
"pw": "<?php echo normalize_whitespace( __('Palau', 'eagle-booking') ) ?>",
|
||||
"ps": "<?php echo normalize_whitespace( __('Palestinian Territory, Occupied', 'eagle-booking') ) ?>",
|
||||
"pa": "<?php echo normalize_whitespace( __('Panama', 'eagle-booking') ) ?>",
|
||||
"pg": "<?php echo normalize_whitespace( __('Papua New Guinea', 'eagle-booking') ) ?>",
|
||||
"py": "<?php echo normalize_whitespace( __('Paraguay', 'eagle-booking') ) ?>",
|
||||
"pe": "<?php echo normalize_whitespace( __('Peru', 'eagle-booking') ) ?>",
|
||||
"ph": "<?php echo normalize_whitespace( __('Philippines', 'eagle-booking') ) ?>",
|
||||
"pl": "<?php echo normalize_whitespace( __('Poland', 'eagle-booking') ) ?>",
|
||||
"pt": "<?php echo normalize_whitespace( __('Portugal', 'eagle-booking') ) ?>",
|
||||
"pr": "<?php echo normalize_whitespace( __('Puerto Rico', 'eagle-booking') ) ?>",
|
||||
"qa": "<?php echo normalize_whitespace( __('Qatar', 'eagle-booking') ) ?>",
|
||||
"re": "<?php echo normalize_whitespace( __('Reunion', 'eagle-booking') ) ?>",
|
||||
"ro": "<?php echo normalize_whitespace( __('Romania', 'eagle-booking') ) ?>",
|
||||
"ru": "<?php echo normalize_whitespace( __('Russian Federation', 'eagle-booking') ) ?>",
|
||||
"rw": "<?php echo normalize_whitespace( __('Rwanda', 'eagle-booking') ) ?>",
|
||||
"bl": "<?php echo normalize_whitespace( __('Saint Barthélemy', 'eagle-booking') ) ?>",
|
||||
"sh": "<?php echo normalize_whitespace( __('Saint Helena', 'eagle-booking') ) ?>",
|
||||
"kn": "<?php echo normalize_whitespace( __('Saint Kitts and Nevis', 'eagle-booking') ) ?>",
|
||||
"lc": "<?php echo normalize_whitespace( __('Saint Lucia', 'eagle-booking') ) ?>",
|
||||
"mf": "<?php echo normalize_whitespace( __('Saint Martin', 'eagle-booking') ) ?>",
|
||||
"pm": "<?php echo normalize_whitespace( __('Saint Pierre and Miquelon', 'eagle-booking') ) ?>",
|
||||
"vc": "<?php echo normalize_whitespace( __('Saint Vincent and the Grenadines', 'eagle-booking') ) ?>",
|
||||
"ws": "<?php echo normalize_whitespace( __('Samoa', 'eagle-booking') ) ?>",
|
||||
"sm": "<?php echo normalize_whitespace( __('San Marino', 'eagle-booking') ) ?>",
|
||||
"st": "<?php echo normalize_whitespace( __('Sao Tome and Principe', 'eagle-booking') ) ?>",
|
||||
"sa": "<?php echo normalize_whitespace( __('Saudi Arabia', 'eagle-booking') ) ?>",
|
||||
"sn": "<?php echo normalize_whitespace( __('Senegal', 'eagle-booking') ) ?>",
|
||||
"rs": "<?php echo normalize_whitespace( __('Serbia', 'eagle-booking') ) ?>",
|
||||
"sc": "<?php echo normalize_whitespace( __('Seychelles', 'eagle-booking') ) ?>",
|
||||
"sl": "<?php echo normalize_whitespace( __('Sierra Leone', 'eagle-booking') ) ?>",
|
||||
"sg": "<?php echo normalize_whitespace( __('Singapore', 'eagle-booking') ) ?>",
|
||||
"sx": "<?php echo normalize_whitespace( __('Sint Maarten', 'eagle-booking') ) ?>",
|
||||
"sk": "<?php echo normalize_whitespace( __('Slovakia', 'eagle-booking') ) ?>",
|
||||
"si": "<?php echo normalize_whitespace( __('Slovenia', 'eagle-booking') ) ?>",
|
||||
"sb": "<?php echo normalize_whitespace( __('Solomon Islands', 'eagle-booking') ) ?>",
|
||||
"so": "<?php echo normalize_whitespace( __('Somalia', 'eagle-booking') ) ?>",
|
||||
"za": "<?php echo normalize_whitespace( __('South Africa', 'eagle-booking') ) ?>",
|
||||
"kr": "<?php echo normalize_whitespace( __('South Korea', 'eagle-booking') ) ?>",
|
||||
"ss": "<?php echo normalize_whitespace( __('Sudan', 'eagle-booking') ) ?>",
|
||||
"es": "<?php echo normalize_whitespace( __('Spain', 'eagle-booking') ) ?>",
|
||||
"lk": "<?php echo normalize_whitespace( __('Sri Lanka', 'eagle-booking') ) ?>",
|
||||
"sd": "<?php echo normalize_whitespace( __('Sudan', 'eagle-booking') ) ?>",
|
||||
"sr": "<?php echo normalize_whitespace( __('Suriname', 'eagle-booking') ) ?>",
|
||||
"sz": "<?php echo normalize_whitespace( __('Swaziland', 'eagle-booking') ) ?>",
|
||||
"se": "<?php echo normalize_whitespace( __('Sweden', 'eagle-booking') ) ?>",
|
||||
"ch": "<?php echo normalize_whitespace( __('Switzerland', 'eagle-booking') ) ?>",
|
||||
"sy": "<?php echo normalize_whitespace( __('Syrian Arab Republic', 'eagle-booking') ) ?>",
|
||||
"tw": "<?php echo normalize_whitespace( __('Taiwan, Province of China','eagle-booking') ) ?>",
|
||||
"tj": "<?php echo normalize_whitespace( __('Tajikistan', 'eagle-booking') ) ?>",
|
||||
"tz": "<?php echo normalize_whitespace( __('Tanzania, United Republic of', 'eagle-booking') ) ?>",
|
||||
"th": "<?php echo normalize_whitespace( __('Thailand', 'eagle-booking') ) ?>",
|
||||
"tl": "<?php echo normalize_whitespace( __('Timor-leste', 'eagle-booking') ) ?>",
|
||||
"tg": "<?php echo normalize_whitespace( __('Togo', 'eagle-booking') ) ?>",
|
||||
"tk": "<?php echo normalize_whitespace( __('Tokelau', 'eagle-booking') ) ?>",
|
||||
"to": "<?php echo normalize_whitespace( __('Tonga', 'eagle-booking') ) ?>",
|
||||
"tt": "<?php echo normalize_whitespace( __('Trinidad and Tobago', 'eagle-booking') ) ?>",
|
||||
"tn": "<?php echo normalize_whitespace( __('Tunisia', 'eagle-booking') ) ?>",
|
||||
"tr": "<?php echo normalize_whitespace( __('Turkey', 'eagle-booking') ) ?>",
|
||||
"tm": "<?php echo normalize_whitespace( __('Turkmenistan', 'eagle-booking') ) ?>",
|
||||
"tc": "<?php echo normalize_whitespace( __('Turks and Caicos Islands', 'eagle-booking') ) ?>",
|
||||
"tv": "<?php echo normalize_whitespace( __('Tuvalu', 'eagle-booking') ) ?>",
|
||||
"vi": "<?php echo normalize_whitespace( __('U.S. Virgin Islands', 'eagle-booking') ) ?>",
|
||||
"ug": "<?php echo normalize_whitespace( __('Uganda', 'eagle-booking') ) ?>",
|
||||
"ua": "<?php echo normalize_whitespace( __('Ukraine', 'eagle-booking') ) ?>",
|
||||
"ae": "<?php echo normalize_whitespace( __('United Arab Emirates', 'eagle-booking') ) ?>",
|
||||
"gb": "<?php echo normalize_whitespace( __('United Kingdom', 'eagle-booking') ) ?>",
|
||||
"us": "<?php echo normalize_whitespace( __('United States', 'eagle-booking') ) ?>",
|
||||
"uy": "<?php echo normalize_whitespace( __('Uruguay', 'eagle-booking') ) ?>",
|
||||
"uz": "<?php echo normalize_whitespace( __('Uzbekistan', 'eagle-booking') ) ?>",
|
||||
"vu": "<?php echo normalize_whitespace( __('Vanuatu', 'eagle-booking') ) ?>",
|
||||
"va": "<?php echo normalize_whitespace( __('Vatican City', 'eagle-booking') ) ?>",
|
||||
"ve": "<?php echo normalize_whitespace( __('Venezuela', 'eagle-booking') ) ?>",
|
||||
"vn": "<?php echo normalize_whitespace( __('Viet Nam', 'eagle-booking') ) ?>",
|
||||
"wf": "<?php echo normalize_whitespace( __('Wallis and Futuna', 'eagle-booking') ) ?>",
|
||||
"ye": "<?php echo normalize_whitespace( __('Yemen', 'eagle-booking') ) ?>",
|
||||
"zm": "<?php echo normalize_whitespace( __('Zambia', 'eagle-booking') ) ?>",
|
||||
"zw": "<?php echo normalize_whitespace( __('Zimbabwe', 'eagle-booking') ) ?>"
|
||||
}
|
||||
|
||||
var input = document.querySelectorAll(".eb_user_phone_field");
|
||||
var i;
|
||||
|
||||
function eb_phone_ip_lookup(callback) {
|
||||
|
||||
// Check if IP Lookup is enabled
|
||||
<?php if ( eb_get_option( 'geo_ip_lookup' ) == true ) : ?>
|
||||
|
||||
$.get("//ipinfo.io?callback=?", function() {}, "jsonp").always(function(resp) {
|
||||
var countryCode = (resp && resp.country) ? resp.country : "";
|
||||
if(callback) callback(countryCode);
|
||||
});
|
||||
|
||||
<?php else: ?>
|
||||
|
||||
return false
|
||||
|
||||
<?php endif ?>
|
||||
|
||||
}
|
||||
|
||||
for (i = 0; i < input.length; i++) {
|
||||
|
||||
window.intlTelInput(input[i], {
|
||||
|
||||
autoHideDialCode: false,
|
||||
autoPlaceholder: "off",
|
||||
formatOnDisplay: false,
|
||||
geoIpLookup: eb_phone_ip_lookup,
|
||||
hiddenInput: "user_phone",
|
||||
initialCountry: "auto",
|
||||
localizedCountries: eb_countries,
|
||||
nationalMode: true,
|
||||
preferredCountries: [],
|
||||
separateDialCode: true,
|
||||
utilsScript: "<?php echo EB_URL ?>/assets/js/utils.js",
|
||||
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
</script>
|
||||
@@ -0,0 +1,81 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* The Template for the step line during the booking process
|
||||
*
|
||||
* This template can be overridden by copying it to yourtheme/eb-templates/elements/stepline.php.
|
||||
*
|
||||
* Author: Eagle Themes
|
||||
* Package: Eagle-Booking/Templates
|
||||
* Version: 1.1.5
|
||||
*/
|
||||
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
if ( get_permalink() == eb_search_page() ) {
|
||||
|
||||
$search_page = 'completed active';
|
||||
$booking_page = 'disabled';
|
||||
$checkout_page = 'disabled';
|
||||
$thankyou_page = 'disabled';
|
||||
|
||||
} elseif ( get_permalink() == eb_booking_page() ) {
|
||||
|
||||
$search_page = 'completed';
|
||||
$booking_page = 'completed active';
|
||||
$checkout_page = 'disabled';
|
||||
$thankyou_page = 'disabled';
|
||||
|
||||
} elseif ( get_permalink() == eb_checkout_page() && $eagle_booking_arrive == 1 ) {
|
||||
|
||||
$search_page = 'completed';
|
||||
$booking_page = 'completed';
|
||||
$checkout_page = 'completed active';
|
||||
$thankyou_page = 'disabled';
|
||||
|
||||
} else {
|
||||
|
||||
$search_page = 'completed';
|
||||
$booking_page = 'completed';
|
||||
$checkout_page = 'completed';
|
||||
$thankyou_page = 'completed active';
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<div class="eb-stepline">
|
||||
<div class="eb-stepline-steps">
|
||||
<div class="eb-stepline-step <?php echo $search_page ?> ">
|
||||
<div class="eb-stepline-progress">
|
||||
<div class="eb-stepline-progress-bar"></div>
|
||||
</div>
|
||||
<div class="eb-stepline-dot"></div>
|
||||
<div class="text-center bs-wizard-stepnum"><?php echo __('Search', 'eagle-booking') ?></div>
|
||||
<div class="bs-wizard-info text-center"><?php echo __('Choose your favorite room', 'eagle-booking') ?></div>
|
||||
</div>
|
||||
<div class="eb-stepline-step <?php echo $booking_page ?>">
|
||||
<div class="eb-stepline-progress">
|
||||
<div class="eb-stepline-progress-bar"></div>
|
||||
</div>
|
||||
<div class="eb-stepline-dot"></div>
|
||||
<div class="text-center bs-wizard-stepnum"><?php echo __('Booking', 'eagle-booking') ?></div>
|
||||
<div class="bs-wizard-info text-center"><?php echo __('Enter your booking details', 'eagle-booking') ?></div>
|
||||
</div>
|
||||
<div class="eb-stepline-step <?php echo $checkout_page ?>">
|
||||
<div class="eb-stepline-progress">
|
||||
<div class="eb-stepline-progress-bar"></div>
|
||||
</div>
|
||||
<div class="eb-stepline-dot"></div>
|
||||
<div class="text-center bs-wizard-stepnum"><?php echo __('Checkout', 'eagle-booking') ?></div>
|
||||
<div class="bs-wizard-info text-center"><?php echo __('Use your preferred payment method', 'eagle-booking') ?></div>
|
||||
</div>
|
||||
<div class="eb-stepline-step <?php echo $thankyou_page ?>">
|
||||
<div class="eb-stepline-progress">
|
||||
<div class="eb-stepline-progress-bar"></div>
|
||||
</div>
|
||||
<div class="eb-stepline-dot"></div>
|
||||
<div class="text-center bs-wizard-stepnum"><?php echo __('Confirmation', 'eagle-booking' ) ?></div>
|
||||
<div class="bs-wizard-info text-center"><?php echo __('Receive a confirmation email', 'eagle-booking') ?></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
300
wp-content/plugins/eagle-booking/templates/email/admin.php
Normal file
300
wp-content/plugins/eagle-booking/templates/email/admin.php
Normal file
@@ -0,0 +1,300 @@
|
||||
<?php
|
||||
/**
|
||||
* The Template for the admin email
|
||||
*
|
||||
* This template can be overridden by copying it to yourtheme/eb-templates/email/admin.php.
|
||||
*
|
||||
* Author: Eagle Themes
|
||||
* Package: Eagle-Booking/Templates
|
||||
* Version: 1.1.9
|
||||
*/
|
||||
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
?>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title><?php echo __('New Reservation','eagle-booking') ?></title>
|
||||
<style type="text/css">
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
min-width: 100% !important;
|
||||
font-size: 15px;
|
||||
}
|
||||
a {
|
||||
color: <?php echo esc_attr($eagle_booking_message_template_link_color) ?>;
|
||||
text-decoration: none;
|
||||
}
|
||||
.content {
|
||||
width: 100%;
|
||||
max-width: 600px;
|
||||
border: 1px solid <?php echo esc_attr($eagle_booking_message_template_border) ?>;
|
||||
}
|
||||
.main {
|
||||
padding: 30px 0;
|
||||
line-height: 20px;
|
||||
font-family: sans-serif;
|
||||
}
|
||||
.main .booking-details td {
|
||||
padding: 5px 0;
|
||||
}
|
||||
.eheader {
|
||||
padding: 20px;
|
||||
}
|
||||
.innerpadding {
|
||||
padding: 30px 30px;
|
||||
}
|
||||
.title {
|
||||
text-align: center;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
.title a {
|
||||
font-size: 30px;
|
||||
line-height: 40px;
|
||||
}
|
||||
.h2 {
|
||||
padding: 0 0 15px 0;
|
||||
font-size: 16px;
|
||||
line-height: 28px;
|
||||
font-weight: bold;
|
||||
}
|
||||
.h3 {
|
||||
font-size: 15px;
|
||||
text-decoration: underline;
|
||||
}
|
||||
.bodycopy {
|
||||
font-size: 15px;
|
||||
line-height: 22px;
|
||||
}
|
||||
.details {
|
||||
font-size: 15px;
|
||||
}
|
||||
.footer {
|
||||
padding: 20px 30px 15px 30px;
|
||||
border-top: 1px solid <?php echo esc_attr($eagle_booking_message_template_footer_border) ?>;
|
||||
}
|
||||
.footercopy {
|
||||
font-size: 15px;
|
||||
color: <?php echo esc_attr($eagle_booking_message_template_footer_color) ?>;
|
||||
}
|
||||
.social a {
|
||||
font-size: 15px;
|
||||
}
|
||||
@media screen and (max-width: 600px) {
|
||||
.main {
|
||||
padding: 0;
|
||||
}
|
||||
.innerpadding {
|
||||
padding: 30px;
|
||||
5px
|
||||
}
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<table width="100%" bgcolor="<?php echo esc_attr($eagle_booking_message_template_bg) ?>" style="color: <?php echo esc_attr($eagle_booking_message_template_color) ?>; padding: 30px 0;" class="main" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td>
|
||||
<table bgcolor="#ffffff" class="content" align="center" cellpadding="0" cellspacing="0" border="0" style="min-width: 600px;">
|
||||
<tr>
|
||||
<td bgcolor="<?php echo esc_attr($eagle_booking_message_template_header_bg) ?>" class="eheader" style="padding: 20px;">
|
||||
<table align="left" border="0" cellpadding="0" cellspacing="0" style="width: 100%;">
|
||||
<tr>
|
||||
<td height="70">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td class="title" style="padding: 5px 0 0 0; text-align: center;">
|
||||
<a style="color: <?php echo esc_attr($eagle_booking_message_template_header_color) ?>; font-size: 30px; line-height: 40px; text-decoration: none;" href="<?php echo esc_url($eagle_booking_hotel_url) ?>"><?php echo $eagle_booking_hotel_logo ?></a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="color: <?php echo esc_attr($eagle_booking_message_template_header_color) ?>">
|
||||
<td style="padding: 0 0 0 3px; text-align: center">
|
||||
<?php echo __('Reservation Details - Admin', 'eagle-booking') ?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="color: <?php echo esc_attr($eagle_booking_message_template_color) ?>">
|
||||
<td class="innerpadding" style="border-bottom: 1px solid <?php echo esc_attr($eagle_booking_message_template_border) ?>; padding: 30px 30px;">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td class="h2" style="color: <?php echo esc_attr($eagle_booking_message_template_color) ?>">
|
||||
<?php echo __('Hello Admin,', 'eagle-booking') ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="bodycopy" style="color: <?php echo esc_attr($eagle_booking_message_template_color) ?>">
|
||||
<p><?php echo __('you just received a new reservation on your site.','eagle-booking') ?></p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="color: <?php echo esc_attr($eagle_booking_message_template_color) ?>">
|
||||
<td class="innerpadding" style="border-bottom: 1px solid <?php echo esc_attr($eagle_booking_message_template_border) ?>; padding: 30px 30px;">
|
||||
<table align="left" border="0" cellpadding="0" cellspacing="0" style="width: 100%;">
|
||||
<tr>
|
||||
<td style="color: <?php echo esc_attr($eagle_booking_message_template_color) ?>" class="h3"><?php echo __('Reservation Details', 'eagle-booking') ?>:</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="innerpadding details">
|
||||
<table class="booking-details" align="left" border="0" cellpadding="0" cellspacing="0" style="width: 100%; color: <?php echo esc_attr($eagle_booking_message_template_color) ?>">
|
||||
<tr>
|
||||
<td><?php echo __('Name','eagle-booking') ?></td>
|
||||
<td><?php echo esc_html($eagle_booking_user_first_name).' '.esc_html($eagle_booking_user_last_name) ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php echo __('Email','eagle-booking') ?></td>
|
||||
<td><?php echo esc_html($eagle_booking_user_email) ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php echo __('Phone','eagle-booking') ?></td>
|
||||
<td><?php echo esc_html($eagle_booking_user_phone) ?></td>
|
||||
</tr>
|
||||
|
||||
<?php if ( eb_get_option('show_price') == true ) : ?>
|
||||
<tr>
|
||||
<td><?php echo __('Total Price','eagle-booking') ?></td>
|
||||
<td><?php echo esc_html($eb_email_total_amount) ?></td>
|
||||
</tr>
|
||||
<?php if ( eb_get_option('eagle_booking_deposit_amount') < 100 ) : ?>
|
||||
<tr>
|
||||
<td><?php echo __('Deposit Amount','eagle-booking') ?></td>
|
||||
<td><?php echo esc_html($eb_email_deposit_amount) ?></td>
|
||||
</tr>
|
||||
<?php endif ?>
|
||||
<?php endif ?>
|
||||
<tr>
|
||||
<td><?php echo __('Room','eagle-booking') ?></td>
|
||||
<td><?php echo esc_html($eagle_booking_title_post) ?></td>
|
||||
</tr>
|
||||
<?php if ( eb_room_branch( $eagle_booking_room_id ) ) : ?>
|
||||
<tr>
|
||||
<td><?php echo __('Branch','eagle-booking') ?></td>
|
||||
<td><?php echo eb_room_branch( $eagle_booking_room_id ) ?></td>
|
||||
</tr>
|
||||
<?php endif ?>
|
||||
<?php if ( $eb_email_additional_services ) : ?>
|
||||
<tr>
|
||||
<td><?php echo __('Additional Services','eagle-booking') ?></td>
|
||||
<td><?php echo $eb_email_additional_services ?></td>
|
||||
</tr>
|
||||
<?php endif ?>
|
||||
<tr>
|
||||
<td><?php echo __('Guests','eagle-booking') ?></td>
|
||||
<td>
|
||||
<?php if ( eb_get_option('eb_adults_children') == true ) : ?>
|
||||
<?php echo esc_html($eagle_booking_adults) .' '.__('Adults', 'eagle-booking')?>,
|
||||
<?php echo esc_html($eagle_booking_children) .' '.__('Children', 'eagle-booking') ?>
|
||||
<?php else : ?>
|
||||
<?php echo esc_html($eagle_booking_guests) ?>
|
||||
<?php endif ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php echo __('Check In','eagle-booking') ?></td>
|
||||
<td><?php echo eagle_booking_displayd_date_format($eagle_booking_checkin) ?><?php eb_checkin_checkout_time('checkin') ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php echo __('Check Out','eagle-booking') ?></td>
|
||||
<td><?php echo eagle_booking_displayd_date_format($eagle_booking_checkout) ?><?php eb_checkin_checkout_time('checkout') ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php echo __('Address','eagle-booking') ?></td>
|
||||
<td><?php echo esc_html($eagle_booking_user_address) ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php echo __('City','eagle-booking') ?></td>
|
||||
<td><?php echo esc_html($eagle_booking_user_city) ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php echo __('Country','eagle-booking') ?></td>
|
||||
<td><?php echo esc_html($eagle_booking_user_country) ?></td>
|
||||
</tr>
|
||||
<?php if ( $eagle_booking_user_message ) : ?>
|
||||
<tr>
|
||||
<td><?php echo __('Message','eagle-booking') ?></td>
|
||||
<td><?php echo esc_html($eagle_booking_user_message) ?></td>
|
||||
</tr>
|
||||
<?php endif ?>
|
||||
<?php if ( $eb_customer_arrival ) : ?>
|
||||
<tr>
|
||||
<td><?php echo __('Arrival','eagle-booking') ?></td>
|
||||
<td><?php echo esc_html($eb_customer_arrival) ?></td>
|
||||
</tr>
|
||||
<?php endif ?>
|
||||
<tr>
|
||||
<td><?php echo __('Payment Method','eagle-booking') ?></td>
|
||||
<td><?php echo esc_html($eagle_booking_checkout_payment_type_text) ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php echo __('Status','eagle-booking')?></td>
|
||||
<td><?php echo esc_html($eb_booking_status) ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php echo __('Transaction ID','eagle-booking') ?></td>
|
||||
<td><?php echo esc_html($eagle_booking_transaction_id) ?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr style="color: <?php echo esc_attr($eagle_booking_message_template_color) ?>">
|
||||
<td class="footer" bgcolor="<?php echo esc_attr($eagle_booking_message_template_footer_bg) ?>" style="padding: 20px 30px 15px 30px;">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td align="center" class="footercopy">
|
||||
© <?php echo date("Y") ?> <a href="<?php echo esc_url($eagle_booking_hotel_url) ?>"><?php echo esc_html($eagle_booking_hotel_name) ?></a> <?php echo __('All Rights Reserved.', 'eagle-booking') ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" class="social" style="padding: 10px 0 0 0;">
|
||||
<table border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<?php
|
||||
if (!empty( $eagle_booking_message_facebook_url) ) : ?>
|
||||
<td width="37" style="text-align: center; padding: 0 10px 0 10px;">
|
||||
<a href="<?php echo esc_url($eagle_booking_message_facebook_url) ?>">
|
||||
<?php echo __('facebook', 'eagle-booking') ?>
|
||||
</a>
|
||||
</td>
|
||||
<?php endif ?>
|
||||
<?php
|
||||
if (!empty( $eagle_booking_message_twitter_url) ) : ?>
|
||||
<td width="37" style="text-align: center; padding: 0 10px 0 10px;">
|
||||
<a href="<?php echo esc_url($eagle_booking_message_twitter_url) ?>">
|
||||
<?php echo __('twitter', 'eagle-booking') ?>
|
||||
</a>
|
||||
</td>
|
||||
<?php endif ?>
|
||||
<?php
|
||||
if (!empty( $eagle_booking_message_instagram_url) ) : ?>
|
||||
<td width="33" style="text-align: center; padding: 0 10px 0 10px;">
|
||||
<a href="<?php echo esc_url($eagle_booking_message_instagram_url) ?>">
|
||||
<?php echo __('instagram', 'eagle-booking') ?>
|
||||
</a>
|
||||
</td>
|
||||
<?php endif ?>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
309
wp-content/plugins/eagle-booking/templates/email/customer.php
Normal file
309
wp-content/plugins/eagle-booking/templates/email/customer.php
Normal file
@@ -0,0 +1,309 @@
|
||||
<?php
|
||||
/**
|
||||
* The Template for the customer email
|
||||
*
|
||||
* This template can be overridden by copying it to yourtheme/eb-templates/email/customer.php.
|
||||
*
|
||||
* Author: Eagle Themes
|
||||
* Package: Eagle-Booking/Templates
|
||||
* Version: 1.1.9
|
||||
*/
|
||||
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
?>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title><?php echo __('Your Reservation','eagle-booking') ?></title>
|
||||
<style type="text/css">
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
min-width: 100% !important;
|
||||
font-size: 15px;
|
||||
}
|
||||
a {
|
||||
color: <?php echo esc_attr($eagle_booking_message_template_link_color) ?>;
|
||||
text-decoration: none;
|
||||
}
|
||||
.content {
|
||||
width: 100%;
|
||||
max-width: 600px;
|
||||
border: 1px solid <?php echo esc_attr($eagle_booking_message_template_border) ?>;
|
||||
}
|
||||
.main {
|
||||
padding: 30px 0;
|
||||
line-height: 20px;
|
||||
font-family: sans-serif;
|
||||
}
|
||||
.main .booking-details td {
|
||||
padding: 5px 0;
|
||||
}
|
||||
.eheader {
|
||||
padding: 20px;
|
||||
}
|
||||
.innerpadding {
|
||||
padding: 30px 30px;
|
||||
}
|
||||
.title {
|
||||
text-align: center;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
.title a {
|
||||
font-size: 30px;
|
||||
line-height: 40px;
|
||||
}
|
||||
.h2 {
|
||||
padding: 0 0 15px 0;
|
||||
font-size: 16px;
|
||||
line-height: 28px;
|
||||
font-weight: bold;
|
||||
}
|
||||
.h3 {
|
||||
font-size: 15px;
|
||||
text-decoration: underline;
|
||||
}
|
||||
.bodycopy {
|
||||
font-size: 15px;
|
||||
line-height: 22px;
|
||||
}
|
||||
.details {
|
||||
font-size: 15px;
|
||||
}
|
||||
.footer {
|
||||
padding: 20px 30px 15px 30px;
|
||||
border-top: 1px solid <?php echo esc_attr($eagle_booking_message_template_footer_border) ?>;
|
||||
}
|
||||
.footercopy {
|
||||
font-size: 15px;
|
||||
color: <?php echo esc_attr($eagle_booking_message_template_footer_color) ?>;
|
||||
}
|
||||
.social a {
|
||||
font-size: 15px;
|
||||
}
|
||||
@media screen and (max-width: 600px) {
|
||||
.main {
|
||||
padding: 0;
|
||||
}
|
||||
.innerpadding {
|
||||
padding: 30px;
|
||||
5px
|
||||
}
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<table width="100%" bgcolor="<?php echo esc_attr($eagle_booking_message_template_bg) ?>" style="color: <?php echo esc_attr($eagle_booking_message_template_color) ?>; padding: 30px 0;" class="main" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td>
|
||||
<table bgcolor="#ffffff" class="content" align="center" cellpadding="0" cellspacing="0" border="0" style="min-width: 600px;">
|
||||
<tr>
|
||||
<td bgcolor="<?php echo esc_attr($eagle_booking_message_template_header_bg) ?>" class="eheader" style="padding: 20px;">
|
||||
<table align="left" border="0" cellpadding="0" cellspacing="0" style="width: 100%;">
|
||||
<tr>
|
||||
<td height="70">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td class="title" style="padding: 5px 0 0 0; text-align: center;">
|
||||
<a style="color: <?php echo esc_attr($eagle_booking_message_template_header_color) ?>; font-size: 30px; line-height: 40px; text-decoration: none;" href="<?php echo esc_url($eagle_booking_hotel_url) ?>"><?php echo $eagle_booking_hotel_logo ?></a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="color: <?php echo esc_attr($eagle_booking_message_template_header_color) ?>">
|
||||
<td style="padding: 0 0 0 3px; text-align: center">
|
||||
<?php echo __('Reservation Details', 'eagle-booking') ?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="color: <?php echo esc_attr($eagle_booking_message_template_color) ?>">
|
||||
<td class="innerpadding" style="border-bottom: 1px solid <?php echo esc_attr($eagle_booking_message_template_border) ?>; padding: 30px 30px;">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td class="h2" style="color: <?php echo esc_attr($eagle_booking_message_template_color) ?>">
|
||||
<?php echo __('Hello', 'eagle-booking').' '.esc_html($eagle_booking_user_first_name) ?>,
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="bodycopy" style="color: <?php echo esc_attr($eagle_booking_message_template_color) ?>">
|
||||
<p><?php echo __('your booking has been submitted successfully.', 'eagle-booking') ?></p>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<?php if ( $eb_email_customer_text ) : ?>
|
||||
<tr>
|
||||
<td class="bodycopy" style="color: <?php echo esc_attr($eagle_booking_message_template_color) ?>">
|
||||
<p><?php echo esc_html( $eb_email_customer_text ) ?></p>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endif ?>
|
||||
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="color: <?php echo esc_attr($eagle_booking_message_template_color) ?>">
|
||||
<td class="innerpadding" style="border-bottom: 1px solid <?php echo esc_attr($eagle_booking_message_template_border) ?>; padding: 30px 30px;">
|
||||
<table align="left" border="0" cellpadding="0" cellspacing="0" style="width: 100%;">
|
||||
<tr>
|
||||
<td style="color: <?php echo esc_attr($eagle_booking_message_template_color) ?>" class="h3"><?php echo __('Reservation Details', 'eagle-booking') ?>:</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="innerpadding details">
|
||||
<table class="booking-details" align="left" border="0" cellpadding="0" cellspacing="0" style="width: 100%; color: <?php echo esc_attr($eagle_booking_message_template_color) ?>">
|
||||
<tr>
|
||||
<td><?php echo __('Name','eagle-booking') ?></td>
|
||||
<td><?php echo esc_html($eagle_booking_user_first_name).' '.esc_html($eagle_booking_user_last_name) ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php echo __('Email','eagle-booking') ?></td>
|
||||
<td><?php echo esc_html($eagle_booking_user_email) ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php echo __('Phone','eagle-booking') ?></td>
|
||||
<td><?php echo esc_html($eagle_booking_user_phone) ?></td>
|
||||
</tr>
|
||||
|
||||
<?php if ( eb_get_option('show_price') == true ) : ?>
|
||||
<tr>
|
||||
<td><?php echo __('Total Price','eagle-booking') ?></td>
|
||||
<td><?php echo esc_html($eb_email_total_amount) ?></td>
|
||||
</tr>
|
||||
<?php if ( eb_get_option('eagle_booking_deposit_amount') < 100 ) : ?>
|
||||
<tr>
|
||||
<td><?php echo __('Deposit Amount','eagle-booking') ?></td>
|
||||
<td><?php echo esc_html($eb_email_deposit_amount) ?></td>
|
||||
</tr>
|
||||
<?php endif ?>
|
||||
<?php endif ?>
|
||||
<tr>
|
||||
<td><?php echo __('Room','eagle-booking') ?></td>
|
||||
<td><?php echo esc_html($eagle_booking_title_post) ?></td>
|
||||
</tr>
|
||||
<?php if ( eb_room_branch( $eagle_booking_room_id ) ) : ?>
|
||||
<tr>
|
||||
<td><?php echo __('Branch','eagle-booking') ?></td>
|
||||
<td><?php echo eb_room_branch( $eagle_booking_room_id ) ?></td>
|
||||
</tr>
|
||||
<?php endif ?>
|
||||
<?php if ( $eb_email_additional_services ) : ?>
|
||||
<tr>
|
||||
<td><?php echo __('Additional Services','eagle-booking') ?></td>
|
||||
<td><?php echo $eb_email_additional_services ?></td>
|
||||
</tr>
|
||||
<?php endif ?>
|
||||
<tr>
|
||||
<td><?php echo __('Guests','eagle-booking') ?></td>
|
||||
<td>
|
||||
<?php if ( eb_get_option('eb_adults_children') == true ) : ?>
|
||||
<?php echo esc_html($eagle_booking_adults) .' '.__('Adults', 'eagle-booking')?>,
|
||||
<?php echo esc_html($eagle_booking_children) .' '.__('Children', 'eagle-booking') ?>
|
||||
<?php else : ?>
|
||||
<?php echo esc_html($eagle_booking_guests) ?>
|
||||
<?php endif ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php echo __('Check In','eagle-booking') ?></td>
|
||||
<td><?php echo eagle_booking_displayd_date_format($eagle_booking_checkin) ?><?php eb_checkin_checkout_time('checkin') ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php echo __('Check Out','eagle-booking') ?></td>
|
||||
<td><?php echo eagle_booking_displayd_date_format($eagle_booking_checkout) ?><?php eb_checkin_checkout_time('checkout') ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php echo __('Address','eagle-booking') ?></td>
|
||||
<td><?php echo esc_html($eagle_booking_user_address) ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php echo __('City','eagle-booking') ?></td>
|
||||
<td><?php echo esc_html($eagle_booking_user_city) ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php echo __('Country','eagle-booking') ?></td>
|
||||
<td><?php echo esc_html($eagle_booking_user_country) ?></td>
|
||||
</tr>
|
||||
<?php if ( $eagle_booking_user_message ) : ?>
|
||||
<tr>
|
||||
<td><?php echo __('Message','eagle-booking') ?></td>
|
||||
<td><?php echo esc_html($eagle_booking_user_message) ?></td>
|
||||
</tr>
|
||||
<?php endif ?>
|
||||
<?php if ( $eb_customer_arrival ) : ?>
|
||||
<tr>
|
||||
<td><?php echo __('Arrival','eagle-booking') ?></td>
|
||||
<td><?php echo esc_html($eb_customer_arrival) ?></td>
|
||||
</tr>
|
||||
<?php endif ?>
|
||||
<tr>
|
||||
<td><?php echo __('Payment Method','eagle-booking') ?></td>
|
||||
<td><?php echo esc_html($eagle_booking_checkout_payment_type_text) ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php echo __('Status','eagle-booking')?></td>
|
||||
<td><?php echo esc_html($eb_booking_status) ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php echo __('Transaction ID','eagle-booking') ?></td>
|
||||
<td><?php echo esc_html($eagle_booking_transaction_id) ?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr style="color: <?php echo esc_attr($eagle_booking_message_template_color) ?>">
|
||||
<td class="footer" bgcolor="<?php echo esc_attr($eagle_booking_message_template_footer_bg) ?>" style="padding: 20px 30px 15px 30px;">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td align="center" class="footercopy">
|
||||
© <?php echo date("Y") ?> <a href="<?php echo esc_url($eagle_booking_hotel_url) ?>"><?php echo esc_html($eagle_booking_hotel_name) ?></a> <?php echo __('All Rights Reserved.', 'eagle-booking') ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" class="social" style="padding: 10px 0 0 0;">
|
||||
<table border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<?php
|
||||
if (!empty( $eagle_booking_message_facebook_url) ) : ?>
|
||||
<td width="37" style="text-align: center; padding: 0 10px 0 10px;">
|
||||
<a href="<?php echo esc_url($eagle_booking_message_facebook_url) ?>">
|
||||
<?php echo __('facebook', 'eagle-booking') ?>
|
||||
</a>
|
||||
</td>
|
||||
<?php endif ?>
|
||||
<?php
|
||||
if (!empty( $eagle_booking_message_twitter_url) ) : ?>
|
||||
<td width="37" style="text-align: center; padding: 0 10px 0 10px;">
|
||||
<a href="<?php echo esc_url($eagle_booking_message_twitter_url) ?>">
|
||||
<?php echo __('twitter', 'eagle-booking') ?>
|
||||
</a>
|
||||
</td>
|
||||
<?php endif ?>
|
||||
<?php
|
||||
if (!empty( $eagle_booking_message_instagram_url) ) : ?>
|
||||
<td width="33" style="text-align: center; padding: 0 10px 0 10px;">
|
||||
<a href="<?php echo esc_url($eagle_booking_message_instagram_url) ?>">
|
||||
<?php echo __('instagram', 'eagle-booking') ?>
|
||||
</a>
|
||||
</td>
|
||||
<?php endif ?>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
40
wp-content/plugins/eagle-booking/templates/room-grid.php
Normal file
40
wp-content/plugins/eagle-booking/templates/room-grid.php
Normal file
@@ -0,0 +1,40 @@
|
||||
<?php
|
||||
/**
|
||||
* The Template for displaying rooms in grid view
|
||||
*
|
||||
* This template can be overridden by copying it to yourtheme/eb-templates/room-grid.php.
|
||||
*
|
||||
* Author: Eagle Themes
|
||||
* Package: Eagle-Booking/Templates
|
||||
* Version: 1.1.6
|
||||
*/
|
||||
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
?>
|
||||
|
||||
<div class="room-item <?php echo esc_attr( $eb_room_item_class ) ?>">
|
||||
|
||||
<figure class="room-image gradient-overlay overlay-opacity-02 slide-right-hover">
|
||||
<?php eb_room_price( get_the_ID(), ' / '.__('night', 'eagle-booking') ) ?>
|
||||
<a href="<?php echo esc_url( $eb_room_url ) ?>">
|
||||
<img src="<?php echo esc_url( $eb_room_img_url ) ?>" alt="<?php echo esc_html( $eb_room_title ) ?>">
|
||||
</a>
|
||||
</figure>
|
||||
|
||||
<div class="room-details">
|
||||
|
||||
<h3 class="room-title">
|
||||
<a href="<?php echo esc_url( $eb_room_url ) ?>"><?php echo esc_html( $eb_room_title ) ?></a>
|
||||
</h3>
|
||||
|
||||
<?php
|
||||
/**
|
||||
* Include room services
|
||||
*/
|
||||
include eb_load_template('room-services.php');
|
||||
?>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
72
wp-content/plugins/eagle-booking/templates/room-info.php
Normal file
72
wp-content/plugins/eagle-booking/templates/room-info.php
Normal file
@@ -0,0 +1,72 @@
|
||||
<?php
|
||||
/**
|
||||
* The Template for displaying room info
|
||||
*
|
||||
* This template can be overridden by copying it to yourtheme/eb-templates/single-room/info.php.
|
||||
*
|
||||
* Author: Eagle Themes
|
||||
* Package: Eagle-Booking/Templates
|
||||
* Version: 1.1.
|
||||
*/
|
||||
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
|
||||
$eb_mtb_room_max_guests = get_post_meta(get_the_ID(), 'eagle_booking_mtb_room_maxguests', true);
|
||||
$eb_mtb_room_max_adults = get_post_meta(get_the_ID(), 'eagle_booking_mtb_room_max_adults', true);
|
||||
$eb_mtb_room_max_children = get_post_meta(get_the_ID(), 'eagle_booking_mtb_room_max_children', true);
|
||||
|
||||
$eb_mtb_room_min_booking_nights = get_post_meta(get_the_ID(), 'eagle_booking_mtb_room_min_booking_nights', true);
|
||||
$eb_mtb_room_max_booking_nights = get_post_meta(get_the_ID(), 'eagle_booking_mtb_room_max_booking_nights', true);
|
||||
|
||||
if( empty( $eb_mtb_room_min_booking_nights ) ) $eb_mtb_room_min_booking_nights = 1;
|
||||
|
||||
$eb_mtb_room_size = get_post_meta(get_the_ID(), 'eagle_booking_mtb_room_size', true);
|
||||
$eb_mtb_room_bed_type = get_post_meta(get_the_ID(), 'eagle_booking_mtb_room_bed_type', true);
|
||||
|
||||
|
||||
?>
|
||||
|
||||
<div class="room-info">
|
||||
|
||||
<div class="item">
|
||||
<i class="flaticon-child"></i>
|
||||
<div class="room-info-content">
|
||||
<div>
|
||||
<?php
|
||||
if (eb_get_option('eb_adults_children') == true) {
|
||||
|
||||
echo __($eb_mtb_room_max_adults).' '.__('Adults', 'eagle-booking').' / ' .__($eb_mtb_room_max_children).' '.__('Children', 'eagle-booking');
|
||||
|
||||
} else {
|
||||
|
||||
echo __($eb_mtb_room_max_guests).' '.__('Guests', 'eagle-booking');
|
||||
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="item">
|
||||
<i class="flaticon-bed"></i>
|
||||
<div class="room-info-content">
|
||||
<div>
|
||||
<?php echo esc_html( $eb_mtb_room_bed_type ) ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="item">
|
||||
<i class="flaticon-map"></i>
|
||||
<div class="room-info-content">
|
||||
<div>
|
||||
<?php echo esc_html( $eb_mtb_room_size ) ?> <?php echo eb_get_option('eagle_booking_units_of_measure') ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
48
wp-content/plugins/eagle-booking/templates/room-list.php
Normal file
48
wp-content/plugins/eagle-booking/templates/room-list.php
Normal file
@@ -0,0 +1,48 @@
|
||||
<?php
|
||||
/**
|
||||
* The Template for displaying rooms in list view
|
||||
*
|
||||
* This template can be overridden by copying it to yourtheme/eb-templates/room-list.php.
|
||||
*
|
||||
* Author: Eagle Themes
|
||||
* Package: Eagle-Booking/Templates
|
||||
* Version: 1.1.6
|
||||
*/
|
||||
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
?>
|
||||
|
||||
<div id="eb-archive-room-<?php echo $eb_room_id ?>" class="room-list-item room-list-item-archive sidebar-none">
|
||||
|
||||
<div class="eb-room-thumbnail">
|
||||
<?php if ( has_post_thumbnail() ) : ?>
|
||||
<figure class="gradient-overlay overlay-opacity-02 slide-right-hover">
|
||||
<a href="<?php echo esc_url($eb_room_url) ?>">
|
||||
<img alt="<?php echo esc_html($eb_room_title) ?>" src="<?php echo eagle_booking_get_room_img_url(get_the_ID(), 'eagle_booking_image_size_720_470') ?>">
|
||||
</a>
|
||||
</figure>
|
||||
<?php endif ?>
|
||||
</div>
|
||||
|
||||
<div class="room-details">
|
||||
<h3 class="title">
|
||||
<a href="<?php echo esc_url($eb_room_url) ?>"><?php echo $eb_room_title ?></a>
|
||||
</h3>
|
||||
<p style="margin-top: 20px;"><?php echo $eb_room_description ?></p>
|
||||
|
||||
<?php
|
||||
/**
|
||||
* Include room services
|
||||
*/
|
||||
include eb_load_template('room-services.php');
|
||||
?>
|
||||
|
||||
</div>
|
||||
|
||||
<div style="padding: 62px 30px; text-align: center">
|
||||
<?php eb_room_price( get_the_ID(), __('per night', 'eagle-booking') ) ?>
|
||||
<a href="<?php echo esc_url ( $eb_room_url ) ?>" class="btn eb-btn"><?php echo esc_html__('More Details', 'eagle-booking') ?> <i class="fa fa fa-chevron-right"></i></a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
46
wp-content/plugins/eagle-booking/templates/room-services.php
Normal file
46
wp-content/plugins/eagle-booking/templates/room-services.php
Normal file
@@ -0,0 +1,46 @@
|
||||
<?php
|
||||
|
||||
$eb_services_array = get_post_meta( $eb_room_id, 'eagle_booking_mtb_room_services', true ) ;
|
||||
|
||||
if($eb_services_array) : ?>
|
||||
|
||||
<div class="room-services">
|
||||
<div class="dragscroll">
|
||||
|
||||
<?php
|
||||
|
||||
$eb_services_counter = count($eb_services_array);
|
||||
|
||||
for ($eb_services_array_i = 0; $eb_services_array_i < $eb_services_counter; $eb_services_array_i++) :
|
||||
|
||||
$eb_page_by_path = get_post($eb_services_array[$eb_services_array_i],OBJECT,'eagle_services');
|
||||
$eb_service_id = $eb_page_by_path->ID;
|
||||
$eb_service_name = get_the_title($eb_service_id);
|
||||
|
||||
// FONT ICON & CUSTOM IMAGE
|
||||
$eb_service_icon_type = get_post_meta( $eb_service_id, 'eagle_booking_mtb_service_icon_type', true );
|
||||
if ($eb_service_icon_type == 'fontawesome') {
|
||||
$eb_service_icon = get_post_meta( $eb_service_id, 'eagle_booking_mtb_service_icon_fontawesome', true );
|
||||
} else {
|
||||
$eb_service_icon = get_post_meta( $eb_service_id, 'eagle_booking_mtb_service_icon', true );
|
||||
}
|
||||
|
||||
$eb_mtb_service_image = get_post_meta( $eb_service_id, 'eagle_booking_mtb_service_image', true );
|
||||
$eb_mtb_service_image_class_original = str_replace(' ', '-', $eb_service_name);
|
||||
$eb_mtb_service_image_class = strtolower($eb_mtb_service_image_class_original);
|
||||
$eb_service_description = get_post_meta( $eb_service_id, 'eagle_booking_mtb_service_description', true );
|
||||
?>
|
||||
<div class="room-service-item" data-toggle="popover" data-placement="top" data-trigger="hover" data-content="<?php echo $eb_service_description ?>" data-original-title="<?php echo $eb_service_name ?>">
|
||||
<?php if ($eb_service_icon_type == 'customicon') : ?>
|
||||
<img src="<?php echo esc_url($eb_mtb_service_image) ?>" class="<?php echo esc_attr($eb_mtb_service_image_class) ?>" loading="lazy">
|
||||
<?php else : ?>
|
||||
<i class="<?php echo $eb_service_icon ?>"></i>
|
||||
<?php endif ?>
|
||||
</div>
|
||||
|
||||
<?php endfor ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php endif ?>
|
||||
@@ -0,0 +1,72 @@
|
||||
<?php
|
||||
/**
|
||||
* The Template for displaying filters
|
||||
*
|
||||
* This template can be overridden by copying it to yourtheme/eb-templates/search/filters.php.
|
||||
*
|
||||
* Author: Eagle Themes
|
||||
* Package: Eagle-Booking/Templates
|
||||
* Version: 1.1.6
|
||||
*/
|
||||
|
||||
defined('ABSPATH') || exit;
|
||||
?>
|
||||
|
||||
<div class="search-filters <?php if ( eb_get_option('eb_search_page_sticky_sidebar') == true ) echo 'sticky-sidebar'; ?>">
|
||||
|
||||
<div class="eb-widget eb-search-form">
|
||||
<h2 class="title"><?php echo __('Booking Details','eagle-booking') ?></h2>
|
||||
<div class="inner">
|
||||
<form id="search_form" class="booking-search-form">
|
||||
|
||||
<?php
|
||||
/**
|
||||
* Include Dates Picker
|
||||
*/
|
||||
include eb_load_template('elements/dates-picker.php');
|
||||
?>
|
||||
|
||||
|
||||
<?php
|
||||
/**
|
||||
* Include Guests Picker
|
||||
*/
|
||||
include eb_load_template('elements/guests-picker.php');
|
||||
?>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Include Sortable Filters
|
||||
*/
|
||||
$eb_search_filters = eb_get_option('eagle_booking_search_page_settings');
|
||||
|
||||
if ( $eb_search_filters ) { foreach ($eb_search_filters as $eb_search_filter=>$value) {
|
||||
|
||||
switch($eb_search_filter) {
|
||||
|
||||
case 'price_range_filter': if ($value == 1) include eb_load_template('search/filters/price.php');
|
||||
break;
|
||||
|
||||
case 'services_filter': if ($value == 1) include eb_load_template('search/filters/services.php');
|
||||
break;
|
||||
|
||||
case 'additional_services_filter': if ($value == 1) include eb_load_template('search/filters/additional-services.php');
|
||||
break;
|
||||
|
||||
case 'branches': if ($value == 1) include eb_load_template('search/filters/branches.php');
|
||||
break;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
</div>
|
||||
@@ -0,0 +1,28 @@
|
||||
<div class="eb-widget eb-additional-services scroll">
|
||||
<h2 class="title"><?php echo __('Additional Services','eagle-booking') ?></h2>
|
||||
<div class="inner">
|
||||
<?php
|
||||
// ADDITIONAL SERVICES QRY
|
||||
$eagle_booking_additional_services_args = array(
|
||||
'posts_per_page' => -1,
|
||||
'post_type'=> 'eagle_services',
|
||||
'meta_query' => array(
|
||||
array(
|
||||
'key' => 'eagle_booking_mtb_service_type',
|
||||
'value' => 'additional',
|
||||
'compare' => '=',
|
||||
)
|
||||
)
|
||||
);
|
||||
$eagle_booking_additional_services_query = new WP_Query( $eagle_booking_additional_services_args );
|
||||
?>
|
||||
<?php while ( $eagle_booking_additional_services_query->have_posts() ) : $eagle_booking_additional_services_query->the_post(); ?>
|
||||
<div class="service">
|
||||
<input id="<?php echo get_the_ID() ?>" class="eb_checkbox_additional_service" type="checkbox" value="<?php echo get_the_ID() ?>,">
|
||||
<label for="<?php echo get_the_ID() ?>" ><?php echo get_the_title() ?></label>
|
||||
</div>
|
||||
<?php endwhile; wp_reset_postdata(); ?>
|
||||
<input type="hidden" id="eb_additional_services" value="">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,56 @@
|
||||
<div class="eb-widget eb-branches">
|
||||
|
||||
<h2 class="title"><?php echo __('Branch','eagle-booking') ?> </h2>
|
||||
<div class="inner">
|
||||
|
||||
<?php
|
||||
|
||||
$args = array(
|
||||
'taxonomy' => 'eagle_branch',
|
||||
'hide_empty' => true,
|
||||
);
|
||||
|
||||
$branch_query = new WP_Term_Query($args);
|
||||
|
||||
if (!empty($branch_query->terms)) {
|
||||
|
||||
foreach ($branch_query->terms as $eb_branch) {
|
||||
|
||||
$eb_branch_id = $eb_branch->term_id;
|
||||
$eb_branch_name = get_term_field( 'name', $eb_branch );
|
||||
$eb_branch_logo = get_term_meta( $eb_branch_id, 'eb_branch_logo', true );
|
||||
$eb_branch_url = get_term_link($eb_branch_id);
|
||||
|
||||
if ( $eb_branch_id == $eb_selected_branch ) {
|
||||
|
||||
echo '<div class="eb-branch-filter selected">';
|
||||
echo '<input type="checkbox" class="eb-branch-checkbox" value="'.$eb_branch_id.'" checked>';
|
||||
|
||||
} else {
|
||||
|
||||
echo '<div class="eb-branch-filter">';
|
||||
echo '<input type="checkbox" class="eb-branch-checkbox" value="'.$eb_branch_id.'">';
|
||||
}
|
||||
|
||||
|
||||
if ( $eb_branch_logo ) {
|
||||
|
||||
echo '<img src="'.$eb_branch_logo.'" alt="'.esc_html($eb_branch_name).'">';
|
||||
|
||||
} else {
|
||||
|
||||
echo esc_html($eb_branch_name);
|
||||
}
|
||||
|
||||
echo '<a href="'.esc_url($eb_branch_url).'" target="_blank" class="eb-branch-filter-link"><i class="far fa-question-circle"></i></a>';
|
||||
|
||||
echo '</div>';
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
<input type="hidden" id="eb_branch" value="<?php echo $eb_selected_branch ?>">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,8 @@
|
||||
<div class="eb-widget eb-price-range">
|
||||
<h2 class="title"><?php echo __('Price','eagle-booking') ?> </h2>
|
||||
<div class="inner">
|
||||
<input type="hidden" id="eagle_booking_slider_range" class="js-range-slider">
|
||||
<input type="hidden" id="eagle_booking_min_price" name="eagle_booking_min_price" value="<?php echo eb_get_option('eb_price_range_min') ?>">
|
||||
<input type="hidden" id="eagle_booking_max_price" name="eagle_booking_max_price" value="<?php echo eb_get_option('eb_price_range_max') ?>">
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,27 @@
|
||||
<div class="eb-widget eb-services scroll">
|
||||
<h2 class="title"><?php echo __('Included Services','eagle-booking') ?> </h2>
|
||||
<div class="inner">
|
||||
<?php
|
||||
// SERVICES QRY
|
||||
$eagle_booking_services_args = array(
|
||||
'posts_per_page' => -1,
|
||||
'post_type'=> 'eagle_services',
|
||||
'meta_query' => array(
|
||||
array(
|
||||
'key' => 'eagle_booking_mtb_service_type',
|
||||
'value' => 'normal',
|
||||
'compare' => '=',
|
||||
)
|
||||
)
|
||||
);
|
||||
$eagle_booking_services_query = new WP_Query( $eagle_booking_services_args );
|
||||
?>
|
||||
<?php while ( $eagle_booking_services_query->have_posts() ) : $eagle_booking_services_query->the_post(); ?>
|
||||
<div class="service">
|
||||
<input type="checkbox" id="<?php echo get_the_ID() ?>" class="eb_normal_service" value="<?php echo get_the_ID() ?>,">
|
||||
<label for="<?php echo get_the_ID() ?>"> <?php echo get_the_title() ?></label>
|
||||
</div>
|
||||
<?php endwhile; wp_reset_postdata(); ?>
|
||||
<input type="hidden" id="eb_normal_services" value="">
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
/**
|
||||
* The Template for displaying pagination
|
||||
*
|
||||
* This template can be overridden by copying it to yourtheme/eb-templates/search/pagination.php.
|
||||
*
|
||||
* Author: Eagle Themes
|
||||
* Package: Eagle-Booking/Templates
|
||||
* Version: 1.1.5
|
||||
*/
|
||||
|
||||
defined('ABSPATH') || exit;
|
||||
?>
|
||||
|
||||
<?php if ( $eagle_booking_results_qnt > $eagle_booking_rooms_per_page ) : ?>
|
||||
<div class="eb-pagination">
|
||||
|
||||
<?php for ($eagle_booking_i_pagination = 1; $eagle_booking_i_pagination <= $eagle_booking_qnt_pagination; $eagle_booking_i_pagination++) : ?>
|
||||
|
||||
<?php if ( $eagle_booking_i_pagination == $eagle_booking_paged ){ $eagle_booking_class_pagination_active = 'current'; } else { $eagle_booking_class_pagination_active = ''; } ?>
|
||||
|
||||
<a class="pagination-button <?php echo $eagle_booking_class_pagination_active ?>" data-pagination="<?php echo $eagle_booking_i_pagination ?>">
|
||||
<?php echo $eagle_booking_i_pagination ?>
|
||||
</a>
|
||||
|
||||
<?php endfor ?>
|
||||
|
||||
</div>
|
||||
|
||||
<?php endif ?>
|
||||
81
wp-content/plugins/eagle-booking/templates/search/room.php
Normal file
81
wp-content/plugins/eagle-booking/templates/search/room.php
Normal file
@@ -0,0 +1,81 @@
|
||||
<?php
|
||||
/**
|
||||
* The Template for displaying room
|
||||
*
|
||||
* This template can be overridden by copying it to yourtheme/eb-templates/search/room.php.
|
||||
*
|
||||
* Author: Eagle Themes
|
||||
* Package: Eagle-Booking/Templates
|
||||
* Version: 1.1.7
|
||||
*/
|
||||
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
// Defaults
|
||||
$eb_room_title = get_the_title();
|
||||
$eb_room_id = get_the_ID();
|
||||
$eb_room_url = get_permalink( $eb_room_id );
|
||||
|
||||
// Metabaxes
|
||||
$eb_room_description = get_post_meta( $eb_room_id, 'eagle_booking_mtb_room_description', true );
|
||||
$eb_room_featured = get_post_meta( $eb_room_id, 'eagle_booking_mtb_room_featured', true );
|
||||
$eb_min_booking_nights = get_post_meta( $eb_room_id, 'eagle_booking_mtb_room_min_booking_nights', true );
|
||||
$eb_max_booking_nights = get_post_meta( $eb_room_id, 'eagle_booking_mtb_room_max_booking_nights', true );
|
||||
|
||||
if ( empty($eb_min_booking_nights) ) $eb_min_booking_nights = 1;
|
||||
if ( empty($eb_max_booking_nights) ) $eb_max_booking_nights = 1000;
|
||||
|
||||
?>
|
||||
|
||||
<div id="eb-search-room-<?php echo esc_attr($eb_room_id) ?>" class="room-list-item">
|
||||
<div class="room-list-item-grid">
|
||||
<figure>
|
||||
<a href="<?php echo esc_url($eb_room_url) ?>">
|
||||
|
||||
<?php if ($eb_room_featured == true) : ?>
|
||||
<span class="featured-room"><i class="fa fa-star"></i><?php echo __('Featured', 'eagle-booking') ?></span>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if ( has_post_thumbnail() ) : ?>
|
||||
<img src="<?php echo eagle_booking_get_room_img_url($eb_room_id, 'eagle_booking_image_size_720_470') ?>" alt="<?php echo esc_html($eb_room_title) ?>" loading="lazy">
|
||||
<?php else : ?>
|
||||
<div class="room-no-image"><?php echo __('No image available', 'eagle-booking' ) ?></div>
|
||||
<?php endif ?>
|
||||
|
||||
</a>
|
||||
</figure>
|
||||
|
||||
<div class="room-details">
|
||||
<h2 class="title">
|
||||
<a href="<?php echo get_permalink($eb_room_id) ?>"><?php echo esc_html($eb_room_title) ?></a>
|
||||
</h2>
|
||||
<p><?php echo esc_html($eb_room_description) ?></p>
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Include Services
|
||||
*/
|
||||
if ( eb_get_option('eb_search_services') == true ) {
|
||||
include eb_load_template('search/room/services.php');
|
||||
}
|
||||
|
||||
?>
|
||||
</div>
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Include Price
|
||||
*/
|
||||
include eb_load_template('search/room/price.php')
|
||||
|
||||
?>
|
||||
</div>
|
||||
<?php
|
||||
/**
|
||||
* Include Quick Details
|
||||
*/
|
||||
if ( eb_get_option('eb_search_quick_details') == true ) {
|
||||
include eb_load_template('search/room/quick-details.php');
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
209
wp-content/plugins/eagle-booking/templates/search/room/price.php
Normal file
209
wp-content/plugins/eagle-booking/templates/search/room/price.php
Normal file
@@ -0,0 +1,209 @@
|
||||
<?php
|
||||
/**
|
||||
* The Template for displaying room price
|
||||
*
|
||||
* This template can be overridden by copying it to yourtheme/eb-templates/search/price.php.
|
||||
*
|
||||
* Author: Eagle Themes
|
||||
* Package: Eagle-Booking/Templates
|
||||
* Version: 1.1.8
|
||||
|
||||
*/
|
||||
|
||||
defined('ABSPATH') || exit;
|
||||
?>
|
||||
|
||||
<div class="room-price-details">
|
||||
<div class="room-price-search">
|
||||
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Room Price
|
||||
*/
|
||||
eb_room_price( $eb_room_id, __('per night', 'eagle-booking') );
|
||||
|
||||
/**
|
||||
* Room ID based on used multi-language plugin (WPML or Polylang)
|
||||
*/
|
||||
if ( function_exists('wpml_loaded') ) {
|
||||
|
||||
$eb_room_id_availability = apply_filters('wpml_object_id', $eb_room_id, 'eagle_rooms', true, apply_filters('wpml_default_language', NULL ));
|
||||
|
||||
} elseif ( function_exists('pll_the_languages') ) {
|
||||
|
||||
$eb_room_id_availability = pll_get_post( $eb_room_id, pll_default_language() );
|
||||
|
||||
} else {
|
||||
|
||||
$eb_room_id_availability = get_the_ID() ;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Room Availability
|
||||
*/
|
||||
if ( eb_room_is_available_block( $eb_room_id_availability, $eagle_booking_checkin, $eagle_booking_checkout ) && eagle_booking_is_qnt_available( eb_room_availability( $eb_room_id_availability, $eagle_booking_checkin, $eagle_booking_checkout ), $eagle_booking_checkin, $eagle_booking_checkout, $eb_room_id ) == 1 ) {
|
||||
|
||||
$eb_booking_nights = eb_total_booking_nights($eagle_booking_checkin, $eagle_booking_checkout);
|
||||
|
||||
// Room is Available
|
||||
if ( $eb_booking_nights >= $eb_min_booking_nights && $eb_booking_nights <= $eb_max_booking_nights ) {
|
||||
|
||||
$eb_trip_price = 0;
|
||||
$eagle_booking_index = 1;
|
||||
$eagle_booking_date_cicle = $eagle_booking_checkin;
|
||||
|
||||
while ($eagle_booking_index <= eb_total_booking_nights($eagle_booking_checkin, $eagle_booking_checkout)) :
|
||||
|
||||
// Price Type
|
||||
$eb_room_price_type = get_post_meta($eb_room_id, 'eagle_booking_mtb_room_price_type', true);
|
||||
|
||||
// Charge based on room price x booking nights x guests number
|
||||
if ($eb_room_price_type === 'room_price_nights_guests') {
|
||||
|
||||
// Adults & children option is enabled
|
||||
if ( eb_get_option('eb_adults_children') == true ) {
|
||||
|
||||
// Calculate the total price
|
||||
$eb_trip_price = $eb_trip_price + eb_room_total_price($eb_room_id, $eagle_booking_date_cicle) * ($eagle_booking_adults + $eagle_booking_children);
|
||||
|
||||
} else {
|
||||
|
||||
// Calculate the total price
|
||||
$eb_trip_price = $eb_trip_price + eb_room_total_price($eb_room_id, $eagle_booking_date_cicle) * $eagle_booking_guests;
|
||||
}
|
||||
|
||||
// Charge bades on guests or adults & children price
|
||||
} elseif ($eb_room_price_type === 'room_price_nights_guests_custom') {
|
||||
|
||||
// Adults & children option is enabled
|
||||
if ( eb_get_option('eb_adults_children') == true ) {
|
||||
|
||||
$eb_adults_price = get_post_meta($eb_room_id, 'eagle_booking_mtb_room_adult_price', true) ?: 0;
|
||||
$eb_adults_price_start = get_post_meta($eb_room_id, 'eagle_booking_mtb_room_adults_price_start', true) ?: 0;
|
||||
$eb_children_price = get_post_meta($eb_room_id, 'eagle_booking_mtb_room_children_price', true) ?: 0;
|
||||
$eb_children_price_start = get_post_meta($eb_room_id, 'eagle_booking_mtb_room_children_price_start', true) ?: 0;
|
||||
|
||||
// Adults total custom price
|
||||
if ($eagle_booking_adults < $eb_adults_price_start) {
|
||||
$eb_adults_price_total = 0;
|
||||
} else {
|
||||
$eb_adults_price_total = $eb_adults_price * ($eagle_booking_adults - $eb_adults_price_start);
|
||||
}
|
||||
|
||||
// Children total custom price
|
||||
if ($eagle_booking_children < $eb_children_price_start) {
|
||||
$eb_children_price_total = 0;
|
||||
} else {
|
||||
$eb_children_price_total = $eb_children_price * ($eagle_booking_children - $eb_children_price_start);
|
||||
}
|
||||
|
||||
// Calculate the total price
|
||||
$eb_trip_price = ($eb_trip_price + eb_room_total_price($eb_room_id, $eagle_booking_date_cicle)) + ($eb_adults_price_total) + ($eb_children_price_total);
|
||||
} else {
|
||||
$eb_guests_price = get_post_meta($eb_room_id, 'eagle_booking_mtb_room_guests_price', true) ?: 0;
|
||||
$eb_guests_price_start = get_post_meta($eb_room_id, 'eagle_booking_mtb_room_guests_price_start', true) ?: 0;
|
||||
|
||||
// Guests total custom price
|
||||
if ($eagle_booking_guests < $eb_guests_price_start) {
|
||||
$eb_guests_price_total = 0;
|
||||
} else {
|
||||
$eb_guests_price_total = $eb_guests_price * ($eagle_booking_guests - $eb_guests_price_start);
|
||||
}
|
||||
|
||||
|
||||
// Calculate the total price
|
||||
$eb_trip_price = ($eb_trip_price + eb_room_total_price($eb_room_id, $eagle_booking_date_cicle)) + ($eb_guests_price_total);
|
||||
}
|
||||
|
||||
// Charge based on room price x booking nights
|
||||
} else {
|
||||
|
||||
// Calculate the total price
|
||||
$eb_trip_price = $eb_trip_price + eb_room_total_price($eb_room_id, $eagle_booking_date_cicle);
|
||||
}
|
||||
|
||||
$eagle_booking_date_cicle = date('Y/m/d', strtotime($eagle_booking_date_cicle.' + 1 days'));
|
||||
|
||||
$eagle_booking_index++;
|
||||
|
||||
endwhile; ?>
|
||||
<form method="post" action="<?php echo eb_booking_page() ?>">
|
||||
<input type="hidden" name="eb_room_id" value="<?php echo get_the_ID() ?>">
|
||||
<input type="hidden" name="eb_checkin" value="<?php echo $eagle_booking_checkin ?>">
|
||||
<input type="hidden" name="eb_checkout" value="<?php echo $eagle_booking_checkout ?>">
|
||||
<input type="hidden" name="eb_guests" value="<?php echo $eagle_booking_guests ?>">
|
||||
<input type="hidden" name="eb_adults" value="<?php echo $eagle_booking_adults ?>">
|
||||
<input type="hidden" name="eb_children" value="<?php echo $eagle_booking_children ?>">
|
||||
<button class="eb-proceed-btn eb-btn btn" name="submit" type="submit">
|
||||
|
||||
<?php if ( eb_get_option('show_price') == true ) : ?>
|
||||
|
||||
<?php if ( eb_get_option('total_price') === 'mouseover' ) : ?>
|
||||
|
||||
<span class="eb-btn-text"><?php echo __('Book Now', 'eagle-booking') ?></span>
|
||||
<span class="total-price-text"><?php echo __('For', 'eagle-booking') ?>
|
||||
<?php echo eb_price( eb_total_price( get_the_ID(), $eb_trip_price, $eb_booking_nights, $eagle_booking_guests ) ); ?>
|
||||
</span>
|
||||
|
||||
<?php else: ?>
|
||||
|
||||
<span><?php echo __('Book For', 'eagle-booking') ?>
|
||||
<?php echo eb_price( eb_total_price( get_the_ID(), $eb_trip_price, $eb_booking_nights, $eagle_booking_guests ) ) ?>
|
||||
</span>
|
||||
|
||||
<?php endif ?>
|
||||
|
||||
<?php else : ?>
|
||||
|
||||
<span><?php echo __('Book Now', 'eagle-booking') ?></span>
|
||||
|
||||
<?php endif ?>
|
||||
|
||||
</button>
|
||||
|
||||
<?php if ( eb_room_has_taxes_fees( get_the_ID() ) == true && eb_get_option('show_price') == true ) echo "<small class='eb-price-excludes-tax'><i>".__('Price Excludes Taxes & Fees', 'eagle-booking')."</i></small>"; ?>
|
||||
|
||||
</form>
|
||||
<?php
|
||||
|
||||
// Room is not Available - Maximum Booking Nights
|
||||
} elseif ( $eb_booking_nights > $eb_max_booking_nights ) { ?>
|
||||
|
||||
<div class="min-max-booking-nights-notice">
|
||||
<?php echo __('Max. Booking Nights','eagle-booking') ?>: <?php echo $eb_max_booking_nights ?>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
|
||||
// Room is not Available - MInimum Booking Nights
|
||||
} else { ?>
|
||||
|
||||
<div class="min-max-booking-nights-notice">
|
||||
<?php echo __('Min. Booking Nights','eagle-booking') ?>: <?php echo $eb_min_booking_nights ?>
|
||||
</div>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
<?php } else { ?>
|
||||
|
||||
<?php if ( empty($eagle_booking_checkin) || empty($eagle_booking_checkout) ) : ?>
|
||||
|
||||
<div class="select-booking-dates-notice"><?php echo __('Select Booking Dates','eagle-booking') ?></div>
|
||||
<?php else: ?>
|
||||
|
||||
<div class="not-available-notice"><?php echo __('Those dates are not available','eagle-booking') ?></div>
|
||||
<?php endif ?>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
||||
|
||||
<?php if ( eb_get_option('eb_search_quick_details') == true ) : ?>
|
||||
<div class="toggle-room-breakpoint room-more-details">
|
||||
<?php echo __('Availability & Details', 'eagle-booking') ?> <i class="fa fa-angle-down" aria-hidden="true"></i>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
|
||||
</div>
|
||||
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
/**
|
||||
* The Template for displaying quick details
|
||||
*
|
||||
* This template can be overridden by copying it to yourtheme/eb-templates/search/quick-details.php.
|
||||
*
|
||||
* Author: Eagle Themes
|
||||
* Package: Eagle-Booking/Templates
|
||||
* Version: 1.1.5
|
||||
*/
|
||||
|
||||
defined('ABSPATH') || exit;
|
||||
?>
|
||||
|
||||
<div class="room-quick-details">
|
||||
<div class="inner">
|
||||
<?php
|
||||
$eb_search_filters = eb_get_option('eb_search_quick_details_elements');
|
||||
if ($eb_search_filters): foreach ($eb_search_filters as $eb_search_filter=>$value) {
|
||||
|
||||
switch($eb_search_filter) {
|
||||
|
||||
case 'room_availability': include eb_load_template('search/room/quick-details/availability.php');
|
||||
break;
|
||||
|
||||
case 'included_services': include eb_load_template('search/room/quick-details/services.php');
|
||||
break;
|
||||
|
||||
case 'additional_services': include eb_load_template('search/room/quick-details/additional-services.php');
|
||||
break;
|
||||
|
||||
case 'price_breakdown': include eb_load_template('search/room/quick-details/price-breakdown.php');
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
endif;
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,65 @@
|
||||
<?php
|
||||
/**
|
||||
* The Template for displaying additional services
|
||||
*
|
||||
* This template can be overridden by copying it to yourtheme/eb-templates/search/quick-details/additional-services.php.
|
||||
*
|
||||
* Author: Eagle Themes
|
||||
* Package: Eagle-Booking/Templates
|
||||
* Version: 1.1.6
|
||||
*/
|
||||
|
||||
defined('ABSPATH') || exit;
|
||||
?>
|
||||
|
||||
<?php
|
||||
|
||||
if ( eb_get_option('eb_search_quick_details_elements')['additional_services'] == true ) :
|
||||
|
||||
// Get Room Additional Services
|
||||
$eagle_booking_services_array = get_post_meta( get_the_ID(), 'eagle_booking_mtb_room_additional_services', true );
|
||||
|
||||
if($eagle_booking_services_array) :
|
||||
|
||||
?>
|
||||
|
||||
<div class="room-services-list">
|
||||
<h6 class="section-title"><?php echo esc_html__('Additional Services', 'eagle-booking') ?></h6>
|
||||
<div class="eb-g-lg-3 eb-g-lg-3 mt30">
|
||||
<?php
|
||||
|
||||
// Start Loop
|
||||
for ($eagle_booking_services_array_i = 0; $eagle_booking_services_array_i < count($eagle_booking_services_array); $eagle_booking_services_array_i++) {
|
||||
|
||||
$eagle_booking_page_by_path = get_post($eagle_booking_services_array[$eagle_booking_services_array_i],OBJECT,'eagle_services');
|
||||
$eagle_booking_service_id = $eagle_booking_page_by_path->ID;
|
||||
$eagle_booking_service_name = get_the_title($eagle_booking_service_id);
|
||||
|
||||
// Service Icon
|
||||
$eagle_booking_service_icon_type = get_post_meta( $eagle_booking_service_id, 'eagle_booking_mtb_service_icon_type', true );
|
||||
if ($eagle_booking_service_icon_type == 'fontawesome') {
|
||||
$eagle_booking_service_icon = get_post_meta( $eagle_booking_service_id, 'eagle_booking_mtb_service_icon_fontawesome', true );
|
||||
} else {
|
||||
$eagle_booking_service_icon = get_post_meta( $eagle_booking_service_id, 'eagle_booking_mtb_service_icon', true );
|
||||
}
|
||||
$eagle_booking_mtb_service_image = get_post_meta( $eagle_booking_service_id, 'eagle_booking_mtb_service_image', true );
|
||||
$eagle_booking_mtb_service_image_class_original = str_replace(' ', '-', $eagle_booking_service_name);
|
||||
$eagle_booking_mtb_service_image_class = strtolower($eagle_booking_mtb_service_image_class_original);
|
||||
$eagle_booking_service_description = get_post_meta( $eagle_booking_service_id, 'eagle_booking_mtb_service_description', true );
|
||||
?>
|
||||
<div class="room-services-item">
|
||||
<?php if ($eagle_booking_service_icon_type == 'customicon') : ?>
|
||||
<img src="<?php echo esc_url($eagle_booking_mtb_service_image) ?>" class="<?php echo esc_attr($eagle_booking_mtb_service_image_class) ?>">
|
||||
<?php else : ?>
|
||||
<i class="<?php echo $eagle_booking_service_icon ?>"></i>
|
||||
<?php endif ?>
|
||||
<?php echo esc_html($eagle_booking_service_name) ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php endif ?>
|
||||
<?php endif ?>
|
||||
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
/**
|
||||
* The Template for displaying availability
|
||||
*
|
||||
* This template can be overridden by copying it to yourtheme/eb-templates/search/quick-details/availability.php.
|
||||
*
|
||||
* Author: Eagle Themes
|
||||
* Package: Eagle-Booking/Templates
|
||||
* Version: 1.1.5
|
||||
*/
|
||||
|
||||
defined('ABSPATH') || exit;
|
||||
?>
|
||||
|
||||
<?php if ( eb_get_option('eb_search_quick_details_elements')['room_availability'] == true ) : ?>
|
||||
<?php $eb_end_period = "+".eb_get_option('eb_calendar_availability_period'). " months" ?>
|
||||
<div id="availability-calendar-<?php echo $eb_room_id ?>"></div>
|
||||
|
||||
<ul class="availability-calendar-list-availability">
|
||||
<li>
|
||||
<span class="available"></span>
|
||||
<?php echo __('Available', 'eagle-booking') ?>
|
||||
</li>
|
||||
<li>
|
||||
<span class="not-available"></span>
|
||||
<?php echo __('Not Available', 'eagle-booking') ?>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<script>
|
||||
(function($) {
|
||||
"use strict";
|
||||
$(document).ready(function() {
|
||||
$("#availability-calendar-<?php echo $eb_room_id ?>").simpleCalendar({
|
||||
fixedStartDay: false,
|
||||
events: <?php echo json_encode( eb_availability_calendar($eb_room_id, date('Y/m/d'), date('Y/m/d', strtotime($eb_end_period)) ), JSON_UNESCAPED_SLASHES ); ?>
|
||||
});
|
||||
});
|
||||
})(jQuery);
|
||||
</script>
|
||||
<?php endif ?>
|
||||
@@ -0,0 +1,72 @@
|
||||
<?php
|
||||
/**
|
||||
* The Template for displaying price breakdown
|
||||
*
|
||||
* This template can be overridden by copying it to yourtheme/eb-templates/search/quick-details/price-breakdown.php.
|
||||
*
|
||||
* Author: Eagle Themes
|
||||
* Package: Eagle-Booking/Templates
|
||||
* Version: 1.1.7
|
||||
*/
|
||||
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
// Get Room Additional exceptions
|
||||
$eb_price_exception_array = get_post_meta( $eb_room_id, 'eagle_booking_mtb_room_price_exceptions', true );
|
||||
|
||||
if ( eb_get_option('eb_search_quick_details_elements')['price_breakdown'] == true && $eb_price_exception_array != '' ) {
|
||||
|
||||
?>
|
||||
|
||||
<div class="eb-room-price-breakdown">
|
||||
<h6 class="section-title"><?php echo esc_html__('Price Breakdown', 'eagle-booking') ?></h6>
|
||||
|
||||
<?php
|
||||
|
||||
// Start Loop
|
||||
for ($eb_price_exception_array_i = 0; $eb_price_exception_array_i < count($eb_price_exception_array); $eb_price_exception_array_i++) {
|
||||
|
||||
$eb_page_by_path = get_post($eb_price_exception_array[$eb_price_exception_array_i],OBJECT,'eagle_exception');
|
||||
$price_id = $eb_page_by_path->ID;
|
||||
$eb_exception_title = get_the_title($price_id);
|
||||
$price_exception_start = get_post_meta( $price_id, 'eagle_booking_mtb_exception_date_from', true );
|
||||
$price_exception_end = get_post_meta( $price_id, 'eagle_booking_mtb_exception_date_to', true );
|
||||
$price_exception_price = get_post_meta( $price_id, 'eagle_booking_mtb_exception_price', true );
|
||||
|
||||
echo '<div class="room-breakdown-item eg-g-1-1">';
|
||||
echo '<span>'.$eb_exception_title.'</span>';
|
||||
echo '<span>'.eagle_booking_displayd_date_format( $price_exception_start ).' → ';
|
||||
echo eagle_booking_displayd_date_format( $price_exception_end ).'</span>';
|
||||
|
||||
if( eb_currency_position() === 'before' ) {
|
||||
|
||||
echo '<span class="value">'.eb_currency().''.eb_formatted_price($price_exception_price, false).'</span>';
|
||||
|
||||
} else {
|
||||
|
||||
echo '<span class="value">'.eb_formatted_price($price_exception_price, false).''.eb_currency().'</span>';
|
||||
|
||||
}
|
||||
|
||||
echo '</div>';
|
||||
|
||||
}
|
||||
|
||||
// Get room extra guests option
|
||||
$eb_room_price_type = get_post_meta( $eb_room_id, 'eagle_booking_mtb_room_price_type', true );
|
||||
|
||||
if( $eb_room_price_type == 'room_price_nights_guests' || $eb_room_price_type == 'room_price_nights_guests_custom' ) :
|
||||
|
||||
?>
|
||||
|
||||
<div class="price-breakdown-item mt20">
|
||||
<i class="fas fa-exclamation-circle"></i> <?php echo __('The displayed price is referred to the room normal price. Pricing based on guests number applied to this room.', 'eagle-booking') ?>
|
||||
</div>
|
||||
|
||||
<?php endif ?>
|
||||
|
||||
</div>
|
||||
|
||||
<?php
|
||||
|
||||
}
|
||||
@@ -0,0 +1,63 @@
|
||||
<?php
|
||||
/**
|
||||
* The Template for displaying services
|
||||
*
|
||||
* This template can be overridden by copying it to yourtheme/eb-templates/search/quick-details/services.php.
|
||||
*
|
||||
* Author: Eagle Themes
|
||||
* Package: Eagle-Booking/Templates
|
||||
* Version: 1.1.6
|
||||
*/
|
||||
|
||||
defined('ABSPATH') || exit;
|
||||
?>
|
||||
|
||||
<?php
|
||||
|
||||
if ( eb_get_option('eb_search_quick_details_elements')['included_services'] == true ) :
|
||||
|
||||
// Get Room Included Services
|
||||
$eagle_booking_services_array = get_post_meta( get_the_ID(), 'eagle_booking_mtb_room_services', true );
|
||||
|
||||
if( $eagle_booking_services_array ) :
|
||||
|
||||
?>
|
||||
|
||||
<div class="room-services-list">
|
||||
<h6 class="section-title"><?php echo esc_html__('Included Services', 'eagle-booking') ?></h6>
|
||||
<div class="eb-g-lg-3 eb-g-md-2 mt30">
|
||||
<?php
|
||||
|
||||
// Start Loop
|
||||
for ($eagle_booking_services_array_i = 0; $eagle_booking_services_array_i < count($eagle_booking_services_array); $eagle_booking_services_array_i++) {
|
||||
|
||||
$eagle_booking_page_by_path = get_post($eagle_booking_services_array[$eagle_booking_services_array_i],OBJECT,'eagle_services');
|
||||
$eagle_booking_service_id = $eagle_booking_page_by_path->ID;
|
||||
$eagle_booking_service_name = get_the_title($eagle_booking_service_id);
|
||||
|
||||
// Service Icon
|
||||
$eagle_booking_service_icon_type = get_post_meta( $eagle_booking_service_id, 'eagle_booking_mtb_service_icon_type', true );
|
||||
if ($eagle_booking_service_icon_type == 'fontawesome') {
|
||||
$eagle_booking_service_icon = get_post_meta( $eagle_booking_service_id, 'eagle_booking_mtb_service_icon_fontawesome', true );
|
||||
} else {
|
||||
$eagle_booking_service_icon = get_post_meta( $eagle_booking_service_id, 'eagle_booking_mtb_service_icon', true );
|
||||
}
|
||||
$eagle_booking_mtb_service_image = get_post_meta( $eagle_booking_service_id, 'eagle_booking_mtb_service_image', true );
|
||||
$eagle_booking_mtb_service_image_class_original = str_replace(' ', '-', $eagle_booking_service_name);
|
||||
$eagle_booking_mtb_service_image_class = strtolower($eagle_booking_mtb_service_image_class_original);
|
||||
$eagle_booking_service_description = get_post_meta( $eagle_booking_service_id, 'eagle_booking_mtb_service_description', true );
|
||||
?>
|
||||
<div class="room-services-item">
|
||||
<?php if ($eagle_booking_service_icon_type == 'customicon') : ?>
|
||||
<img src="<?php echo esc_url($eagle_booking_mtb_service_image) ?>" class="<?php echo esc_attr($eagle_booking_mtb_service_image_class) ?>">
|
||||
<?php else : ?>
|
||||
<i class="<?php echo $eagle_booking_service_icon ?>"></i>
|
||||
<?php endif ?>
|
||||
<?php echo esc_html($eagle_booking_service_name) ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php endif ?>
|
||||
<?php endif ?>
|
||||
@@ -0,0 +1,60 @@
|
||||
<?php
|
||||
/**
|
||||
* The Template for displaying services
|
||||
* This template can be overridden by copying it to yourtheme/eb-templates/search/services.php.
|
||||
*
|
||||
* Author: Eagle Themes
|
||||
* Package: Eagle-Booking/Templates
|
||||
* Version: 1.1.5
|
||||
*/
|
||||
|
||||
defined('ABSPATH') || exit;
|
||||
?>
|
||||
|
||||
<div class="room-services">
|
||||
<div class="dragscroll">
|
||||
<?php
|
||||
|
||||
// Get Room Services
|
||||
$eagle_booking_services_array = get_post_meta( $eb_room_id, 'eagle_booking_mtb_room_services', true ) ;
|
||||
|
||||
if ( !empty($eagle_booking_services_array) ) :
|
||||
|
||||
$eagle_booking_services_counter = count($eagle_booking_services_array);
|
||||
|
||||
if ( !empty(get_post_meta( $eb_room_id, 'eagle_booking_mtb_room_services', true ) ) ) :
|
||||
|
||||
for ($eagle_booking_services_array_i = 0; $eagle_booking_services_array_i < $eagle_booking_services_counter; $eagle_booking_services_array_i++) {
|
||||
|
||||
$eagle_booking_page_by_path = get_post($eagle_booking_services_array[$eagle_booking_services_array_i],OBJECT,'eagle_services');
|
||||
|
||||
$eagle_booking_service_id = $eagle_booking_page_by_path->ID;
|
||||
$eagle_booking_service_name = get_the_title($eagle_booking_service_id);
|
||||
$eagle_booking_service_icon_type = get_post_meta( $eagle_booking_service_id, 'eagle_booking_mtb_service_icon_type', true );
|
||||
|
||||
// Fontawesome 4 or 5
|
||||
if ($eagle_booking_service_icon_type == 'fontawesome') {
|
||||
$eagle_booking_service_icon = get_post_meta( $eagle_booking_service_id, 'eagle_booking_mtb_service_icon_fontawesome', true );
|
||||
} else {
|
||||
$eagle_booking_service_icon = get_post_meta( $eagle_booking_service_id, 'eagle_booking_mtb_service_icon', true );
|
||||
}
|
||||
|
||||
$eagle_booking_mtb_service_image = get_post_meta( $eagle_booking_service_id, 'eagle_booking_mtb_service_image', true );
|
||||
$eagle_booking_mtb_service_image_class_original = str_replace(' ', '-', $eagle_booking_service_name);
|
||||
$eagle_booking_mtb_service_image_class = strtolower($eagle_booking_mtb_service_image_class_original);
|
||||
$eagle_booking_service_description = get_post_meta( $eagle_booking_service_id, 'eagle_booking_mtb_service_description', true );
|
||||
?>
|
||||
<div class="room-service-item" data-toggle="popover" data-placement="top" data-trigger="hover" data-content="<?php echo $eagle_booking_service_description ?>" data-original-title="<?php echo $eagle_booking_service_name ?>">
|
||||
<?php if ($eagle_booking_service_icon_type == 'customicon') : ?>
|
||||
<img src="<?php echo esc_url($eagle_booking_mtb_service_image) ?>" class="<?php echo esc_attr($eagle_booking_mtb_service_image_class) ?>">
|
||||
<?php else : ?>
|
||||
<i class="<?php echo $eagle_booking_service_icon ?>"></i>
|
||||
<?php endif ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<?php endif ?>
|
||||
<?php endif ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,49 @@
|
||||
<?php
|
||||
/**
|
||||
* The Template for displaying sorting
|
||||
*
|
||||
* This template can be overridden by copying it to yourtheme/eb-templates/search/sorting.php.
|
||||
*
|
||||
* Author: Eagle Themes
|
||||
* Package: Eagle-Booking/Templates
|
||||
* Version: 1.1.6
|
||||
*/
|
||||
|
||||
defined('ABSPATH') || exit;
|
||||
?>
|
||||
|
||||
<div class="rooms-bar">
|
||||
|
||||
<span class="total-rooms">
|
||||
<?php echo sprintf( __('You found <strong id="results-number">%s</strong> rooms from', 'eagle-booking'), $eagle_booking_results_qnt ) ?>
|
||||
<?php echo eb_price( eb_rooms_min_max_price('min') ) ?>
|
||||
</span>
|
||||
|
||||
<span class="rooms-view">
|
||||
<span class="view-text"><?php echo __('View', 'eagle-booking') ?></span>
|
||||
<span class="view-btn list-btn <?php echo $eb_rooms_view === "list-view" ? 'active' : '' ?>" data-view="list-view" title="<?php echo __('List View', 'eagle-booking') ?>"><i class="fa fa-list" aria-hidden="true"></i></span>
|
||||
<span class="view-btn grid-btn <?php echo $eb_rooms_view === "grid-view" ? 'active' : '' ?>" data-view="grid-view" title="<?php echo __('Grid View', 'eagle-booking') ?>"><i class="fa fa-th" aria-hidden="true"></i></span>
|
||||
</span>
|
||||
|
||||
<span class="rooms-view-sorting">
|
||||
|
||||
<span class="eb-dropdown eb-rooms-sorting">
|
||||
|
||||
<div id="eagle_booking_active_sorting" class="eb-dropdown-toggle"><?php echo __('Sort by: Default','eagle-booking') ?></div>
|
||||
|
||||
<ul id="eagle_booking_search_sorting" class="eb-dropdown-menu">
|
||||
<li class="sorting_option">
|
||||
<a class="search_sorting" data-meta-key="eagle_booking_mtb_room_price_min" data-order="ASC"><?php echo __('Sort by: Lowest Price','eagle-booking') ?></a>
|
||||
</li>
|
||||
<li class="sorting_option">
|
||||
<a class="search_sorting" data-meta-key="eagle_booking_mtb_room_price_min" data-order="DESC"><?php echo __('Sort by: Highest Price','eagle-booking') ?></a>
|
||||
</li>
|
||||
<li class="sorting_option">
|
||||
<a class="search_sorting" data-meta-key="" data-order=""><?php echo __('Sort by: Default','eagle-booking') ?></a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
</span>
|
||||
</span>
|
||||
|
||||
</div>
|
||||
@@ -0,0 +1,84 @@
|
||||
<?php
|
||||
/**
|
||||
* The Template for displaying single place
|
||||
*
|
||||
* This template can be overridden by copying it to yourtheme/eb-templates/single-place/single-place.php.
|
||||
*
|
||||
* Author: Eagle Themes
|
||||
* Package: Eagle-Booking/Templates
|
||||
* Version: 1.1.5
|
||||
*/
|
||||
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
get_header();
|
||||
|
||||
if (have_posts()) : the_post();
|
||||
|
||||
?>
|
||||
|
||||
<main class="single-place">
|
||||
|
||||
<!-- Place -->
|
||||
<article class="blog_post place-details">
|
||||
|
||||
<!-- Image -->
|
||||
<div class="place-image">
|
||||
<?php if (has_post_thumbnail()) : ?>
|
||||
<figure>
|
||||
<img src="<?php echo the_post_thumbnail_url('eagle_booking_image_size_1920_800') ?>" class="img-responsive" alt="<?php echo the_title_attribute() ?>">
|
||||
</figure>
|
||||
|
||||
<!-- Title -->
|
||||
<div class="place-title">
|
||||
<div class="container">
|
||||
<h1 class="title"><?php echo get_the_title() ?></h1>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
</div>
|
||||
|
||||
<div class="container">
|
||||
<?php
|
||||
$eagle_booking_sidebar = get_post_meta( get_the_ID(), 'eagle_booking_mtb_place_sidebar', true);
|
||||
if ( $eagle_booking_sidebar === 'none' || $eagle_booking_sidebar === '' ) {
|
||||
$col_class = 'col-md-12';
|
||||
} else {
|
||||
$col_class = 'col-md-9';
|
||||
}
|
||||
?>
|
||||
|
||||
<!-- Left Sidebar -->
|
||||
<?php if ( $eagle_booking_sidebar === 'left' ) : ?>
|
||||
<?php get_sidebar(); ?>
|
||||
<?php endif ?>
|
||||
|
||||
<!-- Details -->
|
||||
<div class="<?php echo esc_attr($col_class) ?> details">
|
||||
|
||||
<!-- Content -->
|
||||
<div class="content entry">
|
||||
<?php the_content() ?>
|
||||
</div>
|
||||
<!-- Meta -->
|
||||
<div class="meta_post">
|
||||
|
||||
<!-- SHARE BUTTONS -->
|
||||
<div class="share">
|
||||
<?php eb_social_share() ?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- RIGHT SIDEBAR -->
|
||||
<?php if ( $eagle_booking_sidebar === 'right' ) : ?>
|
||||
<?php get_sidebar(); ?>
|
||||
<?php endif ?>
|
||||
|
||||
</div>
|
||||
</article>
|
||||
</main>
|
||||
|
||||
<?php endif ?>
|
||||
<?php get_footer() ?>
|
||||
@@ -0,0 +1,59 @@
|
||||
<?php
|
||||
/**
|
||||
* The Template for displaying room additional services
|
||||
*
|
||||
* This template can be overridden by copying it to yourtheme/eb-templates/single-room/additional-services.php.
|
||||
*
|
||||
* Author: Eagle Themes
|
||||
* Package: Eagle-Booking/Templates
|
||||
* Version: 1.1.5
|
||||
*/
|
||||
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
|
||||
$eb_additional_services_array = get_post_meta( $eagle_booking_id, 'eagle_booking_mtb_room_additional_services', true );
|
||||
|
||||
if ( $eb_additional_services_array ) :
|
||||
|
||||
?>
|
||||
|
||||
<div class="room-services-list">
|
||||
<h2 class="section-title"><?php echo esc_html__('Additional Services', 'eagle-booking') ?></h2>
|
||||
<div class="eb-g-lg-3 eb-g-md-2">
|
||||
<?php
|
||||
|
||||
// START LOOP
|
||||
for ($eb_additional_services_array_i = 0; $eb_additional_services_array_i < count($eb_additional_services_array); $eb_additional_services_array_i++) :
|
||||
$eagle_booking_page_by_path = get_post($eb_additional_services_array[$eb_additional_services_array_i],OBJECT,'eagle_services');
|
||||
$eb_additional_service_id = $eagle_booking_page_by_path->ID;
|
||||
$eb_additional_service_name = get_the_title($eb_additional_service_id);
|
||||
|
||||
// FONT ICON & CUSTOM IMAGE
|
||||
$eb_additional_service_icon_type = get_post_meta( $eb_additional_service_id, 'eagle_booking_mtb_service_icon_type', true );
|
||||
if ($eb_additional_service_icon_type == 'fontawesome') {
|
||||
$eb_additional_service_icon = get_post_meta( $eb_additional_service_id, 'eagle_booking_mtb_service_icon_fontawesome', true );
|
||||
} else {
|
||||
$eb_additional_service_icon = get_post_meta( $eb_additional_service_id, 'eagle_booking_mtb_service_icon', true );
|
||||
}
|
||||
|
||||
$eb_mtb_service_image = get_post_meta( $eb_additional_service_id, 'eagle_booking_mtb_service_image', true );
|
||||
$eb_mtb_service_image_class_original = str_replace(' ', '-', $eb_additional_service_name);
|
||||
$eb_mtb_service_image_class = strtolower($eb_mtb_service_image_class_original);
|
||||
// DESCRIPTION
|
||||
$eb_additional_service_description = get_post_meta( $eb_additional_service_id, 'eagle_booking_mtb_service_description', true );
|
||||
?>
|
||||
|
||||
<div class="room-services-item">
|
||||
<?php if ($eb_additional_service_icon_type == 'customicon') : ?>
|
||||
<img src="<?php echo esc_url($eb_mtb_service_image) ?>" class="<?php echo esc_attr($eb_mtb_service_image_class) ?>">
|
||||
<?php else : ?>
|
||||
<i class="<?php echo $eb_additional_service_icon ?>" data-original-title="<?php echo $eb_additional_service_name ?>"></i>
|
||||
<?php endif ?>
|
||||
<?php echo esc_html($eb_additional_service_name) ?>
|
||||
</div>
|
||||
<?php endfor ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php endif ?>
|
||||
@@ -0,0 +1,44 @@
|
||||
<?php
|
||||
/**
|
||||
* The Template for displaying room availability
|
||||
*
|
||||
* This template can be overridden by copying it to yourtheme/eb-templates/single-room/availability.php.
|
||||
*
|
||||
* Author: Eagle Themes
|
||||
* Package: Eagle-Booking/Templates
|
||||
* Version: 1.1.5
|
||||
*/
|
||||
|
||||
defined('ABSPATH') || exit;
|
||||
?>
|
||||
|
||||
<?php $eb_end_period = "+".eb_get_option('eb_calendar_availability_period'). " months" ?>
|
||||
<h2 class="section-title"><?php echo esc_html__('Room Availability', 'eagle-booking') ?></h2>
|
||||
<div id="availability-calendar"></div>
|
||||
|
||||
<ul class="availability-calendar-list-availability">
|
||||
<li>
|
||||
<span class="available"></span>
|
||||
<?php echo __('Available', 'eagle-booking') ?>
|
||||
</li>
|
||||
<li>
|
||||
<span class="not-available"></span>
|
||||
<?php echo __('Not Available', 'eagle-booking') ?>
|
||||
</li>
|
||||
<!-- <li>
|
||||
<span class="semi-available"></span>
|
||||
<?php echo __('Check Out Only', 'eagle-booking') ?>
|
||||
</li> -->
|
||||
</ul>
|
||||
|
||||
<script>
|
||||
(function($) {
|
||||
"use strict";
|
||||
$(document).ready(function() {
|
||||
|
||||
$("#availability-calendar").simpleCalendar({
|
||||
events: eb_booked_dates
|
||||
});
|
||||
});
|
||||
})(jQuery);
|
||||
</script>
|
||||
@@ -0,0 +1,57 @@
|
||||
<?php
|
||||
/**
|
||||
* The Template for the calendar
|
||||
*
|
||||
* This template can be overridden by copying it to yourtheme/eb-templates/single-room/booking-form.php.
|
||||
*
|
||||
* Author: Eagle Themes
|
||||
* Package: Eagle-Booking/Templates
|
||||
* Version: 1.1.6
|
||||
*/
|
||||
|
||||
defined('ABSPATH') || exit;
|
||||
?>
|
||||
|
||||
<div class="eb-widget eb-widget-border calendar">
|
||||
<h2 class="title"><?php echo __('Book Your Room','eagle-booking') ?></h2>
|
||||
<div class="inner">
|
||||
<form id="room-booking-form" action="<?php echo $eagle_booking_action ?>" class="room-booking-form" method="<?php echo $eagle_booking_action_method ?>" target="<?php echo esc_attr( $eagle_booking_target ) ?>">
|
||||
|
||||
<?php include eb_load_template('elements/custom-parameters.php') ?>
|
||||
|
||||
<input type="hidden" name="eb_room_id" value="<?php echo get_the_ID() ?>" />
|
||||
<input type="hidden" name="eb_single_room" value="1">
|
||||
|
||||
<?php if (eb_get_option('booking_type') == 'custom' ) : ?>
|
||||
<input type="hidden" name="<?php echo esc_html( $eagle_booking_room_param ) ?>" value="<?php echo esc_html( $eagle_booking_room_external_id ) ?>" >
|
||||
<?php endif ?>
|
||||
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Include Date Picker
|
||||
*/
|
||||
include eb_load_template('elements/dates-picker.php');
|
||||
|
||||
/**
|
||||
* Include Guests Picker
|
||||
*/
|
||||
include eb_load_template('elements/guests-picker.php');
|
||||
|
||||
?>
|
||||
|
||||
<?php
|
||||
$eb_meta_box_room_custom_link = get_post_meta( get_the_ID(), 'eagle_booking_room_custom_link', true );
|
||||
if ( empty($eb_meta_box_room_custom_link) ) { ?>
|
||||
|
||||
<button id="eb_search_form" name="submit" class="btn eb-btn mt30" type="submit">
|
||||
<span class="eb-btn-text"><?php echo __('Check Availability','eagle-booking') ?></span>
|
||||
</button>
|
||||
|
||||
<?php } else { ?>
|
||||
<a target="_blank" class="btn eb-btn" href="<?php echo $eb_meta_box_room_custom_link ?>"><?php echo __('Book Now','eagle-booking') ?></a>
|
||||
<?php } ?>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,29 @@
|
||||
|
||||
<?php
|
||||
|
||||
/**
|
||||
* The Template for the room hotel branch
|
||||
*
|
||||
* This template can be overridden by copying it to yourtheme/eb-templates/single-room/branch.php.
|
||||
*
|
||||
* Author: Eagle Themes
|
||||
* Package: Eagle-Booking/Templates
|
||||
* Version: 1.0
|
||||
*/
|
||||
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
?>
|
||||
|
||||
<?php if ( eb_room_has_branch( $eb_room_id ) ) : ?>
|
||||
|
||||
<div class="eb-room-branch eb-widget eb-widget-border">
|
||||
|
||||
<?php
|
||||
echo __('This room is part of', 'eagle-booking').' ';
|
||||
echo eb_room_branch( $eb_room_id, true );
|
||||
?>
|
||||
|
||||
</div>
|
||||
|
||||
<?php endif ?>
|
||||
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
/**
|
||||
* The Template for displaying room content
|
||||
*
|
||||
* This template can be overridden by copying it to yourtheme/eb-templates/single-room/content.php.
|
||||
*
|
||||
* Author: Eagle Themes
|
||||
* Package: Eagle-Booking/Templates
|
||||
* Version: 1.1.6
|
||||
*/
|
||||
|
||||
defined('ABSPATH') || exit;
|
||||
?>
|
||||
|
||||
<div class="content">
|
||||
<?php the_content(get_the_ID()) ?>
|
||||
</div>
|
||||
@@ -0,0 +1,50 @@
|
||||
<?php
|
||||
/**
|
||||
* The Template for displaying room slider
|
||||
*
|
||||
* This template can be overridden by copying it to yourtheme/eb-templates/single-room/full-slider.php.
|
||||
*
|
||||
* Author: Eagle Themes
|
||||
* Package: Eagle-Booking/Templates
|
||||
* Version: 1.1.6
|
||||
*/
|
||||
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
?>
|
||||
|
||||
<div class="room-slider room-full-slider">
|
||||
|
||||
<?php if ($room_slider) : ?>
|
||||
<div id="eb-room-full-slider" class="swiper-container">
|
||||
<div class="swiper-wrapper eb-image-gallery">
|
||||
<?php
|
||||
$files = get_post_meta( get_the_ID(), 'eagle_booking_mtb_room_slider_images', true );
|
||||
foreach ( (array) $files as $attachment_id => $attachment_url ) :
|
||||
|
||||
$room_images_url = wp_get_attachment_image_url( $attachment_id, 'full' ); ?>
|
||||
|
||||
<div class="swiper-slide" style="background-image:url(<?php echo esc_url( $room_images_url ) ?>)">
|
||||
<a href="<?php echo esc_url( $room_images_url ) ?>"></a>
|
||||
<img src="<?php echo get_the_post_thumbnail_url('', 'eagle_booking_image_size_1920_800') ?>" alt="<?php echo get_post_meta($attachment_id, '_wp_attachment_image_alt', true) ?>" title="<?php echo get_the_title( $attachment_id ) ?>" height="0" width="0">
|
||||
</div>
|
||||
<?php endforeach ?>
|
||||
</div>
|
||||
|
||||
<div class="swiper-pagination"></div>
|
||||
<?php if ( eb_get_option('eb_room_slider_nav') == true ) : ?>
|
||||
<div class="swiper-next"><i class="fa fa-angle-right" aria-hidden="true"></i></div>
|
||||
<div class="swiper-prev"><i class="fa fa-angle-left" aria-hidden="true"></i></div>
|
||||
<?php endif ?>
|
||||
|
||||
</div>
|
||||
<?php else : ?>
|
||||
|
||||
<?php if (has_post_thumbnail()) : ?>
|
||||
<div style="background:url('<?php echo get_the_post_thumbnail_url('', 'eagle_booking_image_size_1170_680') ?>'); background-size: cover; min-height: 600px">
|
||||
</div>
|
||||
<?php endif ?>
|
||||
|
||||
<?php endif ?>
|
||||
|
||||
</div>
|
||||
@@ -0,0 +1,44 @@
|
||||
<?php
|
||||
/**
|
||||
* The Template for displaying room header
|
||||
*
|
||||
* This template can be overridden by copying it to yourtheme/eb-templates/single-room/header.php.
|
||||
*
|
||||
* Author: Eagle Themes
|
||||
* Package: Eagle-Booking/Templates
|
||||
* Version: 1.1.6
|
||||
*/
|
||||
|
||||
defined('ABSPATH') || exit;
|
||||
?>
|
||||
|
||||
<?php
|
||||
|
||||
|
||||
$eb_room_header_image = get_post_meta( $eagle_booking_id, 'eagle_booking_mtb_room_header_image', true );
|
||||
|
||||
if( $eb_room_header_image != '' ) {
|
||||
|
||||
$eb_room_header_class = 'image';
|
||||
$eb_room_header_style = 'background:url('.$eb_room_header_image.'); background-size: cover;';
|
||||
|
||||
} else {
|
||||
|
||||
$eb_room_header_class = 'color';
|
||||
$eb_room_header_style = '';
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<div class="eb-page-header eb-page-header-<?php echo esc_attr( $eb_room_header_class ) ?> eb-room-header" style="<?php echo esc_attr( $eb_room_header_style ) ?>">
|
||||
<div class="container eb-container">
|
||||
<div class="eb-wrapper">
|
||||
<div class="title">
|
||||
<h1><?php echo $eagle_booking_title ?></h1>
|
||||
<?php if ( eb_get_option('room_breadcrumbs') == true ) : eb_breadcrumb(); endif ?>
|
||||
</div>
|
||||
<?php eb_room_price( get_the_ID(), ' <span>/</span> '.__('per night', 'eagle-booking') ) ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,80 @@
|
||||
<?php
|
||||
/**
|
||||
* The Template for displaying room info
|
||||
*
|
||||
* This template can be overridden by copying it to yourtheme/eb-templates/single-room/info.php.
|
||||
*
|
||||
* Author: Eagle Themes
|
||||
* Package: Eagle-Booking/Templates
|
||||
* Version: 1.1.
|
||||
*/
|
||||
|
||||
defined('ABSPATH') || exit;
|
||||
?>
|
||||
|
||||
<div class="room-info">
|
||||
|
||||
<?php $eb_room_info_elements = eb_get_option('room_info_elements');
|
||||
|
||||
foreach ($eb_room_info_elements as $eb_room_info_element=>$value) {
|
||||
|
||||
switch ($eb_room_info_element) {
|
||||
|
||||
case 'guests' : if ($value == true) : ?>
|
||||
<div class="item">
|
||||
<i class="flaticon-child"></i>
|
||||
<div class="room-info-content">
|
||||
<?php echo __('Max. Guests', 'eagle-booking') ?>
|
||||
<div>
|
||||
<?php
|
||||
if (eb_get_option('eb_adults_children') == true) {
|
||||
echo esc_html($eb_mtb_room_max_adults).' '.__('Adults', 'eagle-booking').' / ' .esc_html($eb_mtb_room_max_children).' '.__('Children', 'eagle-booking');
|
||||
} else {
|
||||
echo esc_html($eb_mtb_room_max_guests).' '.__('Guests', 'eagle-booking');
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; break; ?>
|
||||
|
||||
<?php case 'booking_nights' : if ($value == true) : ?>
|
||||
<div class="item">
|
||||
<i class="flaticon-calendar"></i>
|
||||
<div class="room-info-content">
|
||||
<?php echo __('Booking Nights', 'eagle-booking') ?>
|
||||
<div>
|
||||
<?php echo esc_html( $eb_mtb_room_min_booking_nights ) ?> <?php echo __('Min.', 'eagle-booking') ?>
|
||||
<?php if ( $eb_mtb_room_max_booking_nights != '' ) echo ' / '.esc_html( $eb_mtb_room_max_booking_nights ).' '. __('Max.', 'eagle-booking') ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; break; ?>
|
||||
|
||||
<?php case 'bed_type' : if ($value == true) : ?>
|
||||
<div class="item">
|
||||
<i class="flaticon-bed"></i>
|
||||
<div class="room-info-content">
|
||||
<?php echo __('Bed Type', 'eagle-booking')?>
|
||||
<div>
|
||||
<?php echo esc_html( $eb_mtb_room_bed_type ) ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; break; ?>
|
||||
|
||||
<?php case 'area' : if ($value == true) : ?>
|
||||
<div class="item">
|
||||
<i class="flaticon-map"></i>
|
||||
<div class="room-info-content">
|
||||
<?php echo __('Area', 'eagle-booking') ?>
|
||||
<div>
|
||||
<?php echo esc_html( $eb_mtb_room_size ) ?> <?php echo eb_get_option('eagle_booking_units_of_measure') ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; break ?>
|
||||
|
||||
<?php } } ?>
|
||||
|
||||
</div>
|
||||
@@ -0,0 +1,74 @@
|
||||
<?php
|
||||
/**
|
||||
* The Template for displaying room reviews
|
||||
*
|
||||
* This template can be overridden by copying it to yourtheme/eb-templates/single-room/reviews.php.
|
||||
*
|
||||
* Author: Eagle Themes
|
||||
* Package: Eagle-Booking/Templates
|
||||
* Version: 1.1.6
|
||||
*/
|
||||
|
||||
defined('ABSPATH') || exit;
|
||||
?>
|
||||
|
||||
<?php
|
||||
|
||||
$eagle_booking_reviews_array = get_post_meta( $eagle_booking_id, 'eagle_booking_mtb_room_reviews', true );
|
||||
|
||||
if ( !empty($eagle_booking_reviews_array ) ) :
|
||||
?>
|
||||
|
||||
<div class="room-reviews">
|
||||
<h2 class="section-title"><?php echo esc_html__('Room Reviews', 'eagle-booking') ?></h2>
|
||||
|
||||
<?php
|
||||
for ($eagle_booking_reviews_array_i = 0; $eagle_booking_reviews_array_i < count($eagle_booking_reviews_array); $eagle_booking_reviews_array_i++) :
|
||||
|
||||
$eagle_booking_page_by_path = get_post($eagle_booking_reviews_array[$eagle_booking_reviews_array_i], OBJECT,' eagle_reviews');
|
||||
$eagle_booking_review_id = $eagle_booking_page_by_path->ID;
|
||||
$testimonial_title = get_the_title($eagle_booking_review_id);
|
||||
$testimonial_quote = get_post_meta($eagle_booking_review_id, 'eagle_booking_mtb_review_quote', true);
|
||||
$testimonial_name = get_post_meta($eagle_booking_review_id, 'eagle_booking_mtb_review_author', true);
|
||||
$testimonial_location = get_post_meta($eagle_booking_review_id, 'eagle_booking_mtb_review_author_location', true);
|
||||
$testimonial_avatar_file_id = get_post_meta($eagle_booking_review_id, 'eagle_booking_mtb_review_image_id', true );
|
||||
$testimonial_avatar = wp_get_attachment_image_url( $testimonial_avatar_file_id);
|
||||
$testimonial_starnumber = get_post_meta( $eagle_booking_review_id, 'eagle_booking_mtb_review_rating', true );
|
||||
?>
|
||||
<!-- ITEM -->
|
||||
<div class="review-box">
|
||||
<?php if ($testimonial_avatar) : ?>
|
||||
<figure class="review-author">
|
||||
<img src="<?php echo esc_url( $testimonial_avatar ) ?>" alt="<?php echo esc_attr( $testimonial_name ) ?>">
|
||||
</figure>
|
||||
<?php endif ?>
|
||||
<div class="review-content">
|
||||
<div class="rating">
|
||||
<?php
|
||||
for($x=1;$x<=$testimonial_starnumber;$x++) {
|
||||
echo '<i class="fa fa-star" aria-hidden="true"></i>';
|
||||
}
|
||||
if (strpos($testimonial_starnumber,'.')) {
|
||||
echo '<i class="fa fa-star-half-o" aria-hidden="true"></i>';
|
||||
$x++;
|
||||
}
|
||||
while ($x<=5) {
|
||||
echo '<i class="fa fa-star-o" aria-hidden="true"></i>';
|
||||
$x++;
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<div class="review-info">
|
||||
<?php echo esc_html( $testimonial_name ) ?> - <?php echo esc_html( $testimonial_location ) ?>
|
||||
</div>
|
||||
<div class="review-text">
|
||||
<p><?php echo esc_html( $testimonial_quote ) ?></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php endfor ?>
|
||||
<?php wp_reset_postdata(); ?>
|
||||
|
||||
</div>
|
||||
<?php endif ?>
|
||||
@@ -0,0 +1,60 @@
|
||||
<?php
|
||||
/**
|
||||
* The Template for displaying room services
|
||||
*
|
||||
* This template can be overridden by copying it to yourtheme/eb-templates/single-room/services.php.
|
||||
*
|
||||
* Author: Eagle Themes
|
||||
* Package: Eagle-Booking/Templates
|
||||
* Version: 1.1.5
|
||||
*/
|
||||
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
|
||||
$eb_services_array = get_post_meta( $eagle_booking_id, 'eagle_booking_mtb_room_services', true );
|
||||
|
||||
if ( $eb_services_array ) :
|
||||
|
||||
?>
|
||||
|
||||
|
||||
|
||||
<div class="room-services-list">
|
||||
<h2 class="section-title"><?php echo esc_html__('Room Services', 'eagle-booking') ?></h2>
|
||||
<div class="eb-g-lg-3 eb-g-md-2">
|
||||
<?php
|
||||
|
||||
// START LOOP
|
||||
for ($eb_services_array_i = 0; $eb_services_array_i < count($eb_services_array); $eb_services_array_i++) :
|
||||
$eagle_booking_page_by_path = get_post($eb_services_array[$eb_services_array_i],OBJECT,'eagle_services');
|
||||
$eb_service_id = $eagle_booking_page_by_path->ID;
|
||||
$eb_service_name = get_the_title($eb_service_id);
|
||||
|
||||
// FONT ICON & CUSTOM IMAGE
|
||||
$eb_service_icon_type = get_post_meta( $eb_service_id, 'eagle_booking_mtb_service_icon_type', true );
|
||||
if ($eb_service_icon_type == 'fontawesome') {
|
||||
$eb_service_icon = get_post_meta( $eb_service_id, 'eagle_booking_mtb_service_icon_fontawesome', true );
|
||||
} else {
|
||||
$eb_service_icon = get_post_meta( $eb_service_id, 'eagle_booking_mtb_service_icon', true );
|
||||
}
|
||||
|
||||
$eb_mtb_additional_service_image = get_post_meta( $eb_service_id, 'eagle_booking_mtb_service_image', true );
|
||||
$eb_mtb_additional_service_image_class_original = str_replace(' ', '-', $eb_service_name);
|
||||
$eb_mtb_additional_service_image_class = strtolower($eb_mtb_additional_service_image_class_original);
|
||||
// DESCRIPTION
|
||||
$eb_service_description = get_post_meta( $eb_service_id, 'eagle_booking_mtb_service_description', true );
|
||||
?>
|
||||
<div class="room-services-item">
|
||||
<?php if ($eb_service_icon_type == 'customicon') : ?>
|
||||
<img src="<?php echo esc_url($eb_mtb_additional_service_image) ?>" class="<?php echo esc_attr($eb_mtb_additional_service_image_class) ?>">
|
||||
<?php else : ?>
|
||||
<i class="<?php echo $eb_service_icon ?>" data-original-title="<?php echo $eb_service_name ?>"></i>
|
||||
<?php endif ?>
|
||||
<?php echo esc_html($eb_service_name) ?>
|
||||
</div>
|
||||
<?php endfor ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php endif ?>
|
||||
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
/**
|
||||
* The Template for displaying room sidebar
|
||||
*
|
||||
* This template can be overridden by copying it to yourtheme/eb-templates/single-room/sidebar.php.
|
||||
*
|
||||
* Author: Eagle Themes
|
||||
* Package: Eagle-Booking/Templates
|
||||
* Version: 1.1.5
|
||||
*/
|
||||
|
||||
defined('ABSPATH') || exit;
|
||||
?>
|
||||
|
||||
<div class="eb-column">
|
||||
<div class="room-sidebar <?php if (eb_get_option('eb_room_page_sticky_sidebar') == true ) echo esc_attr('sticky-sidebar'); ?>">
|
||||
|
||||
<?php
|
||||
|
||||
// Load hotel branch if enabled
|
||||
if ( eb_get_option('room_hotel_branch') == true ) include eb_load_template('single-room/branch.php');
|
||||
|
||||
// Load booking form if enabled
|
||||
if (eb_get_option('eagle_booking_room_booking_form') == true ) include eb_load_template('single-room/booking-form.php');
|
||||
|
||||
// Get sidebar widgets
|
||||
dynamic_sidebar("eagle_booking_single_room_sidebar");
|
||||
|
||||
?>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@@ -0,0 +1,78 @@
|
||||
<?php
|
||||
/**
|
||||
* The Template for displaying room similar rooms
|
||||
*
|
||||
* This template can be overridden by copying it to yourtheme/eb-templates/single-room/similar-rooms.php.
|
||||
*
|
||||
* Author: Eagle Themes
|
||||
* Package: Eagle-Booking/Templates
|
||||
* Version: 1.1.6
|
||||
*/
|
||||
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
|
||||
$branch_terms = get_the_terms( get_the_ID(), 'eagle_branch' );
|
||||
$branch_id = join(', ', wp_list_pluck($branch_terms, 'term_id'));
|
||||
|
||||
// If a branch is assigend then display only rooms of the same branch
|
||||
if ( $branch_id ) {
|
||||
|
||||
$args = array(
|
||||
'post_type' => 'eagle_rooms',
|
||||
'post__not_in' => array( get_the_ID() ),
|
||||
'posts_per_page' => 3,
|
||||
'orderby' => 'rand',
|
||||
'suppress_filters' => false,
|
||||
|
||||
'tax_query' => array(
|
||||
array(
|
||||
'taxonomy' => 'eagle_branch',
|
||||
'field' => 'term_id',
|
||||
'terms' => $branch_id
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
} else {
|
||||
|
||||
$args = array(
|
||||
'post_type' => 'eagle_rooms',
|
||||
'post__not_in' => array( get_the_ID() ),
|
||||
'posts_per_page' => 3,
|
||||
'suppress_filters' => false
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
$similar_rooms_qry = new WP_Query($args);
|
||||
|
||||
?>
|
||||
|
||||
<div class="similar-rooms">
|
||||
<h2 class="section-title"><?php echo esc_html__('Similar Rooms', 'eagle-booking')?></h2>
|
||||
<div class="eb-g-lg-3 eb-g-sm-1">
|
||||
<?php
|
||||
if ( $similar_rooms_qry->have_posts() ) : while ($similar_rooms_qry->have_posts()) : $similar_rooms_qry->the_post();
|
||||
$eagle_booking_room_id = get_the_id();
|
||||
$room_title = get_the_title();
|
||||
$room_thumbnail = get_the_post_thumbnail_url('', 'eagle_booking_image_size_720_470');
|
||||
$room_url = get_permalink();
|
||||
$eagle_booking_room_price = eagle_booking_room_min_price($eagle_booking_room_id);
|
||||
?>
|
||||
<div class="eb-col">
|
||||
<div class="similar-room-item" style="background-image: url('<?php echo $room_thumbnail ?>');">
|
||||
<a href="<?php echo esc_url( $room_url ) ?>">
|
||||
<div class="room-details">
|
||||
<h4 class="room-title"><?php echo esc_html( $room_title ) ?> </h4>
|
||||
<?php eb_room_price( get_the_ID(), ' / '.__('night', 'eagle-booking') ) ?>
|
||||
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php endwhile; endif; ?>
|
||||
<?php wp_reset_postdata(); ?>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,188 @@
|
||||
<?php
|
||||
/**
|
||||
* The Template for displaying all single rooms
|
||||
*
|
||||
* This template can be overridden by copying it to yourtheme/eb-templates/single-room/single-room.php.
|
||||
*
|
||||
* Author: Eagle Themes
|
||||
* Package: Eagle-Booking/Templates
|
||||
* Version: 1.1.9
|
||||
*/
|
||||
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
get_header();
|
||||
|
||||
if ( have_posts() ) : the_post();
|
||||
|
||||
// Include form parameters
|
||||
include_once EB_PATH . '/core/admin/form-parameters.php';
|
||||
|
||||
// Dates
|
||||
$eagle_booking_checkin = date('m/d/Y');
|
||||
$eagle_booking_checkout = date('m/d/Y', strtotime(' + 1 days'));
|
||||
$eagle_booking_guests_default = eb_get_option( 'eagle_booking_default_guests' );
|
||||
$eagle_booking_nights_default = 0;
|
||||
|
||||
// Defaults
|
||||
$eagle_booking_id = get_the_ID();
|
||||
$eagle_booking_title = get_the_title();
|
||||
|
||||
/**
|
||||
* Room ID based on used multi-language plugin (WPML or Polylang)
|
||||
*/
|
||||
if ( function_exists('wpml_loaded') ) {
|
||||
|
||||
$eb_room_id = apply_filters('wpml_object_id', get_the_ID(), 'eagle_rooms', true, apply_filters('wpml_default_language', NULL ));
|
||||
|
||||
} elseif ( function_exists('pll_the_languages') ) {
|
||||
|
||||
$eb_room_id = pll_get_post( get_the_ID(), pll_default_language() );
|
||||
|
||||
} else {
|
||||
|
||||
$eb_room_id = $eb_room_id ;
|
||||
|
||||
}
|
||||
|
||||
// Get external integration
|
||||
$eagle_booking_room_param = eb_get_option('booking_type_custom_room_param');
|
||||
$eagle_booking_room_external_url = get_post_meta( get_the_ID(), 'eagle_booking_mtb_room_integration_link', true );
|
||||
$eagle_booking_room_external_id = get_post_meta( get_the_ID(), 'eagle_booking_mtb_room_integration_id', true );
|
||||
|
||||
// Overide the form action if room external link has been set
|
||||
if ( !empty($eagle_booking_room_external_url) ) $eagle_booking_action = $eagle_booking_room_external_url;
|
||||
|
||||
// MTB
|
||||
$eagle_booking_mtb_room_file_id = get_post_meta( $eagle_booking_id, 'eagle_booking_mtb_room_header_id', true );
|
||||
$eb_room_page_layout = get_post_meta( $eagle_booking_id, 'eagle_booking_mtb_room_page_layout', true );
|
||||
if ( $eb_room_page_layout == '' ) $eb_room_page_layout = 'normal-slider';
|
||||
$eb_room_header_bg = wp_get_attachment_image_url( $eagle_booking_mtb_room_file_id, 'full' );
|
||||
$eb_mtb_room_max_guests = get_post_meta(get_the_ID(), 'eagle_booking_mtb_room_maxguests', true);
|
||||
$eb_mtb_room_max_adults = get_post_meta(get_the_ID(), 'eagle_booking_mtb_room_max_adults', true);
|
||||
$eb_mtb_room_max_children = get_post_meta(get_the_ID(), 'eagle_booking_mtb_room_max_children', true);
|
||||
|
||||
$eb_mtb_room_min_booking_nights = get_post_meta(get_the_ID(), 'eagle_booking_mtb_room_min_booking_nights', true);
|
||||
$eb_mtb_room_max_booking_nights = get_post_meta(get_the_ID(), 'eagle_booking_mtb_room_max_booking_nights', true);
|
||||
|
||||
if( empty( $eb_mtb_room_min_booking_nights ) ) $eb_mtb_room_min_booking_nights = 1;
|
||||
|
||||
$eb_mtb_room_size = get_post_meta(get_the_ID(), 'eagle_booking_mtb_room_size', true);
|
||||
$eb_mtb_room_bed_type = get_post_meta(get_the_ID(), 'eagle_booking_mtb_room_bed_type', true);
|
||||
|
||||
$eb_room_sidebar = get_post_meta( get_the_ID(), 'eagle_booking_mtb_room_sidebar', true);
|
||||
|
||||
// Room Grid
|
||||
if ( $eb_room_sidebar == 'none' ) {
|
||||
|
||||
$eb_room_grid_class = 'eb-no-sidebar';
|
||||
|
||||
} elseif ( $eb_room_sidebar === 'left' ) {
|
||||
|
||||
$eb_room_grid_class = 'eb-sidebar eb-left-sidebar';
|
||||
|
||||
} else {
|
||||
|
||||
$eb_room_grid_class = 'eb-sidebar eb-right-sidebar';
|
||||
|
||||
}
|
||||
|
||||
$room_slider = get_post_meta( get_the_ID(), 'eagle_booking_mtb_room_slider_images', true);
|
||||
$eagle_booking_meta_box_min_price = get_post_meta( $eagle_booking_id, 'eagle_booking_mtb_room_price_min', true );
|
||||
if (empty(get_post_meta( $eagle_booking_id, 'eagle_booking_mtb_room_maxguests', true ) ) ) {
|
||||
$eagle_booking_meta_box_max_people = 4;
|
||||
} else {
|
||||
$eagle_booking_meta_box_max_people = get_post_meta( $eagle_booking_id, 'eagle_booking_mtb_room_maxguests', true );
|
||||
}
|
||||
$eagle_booking_meta_box_text_preview = get_post_meta( $eagle_booking_id, 'eagle_booking_mtb_room_description', true );
|
||||
|
||||
/**
|
||||
* Include Room Header
|
||||
*/
|
||||
if ( $eb_room_page_layout == 'normal-slider') include eb_load_template('single-room/header.php');
|
||||
|
||||
/**
|
||||
* Include Room Full-Width Slider
|
||||
*/
|
||||
if ( $eb_room_page_layout == 'full-slider') include eb_load_template('single-room/full-slider.php');
|
||||
|
||||
?>
|
||||
|
||||
<main id="eb-room-<?php echo esc_attr($eagle_booking_id) ?>" class="room-page eb-room-page">
|
||||
<div class="container eb-container">
|
||||
<div class="<?php echo esc_attr( 'eb-room-page'.' '.$eb_room_grid_class ) ?> eb-sticky-sidebar-container">
|
||||
|
||||
<?php
|
||||
/**
|
||||
* Include Room Sidebar
|
||||
*/
|
||||
if ( $eb_room_sidebar == 'left' ) include eb_load_template('single-room/sidebar.php');
|
||||
?>
|
||||
|
||||
<div class="eb-column">
|
||||
|
||||
<?php if ( $eb_room_page_layout == 'full-slider') : ?>
|
||||
<div class="eb-g-5-3 room-main-details">
|
||||
<div class="eb-col">
|
||||
<div class="room-title">
|
||||
<h1><?php echo $eagle_booking_title ?></h1>
|
||||
</div>
|
||||
</div>
|
||||
<div class="eb-col">
|
||||
<?php eb_room_price( get_the_ID(), ' / '.__('per night', 'eagle-booking') ) ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Include Room Normal Slider
|
||||
*/
|
||||
if ( $eb_room_page_layout == 'normal-slider') include eb_load_template('single-room/slider.php');
|
||||
|
||||
/**
|
||||
* Sortable Room Elements
|
||||
*/
|
||||
$eb_room_elements = eb_get_option('eagle_booking_room_page_settings');
|
||||
if ($eb_room_elements) {
|
||||
foreach ($eb_room_elements as $eb_room_element=>$value) {
|
||||
switch($eb_room_element) {
|
||||
case 'basic_info': if ( $value == true ) include eb_load_template('single-room/info.php');
|
||||
break;
|
||||
case 'room_content': if ( $value == true ) include eb_load_template('single-room/content.php');
|
||||
break;
|
||||
case 'room_availability': if ( $value == true ) include eb_load_template('single-room/availability.php');
|
||||
break;
|
||||
case 'room_services': if ( $value == true ) include eb_load_template('single-room/services.php');
|
||||
break;
|
||||
case 'room_additional_services': if ( $value == true ) include eb_load_template('single-room/additional-services.php');
|
||||
break;
|
||||
case 'room_reviews': if ( $value == true ) include eb_load_template('single-room/reviews.php');
|
||||
break;
|
||||
case 'similar_rooms': if ( $value == true ) include eb_load_template('single-room/similar-rooms.php');
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
</div>
|
||||
|
||||
<?php
|
||||
/**
|
||||
* Include Room Sidebar
|
||||
*/
|
||||
if ( $eb_room_sidebar == 'right' ) include eb_load_template('single-room/sidebar.php');
|
||||
?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<script type="text/javascript">
|
||||
var eb_booked_dates = <?php echo json_encode(eb_availability_calendar($eb_room_id, date('Y/m/d'), date('Y/m/d', strtotime($eb_end_period)) ), JSON_UNESCAPED_SLASHES ); ?>;
|
||||
</script>
|
||||
|
||||
<?php endif ?>
|
||||
<?php get_footer(); ?>
|
||||
@@ -0,0 +1,63 @@
|
||||
<?php
|
||||
/**
|
||||
* The Template for displaying room slider
|
||||
*
|
||||
* This template can be overridden by copying it to yourtheme/eb-templates/single-room/slider.php.
|
||||
*
|
||||
* Author: Eagle Themes
|
||||
* Package: Eagle-Booking/Templates
|
||||
* Version: 1.1.6
|
||||
*/
|
||||
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
?>
|
||||
|
||||
<?php if ($room_slider) : ?>
|
||||
|
||||
<div class="room-slider">
|
||||
|
||||
<div id="eb-room-slider" class="swiper-container">
|
||||
<div class="swiper-wrapper eb-image-gallery">
|
||||
<?php
|
||||
$files = get_post_meta( get_the_ID(), 'eagle_booking_mtb_room_slider_images', true );
|
||||
foreach ( (array) $files as $attachment_id => $attachment_url ) :
|
||||
|
||||
$room_images_url = wp_get_attachment_image_url( $attachment_id, 'full' ); ?>
|
||||
|
||||
<div class="swiper-slide" style="background-image:url(<?php echo esc_url( $room_images_url ) ?>)">
|
||||
<a href="<?php echo esc_url( $room_images_url ) ?>"></a>
|
||||
<img src="<?php echo get_the_post_thumbnail_url('', 'eagle_booking_image_size_1170_680') ?>" alt="<?php echo get_post_meta($attachment_id, '_wp_attachment_image_alt', true) ?>" title="<?php echo get_the_title( $attachment_id ) ?>" height="0" width="0">
|
||||
</div>
|
||||
<?php endforeach ?>
|
||||
</div>
|
||||
<?php if ( eb_get_option('eb_room_slider_nav') == true ) : ?>
|
||||
<div class="swiper-next"><i class="fa fa-angle-right" aria-hidden="true"></i></div>
|
||||
<div class="swiper-prev"><i class="fa fa-angle-left" aria-hidden="true"></i></div>
|
||||
<?php endif ?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="room-slider-thumbs">
|
||||
<div id="eb-room-slider-thumbs" class="swiper-container">
|
||||
<div class="swiper-wrapper">
|
||||
<?php
|
||||
$files = get_post_meta( get_the_ID(), 'eagle_booking_mtb_room_slider_images', true );
|
||||
foreach ( (array) $files as $attachment_id => $attachment_url ) :
|
||||
$room_images_url = wp_get_attachment_image_url( $attachment_id, 'eagle_booking_image_size_1170_680' ); ?>
|
||||
<div class="swiper-slide" style="background-image:url(<?php echo esc_url( $room_images_url ) ?>)"></div>
|
||||
<?php endforeach ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php else : ?>
|
||||
|
||||
<?php if (has_post_thumbnail()) : ?>
|
||||
<figure>
|
||||
<img src="<?php echo get_the_post_thumbnail_url('', 'eagle_booking_image_size_1170_680') ?>" class="img-responsive" alt="<?php echo the_title() ?>">
|
||||
</figure>
|
||||
<?php endif ?>
|
||||
|
||||
<?php endif ?>
|
||||
@@ -0,0 +1,135 @@
|
||||
<?php
|
||||
/**
|
||||
* The Template for displaying hotel branch
|
||||
*
|
||||
* This template can be overridden by copying it to yourtheme/eb-templates/taxonomies/taxanomy_eagle_branch.php.
|
||||
*
|
||||
* Author: Eagle Themes
|
||||
* Package: Eagle-Booking/Templates
|
||||
* Version: 1.1.6
|
||||
*/
|
||||
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
get_header();
|
||||
|
||||
?>
|
||||
|
||||
<main class="eb-branch-page no-padding">
|
||||
|
||||
<?php
|
||||
|
||||
$eb_branch_id = get_queried_object()->term_id;
|
||||
|
||||
$args = array('post_type' => 'eagle_rooms',
|
||||
'tax_query' => array(
|
||||
array(
|
||||
'taxonomy' => 'eagle_branch',
|
||||
'field' => 'term_id',
|
||||
'terms' => $eb_branch_id,
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
$eb_branches_query = new WP_Query($args);
|
||||
|
||||
$term = get_queried_object();
|
||||
$term_id = $term->term_id;
|
||||
$eb_branch_desc = $term->description;
|
||||
$eb_branch_logo = get_term_meta( $term_id, 'eb_branch_logo', true );
|
||||
$eb_branch_bg = get_term_meta( $term_id, 'eb_branch_bg', true );
|
||||
$eb_branch_address = get_term_meta( $term_id, 'eb_branch_address', true );
|
||||
$eb_branch_phone = get_term_meta( $term_id, 'eb_branch_phone', true );
|
||||
$eb_branch_email = get_term_meta( $term_id, 'eb_branch_email', true );
|
||||
|
||||
include_once EB_PATH . '/core/admin/form-parameters.php';
|
||||
|
||||
?>
|
||||
|
||||
<div class="eb-branch-header">
|
||||
|
||||
<div class="eb-container">
|
||||
|
||||
<div class="eb-branch-cover">
|
||||
|
||||
<div class="eb-branch-image" data-src="<?php echo esc_url( $eb_branch_bg ) ?>" data-parallax="scroll" data-speed="0.3" data-mirror-selector=".eb-branch-image" data-z-index="0"></div>
|
||||
|
||||
<div class="eb-branch-details">
|
||||
<div class="eb-branch-info">
|
||||
<h1 class="eb-branch-title"><?php echo single_term_title() ?></h1>
|
||||
<p class="eb-branch-desc"><?php echo $eb_branch_desc ?></p>
|
||||
|
||||
<ul class="eb-branch-contact">
|
||||
<?php if ( $eb_branch_address ) : ?><li><i class="icon-location-pin"></i><?php echo esc_html( $eb_branch_address ) ?></li><?php endif ?>
|
||||
<?php if ( $eb_branch_phone ) : ?><li><i class="icon-phone"></i><?php echo esc_html( $eb_branch_phone ) ?></li><?php endif ?>
|
||||
<?php if ( $eb_branch_email ) : ?><li><i class="icon-envelope"></i><?php echo esc_html( $eb_branch_email ) ?></li><?php endif ?>
|
||||
</ul>
|
||||
|
||||
<div class="eb-branch-search-form">
|
||||
<form id="search-form" class="search-form" action="<?php echo $eagle_booking_action ?>" method="GET" target="<?php echo esc_attr( $eagle_booking_target ) ?>">
|
||||
|
||||
<?php
|
||||
|
||||
include eb_load_template('elements/dates-picker.php');
|
||||
|
||||
include eb_load_template('elements/guests-picker.php');
|
||||
|
||||
?>
|
||||
|
||||
<input type="hidden" name="eb_branch" value="<?php echo $term_id ?>">
|
||||
<button id="eb_search_form" class="btn eb-btn" type="submit">
|
||||
<span class="eb-btn-text"><?php echo __('Search', 'eagle-booking') ?></span>
|
||||
</button>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="eb-container">
|
||||
|
||||
<div class="eb-rooms eb-branch-rooms">
|
||||
|
||||
<div class="eb-rooms-list">
|
||||
|
||||
<?php
|
||||
|
||||
$eagle_booking_checkin = '';
|
||||
$eagle_booking_checkout = '';
|
||||
|
||||
if( $eb_branches_query->have_posts()) {
|
||||
|
||||
echo '<div class="eb-branch-bar"><h2 class="eb-branch-rooms-title">'. __('Rooms of', 'eagle-booking').' '.single_term_title("", false).'</h2></div>';
|
||||
|
||||
while ( $eb_branches_query->have_posts() ) : $eb_branches_query->the_post();
|
||||
/**
|
||||
* Include Room
|
||||
*/
|
||||
include eb_load_template('search/room.php');
|
||||
|
||||
endwhile;
|
||||
|
||||
} else {
|
||||
|
||||
echo '<div id="eb-no-search-results" class="eb-alert mt20 text-center" role="alert">' .__('There are no rooms for this hotel branch', 'eagle-booking').'</div>';
|
||||
}
|
||||
|
||||
wp_reset_query()
|
||||
|
||||
?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</main>
|
||||
|
||||
<?php get_footer() ?>
|
||||
Reference in New Issue
Block a user