Changement de hook --> les marques sont à afficher dans la page d'accueil uniquement.

This commit is contained in:
2019-11-25 15:55:23 +01:00
parent 81d6321b11
commit 8acb432cff
4 changed files with 2 additions and 22 deletions

View File

@@ -7,7 +7,7 @@
<hooks> <hooks>
<hook id="brandsonhome.hook.front"> <hook id="brandsonhome.hook.front">
<tag name="hook.event_listener" event="main.stylesheet" type="front" active="1" templates="css:assets/style.css" /> <tag name="hook.event_listener" event="main.stylesheet" type="front" active="1" templates="css:assets/style.css" />
<tag name="hook.event_listener" event="main.content-bottom" type="front" active="1" templates="render:main-content-bottom.html" /> <tag name="hook.event_listener" event="home.body" type="front" active="1" templates="render:home-body.html" />
</hook> </hook>
</hooks> </hooks>

View File

@@ -1,20 +0,0 @@
<?php
namespace BrandsOnHome\Hook;
use Thelia\Core\Hook\BaseHook;
/**
* Class FrontHook
* @package BrandsOnHome\Hook
* @author Laurent LE CORRE <laurent@thecoredev.fr>
*/
class FrontHook extends BaseHook {
public function onMainContentBottom(HookRenderEvent $event)
{
$content = trim($this->render("main-content-bottom.html"));
if ("" != $content) {
$event->add($content);
}
}
}

View File

@@ -1,5 +1,5 @@
{ {
"name": "your-vendor/brands-on-home-module", "name": "TheCoreDev/brands-on-home-module",
"license": "LGPL-3.0+", "license": "LGPL-3.0+",
"type": "thelia-module", "type": "thelia-module",
"require": { "require": {