From 8b29cbb557acdd37adf77130c970e7b23c250e73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Sat, 14 Jan 2012 16:33:44 +0100 Subject: [PATCH] Adding ChatCopyrightPage with overlay -> Moving Link into chatControls --- file/lib/page/ChatCopyrightPage.class.php | Bin 0 -> 2421 bytes file/lib/page/ChatPage.class.php | 4 ++++ .../event/listener/ChatRouteListener.class.php | 2 +- language/de.xml | 2 +- template/chat.tpl | 15 +++++++++++++++ template/chatCopyright.tpl | 10 +++++++++- templatelistener.xml | 6 ------ 7 files changed, 30 insertions(+), 9 deletions(-) create mode 100644 file/lib/page/ChatCopyrightPage.class.php diff --git a/file/lib/page/ChatCopyrightPage.class.php b/file/lib/page/ChatCopyrightPage.class.php new file mode 100644 index 0000000000000000000000000000000000000000..59425526c5b26c4d6e20242b940f0fb98364f8c0 GIT binary patch literal 2421 zcmah|4OA0X77nsd5(Hc*U_r`QppXCwO8pB6Vh9j^0%D-i!j8k_k&H=ZLT0jo3JP7V zVrZAvLR++}T@DAeh|7ZRL8L_jw7XKMyZ)RC94sqZ*{axTL9n=Q5@@yC-A&F+a_{}_ zec%1=eX;Qdje$pEdO#a693W=AFwcOgK@87C10;_%=@Oa&`n;DVNijU0NFd-L0%Ws> zGSdh_7E(q%#t;;VU@T^Y3^DiXd{umye&(-AlzX~2~j0X*ur0Fh97Jw?(;0>c=I0uy_Dq?{sIH!$J^ zri;}SR}&dvvGT}kTR-8^Ob2)K}jTuN79%mS{NnL0X3$>DHVvb zv4pZ{p&(p_(3>fp4iiF6glvnpC~YcO0I;$_pNNO+Fq%dr5F%OVFbl>IP|N^Q1$h_H zj1j{bn{x+`YcLf+CP**|fC{KGD3wVEXk|kgBxVHJSyz^u%8L=3Oq{_mKa2;R< z9mZ#&q8}L+nn>I>?4QFB*ahT;u%Doypaml+$Y#%*tigU3!a*z)LgsDw#~yytA%IN( z7s8eU^M0zy7JbTo>P-8QPcUSw|Cntze#wL_5QRt>lo>E#!DzBn@k%JI0l*NN&*vk- zjE0~iI^lZ;qwC&mU?Y5r3KK3sT$VdEP#aIGMpPzeP$kz^v75(5w;gdXmk z$Uv%XtH}kphC&Jn9Y7&}6t_d^FceLarAtvX0wGO0-NGA1C7BsnFp!O=B%~|Q%%r5v zQU!|Ih|Zr|#w+8Ys0P!q)$|5f8A=jUnI%tlj;j~@IB@C?Errf!7+Hq&nX8LE zxy!tJCO|KT^D9SLVuGUh>g|yc(?{Z^yRotH7r(at@N#wB#lDZ%tqZ@`U0c2T!PHrE z3%ap5HkO*a z_MqDIUdRaX`%+=v&ec@q4iA374|t?CwI$%~prbFHo*KR9Ww~8{dBoHGW@hP>_t3HS z%Ne@8P1d}i(~|AUzC&e=-@l)j`R6fjx1m9%?RW3Fobo??^Zs;-#QLW@pZGps@=jhu z{d2RWA!|G8>j!&}*F^Nb`A*E4s+w0I(wAKr{E^KFqYdH8tG*cdN9 zr!yEBCf;Vw4<~$9s(B$H}AN4SSHj@R%5@o4$7l%vTg$9B=+caBMa_|IWac z_0FZzH7|)W)_$Z`H=L>8yXf84eXF*uN#{<~wYm$6Tis24`<;f?{Obr~SfvoVOxIP6 zx}eG?&&lQI%9dYf_^{!?I*YRB1)r9EP8?3TS5=#PT$@kYrqqanUu(z9Kl#Sp;x($8 z?cTU1xVAs_Z;kT1Bius`{+oJ!CB6;r**X{-*e;iy@Cc6!oU1=@ z)YG+!&2V_oKDe{oZNDl!+6Hz?NAXKd=8JNBe5vdHss4@aSG9Y!+vx~X%232CwWo_u#H ggE_DvTmO!e9*Uu&7q82U{>a)gsXVcH0O8@`> literal 0 HcmV?d00001 diff --git a/file/lib/page/ChatPage.class.php b/file/lib/page/ChatPage.class.php index a9eb6ed..9656430 100644 --- a/file/lib/page/ChatPage.class.php +++ b/file/lib/page/ChatPage.class.php @@ -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; diff --git a/file/lib/system/event/listener/ChatRouteListener.class.php b/file/lib/system/event/listener/ChatRouteListener.class.php index 1c64d13..443a8cb 100644 --- a/file/lib/system/event/listener/ChatRouteListener.class.php +++ b/file/lib/system/event/listener/ChatRouteListener.class.php @@ -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); } } diff --git a/language/de.xml b/language/de.xml index 41f97b8..5330609 100644 --- a/language/de.xml +++ b/language/de.xml @@ -34,7 +34,7 @@ - Chat{if CHAT_SHOW_VERSION} Version {$chatVersion}{/if} entwickelt von TimWolla]]> + Chat: Tims Chat{if CHAT_SHOW_VERSION} {$chatVersion}{/if}, entwickelt von TimWolla]]> diff --git a/template/chat.tpl b/template/chat.tpl index f5b4f25..36ad055 100644 --- a/template/chat.tpl +++ b/template/chat.tpl @@ -6,6 +6,12 @@ {include file='headInclude' sandbox=false}