This commit is contained in:
ThemeLexus
2019-09-28 16:39:55 +07:00
parent 2195d7e04f
commit f306df84c8
106 changed files with 2720 additions and 1356 deletions

View File

@@ -11,9 +11,9 @@
}
$onlyfeatured = 0;
if( isset($_GET['s_agents']) ) {
$query = Opalestate_Query::get_agencies( array("posts_per_page"=>$limit, 'paged' => $paged), $onlyfeatured );
$query = Opalestate_Agency_Query::get_agencies( array("posts_per_page"=>$limit, 'paged' => $paged), $onlyfeatured );
} else {
$query = OpalEstate_Search::get_search_agencies_query();
$query = Opalestate_Agency_Query::get_search_agencies_query();
}
$rowcls = apply_filters('opalestate_row_container_class', 'opal-row');

View File

@@ -1,7 +1,7 @@
<?php
global $post;
if ( ! opalestate_get_option( 'enable_single_enquire_form' ) ) {
if ( opalestate_get_option( 'enable_single_enquire_form' , 'on' ) != 'on' ) {
return;
}

0
templates/shortcodes/properties.php Executable file → Normal file
View File

View File

@@ -5,7 +5,8 @@ if ( ! defined( 'ABSPATH' ) ) {
global $post, $property;
if ( ! opalestate_get_option( 'enable_single_author_box' ) ) {
if ( opalestate_get_option( 'enable_single_author_box' , 'on') != 'on' ) {
return;
}

View File

@@ -46,7 +46,7 @@ switch ( $type ) {
?>
<div class="opalestate-box-content property-agent-section">
<div class="opalestate-box">
<?php if ( opalestate_get_option( 'enable_single_author_box' ) ) : ?>
<?php if ( opalestate_get_option( 'enable_single_author_box' , 'on' ) == 'on' ) : ?>
<div class="author-content-box">
<div class="property-agent-info">
<?php echo wp_kses_post( $author_info ); ?>
@@ -54,7 +54,7 @@ switch ( $type ) {
</div>
<?php endif; ?>
<?php if ( opalestate_get_option( 'enable_single_enquire_form' ) ) : ?>
<?php if ( opalestate_get_option( 'enable_single_enquire_form', 'on' ) == 'on' ) : ?>
<?php echo opalestate_load_template_path( 'messages/enquiry-form', [ 'nowrap' => true ] ); ?>
<?php endif; ?>
</div>

View File

@@ -48,7 +48,7 @@ switch ( $type ) {
<div class="opalestate-box">
<div class="author-content-box">
<div class="opal-row">
<?php if ( opalestate_get_option( 'enable_single_author_box' ) ) : ?>
<?php if ( opalestate_get_option( 'enable_single_author_box', 'on' ) == 'on' ) : ?>
<div class="col-lg-6 col-md-6">
<div class="property-agent-info">
<?php echo wp_kses_post( $author_info ); ?>
@@ -56,7 +56,7 @@ switch ( $type ) {
</div>
<?php endif; ?>
<?php if ( opalestate_get_option( 'enable_single_enquire_form' ) ) : ?>
<?php if ( opalestate_get_option( 'enable_single_enquire_form' , 'on' ) == 'on' ) : ?>
<div class="col-lg-6 col-md-6">
<?php echo opalestate_load_template_path( 'messages/enquiry-form', [ 'nowrap' => true ] ); ?>
</div>