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

Move template listener code into templates

Closes #45
This commit is contained in:
Tim Düsterhus 2013-08-11 17:22:51 +02:00
parent 3711dec18d
commit e752a58ff7
4 changed files with 9 additions and 6 deletions

View File

@ -0,0 +1 @@
{if $__chat->isActiveApplication()}<img src="{$__wcf->getPath('chat')}images/chatLogo.png" style="width: 246px; height: 90px;" alt="" />{/if}

View File

@ -0,0 +1,4 @@
<dl>
<dt>{lang}wcf.acp.index.system.software.chatVersion{/lang}</dt>
<dd>{$__chat->getPackage()->packageVersion}</dd>
</dl>

View File

@ -0,0 +1 @@
{if $__chat->isActiveApplication()}{if !$__wcf->getStyleHandler()->getStyle()->getPageLogo()}<img src="{$__wcf->getPath('chat')}images/chatLogo.png" style="width: 246px; height: 90px;" alt="" />{/if}{/if}

View File

@ -12,24 +12,21 @@
<environment>user</environment> <environment>user</environment>
<templatename>header</templatename> <templatename>header</templatename>
<eventname>headerLogo</eventname> <eventname>headerLogo</eventname>
<templatecode><![CDATA[{if $__chat->isActiveApplication()}{if !$__wcf->getStyleHandler()->getStyle()->getPageLogo()}<img src="{$__wcf->getPath('chat')}images/chatLogo.png" style="width: 246px; height: 90px;" alt="" />{/if}{/if}]]></templatecode> <templatecode><![CDATA[{include file='__headerLogo' application='chat'}]]></templatecode>
</templatelistener> </templatelistener>
<templatelistener name="headerLogo"> <templatelistener name="headerLogo">
<environment>admin</environment> <environment>admin</environment>
<templatename>header</templatename> <templatename>header</templatename>
<eventname>headerLogo</eventname> <eventname>headerLogo</eventname>
<templatecode><![CDATA[{if $__chat->isActiveApplication()}<img src="{$__wcf->getPath('chat')}images/chatLogo.png" style="width: 246px; height: 90px;" alt="" />{/if}]]></templatecode> <templatecode><![CDATA[{include file='__headerLogo' application='wbb'}]]></templatecode>
</templatelistener> </templatelistener>
<templatelistener name="softwareVersions"> <templatelistener name="softwareVersions">
<environment>admin</environment> <environment>admin</environment>
<templatename>index</templatename> <templatename>index</templatename>
<eventname>softwareVersions</eventname> <eventname>softwareVersions</eventname>
<templatecode><![CDATA[<dl> <templatecode><![CDATA[{include file='__softwareVersions' application='wbb'}]]></templatecode>
<dt>{lang}wcf.acp.index.system.software.chatVersion{/lang}</dt>
<dd>{$__chat->getPackage()->packageVersion}</dd>
</dl>]]></templatecode>
</templatelistener> </templatelistener>
</import> </import>
</data> </data>