Changement de hook --> les marques sont à afficher dans la page d'accueil uniquement.
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
<hooks>
|
||||
<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.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>
|
||||
</hooks>
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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": {
|
||||
|
||||
Reference in New Issue
Block a user