?> </h3> <p class="loc-info-weather"> <span class="loc-info-weather-num"> <?php echo balanceTags($c['temp']); ?> </span> <?php echo balanceTags($c['icon']); ?> </p> <ul class="loc-info-list"> <?php $hotel = new STHotel(); if ($hotel->is_available()) { $min_price = get_post_meta(get_the_ID(), 'min_price_st_hotel', true); $min_price = TravelHelper::format_money($min_price); $offer = get_post_meta(get_the_ID(), 'offer_st_hotel', true); if (!empty($min_price) and !empty($offer)) { $page_search = st_get_page_search_result('st_hotel'); if (!empty($page_search)) { $link = add_query_arg(array('location_id' => get_the_ID()), get_the_permalink($page_search)); } else { $link = home_url(esc_url('?s=&post_type=st_hotel&location_id=' . get_the_ID())); } if ($offer < 2) { $offer = $offer . " " . __("Hotel from", ST_TEXTDOMAIN); } else { $offer = $offer . " " . __("Hotels from", ST_TEXTDOMAIN); }
<span class="loc-info-weather-num"> <?php echo balanceTags($c['temp']); ?> </span> <?php echo balanceTags($c['icon']); ?> </p> <?php } ?> <ul class="loc-info-list"> <?php $hotel = new STHotel(); if ($hotel->is_available() && TravelHelper::checkTableDuplicate('st_hotel')) { $info = new STLocation(); $info = $info->get_info_by_post_type(get_the_ID(), 'st_hotel'); $min_price = $info['min_max_price']['price_min']; $min_price = TravelHelper::format_money($min_price); if (empty($min_price) or !$min_price) { $min_price = __("Free", ST_TEXTDOMAIN); } if (is_array($info) && count($info)) { $offer = $info['offers']; if (!empty($offer)) { $page_search = st_get_page_search_result('st_hotel'); if (!empty($page_search) and get_post_type($page_search) == 'page') { //$link = add_query_arg(array('location_id'=>get_the_ID()),get_the_permalink($page_search)); $link = add_query_arg(array('location_id' => get_the_ID(), 'pick-up' => get_the_title()), get_the_permalink($page_search)); } else {