Пример #1
0
        the_post();
        //init variables
        $tour_id = get_the_ID();
        $city = trav_tour_get_city($tour_id);
        $country = trav_tour_get_country($tour_id);
        $date_from = isset($_GET['date_from']) ? trav_tophptime($_GET['date_from']) : date(trav_get_date_format('php'));
        $date_to = isset($_GET['date_to']) ? trav_tophptime($_GET['date_to']) : date(trav_get_date_format('php'), trav_strtotime($date_from) + 86400 * 30);
        $repeated = get_post_meta($tour_id, 'trav_tour_repeated', true);
        $multi_book = get_post_meta($tour_id, 'trav_tour_multi_book', true);
        $isv_setting = get_post_meta($tour_id, 'trav_post_media_type', true);
        $discount = get_post_meta($tour_id, 'trav_tour_hot', true);
        $discount_rate = get_post_meta($tour_id, 'trav_tour_discount_rate', true);
        $sc_list_pos = get_post_meta($tour_id, 'trav_tour_sl_first', true);
        $schedule_types = trav_tour_get_schedule_types($tour_id);
        // add to user recent activity
        trav_update_user_recent_activity($tour_id);
        ?>

		<section id="content">
			<div class="container tour-detail-page">
				<div class="row">
					<div id="main" class="col-sm-8 col-md-9">
						<div <?php 
        post_class();
        ?>
>
							<div class="image-box">
								<?php 
        if (!empty($discount) && !empty($discount_rate)) {
            ?>
									<span class="discount"><span class="discount-text"><?php 
Пример #2
0
            $show_gallery = in_array('gallery', $main_top_meta) ? 1 : 0;
            $show_map = in_array('map', $main_top_meta) ? 1 : 0;
            $show_street_view = in_array('street', $main_top_meta) ? 1 : 0;
            $show_calendar = in_array('calendar', $main_top_meta) ? 1 : 0;
        }
        // init booking search variables
        $rooms = isset($_GET['rooms']) && is_numeric($_GET['rooms']) ? sanitize_text_field($_GET['rooms']) : 1;
        $adults = isset($_GET['adults']) && is_numeric($_GET['adults']) ? sanitize_text_field($_GET['adults']) : 1;
        $kids = isset($_GET['kids']) && is_numeric($_GET['kids']) ? sanitize_text_field($_GET['kids']) : 0;
        $child_ages = isset($_GET['child_ages']) ? $_GET['child_ages'] : '';
        $date_from = isset($_GET['date_from']) ? trav_tophptime($_GET['date_from']) : '';
        $date_to = isset($_GET['date_to']) ? trav_tophptime($_GET['date_to']) : '';
        $except_booking_no = isset($_GET['edit_booking_no']) ? sanitize_text_field($_GET['edit_booking_no']) : 0;
        $pin_code = isset($_GET['pin_code']) ? sanitize_text_field($_GET['pin_code']) : 0;
        // add to user recent activity
        trav_update_user_recent_activity($acc_id);
        ?>

		<section id="content">
			<div class="container">
				<div class="row">
					<div id="main" class="col-sm-8 col-md-9">
						<div class="tab-container style1" id="hotel-main-content">
							<ul class="tabs">

								<?php 
        if (!empty($gallery_imgs) && $show_gallery) {
            ?>
									<li><a data-toggle="tab" href="#photos-tab"><?php 
            echo __('photos', 'trav');
            ?>
Пример #3
0
<?php

get_header();
if (have_posts()) {
    while (have_posts()) {
        the_post();
        //init variables
        $post_id = get_the_ID();
        // add to user recent activity
        trav_update_user_recent_activity($post_id);
        ?>

		<section id="content">
			<div class="container">
				<div class="row">
					<div id="main" class="col-sm-8 col-md-9">
						<div id="post-<?php 
        the_ID();
        ?>
" <?php 
        post_class();
        ?>
>
							<?php 
        $isv_setting = get_post_meta($post_id, 'trav_post_media_type', true);
        ?>
							<?php 
        trav_post_gallery($post_id);
        ?>
							<div class="details<?php 
        echo empty($isv_setting) || $isv_setting == 'no' ? ' without-featured-item' : '';