Initial Commit
This commit is contained in:
21
local/modules/HookAnalytics/Config/config.xml
Normal file
21
local/modules/HookAnalytics/Config/config.xml
Normal file
@@ -0,0 +1,21 @@
|
||||
<?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">
|
||||
|
||||
<forms>
|
||||
<form name="hookanalytics.configuration.form" class="HookAnalytics\Form\Configuration" />
|
||||
</forms>
|
||||
|
||||
<hooks>
|
||||
<hook id="hookanalytics.hook.front" class="HookAnalytics\Hook\FrontHook">
|
||||
<tag name="hook.event_listener" event="main.head-bottom" type="front" method="onMainHeadBottom" />
|
||||
</hook>
|
||||
<hook id="hookanalytics.hook.back">
|
||||
<tag name="hook.event_listener" event="module.configuration" type="back" templates="render:module_configuration.html" />
|
||||
<tag name="hook.event_listener" event="module.config-js" type="back" templates="js:assets/js/module-configuration.js" />
|
||||
</hook>
|
||||
</hooks>
|
||||
|
||||
</config>
|
||||
24
local/modules/HookAnalytics/Config/module.xml
Normal file
24
local/modules/HookAnalytics/Config/module.xml
Normal file
@@ -0,0 +1,24 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module xmlns="http://thelia.net/schema/dic/module"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://thelia.net/schema/dic/module http://thelia.net/schema/dic/module/module-2_1.xsd">
|
||||
<fullnamespace>HookAnalytics\HookAnalytics</fullnamespace>
|
||||
<descriptive locale="en_US">
|
||||
<title>Analytics (Google)</title>
|
||||
</descriptive>
|
||||
<descriptive locale="fr_FR">
|
||||
<title>Statistiques (Google)</title>
|
||||
</descriptive>
|
||||
<languages>
|
||||
<language>en_US</language>
|
||||
<language>fr_FR</language>
|
||||
</languages>
|
||||
<version>2.3.1</version>
|
||||
<author>
|
||||
<name>Julien Chanséaume</name>
|
||||
<email>jchanseaume@openstudio.fr</email>
|
||||
</author>
|
||||
<type>classic</type>
|
||||
<thelia>2.2.0</thelia>
|
||||
<stability>alpha</stability>
|
||||
</module>
|
||||
10
local/modules/HookAnalytics/Config/routing.xml
Normal file
10
local/modules/HookAnalytics/Config/routing.xml
Normal file
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<routes xmlns="http://symfony.com/schema/routing"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://symfony.com/schema/routing http://symfony.com/schema/routing/routing-1.0.xsd">
|
||||
|
||||
<route id="hookanalytics.configuration" path="/admin/module/hookanalytics/save" methods="post">
|
||||
<default key="_controller">HookAnalytics\Controller\Configuration::saveAction</default>
|
||||
</route>
|
||||
|
||||
</routes>
|
||||
Reference in New Issue
Block a user