';
+
+ if ($context['user']['is_admin']) {
+ echo '
[X]';
+ }
+
+ $wd = $txt['days_short'][date('w', $date)];
+ $ts = date('H:i', $date);
+ $ds = $wd . ' | ' . $ts;
+
+ // highlight username, realname and make sound
+ if (!empty($context['user']['name']) && strpos($content, $context['user']['name']) !== false) {
+ if ($div === false) $alert = true;
+ $content = str_replace($context['user']['name'], '
' . $context['user']['name'] . '', $content);
+ }
+ if (!empty($user_info['username']) && $user_info['username'] != $context['user']['name'] && strpos($content, $user_info['username']) !== false) {
+ if ($div === false) $alert = true;
+ $content = str_replace($user_info['username'], '
' . $user_info['username'] . '', $content);
+ }
+
+ echo '[ ' . $ds . ' ]
<' . ((!empty($row['realName']))?$row['realName']:$row['memberName']) . '> ' . $content . '
';
+ }
+ if ($alert === true && $div === true) {
+ echo '