1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-10-31 14:10:08 +00:00

Adding package.xml and template-listener

Somehow I managed to delete package.xml before commiting.
TemplateListener adds TimWolla.WCF.Chat.js in chat-Template
This commit is contained in:
Tim Düsterhus 2011-11-26 15:45:03 +01:00
parent bc06af9c7d
commit eb75ab4b80
3 changed files with 49 additions and 0 deletions

37
package.xml Normal file
View File

@ -0,0 +1,37 @@
<?xml version="1.0" encoding="UTF-8"?>
<package name="timwolla.wcf.chat" xmlns="http://www.woltlab.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.woltlab.com http://www.woltlab.com/XSD/maelstrom/package.xsd">
<packageinformation>
<packagename><![CDATA[Tims Chat]]></packagename>
<packagedescription><![CDATA[Chat for WoltLab Community Framework™]]></packagedescription>
<standalone>0</standalone>
<isunique>1</isunique>
<version>3.0.0 Alpha 1</version>
<date>2011-11-26</date>
<plugin>com.woltlab.wcf</plugin> <!-- TODO: Correct me -->
</packageinformation>
<authorinformation>
<author><![CDATA[Tim Düsterhus]]></author>
<authorurl><![CDATA[http://timwolla.wbbaddons.de]]></authorurl>
</authorinformation>
<instructions type="install">
<instruction type="language">language/*.xml</instruction>
<instruction type="file">file.tar</instruction>
<instruction type="template">template.tar</instruction>
<instruction type="sql">install.sql</instruction>
<instruction type="option">option.xml</instruction>
<instruction type="pagemenu">pagemenu.xml</instruction>
<instruction type="templatelistener">templatelistener.xml</instruction>
</instructions>
<instructions type="update" fromversion="3.0.0 Alpha *">
<instruction type="language">language/*.xml</instruction>
<instruction type="file">file.tar</instruction>
<instruction type="template">template.tar</instruction>
<instruction type="sql">install.sql</instruction>
<instruction type="option">option.xml</instruction>
<instruction type="pagemenu">pagemenu.xml</instruction>
<instruction type="templatelistener">templatelistener.xml</instruction>
</instructions>
</package>

View File

@ -0,0 +1 @@
{if $templateName == 'chat'}<script type="text/javascript" src="{@RELATIVE_WCF_DIR}js/TimWolla.WCF.Chat.js"></script>{/if}

11
templatelistener.xml Normal file
View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<data xmlns="http://www.woltlab.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.woltlab.com http://www.woltlab.com/XSD/templatelistener.xsd">
<import>
<templatelistener name="chatJavascriptInclude">
<environment>user</environment>
<templatename>headInclude</templatename>
<eventname>javascriptInclude</eventname>
<templatecode><![CDATA[{include file='chatJavascriptInclude'}]]></templatecode>
</templatelistener>
</import>
</data>