* @subpackage Traveler * @since 1.0 * * Tours info * * Created by ShineTheme * */ //check is booking with modal $st_is_booking_modal = apply_filters('st_is_booking_modal', false); $type_price = get_post_meta(get_the_ID(), 'type_price', true); $type_tour = get_post_meta(get_the_ID(), 'type_tour', true); if ($type_price == 'people_price') { $info_price = STTour::get_price_person(get_the_ID()); } else { $info_price = STTour::get_info_price(get_the_ID()); } echo STTemplate::message(); ?> <div class="package-info-wrapper pull-left" style="width: 100%"> <div class="row"> <div class="col-md-6"> <?php if ($type_tour == 'specific_date') { ?> <div class="package-info"> <i class="fa fa-calendar"></i> <span class="head"><?php st_the_language('tour_duration'); ?> : </span>
<div class="row row-wrap"> <?php $tours = new STTour(); while (have_posts()) { the_post(); if (intval($st_tour_of_row) <= 0) { $st_tour_of_row = 4; } $col = 12 / $st_tour_of_row; $info_price = STTour::get_info_price(); $price = $info_price['price']; $count_sale = $info_price['discount']; if (!empty($count_sale)) { $price = $info_price['price']; $price_sale = $info_price['price_old']; } ?> <div class="col-md-<?php echo esc_attr($col); ?> style_box col-sm-6 col-xs-12 st_fix_<?php echo esc_attr($st_tour_of_row); ?> _col"> <?php echo STFeatured::get_featured(); ?> <div class="thumb"> <header class="thumb-header"> <?php if (!empty($count_sale)) {
</span> <span class="booking-item-price"> <?php $min_price = STHotel::get_avg_price($post_id); echo TravelHelper::format_money($min_price); ?> </span> <span>/<?php st_the_language('night'); ?> </span> </div> <?php break; case 'st_tours': $info_price = STTour::get_info_price($post_id); $price = $info_price['price']; $count_sale = $info_price['discount']; if (!empty($count_sale)) { $price = $info_price['price']; $price_sale = $info_price['price_old']; } ?> <div <?php if ($layout == 'layout2') { echo 'class="list-location-2"'; } ?> > <span class="booking-item-price-from"><?php st_the_language('tour_from');