Esempio n. 1
0
get_header();
BYT_Theme_Utils::breadcrumbs();
get_sidebar('under-header');
global $post, $byt_theme_globals, $current_user, $cruise_obj, $entity_obj, $default_cruise_tabs, $score_out_of_10, $byt_cruises_post_type, $byt_theme_of_custom;
$enable_reviews = $byt_theme_globals->enable_reviews();
$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');