, Etienne PERRIERE - OpenStudio */ class FrontHook extends BaseHook { public function onMainFooterBody(HookRenderBlockEvent $event) { $bodyConfig = HookNavigation::getConfigValue(HookNavigationConfigValue::FOOTER_BODY_FOLDER_ID); $content = trim($this->render('main-footer-body.html', ['bodyFolderId' => $bodyConfig])); if ('' != $content) { $event->add(array( 'id' => 'navigation-footer-body', 'class' => 'links', 'title' => $this->trans('Latest articles', array(), HookNavigation::MESSAGE_DOMAIN), 'content' => $content, )); } } public function onMainFooterBottom(HookRenderEvent $event) { $bottomConfig = HookNavigation::getConfigValue(HookNavigationConfigValue::FOOTER_BOTTOM_FOLDER_ID); $content = $this->render('main-footer-bottom.html', ['bottomFolderId' => $bottomConfig]); $event->add($content); } }