2023-01-29 10:41:50 +08:00
|
|
|
<?php use SukWs\Bookshelf\Data\SiteConfig\ConfigName; ?>
|
2023-01-24 20:30:27 +08:00
|
|
|
<?php use SukWs\Bookshelf\Data\SiteMeta; ?>
|
|
|
|
<?php use SukWs\Bookshelf\Data\PageMeta; ?>
|
2021-03-23 00:51:45 +08:00
|
|
|
|
2021-11-25 03:36:59 +08:00
|
|
|
<!-- Assets(js) --><?php
|
2021-11-24 14:24:09 +08:00
|
|
|
foreach (SiteMeta::getJavascriptList() as $item) {
|
|
|
|
if ($item==null) continue;
|
2021-11-25 03:36:59 +08:00
|
|
|
echo "\n\t\t";
|
2021-03-23 00:51:45 +08:00
|
|
|
echo "<script src=\"$item\"></script>";
|
|
|
|
}
|
2021-11-25 03:36:59 +08:00
|
|
|
echo "\n";
|
2021-03-23 00:51:45 +08:00
|
|
|
?>
|
2021-05-05 13:42:29 +08:00
|
|
|
<script><?= SiteMeta::getCustomScriptContent("custom") ?></script>
|
2021-05-31 16:05:45 +08:00
|
|
|
<script>
|
|
|
|
bookCurrentId = "<?= PageMeta::$book->getId() ?>";
|
|
|
|
pageCurrentId = "<?= PageMeta::$page->getId() ?>";
|
2023-01-29 10:41:50 +08:00
|
|
|
<?php if (!(PageMeta::getConfigurationLevelPage(ConfigName::highlightjs)=="false")) :
|
2021-11-25 03:36:59 +08:00
|
|
|
?>hljs.highlightAll();<?php endif; ?>
|
2023-01-29 10:41:50 +08:00
|
|
|
<?php if (!(PageMeta::getConfigurationLevelPage(ConfigName::regex_highlight)=="false")) :
|
2022-10-31 14:31:38 +08:00
|
|
|
?>RegexColorizer.coloringAll();<?php endif; ?>
|
2021-05-31 16:05:45 +08:00
|
|
|
</script>
|
2021-03-23 00:51:45 +08:00
|
|
|
|
|
|
|
</body>
|
|
|
|
|
2021-05-31 16:05:45 +08:00
|
|
|
</html>
|