';
if ($context['user']['is_logged'] && $context['allow_pm'])
if($context['user']['unread_messages'] >= 1)
echo '
<div id="topbar">
<table width="100%" style="cursor: default;">
<tr>
<td valign="top" align="left">
<img src="', $settings['images_url'], '/popup.gif" border="0" />
</td>
<td valign="top" align="left">
<center><a href="', $scripturl, '?action=pm">', $context['user']['unread_messages'] > 0 ? '<strong>'. $context['user']['unread_messages'] . '</strong>' : '' , '</a><font color="black"><font size="1px"><b> ', $txt['therenew'], '</b></font>
</td>
<td valign="top" align="right">
<a href="" onClick="closebar(); return false">
<img src="', $settings['images_url'], '/close.gif" border="0" />
</a>
</td>
</tr>
</table>
<table height="78%" width="100%" style="border-right:1px solid #b9c9ef; border-top:1px solid #728eb8; border-bottom:1px solid #b9c9ef; border-left:1px solid #728eb8; cursor: default;">
<tr>
<td valign="center">
<center><b><a href="', $scripturl, '?action=pm" style="color:blue; font-size:11px">', $txt['newpm'], '</a></b>
</td>
</tr>
<tr>
<td valign="top" align="center" colspan="2">
<a href="" onClick="closebar(); return false"><span style="font-size:10px; color:red;">', $txt['close'], '</ span></a>
</td>
</tr>
</table>
</div>
</body>