Changement de hook --> les marques sont à afficher dans la page d'accueil uniquement.
This commit is contained in:
@@ -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>
|
||||||
|
|
||||||
|
|||||||
@@ -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+",
|
"license": "LGPL-3.0+",
|
||||||
"type": "thelia-module",
|
"type": "thelia-module",
|
||||||
"require": {
|
"require": {
|
||||||
|
|||||||
Reference in New Issue
Block a user