From 8acb432cff799ce9d186e163574adf450f0fa4e0 Mon Sep 17 00:00:00 2001 From: Laurent LE CORRE Date: Mon, 25 Nov 2019 15:55:23 +0100 Subject: [PATCH] =?UTF-8?q?Changement=20de=20hook=20-->=20les=20marques=20?= =?UTF-8?q?sont=20=C3=A0=20afficher=20dans=20la=20page=20d'accueil=20uniqu?= =?UTF-8?q?ement.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- local/modules/BrandsOnHome/Config/config.xml | 2 +- local/modules/BrandsOnHome/Hook/FrontHook.php | 20 ------------------- local/modules/BrandsOnHome/composer.json | 2 +- ...ain-content-bottom.html => home-body.html} | 0 4 files changed, 2 insertions(+), 22 deletions(-) delete mode 100644 local/modules/BrandsOnHome/Hook/FrontHook.php rename local/modules/BrandsOnHome/templates/frontOffice/default/{main-content-bottom.html => home-body.html} (100%) diff --git a/local/modules/BrandsOnHome/Config/config.xml b/local/modules/BrandsOnHome/Config/config.xml index 61ec63e9..3496e3a8 100644 --- a/local/modules/BrandsOnHome/Config/config.xml +++ b/local/modules/BrandsOnHome/Config/config.xml @@ -7,7 +7,7 @@ - + diff --git a/local/modules/BrandsOnHome/Hook/FrontHook.php b/local/modules/BrandsOnHome/Hook/FrontHook.php deleted file mode 100644 index 03599a4a..00000000 --- a/local/modules/BrandsOnHome/Hook/FrontHook.php +++ /dev/null @@ -1,20 +0,0 @@ - - */ -class FrontHook extends BaseHook { - public function onMainContentBottom(HookRenderEvent $event) - { - $content = trim($this->render("main-content-bottom.html")); - if ("" != $content) { - $event->add($content); - } - } -} \ No newline at end of file diff --git a/local/modules/BrandsOnHome/composer.json b/local/modules/BrandsOnHome/composer.json index b2f6e30d..e618b996 100644 --- a/local/modules/BrandsOnHome/composer.json +++ b/local/modules/BrandsOnHome/composer.json @@ -1,5 +1,5 @@ { - "name": "your-vendor/brands-on-home-module", + "name": "TheCoreDev/brands-on-home-module", "license": "LGPL-3.0+", "type": "thelia-module", "require": { diff --git a/local/modules/BrandsOnHome/templates/frontOffice/default/main-content-bottom.html b/local/modules/BrandsOnHome/templates/frontOffice/default/home-body.html similarity index 100% rename from local/modules/BrandsOnHome/templates/frontOffice/default/main-content-bottom.html rename to local/modules/BrandsOnHome/templates/frontOffice/default/home-body.html