Des modules ajoutés et mise en page du CSS

This commit is contained in:
2021-01-20 12:37:48 +01:00
parent ae363c7447
commit 9ae46f8c88
409 changed files with 35050 additions and 6579 deletions

View File

@@ -0,0 +1,42 @@
<?php
/*************************************************************************************/
/* Copyright (c) Franck Allimant, CQFDev */
/* email : thelia@cqfdev.fr */
/* web : http://www.cqfdev.fr */
/* */
/* For the full copyright and license information, please view the LICENSE */
/* file that was distributed with this source code. */
/*************************************************************************************/
namespace MondialRelay\Hook;
use Thelia\Core\Event\Hook\HookRenderEvent;
use Thelia\Core\Hook\BaseHook;
class PdfHookManager extends BaseHook
{
public function onDeliveryAddress(HookRenderEvent $event)
{
$event->add(
$this->render(
'mondialrelay/order-delivery-address.html',
[
'module_id' => $event->getArgument('module'),
'order_id' => $event->getArgument('order'),
]
)
);
}
public function onAfterDeliveryModule(HookRenderEvent $event)
{
$event->add(
$this->render(
'mondialrelay/opening-hours.html',
[
'module_id' => $event->getArgument('module'),
'order_id' => $event->getArgument('order'),
]
)
);
}
}