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:
parent
bac47fd489
commit
8b29cbb557
BIN
file/lib/page/ChatCopyrightPage.class.php
Normal file
BIN
file/lib/page/ChatCopyrightPage.class.php
Normal file
Binary file not shown.
@ -120,6 +120,10 @@ class ChatPage extends AbstractPage {
|
|||||||
new \wcf\form\ChatForm();
|
new \wcf\form\ChatForm();
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
else if ($this->action == 'Copyright') {
|
||||||
|
new ChatCopyrightPage();
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
if (isset($_REQUEST['id'])) $this->roomID = (int) $_REQUEST['id'];
|
if (isset($_REQUEST['id'])) $this->roomID = (int) $_REQUEST['id'];
|
||||||
if (isset($_REQUEST['ajax'])) $this->useTemplate = false;
|
if (isset($_REQUEST['ajax'])) $this->useTemplate = false;
|
||||||
|
@ -18,7 +18,7 @@ class ChatRouteListener implements \wcf\system\event\IEventListener {
|
|||||||
$route = new \wcf\system\request\Route('chatAction');
|
$route = new \wcf\system\request\Route('chatAction');
|
||||||
$route->setSchema('/{controller}/{action}');
|
$route->setSchema('/{controller}/{action}');
|
||||||
$route->setParameterOption('controller', null, 'Chat');
|
$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);
|
$eventObj->addRoute($route);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -34,7 +34,7 @@
|
|||||||
<item name="wcf.chat.protocol"><![CDATA[Protokoll]]></item>
|
<item name="wcf.chat.protocol"><![CDATA[Protokoll]]></item>
|
||||||
<item name="wcf.chat.rooms"><![CDATA[Räume]]></item>
|
<item name="wcf.chat.rooms"><![CDATA[Räume]]></item>
|
||||||
<item name="wcf.chat.users"><![CDATA[Nutzer]]></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.submit.default"><![CDATA[Zum Senden Enter drücken]]></item>
|
||||||
<item name="wcf.chat.scroll"><![CDATA[Scrollen]]></item>
|
<item name="wcf.chat.scroll"><![CDATA[Scrollen]]></item>
|
||||||
|
@ -6,6 +6,12 @@
|
|||||||
{include file='headInclude' sandbox=false}
|
{include file='headInclude' sandbox=false}
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
@import url("{@RELATIVE_WCF_DIR}style/timwolla.wcf.chat.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 {
|
#chatUserList > li > .bgFix a {
|
||||||
background-image: url({icon size='S'}arrowRight{/icon});
|
background-image: url({icon size='S'}arrowRight{/icon});
|
||||||
}
|
}
|
||||||
@ -171,6 +177,7 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
{include file='chatCopyright'}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -194,6 +201,14 @@
|
|||||||
]);
|
]);
|
||||||
$('#chatInput').enable();
|
$('#chatInput').enable();
|
||||||
$('#chatInput').jCounter();
|
$('#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>
|
</script>
|
||||||
|
|
||||||
|
@ -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}
|
@ -7,12 +7,6 @@
|
|||||||
<eventname>javascriptInclude</eventname>
|
<eventname>javascriptInclude</eventname>
|
||||||
<templatecode><![CDATA[{include file='chatJavascriptInclude'}]]></templatecode>
|
<templatecode><![CDATA[{include file='chatJavascriptInclude'}]]></templatecode>
|
||||||
</templatelistener>
|
</templatelistener>
|
||||||
<templatelistener name="chatCopyright">
|
|
||||||
<environment>user</environment>
|
|
||||||
<templatename>footer</templatename>
|
|
||||||
<eventname>copyright</eventname>
|
|
||||||
<templatecode><![CDATA[{include file='chatCopyright'}]]></templatecode>
|
|
||||||
</templatelistener>
|
|
||||||
<templatelistener name="chatHeaderNavigation">
|
<templatelistener name="chatHeaderNavigation">
|
||||||
<environment>user</environment>
|
<environment>user</environment>
|
||||||
<templatename>header</templatename>
|
<templatename>header</templatename>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user