uapte
This commit is contained in:
@@ -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');
|
||||
|
||||
@@ -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
0
templates/shortcodes/properties.php
Executable file → Normal 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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user