<?php /** * @package WordPress * @subpackage Traveler * @since 1.0 * * Activity element loop 2 * * Created by ShineTheme * */ $col = 12 / 3; $info_price = STActivity::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']; } $link = st_get_link_with_search(get_permalink(), array('start', 'end', 'duration', 'people'), $_GET); $thumb_url = wp_get_attachment_url(get_post_thumbnail_id(get_the_ID())); ?> <div class="div_item_map <?php echo 'div_map_item_' . get_the_ID(); ?> " > <!--<div class="st_featured"><?php /*echo esc_html($post_type) */ ?> </div>-->
echo TravelHelper::format_money($price); ?> </span> <span>/<?php st_the_language('rental_night'); ?> </span> </div> <?php } ?> <?php break; case 'st_activity': $info_price = STActivity::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('from');