</a></h5> <?php if ($address = get_post_meta(get_the_ID(), 'address', TRUE)) { ?> <p class="mb0"> <small> <?php echo esc_html($address); ?> </small> </p> <?php } ?> <?php $is_sale = STRental::is_sale(); $orgin_price = STRental::get_orgin_price(); $price = STRental::get_price(); $show_price = st()->get_option('show_price_free'); ?> <?php $features = get_post_meta(get_the_ID(), 'fetures', true); if (!empty($features)) { ?> <?php echo '<ul class="booking-item-features booking-item-features-rentals booking-item-features-sign clearfix mt5 mb5">'; foreach ($features as $key => $value) { $d = array('icon' => '', 'title' => ''); $value = wp_parse_args($value, $d); echo '<li rel="tooltip" data-placement="top" title="" data-original-title="' . $value['title'] . '"><i class="' . TravelHelper::handle_icon($value['icon']) . '"></i>'; if ($value['number']) { echo '<span class="booking-item-feature-sign">x ' . $value['number'] . '</span>';
?> </span> <small> <?php st_the_language('avg/night'); ?> </small> </p> <?php } ?> <?php if (get_post_type($hotel_id) == 'st_rental') { ?> <?php $is_sale = STRental::is_sale($hotel_id); $orgin_price = STRental::get_orgin_price($hotel_id); $price = STRental::get_price($hotel_id); $show_price = st()->get_option('show_price_free'); ?> <?php $features = get_post_meta($hotel_id, 'fetures', true); if (!empty($features)) { ?> <?php echo '<ul class="booking-item-features booking-item-features-rentals booking-item-features-sign clearfix mt5 mb5">'; foreach ($features as $key => $value) { $d = array('icon' => '', 'title' => ''); $value = wp_parse_args($value, $d); echo '<li rel="tooltip" data-placement="top" title="" data-original-title="' . $value['title'] . '"><i class="' . TravelHelper::handle_icon($value['icon']) . '"></i>'; if ($value['number']) { echo '<span class="booking-item-feature-sign">x ' . $value['number'] . '</span>';
"><?php the_title(); ?> </a> </h5> <ul class="icon-group booking-item-rating-stars"> <?php $avg = STReview::get_avg_rate(); echo TravelHelper::rate_to_string($avg); $is_sale = STRental::is_sale(); ?> </ul> </div> <div class="col-xs-3"> <?php if ($is_sale) { echo "<span class='booking-item-old-price'>" . TravelHelper::format_money(STRental::get_orgin_price()) . "</span>"; } ?> <span class="booking-item-price-from"><span class="booking-item-price"> <?php echo TravelHelper::format_money($new_price); ?> </span> </div> </div> </div> </li> <?php } echo "</ul>"; wp_reset_query();
<span class="booking-item-price-from"><?php st_the_language('holiday_from'); ?> </span> <?php echo STHoliday::get_price_html($post_id, false, '<br>'); ?> <span class="info_price"></span> </div> <?php break; case 'st_rental': $is_sale = STRental::is_sale($post_id); $orgin_price = STRental::get_orgin_price($post_id); $price = STRental::get_price($post_id); $show_price = st()->get_option('show_price_free'); ?> <div <?php if ($layout == 'layout2') { echo 'class="list-location-2"'; } ?> > <span class="booking-item-price-from"><?php _e("From", ST_TEXTDOMAIN); ?> </span> <?php if ($is_sale) {