Initial commit
This commit is contained in:
35
local/modules/HookAdminHome/Config/config.xml
Normal file
35
local/modules/HookAdminHome/Config/config.xml
Normal file
@@ -0,0 +1,35 @@
|
||||
<?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">
|
||||
|
||||
<hooks>
|
||||
<hook id="hookadminhome.hook.css">
|
||||
<tag name="hook.event_listener" event="main.head-css" type="back" templates="css:assets/css/home.css" />
|
||||
</hook>
|
||||
|
||||
<hook id="hookadminhome.hook.block_information">
|
||||
<tag name="hook.event_listener" event="home.top" type="back" templates="render:block-information.html" />
|
||||
</hook>
|
||||
|
||||
<hook id="hookadminhome.hook.block_statistics" class="HookAdminHome\Hook\AdminHook">
|
||||
<tag name="hook.event_listener" event="home.top" type="back" method="blockStatistics" />
|
||||
<tag name="hook.event_listener" event="home.js" type="back" method="blockStatisticsJs" />
|
||||
</hook>
|
||||
|
||||
<hook id="hookadminhome.hook.block_sales_statistics" class="HookAdminHome\Hook\AdminHook">
|
||||
<tag name="hook.event_listener" event="home.block" type="back" method="blockSalesStatistics" />
|
||||
</hook>
|
||||
|
||||
<hook id="hookadminhome.hook.block_news" class="HookAdminHome\Hook\AdminHook">
|
||||
<tag name="hook.event_listener" event="home.block" type="back" method="blockNews" />
|
||||
<tag name="hook.event_listener" event="home.js" type="back" templates="render:block-news-js.html" />
|
||||
</hook>
|
||||
|
||||
<hook id="hookadminhome.hook.block_thelia_informations" class="HookAdminHome\Hook\AdminHook">
|
||||
<tag name="hook.event_listener" event="home.block" type="back" method="blockTheliaInformation" />
|
||||
</hook>
|
||||
</hooks>
|
||||
|
||||
</config>
|
||||
32
local/modules/HookAdminHome/Config/module.xml
Normal file
32
local/modules/HookAdminHome/Config/module.xml
Normal file
@@ -0,0 +1,32 @@
|
||||
<?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_2.xsd">
|
||||
<fullnamespace>HookAdminHome\HookAdminHome</fullnamespace>
|
||||
<descriptive locale="en_US">
|
||||
<title>Displays the default blocks on the homepage of the administration</title>
|
||||
</descriptive>
|
||||
<descriptive locale="fr_FR">
|
||||
<title>Affiche les blocs par défaut sur la page d'accueil de l'administration</title>
|
||||
</descriptive>
|
||||
<languages>
|
||||
<language>en_US</language>
|
||||
<language>fr_FR</language>
|
||||
</languages>
|
||||
<version>2.3.5</version>
|
||||
<authors>
|
||||
<author>
|
||||
<name>Gilles Bourgeat</name>
|
||||
<email>gilles@thelia.net</email>
|
||||
</author>
|
||||
<author>
|
||||
<name>Franck Allimant</name>
|
||||
<company>CQFDev</company>
|
||||
<email>franck@cqfdev.fr</email>
|
||||
<website>www.cqfdev.fr</website>
|
||||
</author>
|
||||
</authors>
|
||||
<type>classic</type>
|
||||
<thelia>2.2.0</thelia>
|
||||
<stability>prod</stability>
|
||||
</module>
|
||||
23
local/modules/HookAdminHome/Config/routing.xml
Normal file
23
local/modules/HookAdminHome/Config/routing.xml
Normal file
@@ -0,0 +1,23 @@
|
||||
<?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="admin.home.stats" path="/admin/home/stats">
|
||||
<default key="_controller">HookAdminHome\Controller\HomeController::loadStatsAjaxAction</default>
|
||||
</route>
|
||||
|
||||
<route id="admin.home.month.sales.block" path="/admin/home/month-sales-block/{month}/{year}">
|
||||
<default key="_controller">HookAdminHome\Controller\HomeController::blockMonthSalesStatistics</default>
|
||||
<requirement key="month">\d+</requirement>
|
||||
<requirement key="year">\d+</requirement>
|
||||
</route>
|
||||
|
||||
<route id="admin.news-feed" path="/admin/ajax/thelia_news_feed">
|
||||
<default key="_controller">HookAdminHome\Controller\HomeController::processTemplateAction</default>
|
||||
<default key="template">ajax/thelia_news_feed</default>
|
||||
<default key="not-logged">1</default>
|
||||
</route>
|
||||
|
||||
</routes>
|
||||
Reference in New Issue
Block a user