Initial Commit
This commit is contained in:
55
local/modules/HookTest/Config/config.xml
Normal file
55
local/modules/HookTest/Config/config.xml
Normal file
@@ -0,0 +1,55 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
|
||||
<config xmlns="http://thelia.net/schema/dic/config"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://thelia.net/schema/dic/config http://thelia.net/schema/dic/config/thelia-1.0.xsd">
|
||||
|
||||
<loops>
|
||||
</loops>
|
||||
|
||||
<forms>
|
||||
</forms>
|
||||
|
||||
<commands>
|
||||
</commands>
|
||||
|
||||
<hooks>
|
||||
<hook id="hooktest.hook.front" class="HookTest\Hook\FrontHook" scope="request">
|
||||
<!-- test: hook tag -->
|
||||
<tag name="hook.event_listener" event="main.head-top" />
|
||||
<tag name="hook.event_listener" event="main.head-top" method="onMainHeadTopTest1" />
|
||||
<tag name="hook.event_listener" event="main.head-top" method="onMainHeadTopTest2" type="front" />
|
||||
<tag name="hook.event_listener" event="main.head-top" method="onMainHeadTopTest3" type="front" active="0" />
|
||||
|
||||
<!-- test: hook function -->
|
||||
<tag name="hook.event_listener" event="main.body-top" />
|
||||
<tag name="hook.event_listener" event="main.body-top" method="onMainBodyTop2" />
|
||||
|
||||
<!-- test: if hook -->
|
||||
<tag name="hook.event_listener" event="main.navbar-secondary" />
|
||||
<tag name="hook.event_listener" event="main.navbar-primary" />
|
||||
|
||||
<!-- test: hookblock / forhook -->
|
||||
<tag name="hook.event_listener" event="main.footer-body" />
|
||||
|
||||
<!-- test: functionality -->
|
||||
<tag name="hook.event_listener" event="main.content-top" />
|
||||
<!-- render function-->
|
||||
<tag name="hook.event_listener" event="main.content-top" method="onMainContentTopRender" />
|
||||
<!-- dump function-->
|
||||
<tag name="hook.event_listener" event="main.content-top" method="onMainContentTopDump" />
|
||||
<!-- addCSS function-->
|
||||
<tag name="hook.event_listener" event="main.content-top" method="onMainContentTopAddCSS" />
|
||||
<!-- addJS function-->
|
||||
<tag name="hook.event_listener" event="main.content-top" method="onMainContentTopAddJS" />
|
||||
<!-- trans function-->
|
||||
<tag name="hook.event_listener" event="main.content-top" method="onMainContentTopTrans" />
|
||||
|
||||
<!-- overriding -->
|
||||
<tag name="hook.event_listener" event="main.content-top" method="onMainContentTopOverriding" />
|
||||
|
||||
|
||||
</hook>
|
||||
</hooks>
|
||||
|
||||
</config>
|
||||
18
local/modules/HookTest/Config/module.xml
Normal file
18
local/modules/HookTest/Config/module.xml
Normal file
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module>
|
||||
<fullnamespace>HookTest\HookTest</fullnamespace>
|
||||
<descriptive locale="en_US">
|
||||
<title>Hook module tester</title>
|
||||
</descriptive>
|
||||
<descriptive locale="fr_FR">
|
||||
<title>Hook module tester</title>
|
||||
</descriptive>
|
||||
<version>0.1</version>
|
||||
<author>
|
||||
<name>Julien Chanséaume</name>
|
||||
<email>jchanseaume@openstudio.fr</email>
|
||||
</author>
|
||||
<type>classic</type>
|
||||
<thelia>2.0.0</thelia>
|
||||
<stability>other</stability>
|
||||
</module>
|
||||
Reference in New Issue
Block a user