1
0
mirror of https://github.com/suk-ws/ph-Bookshelf.git synced 2024-12-05 09:26:52 +08:00
ph-Bookshelf/template/footer.php

26 lines
836 B
PHP
Raw Permalink Normal View History

<?php use SukWs\Bookshelf\Data\SiteConfig\ConfigName; ?>
<?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(ConfigName::highlightjs)=="false")) :
?>hljs.highlightAll();<?php endif; ?>
<?php if (!(PageMeta::getConfigurationLevelPage(ConfigName::regex_highlight)=="false")) :
2022-10-31 14:31:38 +08:00
?>RegexColorizer.coloringAll();<?php endif; ?>
</script>
</body>
</html>