public static function the_tabs() { $current_user_id = theme_cache::get_current_user_id(); $pm_lists = self::get_lists($current_user_id); if (!$pm_lists) { return false; } foreach ($pm_lists as $user_id) { ?> <a id="pm-tab-<?php echo theme_custom_pm::get_niceid($user_id); ?> " href="javascript:;" data-uid="<?php echo theme_custom_pm::get_niceid($user_id); ?> " data-url="<?php echo theme_cache::get_author_posts_url($user_id); ?> " class="<?php echo self::is_unread($current_user_id, $user_id) ? 'new-msg' : null; ?> "> <img src="<?php echo get_avatar_url($user_id); ?> " alt="<?php echo ___('Avatar'); ?> " class="avatar" width="24" height="24"> <span class="author"><?php echo theme_cache::get_the_author_meta('display_name', $user_id); ?> </span> <b class="close">×</b> </a> <?php } }