Opal-Estate-Pro/templates/submission/completed.php

34 lines
1.4 KiB
PHP
Raw Normal View History

2019-10-31 09:21:48 +01:00
<?php
2019-09-10 06:27:33 +02:00
$post_id = intval( $_GET['id'] );
2019-10-31 09:21:48 +01:00
$post = get_post( $post_id );
$type = OpalEstate()->session->get( 'submission' );
2019-09-10 06:27:33 +02:00
?>
<div class="opalestate-box-completed alert alert-success">
2019-10-31 09:21:48 +01:00
<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; ?>
2020-02-14 03:38:54 +01:00
<?php echo sprintf( esc_html__( 'Click %s here %s to view your listing or %s edit %s this.', 'opalestate-pro' ),
2019-10-31 09:21:48 +01:00
'<a href="' . opalestate_submssion_list_page() . '">', '</a>',
'<a href="' . opalestate_submssion_page( $post_id ) . '">', '</a>'
); ?>
</div>
2019-09-10 06:27:33 +02:00
<?php else : ?>
2019-10-31 09:21:48 +01:00
<div class="edit-msg">
<?php esc_html_e( 'Your property is completed success.', 'opalestate-pro' ); ?>
2020-02-14 03:38:54 +01:00
<?php echo sprintf( esc_html__( 'Click %s here %s to view your listing or %s edit %s this.', 'opalestate-pro' ),
2019-10-31 09:21:48 +01:00
'<a href="' . opalestate_submssion_list_page() . '">', '</a>',
'<a href="' . opalestate_submssion_page( $post_id ) . '">', '</a>'
); ?>
</div>
<?php endif; ?>
</div>
2019-09-10 06:27:33 +02:00
</div>
2019-10-31 09:21:48 +01:00
<?php OpalEstate()->session->set( 'submission', null ); ?>