Fix email templates.

This commit is contained in:
Hoang Huu
2019-10-21 13:24:14 +07:00
parent 18c41ca780
commit b724789907
16 changed files with 374 additions and 240 deletions

View File

@@ -13,6 +13,7 @@ if ( opalestate_get_option( 'enable_single_author_box' , 'on') != 'on' ) {
$type = $property->get_author_type();
$data = get_userdata( $post->post_author );
$layout = '';
switch ( $type ) {
case 'hide':
return;

View File

@@ -68,7 +68,7 @@
?>
<p class="agent-box-job"><?php echo esc_html( $job ); ?></p>
<?php $email = get_user_meta( $user_id, $prefix . 'email', true ); ?>
<?php $email = get_userdata( $user_id )->user_email; ?>
<?php if ( ! empty( $email ) ) : ?>
<div class="agent-box-email">
<i class="fa fa-envelope"></i>