<xen:if is="{$taigachat.publichtml}">
<meta name='robots' content='noindex,nofollow,noimageindex,noarchive'>
</xen:if>
<xen:foreach loop="$taigachat.messages" value="$message">
<li id="taigachat_message_{$message.id}" data-userid="{$message.user_id}" data-messageid="{$message.id}">
<xen:if is="{$taigachat.editside} OR !{$taigachat.sidebar}">
<xen:if is="{$message.canModify} OR {$taigachat.canBan} OR {$taigachat.publichtml}">
<div class="Popup" {xen:if $taigachat.publichtml, 'style="display:none"'}>
<a rel="Menu"></a>
<div class="Menu">
<div class="primaryContent menuHeader"><h3>{xen:phrase dark_message_tools}</h3></div>
<ul class="secondaryContent blockLinksList">
<li><a href="{xen:link 'taigachat/edit', $message}" class="OverlayTrigger" data-cacheOverlay="false" id="taigachat_edit_{$message.id}">{xen:phrase edit}</a></li>
<li><a href="{xen:link 'taigachat/delete', $message}" class="taigachat_delete" data-messageid="{$message.id}">{xen:phrase delete}</a></li>
<xen:if is="{$message.user_id} > 0">
<li id="taigachat_canban_{$message.id}" class="taigachat_canban"><a data-link="{xen:link 'taigachat/ban', $message}" href="#" class="taigachat_ban">{xen:phrase dark_ban_from_shoutbox}</a></li>
</xen:if>
</ul>
</div>
</div>
</xen:if>
</xen:if>
<xen:if is="{$taigachat.miniavatar}">
<xen:avatar user="$message" size="s" img="true" class="_plainImage taigachat_avatar" />
</xen:if>
<xen:if is="{$taigachat.timedisplay} == 'Absolute' || ({$taigachat.timedisplay} == 'AbsoluteTime' && !{$message.today})">
<span class='DateTime muted taigachat_absolute_timestamp' data-timestamp="{$message.date}" data-today="0">{xen:datetime $message.date, 'absolute'} - </span>
<xen:elseif is="{$taigachat.timedisplay} == 'Time' || ({$taigachat.timedisplay} == 'AbsoluteTime' && {$message.today})" />
<span class='DateTime muted taigachat_absolute_timestamp' data-timestamp="{$message.date}" data-today="1">{xen:time $message.date, 'absolute'} - </span>
<xen:elseif is="{$taigachat.timedisplay} == 'Relative'" />
<span class='DateTime muted'><xen:datetime time="$message.date" /> - </span>
<xen:else />
</xen:if>
<span class="{xen:if {$message.me}, 'taigachat_me'} {xen:if {$message.activity}, 'taigachat_activity'}">
<a {xen:if $message.user_id, 'title="{$message.username}" href="{xen:link members, $message}" '}class="dark_chat taigachat_msg_user" itemprop="name"><xen:if is="{$message.usernameHtml}">{xen:raw $message.usernameHtml}<xen:else /><span class="username">{xen:helper richUserName, $message}</span></xen:if></a>
<div class='taigachat_messagetext ugc'>{xen:raw $message.messageHtml}</div>
</span>
</li>
</xen:foreach>
<div class='taigachat_list_online_users' style='display:none'>
<xen:if is="{$taigachat.online}">
<xen:include template="dark_taigachat_online_users">
<xen:map from="$taigachat" to="$taigachat" />
</xen:include>
</xen:if>
</div>