PluginProbe
Front End PM / trunk
Front End PM vtrunk
trunk 1.1 1.2 1.3 10.1.1 10.1.2 10.1.3 10.1.4 10.1.5 10.1.6 10.1.7 10.2.1 11.1.1 11.2.1 11.2.2 11.2.3 11.3.1 11.3.3 11.3.4 11.3.5 11.3.6 11.3.7 11.3.8 11.3.9 11.4.1 All 58 releases
front-end-pm / templates / header.php

header.php in Front End PM trunk, at templates/header.php

31 lines 1.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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