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

@@ -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>