Update dashboard
This commit is contained in:
parent
27053b1db3
commit
ca991c6447
@ -2,49 +2,51 @@
|
|||||||
$form = OpalEstate()->html->render_form( $fields );
|
$form = OpalEstate()->html->render_form( $fields );
|
||||||
$id = 'message-reply';
|
$id = 'message-reply';
|
||||||
?>
|
?>
|
||||||
<div class="opalestate-nav-bc opal-row">
|
<div class="opalestate-admin-box">
|
||||||
|
<div class="opalestate-nav-bc opal-row">
|
||||||
<div class="col-lg-8"><a href="<?php echo opalestate_get_user_tab_uri( 'messages' ); ?>"><?php esc_html_e( 'Inbox', 'opalestate-pro' );?></a> /
|
|
||||||
<?php echo esc_html( $message->subject ); ?>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
<div class="col-lg-8"><a href="<?php echo opalestate_get_user_tab_uri( 'messages' ); ?>"><?php esc_html_e( 'Inbox', 'opalestate-pro' );?></a> /
|
||||||
<div class="opalestate-read-message">
|
<?php echo esc_html( $message->subject ); ?>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="message-body">
|
</div>
|
||||||
<div class="message-avatar">
|
<div class="opalestate-read-message">
|
||||||
<img src="<?php echo OpalEstate_User::get_author_picture( $message->sender_id ); ?>" width="60" alt="<?php esc_attr_e( 'User Avatar', 'opalestate-pro' ); ?>"/>
|
|
||||||
</div>
|
|
||||||
<div class="message-content">
|
|
||||||
<div><?php echo esc_html( $message->created ); ?></div>
|
|
||||||
<?php echo esc_html( $message->message ); ?>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<?php if( $replies ): ?>
|
|
||||||
<?php foreach( $replies as $reply ): ?>
|
|
||||||
|
|
||||||
<div class="message-body">
|
<div class="message-body">
|
||||||
<div class="message-avatar">
|
<div class="message-avatar">
|
||||||
<img src="<?php echo OpalEstate_User::get_author_picture( $reply->sender_id ); ?>" width="60" alt="<?php esc_attr_e( 'User Avatar', 'opalestate-pro' ); ?>"/>
|
<img src="<?php echo OpalEstate_User::get_author_picture( $message->sender_id ); ?>" width="60" alt="<?php esc_attr_e( 'User Avatar', 'opalestate-pro' ); ?>"/>
|
||||||
</div>
|
</div>
|
||||||
<div class="message-content">
|
<div class="message-content">
|
||||||
<div><?php echo $reply->created; ?></div>
|
<div><?php echo esc_html( $message->created ); ?></div>
|
||||||
<?php echo $reply->message; ?>
|
<?php echo esc_html( $message->message ); ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<?php if( $replies ): ?>
|
||||||
|
<?php foreach( $replies as $reply ): ?>
|
||||||
|
|
||||||
<?php endforeach; ?>
|
<div class="message-body">
|
||||||
|
<div class="message-avatar">
|
||||||
|
<img src="<?php echo OpalEstate_User::get_author_picture( $reply->sender_id ); ?>" width="60" alt="<?php esc_attr_e( 'User Avatar', 'opalestate-pro' ); ?>"/>
|
||||||
|
</div>
|
||||||
|
<div class="message-content">
|
||||||
|
<div><?php echo $reply->created; ?></div>
|
||||||
|
<?php echo $reply->message; ?>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<?php endforeach; ?>
|
||||||
|
<?php endif; ?>
|
||||||
|
</div>
|
||||||
|
<div class="opalestate-message-reply">
|
||||||
|
<form class="opalestate-form-reply" method="post" >
|
||||||
|
<?php echo $form; ?>
|
||||||
|
<?php wp_nonce_field( $id, 'message_action' ); ?>
|
||||||
|
<div class="form-group">
|
||||||
|
<input type="hidden" name="message_id" value="<?php echo $message->id; ?>">
|
||||||
|
<button type="submit"><?php esc_html_e( 'Reply','opalestate-pro'); ?></button>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="opalestate-message-reply">
|
|
||||||
<form class="opalestate-form-reply" method="post" >
|
|
||||||
<?php echo $form; ?>
|
|
||||||
<?php wp_nonce_field( $id, 'message_action' ); ?>
|
|
||||||
<div class="form-group">
|
|
||||||
<input type="hidden" name="message_id" value="<?php echo $message->id; ?>">
|
|
||||||
<button type="submit"><?php esc_html_e( 'Reply','opalestate-pro'); ?></button>
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
<?php endif; ?>
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user