Пример #1
0
        $format = TravelHelper::getDateFormat();
        $date = date_i18n($format, strtotime($check_in)) . ' <i class="fa fa-long-arrow-right"></i> ' . date_i18n($format, strtotime($check_out));
        echo balanceTags($date);
    }
    ?>
                <?php 
}
?>
            </div>
            <?php 
$is_st_show_number_user_book = st()->get_option('st_show_number_user_book', 'off');
if ($is_st_show_number_user_book == 'on') {
    ?>
                <div class="package-info">
                <?php 
    $info_book = STHoliday::get_count_user_book(get_the_ID());
    ?>
                <i class="fa  fa-user"></i>
                                    <span class="">
                                        <?php 
    if ($info_book > 1) {
        echo sprintf(__('%d users booked', ST_TEXTDOMAIN), $info_book);
    } else {
        echo sprintf(__('%d user booked', ST_TEXTDOMAIN), $info_book);
    }
    ?>
                                    </span>
            </div>
            <?php 
}
?>