示例#1
0
$enable_cruises = $byt_theme_globals->enable_cruises();
$cruise_extra_fields = $byt_theme_globals->get_cruise_extra_fields();
$tab_array = $byt_theme_globals->get_cruise_tabs();
$price_decimal_places = $byt_theme_globals->get_price_decimal_places();
$default_currency_symbol = $byt_theme_globals->get_default_currency_symbol();
$show_currency_symbol_after = $byt_theme_globals->show_currency_symbol_after();
if (have_posts()) {
    the_post();
    $cruise_obj = new byt_cruise($post);
    $cruise_id = $cruise_obj->get_id();
    $entity_obj = $cruise_obj;
    $cruise_date_from = date('Y-m-d', strtotime("+0 day", time()));
    $cruise_date_from_year = date('Y', strtotime("+0 day", time()));
    $cruise_date_from_month = date('n', strtotime("+0 day", time()));
    $cruise_is_reservation_only = $cruise_obj->get_is_reservation_only();
    $cruise_locations = $cruise_obj->get_locations();
    ?>
	<script>
		window.postType = 'cruise';
	</script>
<?php 
    if ($enable_reviews) {
        get_template_part('includes/parts/review', 'form');
    }
    get_template_part('includes/parts/inquiry', 'form');
    ?>
	<!--cruise three-fourth content-->
	<section class="three-fourth">
		<?php 
    get_template_part('includes/parts/cruise', 'booking-form');
    get_template_part('includes/parts/cruise', 'confirmation-form');