* Hotel field list location
 *
 * Created by ShineTheme
 *
 */
$default = array('title' => '', 'is_required' => 'off');
if (isset($data)) {
    extract(wp_parse_args($data, $default));
} else {
    extract($default);
}
if (!isset($field_size)) {
    $field_size = 'lg';
}
$old_location = STInput::get('location_id');
$list_location = TravelHelper::getListFullNameLocation();
if ($is_required == 'on') {
    $is_required = 'required';
}
$location_id = STInput::get('location_id', '');
$location_name = STInput::request('location_name', '');
if (!$location_id) {
    $location_id = STInput::get('location_id_pick_up');
    $location_name = STInput::get('pick-up');
}
if (!empty($list_location) and is_array($list_location)) {
    ?>
<div class="form-group form-group-<?php 
    echo esc_attr($field_size);
    ?>
 form-group-icon-left">    
示例#2
0
 */
$default = array('title' => '', 'is_required' => 'on');
if (isset($data)) {
    extract(wp_parse_args($data, $default));
} else {
    extract($default);
}
if (!isset($field_size)) {
    $field_size = 'lg';
}
if ($is_required == 'on') {
    $is_required = 'required';
}
$location_id = STInput::get('location_id', '');
$location_name = STInput::request('location_name', '');
$locations = TravelHelper::getListFullNameLocation();
?>
<div class="form-group form-group-<?php 
echo esc_attr($field_size);
?>
 form-group-icon-left">
    <label for="field-all-location_id"><?php 
echo esc_html($title);
?>
</label>
    <i class="fa fa-map-marker input-icon"></i>
    <div class="st-select-wrapper">
        <input autocomplete="off" type="text" name="location_name" value="<?php 
echo esc_html($location_name);
?>
" class="form-control st-location-name <?php