Fix search box. Tag v1.5.3

This commit is contained in:
Hoang Huu
2020-06-05 09:21:25 +07:00
parent 13bc6c7ea1
commit 47262e47ec
6 changed files with 28 additions and 5 deletions

View File

@@ -15,7 +15,7 @@ $id = time();
<ul class="list-inline opalestate-scroll-elements">
<li><a href="#block-description" class="active"><?php esc_html_e( 'Description', 'opalestate-pro' ); ?></a></li>
<?php if ( opalestate_get_option( 'enable_agent_reviews' ) ) : ?>
<?php if ( opalestate_agent_reviews_enabled() ) : ?>
<li><a href="#reviews"><?php esc_html_e( 'Review', 'opalestate-pro' ); ?></a></li>
<?php endif; ?>

View File

@@ -9,6 +9,7 @@ defined( 'ABSPATH' ) || exit;
$GLOBALS['group-info-column'] = 1;
$display_category = isset( $display_category ) ? $display_category : true;
$display_country = isset( $display_country ) ? $display_country : true;
$display_state = isset( $display_state ) ? $display_state : true;
$display_city = isset( $display_city ) ? $display_city : true;
@@ -24,6 +25,10 @@ $form_classes = [
<form class="<?php echo esc_attr( implode( ' ', array_map( 'sanitize_html_class', $form_classes ) ) ); ?>" action="<?php echo esc_url( opalestate_get_search_link() ); ?>" method="GET">
<?php
if ( $display_category ) {
echo opalestate_load_template_path( 'search-box/fields/categories' );
}
if ( $display_country ) {
echo opalestate_load_template_path( 'search-box/fields/country-select' );
}