1
0
mirror of https://github.com/suk-ws/ph-Bookshelf.git synced 2025-01-19 07:22:26 +08:00
ph-Bookshelf/template/footer.php

25 lines
813 B
PHP

<?php use SukWs\Bookshelf\Data\SiteMeta; ?>
<?php use SukWs\Bookshelf\Data\PageMeta; ?>
<!-- Assets(js) --><?php
foreach (SiteMeta::getJavascriptList() as $item) {
if ($item==null) continue;
echo "\n\t\t";
echo "<script src=\"$item\"></script>";
}
echo "\n";
?>
<script><?= SiteMeta::getCustomScriptContent("custom") ?></script>
<script>
bookCurrentId = "<?= PageMeta::$book->getId() ?>";
pageCurrentId = "<?= PageMeta::$page->getId() ?>";
<?php if (!(PageMeta::getConfigurationLevelPage("customization.article.codeblock.highlightjs")=="false")) :
?>hljs.highlightAll();<?php endif; ?>
<?php if (!(PageMeta::getConfigurationLevelPage("customization.article.regex.highlight")=="false")) :
?>RegexColorizer.coloringAll();<?php endif; ?>
</script>
</body>
</html>