2020-06-18 06:09:45 +02:00
|
|
|
<?php
|
|
|
|
$max_range = isset( $max_range ) && $max_range ? $max_range : apply_filters( 'opalestate_search_geo_max_range', 10 );
|
|
|
|
$range_unit = isset( $range_unit ) ? $range_unit : 'km';
|
|
|
|
$start = 1;
|
|
|
|
$location_text = isset( $_GET['location_text'] ) ? sanitize_text_field( $_GET['location_text'] ) : '';
|
|
|
|
$geo_lat = isset( $_GET['geo_lat'] ) ? sanitize_text_field( $_GET['geo_lat'] ) : '';
|
|
|
|
$geo_long = isset( $_GET['geo_long'] ) ? sanitize_text_field( $_GET['geo_long'] ) : '';
|
|
|
|
$max_geo_radius = isset( $_GET['geo_radius'] ) ? sanitize_text_field( $_GET['geo_radius'] ) : $start;
|
|
|
|
$radius_measure = isset( $_GET['radius_measure'] ) ? sanitize_text_field( $_GET['radius_measure'] ) : $range_unit;
|
|
|
|
|
|
|
|
$data_range = [
|
2019-09-10 06:27:33 +02:00
|
|
|
'id' => 'geo_radius',
|
|
|
|
'decimals' => 0,
|
2020-06-18 06:09:45 +02:00
|
|
|
'unit' => $range_unit,
|
2019-09-10 06:27:33 +02:00
|
|
|
'ranger_min' => 0,
|
2020-06-18 06:09:45 +02:00
|
|
|
'ranger_max' => $max_range,
|
2019-09-10 06:27:33 +02:00
|
|
|
'input_min' => 0,
|
2020-06-18 06:09:45 +02:00
|
|
|
'input_max' => $max_range,
|
2019-09-10 06:27:33 +02:00
|
|
|
'mode' => 1,
|
|
|
|
'start' => $max_geo_radius,
|
|
|
|
];
|
|
|
|
|
|
|
|
?>
|
|
|
|
<div class="input-search-city opalestate-search-opal-map">
|
|
|
|
<label class="opalestate-label opalestate-label--geo-location"><?php esc_html_e( 'Location', 'opalestate-pro' ); ?></label>
|
2020-06-18 06:09:45 +02:00
|
|
|
<input class="form-control opal-map-search" name="location_text" value="<?php echo esc_attr( $location_text ); ?>" placeholder="<?php esc_attr_e( 'Type City or Area', 'opalestate-pro' ); ?>">
|
|
|
|
<input class="opal-map-latitude" name="geo_lat" type="hidden" value="<?php echo esc_attr( $geo_lat ); ?>">
|
|
|
|
<input class="opal-map-longitude" name="geo_long" type="hidden" value="<?php echo esc_attr( $geo_long ); ?>">
|
|
|
|
<input class="opal-map-radius-measure" name="radius_measure" type="hidden" value="<?php echo esc_attr( $radius_measure ); ?>">
|
|
|
|
<div class="map-remove"><i class="fa fa-close"></i></div>
|
|
|
|
<div class="opalestate-popup opalestate-popup-geo-location">
|
|
|
|
<div class="popup-head">
|
2019-09-13 09:32:36 +02:00
|
|
|
<span class="radius-status">
|
|
|
|
<span class="radius-status__number"><?php echo absint( $max_geo_radius ); ?></span>
|
2020-06-18 06:09:45 +02:00
|
|
|
<span class="radius-status__unit"><?php echo esc_html( $range_unit ); ?></span>
|
2019-09-13 09:32:36 +02:00
|
|
|
</span>
|
2020-06-18 06:09:45 +02:00
|
|
|
<span><i class="fa fa-location-arrow"></i></span>
|
|
|
|
</div>
|
|
|
|
<div class="popup-body">
|
|
|
|
<div class="popup-close"><i class="fa fa-times" aria-hidden="true"></i></div>
|
2019-09-10 06:27:33 +02:00
|
|
|
<div class="contact-share-form-container">
|
2019-09-13 10:22:59 +02:00
|
|
|
<h6><?php esc_html_e( 'Show with in', 'opalestate-pro' ); ?></h6>
|
2019-09-10 06:27:33 +02:00
|
|
|
<div class="box-content ">
|
2020-06-18 06:09:45 +02:00
|
|
|
<?php opalesate_property_slide_ranger_template( esc_html__( 'Radius', 'opalestate-pro' ), $data_range ); ?>
|
2019-09-13 10:22:59 +02:00
|
|
|
<p><?php esc_html_e( 'Of My Location', 'opalestate-pro' ); ?></p>
|
2019-09-10 06:27:33 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-06-18 06:09:45 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2019-09-10 06:27:33 +02:00
|
|
|
</div>
|