1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2025-01-22 02:00:40 +00:00

Adding ChatCopyrightPage with overlay

-> Moving Link into chatControls
This commit is contained in:
Tim Düsterhus 2012-01-14 16:33:44 +01:00
parent bac47fd489
commit 8b29cbb557
7 changed files with 30 additions and 9 deletions

Binary file not shown.

View File

@ -120,6 +120,10 @@ class ChatPage extends AbstractPage {
new \wcf\form\ChatForm();
exit;
}
else if ($this->action == 'Copyright') {
new ChatCopyrightPage();
exit;
}
if (isset($_REQUEST['id'])) $this->roomID = (int) $_REQUEST['id'];
if (isset($_REQUEST['ajax'])) $this->useTemplate = false;

View File

@ -18,7 +18,7 @@ class ChatRouteListener implements \wcf\system\event\IEventListener {
$route = new \wcf\system\request\Route('chatAction');
$route->setSchema('/{controller}/{action}');
$route->setParameterOption('controller', null, 'Chat');
$route->setParameterOption('action', null, '(Message|Log|Send|RefreshRoomList)');
$route->setParameterOption('action', null, '(Message|Log|Send|RefreshRoomList|Copyright)');
$eventObj->addRoute($route);
}
}

View File

@ -34,7 +34,7 @@
<item name="wcf.chat.protocol"><![CDATA[Protokoll]]></item>
<item name="wcf.chat.rooms"><![CDATA[Räume]]></item>
<item name="wcf.chat.users"><![CDATA[Nutzer]]></item>
<item name="wcf.chat.copyright"><![CDATA[<a href="http://timwolla.wbbaddons.de">Chat{if CHAT_SHOW_VERSION} Version {$chatVersion}{/if} entwickelt von TimWolla</a>]]></item>
<item name="wcf.chat.copyright"><![CDATA[<a href="http://timwolla.wbbaddons.de">Chat: <strong>Tims Chat</strong>{if CHAT_SHOW_VERSION} {$chatVersion}{/if}, entwickelt von <strong>TimWolla</strong></a>]]></item>
<item name="wcf.chat.submit.default"><![CDATA[Zum Senden Enter drücken]]></item>
<item name="wcf.chat.scroll"><![CDATA[Scrollen]]></item>

View File

@ -6,6 +6,12 @@
{include file='headInclude' sandbox=false}
<style type="text/css">
@import url("{@RELATIVE_WCF_DIR}style/timwolla.wcf.chat.css");
#chatCopyrightDialog {
background-image: url("{link controller='Chat' action='Copyright' sheep=1}{/link}");
background-position: right 45px;
background-repeat: no-repeat;
min-height: 50%;
}
#chatUserList > li > .bgFix a {
background-image: url({icon size='S'}arrowRight{/icon});
}
@ -171,6 +177,7 @@
</ul>
</div>
</div>
{include file='chatCopyright'}
</div>
</div>
@ -194,6 +201,14 @@
]);
$('#chatInput').enable();
$('#chatInput').jCounter();
$('#chatControls .copyright').click(function (event) {
event.preventDefault();
var container = $('<div id="chatCopyrightDialog"></div>');
container.load('{link controller='Chat' action='Copyright'}{/link}', function() {
$('body').append(container);
WCF.showDialog('chatCopyrightDialog', true, { title: 'Tims Chat{if CHAT_SHOW_VERSION} {$chatVersion}{/if}' });
});
});
//]]>
</script>

View File

@ -1 +1,9 @@
{if $templateName == 'chat'}<address class="copyright">{lang}wcf.chat.copyright{/lang}</address>{/if}
{if $templateName == 'chat'}<address class="copyright">{lang}wcf.chat.copyright{/lang}</address>
{elseif $templateName == 'chatCopyright'}
<dl><dt style="width: 150px;">Project-Leader</dt><dd style="margin-left: 160px;"><ul><li><a href="http://timwolla.wbbaddons.de/">Tim Düsterhus</a></li></ul></dd></dl>
<dl><dt style="width: 150px;">Developer</dt><dd style="margin-left: 160px;"><ul><li><a href="http://timwolla.wbbaddons.de/">Tim Düsterhus</a></li><li>Maximilian Mader</li></ul></dd></dl>
<dl><dt style="width: 150px;">Graphics</dt><dd style="margin-left: 160px;"><ul><li>Tom</li></ul></dd></dl>
<dl><dt style="width: 150px;">Translation</dt><dd style="margin-left: 160px;"><ul><li>Riccardo Vianello (it)</li></ul></dd></dl>
<dl><dt style="width: 150px;">Thanks</dt><dd style="margin-left: 160px;"><ul><li>-noone-</li><li>Alexander Ebert</li><li>Gabi</li><li>Stefan Hahn</li><li><a href="http://packageforge.de">Oliver Kliebisch</a></li><li>Christian Kubandt</li><li><a href="http://www.wbbaddons.de">Martin Schwendowius</a></li></ul></dd></dl>
{/if}

View File

@ -7,12 +7,6 @@
<eventname>javascriptInclude</eventname>
<templatecode><![CDATA[{include file='chatJavascriptInclude'}]]></templatecode>
</templatelistener>
<templatelistener name="chatCopyright">
<environment>user</environment>
<templatename>footer</templatename>
<eventname>copyright</eventname>
<templatecode><![CDATA[{include file='chatCopyright'}]]></templatecode>
</templatelistener>
<templatelistener name="chatHeaderNavigation">
<environment>user</environment>
<templatename>header</templatename>