function carrental_get_booking_form() { global $theme_options; // Locations + business hours $locations = CarRental::get_locations(); $vehicle_cats = CarRental::get_vehicle_categories(); $vehicle_names = CarRental::get_vehicle_names(); wp_register_style('jquery-ui.css', '//ajax.googleapis.com/ajax/libs/jqueryui/1.11.0/themes/smoothness/jquery-ui.css', array()); wp_enqueue_style('jquery-ui.css'); include get_file_template_path('booking-form.php'); include get_file_template_path('booking-javascript.php'); }
<?php include get_file_template_path('choose-car-content.php'); ?>
<?php /** * The main template file * * * @link http://codex.wordpress.org/Template_Hierarchy * * @package WordPress * @subpackage CarRental * @since CarRental 3.0.0 */ if (is_page()) { include get_file_template_path('single.php'); } else { get_header(); ?> <section class="intro"> <div> <?php $theme_options = unserialize(get_option('carrental_theme_options')); ?> <?php $slider_options = unserialize(get_option('carrental_theme_slider_options')); ?> <?php $background_style = "background-image:url('" . htmlspecialchars($theme_options['picture_homepage']) . "');"; ?> <?php
</div> <?php } ?> <?php } ?> </div> <!-- .bordered-content --> </div> <!-- .column --> </div> <!-- .columns-2 --> <div id="carrental-hidden-booking-form"> <p class="close-win">×</p> <h3><?php echo CarRental::t('Book your car now'); ?> </h3> <?php $carrental_booking_form_id = '_popup'; ?> <?php include get_file_template_path('booking-form.php'); ?> </div> <div class="booking-form-overflow"></div>
echo CarRental::t('MODIFY'); ?> " id="carrental_book_now" class="btn btn-primary btn-block"> </div> <!-- .control-field --> </div> <!-- .control-group --> </fieldset> <ul id="carrental_book_errors" style="margin:1em 2em;list-style-type:circle;color:tomato;"></ul> </form> </div> <?php include get_file_template_path('booking-javascript.php'); ?> <?php if (isset($theme_options['phone_number']) && !empty($theme_options['phone_number'])) { ?> <div class="box-inner-small"> <div class="invert-columns-2 init-md"> <div class="column"> <div class="box box-inner-small box-contact box-contact-small"> <div class="h2" style="text-align:center;margin-bottom:15px;"> <?php echo CarRental::t('Make a reservation by phone'); ?> <br> </div>