2011-11-26 14:30:56 +00:00
|
|
|
{include file='documentHeader'}
|
|
|
|
|
|
|
|
<head>
|
2013-01-26 21:46:54 +00:00
|
|
|
<title>{$room} - {lang}chat.general.title{/lang} - {PAGE_TITLE|language}</title>
|
2011-11-26 14:30:56 +00:00
|
|
|
|
|
|
|
{include file='headInclude' sandbox=false}
|
2013-03-11 13:04:31 +00:00
|
|
|
{include file='javascriptInclude' application='chat'}
|
2013-08-01 22:37:26 +00:00
|
|
|
<script data-relocate="true">
|
2013-01-27 14:16:29 +00:00
|
|
|
//<![CDATA[
|
|
|
|
(function ($, window) {
|
|
|
|
$(function(){
|
|
|
|
WCF.Language.addObject({
|
|
|
|
'chat.general.query': '{lang}chat.general.query{/lang}',
|
|
|
|
'chat.general.kick': '{lang}chat.general.kick{/lang}',
|
|
|
|
'chat.general.ban': '{lang}chat.general.ban{/lang}',
|
|
|
|
'chat.general.profile': '{lang}chat.general.profile{/lang}',
|
2013-04-26 21:10:33 +00:00
|
|
|
'chat.general.notify.title': '{lang}chat.general.notify.title{/lang}',
|
2013-07-24 10:55:47 +00:00
|
|
|
'chat.general.privateChannelTopic': '{lang}chat.general.privateChannelTopic{/lang}',
|
|
|
|
'chat.general.closePrivateChannel': '{lang}chat.general.closePrivateChannel{/lang}',
|
|
|
|
'chat.general.closeTopic': '{lang}chat.general.closeTopic{/lang}',
|
2013-08-02 19:18:25 +00:00
|
|
|
'chat.error.onMessageLoad': '{@"chat.error.onMessageLoad"|language|encodeJS}',
|
2013-05-24 17:26:29 +00:00
|
|
|
'chat.error.duplicateTab': '{lang}chat.error.duplicateTab{/lang}',
|
2013-05-26 15:19:04 +00:00
|
|
|
'chat.error.join': '{lang}chat.error.join{/lang}',
|
2013-05-24 17:26:29 +00:00
|
|
|
'chat.error.reload': '{lang}chat.error.reload{/lang}'
|
2013-01-27 14:16:29 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
// Boot the chat
|
2013-04-20 16:01:24 +00:00
|
|
|
{if MODULE_SMILEY}WCF.TabMenu.init();{/if}
|
2013-01-27 14:16:29 +00:00
|
|
|
new WCF.Message.Smilies();
|
|
|
|
{capture assign='messageTemplate'}{include application='chat' file='message'}{/capture}
|
2013-04-21 18:21:51 +00:00
|
|
|
{capture assign='userTemplate'}{include application='chat' file='userListUser'}{/capture}
|
2013-01-27 14:16:29 +00:00
|
|
|
|
2013-06-24 16:25:30 +00:00
|
|
|
var config = {
|
|
|
|
reloadTime: {@CHAT_RELOADTIME},
|
|
|
|
messageURL: '{link application="chat" controller="NewMessages"}{/link}',
|
|
|
|
installedCommands: [ {implode from=$commands item='command'}'{$command|encodeJS}'{/implode} ],
|
|
|
|
messageTypes: { {implode from=$messageTypes key='name' item='messageType'}'{$name|substr:5|encodeJS}': '{$messageType|encodeJS}'{/implode} }
|
|
|
|
};
|
|
|
|
|
|
|
|
{event name='beforeInit'}
|
|
|
|
|
2013-05-15 19:55:51 +00:00
|
|
|
be.bastelstu.Chat.init(
|
2013-05-26 15:19:04 +00:00
|
|
|
{$roomID},
|
2013-06-24 16:25:30 +00:00
|
|
|
config,
|
2013-05-15 19:55:51 +00:00
|
|
|
new WCF.Template('{literal}{if $newMessageCount}({#$newMessageCount}) {/if}{$title} - {/literal}{"chat.general.title"|language|encodeJS} - {PAGE_TITLE|language|encodeJS}'),
|
2013-04-21 18:21:51 +00:00
|
|
|
new WCF.Template('{@$messageTemplate|encodeJS}'),
|
|
|
|
new WCF.Template('{@$userTemplate|encodeJS}')
|
2013-04-20 16:01:24 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
{event name='afterInit'}
|
2013-01-27 14:16:29 +00:00
|
|
|
|
|
|
|
$('#timsChatCopyright').click(function (event) {
|
|
|
|
event.preventDefault();
|
2013-04-26 14:09:26 +00:00
|
|
|
if (!$.wcfIsset('timsChatCopyrightDialog')) $('<div id="timsChatCopyrightDialog"></div>').appendTo('body');
|
2013-04-20 16:01:24 +00:00
|
|
|
$('#timsChatCopyrightDialog').load('{link application="chat" controller="Copyright"}{/link}').wcfDialog({
|
2013-04-26 14:09:26 +00:00
|
|
|
title: '<img width="246" height="90" alt="" src="{$__wcf->getPath("chat")|encodeJS}images/chatLogo.png"> {if SHOW_VERSION_NUMBER} {PACKAGE_VERSION}{/if}'
|
2013-01-27 14:16:29 +00:00
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
2013-04-20 16:01:24 +00:00
|
|
|
})(jQuery, this);
|
2013-01-27 14:16:29 +00:00
|
|
|
//]]>
|
|
|
|
</script>
|
2011-11-26 14:30:56 +00:00
|
|
|
</head>
|
|
|
|
|
|
|
|
<body id="tpl{$templateName|ucfirst}">
|
2013-04-20 16:01:24 +00:00
|
|
|
{capture assign='sidebar'}{include application='chat' file='sidebar'}{/capture}
|
|
|
|
{include file='header' sandbox=false sidebarOrientation='right'}
|
|
|
|
|
2013-09-07 13:17:22 +00:00
|
|
|
<div id="timsChatTopic" class="marginTop container{if $room->topic|language === ''} empty{/if}">
|
2013-07-24 10:55:47 +00:00
|
|
|
<span class="icon icon16 icon-remove jsTopicCloser jsTooltip" title="{lang}chat.general.closeTopic{/lang}"></span>
|
2013-07-05 14:15:07 +00:00
|
|
|
<span class="topic">{$room->topic|language}</span>
|
|
|
|
</div>
|
2013-05-24 18:33:41 +00:00
|
|
|
|
2013-07-12 15:15:13 +00:00
|
|
|
<div id="privateChannelsMenu">
|
|
|
|
<ul>
|
2013-07-12 18:52:54 +00:00
|
|
|
<li id="privateChannel0" class="privateChannel active" data-private-channel-id="0">
|
2013-07-12 19:29:17 +00:00
|
|
|
<span class="userAvatar framed small">
|
|
|
|
<span class="icon icon16 icon-comment-alt jsTooltip" title="{lang}chat.general.room{/lang}"></span>
|
2013-07-12 18:52:54 +00:00
|
|
|
</span>
|
2013-07-12 19:29:17 +00:00
|
|
|
<span class="userAvatar framed large">
|
|
|
|
<span class="icon icon32 icon-comment-alt jsTooltip" title="{lang}chat.general.room{/lang}"></span>
|
2013-07-12 18:52:54 +00:00
|
|
|
</span>
|
|
|
|
</li>
|
2013-07-12 15:15:13 +00:00
|
|
|
</ul>
|
|
|
|
</div>
|
2013-05-24 18:33:41 +00:00
|
|
|
|
2013-07-24 10:55:47 +00:00
|
|
|
<div id="timsChatMessageContainer0" class="timsChatMessageContainer marginTop container active" data-user-id="0">
|
2013-05-24 18:33:41 +00:00
|
|
|
<p class="error noJsOnly" style="display: none;">{lang}chat.general.noJs{/lang}</p>
|
|
|
|
<ul>
|
|
|
|
</ul>
|
2011-12-15 17:55:44 +00:00
|
|
|
</div>
|
2013-04-20 16:01:24 +00:00
|
|
|
|
2013-05-24 18:33:41 +00:00
|
|
|
<form id="timsChatForm" action="{link application='chat' controller='Chat' action='Send'}{/link}" method="post">
|
|
|
|
<fieldset>
|
|
|
|
<dl class="wide" id="timsChatInputContainer">
|
2013-10-06 12:59:53 +00:00
|
|
|
<dt>
|
|
|
|
{lang}chat.general.message{/lang}
|
|
|
|
</dt>
|
2013-05-24 18:33:41 +00:00
|
|
|
<dd>
|
2013-06-23 16:09:17 +00:00
|
|
|
<input id="timsChatInput" accesskey="w" type="text" class="inputText long" name="text" autocomplete="off" maxlength="{@CHAT_MAX_LENGTH}" disabled="disabled" placeholder="{lang}chat.general.submit.default{/lang}" />
|
2013-05-24 18:33:41 +00:00
|
|
|
<small class="innerError" style="display: none;">Lorem ipsum dolor sit amet.</small>
|
|
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
</fieldset>
|
|
|
|
<button type="submit" class="invisible" accesskey="s"></button>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
{if MODULE_SMILEY && $smileyCategories|count}
|
|
|
|
{include file='messageFormSmilies' wysiwygSelector=''}
|
|
|
|
{/if}
|
|
|
|
|
2013-06-24 15:45:46 +00:00
|
|
|
<nav id="timsChatOptions" class="marginTop jsMobileNavigation buttonGroupNavigation">
|
2013-05-24 18:33:41 +00:00
|
|
|
<span class="invisible">{lang}chat.general.controls{/lang}</span>
|
|
|
|
<ul class="smallButtons buttonGroup">
|
|
|
|
<li><a id="timsChatAutoscroll" accesskey="d" class="button active timsChatToggle jsTooltip" title="{lang}chat.general.scroll{/lang}" data-status="1"><span class="icon icon16 icon-arrow-down"></span><span class="invisible">{lang}chat.general.scroll{/lang}</span></a></li>{*
|
|
|
|
*}<li><a id="timsChatFullscreen" accesskey="f" class="button timsChatToggle jsTooltip" title="{lang}chat.general.fullscreen{/lang}" data-status="0"><span class="icon icon16 icon-fullscreen"></span><span class="invisible">{lang}chat.general.fullscreen{/lang}</span></a></li>{*
|
|
|
|
*}<li><a id="timsChatNotify" accesskey="n" class="button timsChatToggle jsTooltip" title="{lang}chat.general.notify{/lang}" data-status="0"><span class="icon icon16 icon-bell-alt"></span><span class="invisible">{lang}chat.general.notify{/lang}</span></a></li>{*
|
|
|
|
*}<li{if !MODULE_SMILEY || !$smileyCategories|count} style="display: none;"{/if}><a id="timsChatSmilies" accesskey="e" class="button{if ENABLE_SMILIES_DEFAULT_VALUE} active{/if} timsChatToggle jsTooltip" title="{lang}chat.general.smilies{/lang}" data-status="{@ENABLE_SMILIES_DEFAULT_VALUE}"><span class="icon icon16 icon-smile"></span><span class="invisible">{lang}chat.general.smilies{/lang}</span></a></li>{*
|
|
|
|
*}<li><a id="timsChatClear" class="button jsTooltip" title="{lang}chat.general.clear{/lang}"><span class="icon icon16 icon-remove"></span><span class="invisible">{lang}chat.general.clear{/lang}</span></a></li>{*
|
|
|
|
*}<li><a id="timsChatMark" class="button timsChatToggle jsTooltip" title="{lang}chat.general.mark{/lang}" data-status="0"><span class="icon icon16 icon-check"></span><span class="invisible">{lang}chat.general.mark{/lang}</span></a></li>
|
|
|
|
</ul>
|
|
|
|
</nav>
|
|
|
|
|
2013-04-20 16:01:24 +00:00
|
|
|
{include file='footer' sandbox=false}
|
2011-11-26 14:30:56 +00:00
|
|
|
</body>
|
2012-05-21 10:27:26 +00:00
|
|
|
</html>
|