Beispiel #1
0
<?php

$c = TravelHelper::get_location_temp();
?>
<div class="loc-info text-right hidden-xs hidden-sm">
    <h3 class="loc-info-title"><?php 
the_title();
?>
</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 {