Fix submission bug.
This commit is contained in:
@@ -1,27 +1,33 @@
|
||||
<?php
|
||||
<?php
|
||||
$post_id = intval( $_GET['id'] );
|
||||
$post = get_post( $post_id );
|
||||
$type = OpalEstate()->session->get( 'submission' );
|
||||
$post = get_post( $post_id );
|
||||
$type = OpalEstate()->session->get( 'submission' );
|
||||
?>
|
||||
<div class="opalestate-box-completed alert alert-success">
|
||||
<div class="inner">
|
||||
<?php if( $type == 'addnew' ): ?>
|
||||
<div class="addnew-msg">
|
||||
<h5><?php echo esc_html__('Thanks for your submission, it takes some time to review the property.'); ?></h5>
|
||||
<?php echo sprintf( esc_html__( 'Click to %s here %s to back to your listing or %s edit %s this.', 'opalestate-pro'),
|
||||
'<a href="'.opalestate_submssion_list_page().'">', '</a>',
|
||||
'<a href="'.opalestate_submssion_page( $post_id ).'">', '</a>'
|
||||
); ?>
|
||||
</div>
|
||||
<div class="inner">
|
||||
<?php if ( $type == 'addnew' ): ?>
|
||||
<div class="addnew-msg">
|
||||
<?php if ( 'on' != opalestate_get_option( 'admin_approve', 'on' ) ) : ?>
|
||||
<h5><?php esc_html_e( 'Thanks for your submission, your property is published.', 'opalestate-pro' ); ?></h5>
|
||||
<?php else : ?>
|
||||
<h5><?php esc_html_e( 'Thanks for your submission, it takes some time to review the property.', 'opalestate-pro' ); ?></h5>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php echo sprintf( esc_html__( 'Click to %s here %s to back to your listing or %s edit %s this.', 'opalestate-pro' ),
|
||||
'<a href="' . opalestate_submssion_list_page() . '">', '</a>',
|
||||
'<a href="' . opalestate_submssion_page( $post_id ) . '">', '</a>'
|
||||
); ?>
|
||||
</div>
|
||||
<?php else : ?>
|
||||
<div class="edit-msg">
|
||||
<?php echo esc_html__('Your property is completed success.'); ?>
|
||||
<?php echo sprintf( esc_html__( 'Click to %s here %s to back to your listing or %s edit %s this.', 'opalestate-pro'),
|
||||
'<a href="'.opalestate_submssion_list_page().'">', '</a>',
|
||||
'<a href="'.opalestate_submssion_page( $post_id ).'">', '</a>'
|
||||
); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div class="edit-msg">
|
||||
<?php esc_html_e( 'Your property is completed success.', 'opalestate-pro' ); ?>
|
||||
<?php echo sprintf( esc_html__( 'Click to %s here %s to back to your listing or %s edit %s this.', 'opalestate-pro' ),
|
||||
'<a href="' . opalestate_submssion_list_page() . '">', '</a>',
|
||||
'<a href="' . opalestate_submssion_page( $post_id ) . '">', '</a>'
|
||||
); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php OpalEstate()->session->set( 'submission', null ); ?>
|
||||
|
||||
<?php OpalEstate()->session->set( 'submission', null ); ?>
|
||||
|
||||
Reference in New Issue
Block a user