Initial commit

This commit is contained in:
2021-01-19 18:19:37 +01:00
commit 6524a071df
14506 changed files with 1808535 additions and 0 deletions

View File

@@ -0,0 +1,43 @@
<?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="hookadminhome.config.form" class="HookAdminHome\Form\Configuration" />
</forms>
<hooks>
<hook id="hookadminhome.configuration.hook" class="HookAdminHome\Hook\HookAdminManager" scope="request">
<tag name="hook.event_listener" event="module.configuration" type="back" method="onModuleConfiguration" />
</hook>
<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.4.3</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.3.4</thelia>
<stability>prod</stability>
</module>

View File

@@ -0,0 +1,28 @@
<?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>
<route id="admin.home.config" path="/admin/module/HookAdminHome/configure" methods="post">
<default key="_controller">HookAdminHome\Controller\ConfigurationController::editConfiguration</default>
</route>
</routes>