function test_wpas_get_user_nice_role() { $this->assertEquals('Agent', wpas_get_user_nice_role('wpas_agent')); }
<div id="wpas-unread-<?php echo $row->ID; ?> " class="wpas-unread-badge"><?php _e('Unread', 'awesome-support'); ?> </div><?php } ?> <div class="wpas-reply-meta"> <div class="wpas-reply-user"> <strong class="wpas-profilename"><?php echo $user_name; ?> </strong> <span class="wpas-profilerole">(<?php echo wpas_get_user_nice_role($user_data->roles[0]); ?> )</span> </div> <div class="wpas-reply-time"> <time class="wpas-timestamp" datetime="<?php echo get_the_date('Y-m-d\\TH:i:s') . wpas_get_offset_html5(); ?> "><span class="wpas-human-date"><?php echo date(get_option('date_format'), strtotime($row->post_date)); ?> | </span><?php printf(__('%s ago', 'awesome-support'), $date); ?> </time> </div>
} ?> <div> <?php /** * Display the ticket's author name (client's name) */ ?> <span class="wpas-profilename"><?php echo $author->data->user_nicename; ?> </span> <span class="wpas-profiletype"><?php echo wpas_get_user_nice_role($author->roles[0]); ?> </span> <time class="visible-xs wpas-timestamp" datetime="<?php echo str_replace(' ', 'T', $post->post_date); ?> Z"> <?php printf(__('%s ago', 'awesome-support'), human_time_diff(get_the_time('U', $post->ID), current_time('timestamp'))); ?> </time> </div> </div> </td>