Origin commit

This commit is contained in:
Hoang Huu
2019-09-10 11:27:33 +07:00
commit 499e068e4f
844 changed files with 188705 additions and 0 deletions

View File

@@ -0,0 +1,44 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
if( !isset($type) ){
$type = 'property';
}
if( !isset($heading) ){
$heading = esc_html__( 'Contact Me', 'opalestate-pro' );
}
$object = OpalEstate_User_Message::get_instance();
$fields = $object->get_contact_form_fields();
$form = OpalEstate()->html->render_form( $fields );
$id = 'send-contact-form'
?>
<?php if ( ! empty( $email ) ) : ?>
<div class="contact-form-container">
<h5 class="contact-form-title"><?php echo $heading; ?></h5>
<div class="property-equire-form-container">
<div class="box-content">
<form method="post" class="opalestate-message-form">
<?php do_action('opalestate_message_form_before'); ?>
<?php echo $form;?>
<?php do_action( 'opalestate_message_form_after' ); ?>
<?php wp_nonce_field( $id, 'message_action' ); ?>
<button class="button btn btn-primary btn-3d" data-loading-text="<i class='fa fa-circle-o-notch fa-spin'></i> <?php esc_html_e( ' Processing', 'opalestate-pro' ); ?>" type="submit" name="contact-form"><?php echo esc_html__( 'Send message', 'opalestate-pro' ); ?></button>
</form>
</div><!-- /.agent-contact-form -->
</div><!-- /.agent-contact-->
</div><!-- /.agent-contact-->
<?php endif; ?>

View File

@@ -0,0 +1,45 @@
<?php
global $post;
$message = sprintf(__('Hi, I am interested in %s (Property ID: %s)', 'opalestate-pro'), get_the_title() , get_the_ID() );
$property_id = get_the_ID();
$heading = esc_html__( 'Enquire about property', 'opalestate-pro' );
$object = OpalEstate_User_Message::get_instance();
$fields = $object->get_equiry_form_fields( $message );
$form = OpalEstate()->html->render_form( $fields );
$id = 'send-enquiry-form';
?>
<?php if( isset($nowrap) && $nowrap ) : ?>
<form method="post" class="opalestate-message-form">
<?php do_action('opalestate_message_form_before'); ?>
<?php echo $form;?>
<?php do_action( 'opalestate_message_form_after' ); ?>
<?php wp_nonce_field( $id, 'message_action' ); ?>
<button class="button btn btn-primary btn-3d" data-loading-text="<i class='fa fa-circle-o-notch fa-spin'></i> <?php esc_html_e( ' Processing', 'opalestate-pro' ); ?>" type="submit" name="contact-form"><?php echo esc_html__( 'Send message', 'opalestate-pro' ); ?></button>
</form>
<?php else : ?>
<div class="opalestate-box-content property-equire-form">
<div class="opalestate-box">
<div class="property-equire-form-container">
<h5 class="contact-form-title"><?php echo $heading; ?></h5>
<div class="box-content">
<form method="post" class="opalestate-message-form">
<?php do_action('opalestate_message_form_before'); ?>
<?php echo $form;?>
<?php do_action( 'opalestate_message_form_after' ); ?>
<?php wp_nonce_field( $id, 'message_action' ); ?>
<button class="button btn btn-primary btn-3d" data-loading-text="<i class='fa fa-circle-o-notch fa-spin'></i> <?php esc_html_e( ' Processing', 'opalestate-pro' ); ?>" type="submit" name="contact-form"><?php echo esc_html__( 'Send message', 'opalestate-pro' ); ?></button>
</form>
</div><!-- /.agent-contact-form -->
</div><!-- /.agent-contact-->
</div>
</div>
<?php endif; ?>

View File

@@ -0,0 +1,14 @@
<div id="<?php echo $id; ?>-popup" class="white-popup mfp-hide opalestate-mfp-popup">
<h4><?php echo $heading; ?></h4>
<p class="opalestate-note"><?php echo $description; ?></p>
<?php echo '<form action="//' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] . '" class="opalestate-message-form" method="post" id="'.$id.'" enctype="multipart/form-data" data-action="send_email_request_reviewing">'; ?>
<?php do_action( 'opalestate_message_form_before' ); ?>
<?php echo $form; ?>
<?php wp_nonce_field( $id, 'message_action' ); ?>
<?php do_action( 'opalestate_message_form_after' ); ?>
<button type="submit" name="submit" value="<?php esc_html_e( 'Send now', 'opalestate-pro' ); ?>" class="btn btn-primary">
<?php esc_html_e( 'Send now', 'opalestate-pro' ); ?>
</button>
<?php echo '</form>'; ?>
</div>