Initial commit

This commit is contained in:
2021-03-23 13:54:38 +01:00
commit 82b142ff95
16941 changed files with 2617212 additions and 0 deletions

View 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>

View 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>

View 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>