Création du module BrandsOnHome (affichage des marques vendues sur la page d'accueil)

This commit is contained in:
2019-11-25 05:25:39 +01:00
parent d4f066994d
commit 81d6321b11
10 changed files with 201 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
<?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);
}
}
}