<?php $holidays = new STHoliday(); $info_price = STHoliday::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); ?> <div class=""> <?php echo STFeatured::get_featured(); ?> <div class="thumb"> <header class="thumb-header"> <?php if (!empty($count_sale)) { ?> <span class="box_sale btn-primary"> <?php echo esc_html($count_sale); ?> % </span> <?php } ?> <a href="<?php echo esc_url($link); ?>
> <span class="booking-item-price-from"><?php st_the_language('tour_from'); ?> </span> <?php echo STTour::get_price_html($post_id, false, '<br>'); ?> <span class="info_price"></span> </div> <?php break; case 'st_holidays': $info_price = STHoliday::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('holiday_from');