* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace HookSocial\Hook; use Thelia\Core\Event\Hook\HookRenderBlockEvent; use Thelia\Core\Hook\BaseHook; /** * Class FrontHook. * * @author Julien Chanséaume */ class FrontHook extends BaseHook { public function onMainFooterBody(HookRenderBlockEvent $event): void { $content = trim($this->render('main-footer-body.html')); if ('' != $content) { $event->add([ 'id' => 'social-footer-body', 'class' => 'social', 'title' => $this->trans('Follow us', [], 'hooksocial'), 'content' => $content, ]); } } }