29 lines
745 B
PHP
29 lines
745 B
PHP
<?php
|
|
|
|
namespace DeliveryModulesInFooter\Hook;
|
|
|
|
use Thelia\Core\Event\Hook\HookRenderBlockEvent;
|
|
use Thelia\Core\Hook\BaseHook;
|
|
|
|
/**
|
|
* Class FrontHook
|
|
* @package DeliveryModulesInFooter\Hook
|
|
* @author Laurent LE CORRE <laurent@thecoredev.fr>
|
|
*/
|
|
class FrontHook extends BaseHook
|
|
{
|
|
public function onMainFooterBody(HookRenderBlockEvent $event)
|
|
{
|
|
$content = trim($this->render("footer.html"));
|
|
if ("" != $content) {
|
|
$event->add(
|
|
array(
|
|
"id" => "delivery-modules-footer-body",
|
|
"title" => $this->trans("Our delivery modes", array(), "deliverymodulesinfooter"),
|
|
"content" => $content
|
|
)
|
|
);
|
|
}
|
|
}
|
|
}
|