Fixes
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
<?php
|
||||
global $post;
|
||||
|
||||
if ( opalestate_get_option( 'enable_single_enquire_form' , 'on' ) != 'on' ) {
|
||||
return;
|
||||
if ( opalestate_get_option( 'enable_single_enquire_form', 'on' ) !== 'on' ) {
|
||||
return;
|
||||
}
|
||||
|
||||
$message = sprintf( __( 'Hi, I am interested in %s (Property ID: %s)', 'opalestate-pro' ), get_the_title(), get_the_ID() );
|
||||
|
||||
$property_id = get_the_ID();
|
||||
$infor_id = apply_filters( 'opalestate_contact_form_infor_id', $property_id, $property_id );
|
||||
$message = sprintf( __( 'Hi, I am interested in %s (Property ID: %s)', 'opalestate-pro' ), get_the_title(), $infor_id );
|
||||
$heading = esc_html__( 'Enquire about property', 'opalestate-pro' );
|
||||
$object = OpalEstate_User_Message::get_instance();
|
||||
$fields = $object->get_equiry_form_fields( $message );
|
||||
|
||||
@@ -1,12 +1,11 @@
|
||||
<?php
|
||||
$layout = 'collapse-city';
|
||||
$settings = array();
|
||||
<?php
|
||||
$layout = apply_filters( 'opalestate_archive_search_block_form_layout', 'collapse-city' );
|
||||
$settings = [];
|
||||
?>
|
||||
<div class="opalestate-archive-search-block">
|
||||
<div class="container">
|
||||
<div class="search-properies-form">
|
||||
<?php echo opalestate_load_template_path( 'search-box/'.$layout , $settings ); ?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="container">
|
||||
<div class="search-properies-form">
|
||||
<?php echo opalestate_load_template_path( 'search-box/' . $layout, $settings ); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user