/** * Get Hotel price for listing and single page * * @since 1.1.1 * */ static function get_price($hotel_id = FALSE) { if (!$hotel_id) { $hotel_id = get_the_ID(); } if (self::is_show_min_price()) { $min_price = HotelHelper::get_minimum_price_hotel($hotel_id); $min_price = apply_filters('st_apply_tax_amount', $min_price); return $min_price; } else { return HotelHelper::get_avg_price_hotel($hotel_id); } }
</div> <div class="col-md-3"> <?php if (STHotel::is_show_min_price()) { $price = HotelHelper::get_minimum_price_hotel(get_the_ID()); ?> <span class="booking-item-price-from"><?php _e("Price from", ST_TEXTDOMAIN); ?> </span> <?php } else { $check_in = STInput::request('start', ''); $check_out = STInput::request('end', ''); $room_num_search = intval(STInput::request('room_num_search', 1)); $price = HotelHelper::get_avg_price_hotel(get_the_ID()); ?> <span class="booking-item-price-from"><?php _e("Price Avg", ST_TEXTDOMAIN); ?> </span> <?php } ?> <span class="booking-item-price"><?php echo TravelHelper::format_money($price); ?> </span><span>/<?php st_the_language('night'); ?>