<label><?php esc_html_e('Price range:', 'wpestate'); ?> </label> <span id="amount" style="border:0; color:#f6931f; font-weight:bold;"><?php print wpestate_show_price_label_slider($min_price_slider, $max_price_slider, $currency, $where_currency); ?> </span> </p> <div id="slider_price"></div> <input type="hidden" id="price_low" name="price_low" value="<?php echo wpestate_price_default_convert($min_price_slider); ?> " /> <input type="hidden" id="price_max" name="price_max" value="<?php echo wpestate_price_default_convert($max_price_slider); ?> " /> </div> </div> <?php wpestate_show_extended_search(''); ?> <!-- <div class="col-md-2"> <input name="submit" type="submit" class="wpb_btn-info wpb_btn-small wpestate_vc_button vc_button" id="advanced_submit_2" value="<?php esc_html_e('Search', 'wpestate'); ?> "> </div>
function normal_fields_widget($action_select_list, $cate_select_list, $select_city_list, $select_area_list) { if (!empty($action_select_list)) { print ' <div class="dropdown form-control" > <div data-toggle="dropdown" id="sidebar_filter_action" class="sidebar_filter_menu"> ' . esc_html__('All Sizes', 'wpestate') . ' <span class="caret caret_sidebar"></span> </div> <input type="hidden" name="filter_search_action[]" value=""> <ul id="list_sidebar_filter_action" class="dropdown-menu filter_menu" role="menu" aria-labelledby="sidebar_filter_action"> ' . $action_select_list . ' </ul> </div>'; } if (!empty($cate_select_list)) { print ' <div class="dropdown form-control" > <div data-toggle="dropdown" id="a_sidebar_filter_categ" class="sidebar_filter_menu"> ' . esc_html__('All Types', 'wpestate') . ' <span class="caret caret_sidebar"></span> </div> <input type="hidden" name="filter_search_type[]" value=""> <ul id="sidebar_filter_categ" class="dropdown-menu filter_menu" role="menu" aria-labelledby="a_sidebar_filter_categ"> ' . $cate_select_list . ' </ul> </div>'; } if (!empty($select_city_list)) { print ' <div class=" dropdown form-control" > <div data-toggle="dropdown" id="sidebar_filter_cities" class="sidebar_filter_menu"> ' . esc_html__('All Cities', 'wpestate') . ' <span class="caret caret_sidebar"></span> </div> <input type="hidden" name="advanced_city" value=""> <ul id="sidebar_filter_city" class="dropdown-menu filter_menu" role="menu" aria-labelledby="sidebar_filter_cities"> ' . $select_city_list . ' </ul> </div> '; } if (!empty($select_area_list)) { print ' <div class="dropdown form-control" > <div data-toggle="dropdown" id="sidebar_filter_areas" class="sidebar_filter_menu">' . esc_html__('Nearest Schools', 'wpestate') . '<span class="caret caret_sidebar"></span> </div> <input type="hidden" name="advanced_area" value=""> <ul id="sidebar_filter_area" class="dropdown-menu filter_menu" role="menu" aria-labelledby="sidebar_filter_areas"> ' . $select_area_list . ' </ul> </div>'; } print ' <input type="text" id="adv_rooms_widget" name="advanced_rooms" placeholder="' . esc_html__('Type Bedrooms No.', 'wpestate') . '" class="advanced_select form-control"> <input type="text" id="adv_bath_widget" name="advanced_bath" placeholder="' . esc_html__('Type Bathrooms No.', 'wpestate') . '" class="advanced_select form-control">'; $show_slider_price = get_option('wp_estate_show_slider_price', ''); if ($show_slider_price == 'yes') { $where_currency = esc_html(get_option('wp_estate_where_currency_symbol', '')); $currency = esc_html(get_option('wp_estate_currency_symbol', '')); $min_price_slider = floatval(get_option('wp_estate_show_slider_min_price', '')); $max_price_slider = floatval(get_option('wp_estate_show_slider_max_price', '')); $price_slider_label = wpestate_show_price_label_slider($min_price_slider, $max_price_slider, $currency, $where_currency); print ' <div class="adv_search_widget"> <p> <label>' . esc_html__('Price range:', 'wpestate') . '</label> <span id="amount_wd" style="border:0; ">' . $price_slider_label . '</span> </p> <div id="slider_price_widget"></div> <input type="hidden" id="price_low_widget" name="price_low" value="' . wpestate_price_default_convert($min_price_slider) . '"/> <input type="hidden" id="price_max_widget" name="price_max" value="' . wpestate_price_default_convert($max_price_slider) . '"/> </div>'; } else { print ' <input type="text" id="price_low_widget" name="price_low" class="advanced_select form-control" placeholder="' . esc_html__('Type Min. Price', 'wpestate') . '"/> <input type="text" id="price_max_widget" name="price_max" class="advanced_select form-control" placeholder="' . esc_html__('Type Max. Price', 'wpestate') . '"/>'; } }