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>
<templatename>header</templatename>
<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 name="headerLogo">
<environment>admin</environment>
<templatename>header</templatename>
<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 name="softwareVersions">
<environment>admin</environment>
<templatename>index</templatename>
<eventname>softwareVersions</eventname>
<templatecode><![CDATA[<dl>
<dt>{lang}wcf.acp.index.system.software.chatVersion{/lang}</dt>
<dd>{$__chat->getPackage()->packageVersion}</dd>
</dl>]]></templatecode>
<templatecode><![CDATA[{include file='__softwareVersions' application='wbb'}]]></templatecode>
</templatelistener>
</import>
</data>