Initial Commit

This commit is contained in:
2019-11-21 12:25:31 +01:00
commit f4aabcb9b1
13959 changed files with 787761 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,26 @@
<?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.1</version>
<authors>
<author>
<name>Gilles Bourgeat</name>
<email>gilles@thelia.net</email>
</author>
</authors>
<type>classic</type>
<thelia>2.2.0</thelia>
<stability>prod</stability>
</module>

View File

@@ -0,0 +1,17 @@
<?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.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>