Origin commit

This commit is contained in:
Hoang Huu
2019-09-10 11:27:33 +07:00
commit 499e068e4f
844 changed files with 188705 additions and 0 deletions

View File

@@ -0,0 +1 @@
<?php opalestate_property_areasize_field_template(); ?>

View File

@@ -0,0 +1,3 @@
<?php
$scity = isset( $_GET['city'] ) ? sanitize_text_field( $_GET['city'] ) : '';
Opalestate_Taxonomy_City::dropdown_list( $scity );

View File

@@ -0,0 +1,3 @@
<?php
$slocation = isset( $_GET['location'] ) ? sanitize_text_field( $_GET['location'] ): opalestate_get_session_location_val();
Opalestate_Taxonomy_Location::dropdown_list( $slocation );

View File

@@ -0,0 +1,21 @@
<?php
$fields = OpalEstate_Search::get_setting_search_fields();
if ( ! $fields ) {
return;
}
$type = isset( $type ) ? $type : '';
$column = isset( $GLOBALS['group-info-column'] ) ? $GLOBALS['group-info-column'] : 3;
if( $type != 'input' ) {
$col_class = 'col-lg-' . ( 12 / absint( $column ) ) . ' col-md-' . ( 12 / absint( $column ) ) . ' col-sm-' . ( 12 / absint( $column ) );
} else {
$col_class = 'column-item';
}
foreach ( $fields as $key => $label ): ?>
<?php if ( 'areasize' == $key ) : continue; endif; ?>
<div class="<?php echo esc_attr( $col_class ); ?>">
<?php opalestate_property_render_field_template( $key, $label, $type ); ?>
</div>
<?php endforeach; ?>

View File

@@ -0,0 +1,2 @@
<label class="opalestate-label opalestate-label--location-text"><?php esc_html_e( 'Location', 'opalestate-pro' ) ?></label>
<input class="form-control" name="location_text" placeholder="<?php esc_attr_e( 'Location', 'opalestate-pro' ); ?>">

View File

@@ -0,0 +1,33 @@
<?php
/**
* The template for more options search
*
* @version 1.0.0
*/
defined( 'ABSPATH' ) || exit;
$unique_id = esc_attr( wp_unique_id() );
$amenities = Opalestate_Taxonomy_Amenities::get_list();
if ( ! $amenities ) {
return;
}
?>
<div class="search-more-options">
<a href="#" class="opal-collapse-button" data-collapse="#more-options-<?php echo esc_attr( $unique_id ); ?>"><?php esc_html_e( 'More Search Options', 'opalestate-pro' ); ?></a>
<div id="more-options-<?php echo esc_attr( $unique_id ); ?>" class="opal-collapse-container more-options-container">
<div class="more-options-items">
<?php foreach ( $amenities as $amenity ) : ?>
<div class="more-options-item">
<label class="more-options-label">
<input type="checkbox" name="amenities[]" value="<?php echo esc_attr( $amenity->slug ); ?>">
<?php echo esc_html( $amenity->name ); ?>
</label>
</div>
<?php endforeach; ?>
</div>
</div>
</div>

View File

@@ -0,0 +1,20 @@
<?php
$search_min_price = isset( $_GET['min_price'] ) ? sanitize_text_field( $_GET['min_price'] ): opalestate_options( 'search_min_price', 0 );
$search_max_price = isset( $_GET['max_price'] ) ? sanitize_text_field( $_GET['max_price'] ): opalestate_options( 'search_max_price', 10000000 );
$data = [
'id' => 'price',
'decimals' => opalestate_get_price_decimals(),
'unit' => opalestate_currency_symbol() . ' ',
'ranger_min' => opalestate_options( 'search_min_price', 0 ),
'ranger_max' => opalestate_options( 'search_max_price', 10000000 ),
'input_min' => $search_min_price,
'input_max' => $search_max_price,
];
if ( opalestate_options( 'currency_position', 'before' ) == 'before' ) {
$data['unit_position'] = 'prefix';
}
?>
<?php opalesate_property_slide_ranger_template( esc_html__( 'Price', 'opalestate-pro' ), $data ); ?>

View File

@@ -0,0 +1,15 @@
<?php
$search_min_radius = isset( $_GET['min_radius'] ) ? sanitize_text_field( $_GET['min_radius'] ) : opalestate_options( 'search_min_radius', 0 );
$search_max_radius = isset( $_GET['max_radius'] ) ? sanitize_text_field( $_GET['max_radius'] ): opalestate_options( 'search_max_radius', 10000000 );
$data = [
'id' => 'radius',
'unit' => 'miles',
'ranger_min' => opalestate_options( 'search_min_radius', 0 ),
'ranger_max' => opalestate_options( 'search_max_radius', 10000000 ),
'input_min' => $search_min_radius,
'input_max' => $search_max_radius,
];
opalesate_property_slide_ranger_template( esc_html__( 'Radius:', 'opalestate-pro' ), $data );
?>

View File

@@ -0,0 +1,44 @@
<?php
$max_price = 10;
$start = 1;
$unit = 'KM';
$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;
$data_deposit = [
'id' => 'geo_radius',
'decimals' => 0,
'unit' => $unit,
'ranger_min' => 0,
'ranger_max' => $max_price,
'input_min' => 0,
'input_max' => $max_price,
'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>
<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="form-control opal-map-latitude" name="geo_lat" value="<?php echo esc_attr( $geo_lat ); ?>" type="hidden">
<input class="form-control opal-map-longitude" name="geo_long" type="hidden" value="<?php echo esc_attr( $geo_long ); ?>">
<div class="map-remove"><i class="fa fa-close"></i></div>
<div class="opalestate-popup">
<div class="popup-head">
<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>
<div class="contact-share-form-container">
<h6><?php echo esc_html__( 'Show with in.', 'opalestate-pro' ); ?></h6>
<div class="box-content ">
<?php opalesate_property_slide_ranger_template( esc_html__( 'Radius', 'opalestate-pro' ), $data_deposit ); ?>
<p><a href="#"><?php echo esc_html__( 'Of My Location', 'opalestate-pro' ); ?></a></p>
</div>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,2 @@
<label class="opalestate-label opalestate-label--keyword"><?php esc_html_e( 'Keyword', 'opalestate-pro' ); ?></label>
<input class="form-control" name="search_text" placeholder="<?php esc_attr_e( 'Type keyword', 'opalestate-pro' ); ?>">

View File

@@ -0,0 +1,3 @@
<?php
$sstate = isset( $_GET['state'] ) ? $_GET['state'] : '';
Opalestate_Taxonomy_State::dropdown_list( $sstate );

View File

@@ -0,0 +1,28 @@
<?php
$statuses = Opalestate_Taxonomy_Status::get_list();
if ( ! $statuses ) {
return;
}
$sstatus = isset( $_GET['status'] ) ? sanitize_text_field( $_GET['status'] ): -1;
$label = isset( $label ) ? esc_html( $label ) : esc_html__( 'All', 'opalestate-pro' );
$style = isset( $style ) && $style ? $style : '';
?>
<div class="search-status-bar <?php echo esc_attr( $style ) ? 'search-status-bar--' . $style : ''; ?>">
<ul class="list-inline clearfix list-property-status">
<?php if ( ! isset( $hide_default_status ) ) : ?>
<li class="status-item <?php if ( $sstatus == -1 ): ?> active<?php endif; ?>" data-id="-1">
<span><?php echo esc_html( $label ); ?></span>
</li>
<?php endif; ?>
<?php foreach ( $statuses as $status ): ?>
<li class="status-item <?php if ( $sstatus == $status->slug ) : ?> active<?php endif; ?>" data-id="<?php echo esc_attr( $status->slug ); ?>">
<span><?php echo esc_html( $status->name ); ?> </span>
</li>
<?php endforeach; ?>
</ul>
<input type="hidden" value="<?php echo esc_attr( $sstatus ); ?>" name="status"/>
</div>

View File

@@ -0,0 +1,4 @@
<?php
$status = isset( $_GET['status'] ) ? sanitize_text_field( $_GET['status'] ): -1;
Opalestate_Taxonomy_Status::dropdown_list( $status );
?>

View File

@@ -0,0 +1,3 @@
<button type="submit" class="<?php echo apply_filters( 'opalestate_search_form_submit_classes', 'btn btn-secondary btn-search' ); ?>">
<?php esc_html_e('Search', 'opalestate-pro'); ?>
</button>

View File

@@ -0,0 +1,9 @@
<?php
$stypes = isset( $_GET['types'] ) ? $_GET['types'] : -1;
if( isset($ismultiple) ) {
Opalestate_Taxonomy_Type::get_multi_check_list( $stypes );
} else {
Opalestate_Taxonomy_Type::dropdown_list();
}
?>