| 1 |
<?php |
| 2 |
if ( ! defined( 'ABSPATH' ) ) { |
| 3 |
exit; // Exit if accessed directly. |
| 4 |
} |
| 5 |
|
| 6 |
$box_class = 'fep-box-size'; |
| 7 |
if ( $max_total && ( ( $max_total * 90 ) / 100 ) <= $total_count ) { |
| 8 |
$box_class .= ' fep-font-red'; |
| 9 |
} |
| 10 |
?> |
| 11 |
<div id="fep-wrapper"> |
| 12 |
<div id="fep-header" class="fep-table"> |
| 13 |
<div> |
| 14 |
<div class="fep-header-avatar"> |
| 15 |
<?php echo get_avatar( $user_ID, 64, '', fep_user_name( $user_ID ) ); ?> |
| 16 |
</div> |
| 17 |
<div> |
| 18 |
<div class="fep-header-welcome"> |
| 19 |
<strong><?php esc_html_e( 'Welcome', 'front-end-pm' );?>: <?php echo fep_user_name( $user_ID ); ?></strong> |
| 20 |
</div> |
| 21 |
<div class="fep-header-unread-text"> |
| 22 |
<?php echo strip_tags( sprintf( __('You have %1$s and %2$s unread', 'front-end-pm'), '<span class="fep_unread_message_count_text">' . sprintf( _n( '%s message', '%s messages', $unread_count, 'front-end-pm' ), number_format_i18n( $unread_count ) ) . '</span>', '<span class="fep_unread_announcement_count_text">' . sprintf( _n( '%s announcement', '%s announcements', $unread_ann_count, 'front-end-pm' ), number_format_i18n( $unread_ann_count ) ) . '</span>' ), '<span>' ); ?> |
| 23 |
</div> |
| 24 |
<div class="fep-header-box-size <?php echo $box_class; ?>"> |
| 25 |
<?php echo strip_tags( sprintf( __( 'Message box size: %1$s of %2$s', 'front-end-pm' ), '<span class="fep_total_message_count">' . number_format_i18n( $total_count ) . '</span>', $max_text ), '<span>' ); ?> |
| 26 |
</div> |
| 27 |
</div> |
| 28 |
<?php do_action( 'fep_header_note', $user_ID ); ?> |
| 29 |
</div> |
| 30 |
</div> |
| 31 |
|