mirror of
https://github.com/suk-ws/ph-Bookshelf.git
synced 2024-12-05 09:26:52 +08:00
Eyre_S
05f91605c7
- fix problem that image width is sometimes bigger than 100% - fix codeblock background config doesn't work - added codeblock.fg-color config (fix cannot change codeblock text color) - changes the config name -- make it shorter
26 lines
836 B
PHP
26 lines
836 B
PHP
<?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")) :
|
|
?>RegexColorizer.coloringAll();<?php endif; ?>
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html>
|