{include file='documentHeader'} {if $room}{$room} - {/if}{lang}chat.global.title{/lang} - {PAGE_TITLE|language} {include file='headInclude'} {if $room && (!$room->maxUsers || $room->getUsers()|count < $room->maxUsers || $room->canAlwaysEnter())} {include file='javascriptInclude' application='chat'} {/if} {if $room && (!$room->maxUsers || $room->getUsers()|count < $room->maxUsers || $room->canAlwaysEnter())} {capture assign='sidebar'}{include application='chat' file='sidebar'}{/capture} {include file='header' sandbox=false sidebarOrientation='right'}
{$room->topic|language}
    {lang}chat.global.message{/lang}
    {if MODULE_SMILEY && $smileyCategories|count}
    {include file='messageFormSmilies' wysiwygSelector=''}
    {/if}
    {lang}chat.global.smilies{/lang}
    {else} {include file='header' sandbox=false}

    {lang}chat.global.title{/lang}

    {include file='userNotice'} {if $room && ($room->getUsers()|count >= $room->maxUsers)}

    {lang room=$room}chat.global.error.join.full{/lang}

    {/if}
    {/if} {include file='footer' sandbox=false}