コード例 #1
0
<?php

/**
 * @package WordPress
 * @subpackage Traveler
 * @since 1.0
 *
 * hotel filter price
 *
 * Created by ShineTheme
 *
 */
$prices = STHotel::get_min_max_price();
if (isset($prices['min']) and $prices['min']) {
    $min = $prices['min'];
} else {
    $min = 0;
}
if (isset($prices['max']) and $prices['max']) {
    $max = $prices['max'];
} else {
    $max = 500;
}
?>
<form method="get" action="">
    <?php 
$get = STInput::get();
if (!empty($get)) {
    foreach ($get as $key => $value) {
        if (is_array($value)) {
            if (!empty($value)) {