Пример #1
0
    echo TravelHelper::format_money(STHotel::get_avg_price($hotel_id));
    ?>
</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']) {
Пример #2
0
?>
</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']) {
Пример #3
0
>
                        			<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