| 1 |
<?php |
| 2 |
|
| 3 |
if ( ! defined( 'ABSPATH' ) ) { |
| 4 |
exit; // Exit if accessed directly. |
| 5 |
} |
| 6 |
|
| 7 |
if ( $max_total && (( $max_total * 90 )/ 100 ) <= $total_count ) { |
| 8 |
$class = ' class="fep-font-red"'; |
| 9 |
} else { |
| 10 |
$class = ''; |
| 11 |
} |
| 12 |
|
| 13 |
?> |
| 14 |
|
| 15 |
<div id="fep-wrapper"> |
| 16 |
<div id="fep-header" class="fep-table"> |
| 17 |
<div> |
| 18 |
<div> |
| 19 |
<?php echo get_avatar($user_ID, 64); ?> |
| 20 |
</div> |
| 21 |
<div> |
| 22 |
<div> |
| 23 |
<strong><?php _e('Welcome', 'front-end-pm');?>: <?php echo fep_get_userdata( $user_ID, 'display_name', 'id' ); ?></strong> |
| 24 |
</div> |
| 25 |
<div><?php _e('You have', 'front-end-pm'); |
| 26 |
?> <span class="fep_unread_message_count_text"><?php printf(_n('%s message', '%s messages', $unread_count, 'front-end-pm'), number_format_i18n($unread_count) ); |
| 27 |
?></span> <?php |
| 28 |
_e('and', 'front-end-pm'); |
| 29 |
?> <span class="fep_unread_announcement_count_text"><?php |
| 30 |
printf(_n('%s announcement', '%s announcements', $unread_ann_count, 'front-end-pm'), number_format_i18n($unread_ann_count) ); |
| 31 |
?></span> <?php _e('unread', 'front-end-pm'); ?> |
| 32 |
</div> |
| 33 |
<div<?php echo $class; ?>><?php |
| 34 |
_e('Message box size', 'front-end-pm');?>: <?php |
| 35 |
printf(__('%1$s of %2$s', 'front-end-pm'), |
| 36 |
'<span class="fep_total_message_count">' . number_format_i18n($total_count) . '</span>', |
| 37 |
$max_text ); ?> |
| 38 |
</div> |
| 39 |
</div> |
| 40 |
|
| 41 |
<?php do_action('fep_header_note', $user_ID); ?> |
| 42 |
|
| 43 |
</div> |
| 44 |
</div> |
| 45 |
|
| 46 |
|