Update messages
This commit is contained in:
parent
ba79835af1
commit
df0c81f6f1
@ -1,29 +1,29 @@
|
|||||||
<?php if( $message ):
|
<?php if ( $message ):
|
||||||
$form = OpalEstate()->html->render_form( $fields );
|
$form = OpalEstate()->html->render_form( $fields );
|
||||||
$id = 'message-reply';
|
$id = 'message-reply';
|
||||||
?>
|
?>
|
||||||
<div class="opalestate-admin-box">
|
<div class="opalestate-admin-box">
|
||||||
<div class="opalestate-nav-bc opal-row">
|
<div class="opalestate-nav-bc opal-row">
|
||||||
|
<div class="col-lg-12"><a href="<?php echo esc_url( opalestate_get_user_tab_uri( 'messages' ) ); ?>"><?php esc_html_e( 'Messages', 'opalestate-pro' ); ?></a> /
|
||||||
<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 ); ?>
|
<?php echo esc_html( $message->subject ); ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="opalestate-read-message">
|
<div class="opalestate-read-message">
|
||||||
|
<div class="message-container">
|
||||||
<div class="message-body">
|
<div class="message-body">
|
||||||
<div class="message-avatar">
|
<div class="message-meta">
|
||||||
<img src="<?php echo OpalEstate_User::get_author_picture( $message->sender_id ); ?>" width="60" alt="<?php esc_attr_e( 'User Avatar', 'opalestate-pro' ); ?>"/>
|
<div class="message-avatar">
|
||||||
</div>
|
<img src="<?php echo esc_url( OpalEstate_User::get_author_picture( $message->sender_id ) ); ?>" width="60" alt="<?php esc_attr_e( 'User Avatar', 'opalestate-pro' ); ?>"/>
|
||||||
<div class="message-content">
|
</div>
|
||||||
<div><?php echo esc_html( $message->created ); ?></div>
|
<span class="message-date"><?php echo esc_html( $message->created ); ?></span>
|
||||||
<?php echo esc_html( $message->message ); ?>
|
</div>
|
||||||
|
<div class="message-content">
|
||||||
|
<p><?php echo esc_html( $message->message ); ?></p>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<?php if( $replies ): ?>
|
<?php if ( $replies ): ?>
|
||||||
<?php foreach( $replies as $reply ): ?>
|
<?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( $reply->sender_id ); ?>" width="60" alt="<?php esc_attr_e( 'User Avatar', 'opalestate-pro' ); ?>"/>
|
||||||
@ -38,12 +38,12 @@ $id = 'message-reply';
|
|||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="opalestate-message-reply">
|
<div class="opalestate-message-reply">
|
||||||
<form class="opalestate-form-reply" method="post" >
|
<form class="opalestate-form-reply" method="post">
|
||||||
<?php echo $form; ?>
|
<?php echo $form; ?>
|
||||||
<?php wp_nonce_field( $id, 'message_action' ); ?>
|
<?php wp_nonce_field( $id, 'message_action' ); ?>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<input type="hidden" name="message_id" value="<?php echo $message->id; ?>">
|
<input type="hidden" name="message_id" value="<?php echo $message->id; ?>">
|
||||||
<button type="submit"><?php esc_html_e( 'Reply','opalestate-pro'); ?></button>
|
<button type="submit" class="button btn btn-primary btn-3d"><?php esc_html_e( 'Reply', 'opalestate-pro' ); ?></button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user