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:
parent
bc06af9c7d
commit
eb75ab4b80
37
package.xml
Normal file
37
package.xml
Normal 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>
|
1
template/chatJavascriptInclude.tpl
Normal file
1
template/chatJavascriptInclude.tpl
Normal 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
11
templatelistener.xml
Normal 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>
|
Loading…
Reference in New Issue
Block a user