getPage('licenses'); $content = $dbPage ? $dbPage['content'] : ''; $pageTitle = $dbPage ? $dbPage['title'] : 'Licences'; } catch (Exception $e) { ErrorHandler::log('licence_page', $e); $content = ''; $pageTitle = 'Licences'; } $converter = new CommonMarkConverter([ 'html_input' => 'strip', 'heading_permalink' => [ 'apply_id_to_heading' => true, 'id_prefix' => '', 'insert' => 'before', 'aria_hidden' => true, ], ]); $converter->getEnvironment()->addExtension(new HeadingPermalinkExtension()); $html = EmailObfuscator::obfuscateHtml($converter->convert($content)->getContent()); $tocItems = MarkdownHelper::extractToc($content); return [ 'content' => $content, 'html' => $html, 'tocItems' => $tocItems, 'pageTitle' => $pageTitle . ' – XAMXAM', 'metaDescription' => "Informations sur les licences d'utilisation des mémoires publiés sur XAMXAM, le répertoire des TFE de l'erg.", 'currentNav' => 'licence', 'extraCss' => ['/assets/dist/content-page.min.css'], 'bodyClass' => 'apropos-body', ]; } }