summaryrefslogtreecommitdiffstats
path: root/includes
diff options
context:
space:
mode:
Diffstat (limited to 'includes')
-rw-r--r--includes/footer.php7
-rw-r--r--includes/head.php2
2 files changed, 8 insertions, 1 deletions
diff --git a/includes/footer.php b/includes/footer.php
index 294140b..a4e56aa 100644
--- a/includes/footer.php
+++ b/includes/footer.php
@@ -53,6 +53,13 @@
if($this->options->customCDN): $custom=$this->options->customCDN; else: $custom=Helper::options()->themeUrl("","Miracles"); endif;
Utils::addRequires($js_files,"js",$this->options->CDN,$custom);
?>
+
+ <!-- Load libra.js (lightbox) -->
+ <script type="module">
+ import LightBox from '<?php Utils::indexTheme('assets/js/libra.min.js') ?>';
+ new LightBox();
+ </script>
+
<!-- JavaScript -->
<!--<nocompress>--><script>
<?php if($this->options->build_time)echo "startTime(\"".$this->options->build_time."\");" ?>
diff --git a/includes/head.php b/includes/head.php
index b1b4499..eb6431e 100644
--- a/includes/head.php
+++ b/includes/head.php
@@ -45,7 +45,7 @@ if($GLOBALS['miraclesIfCompressHTML']=='on') ob_start(); //ob 截取开始 ?>
<?php $this->options->headerEcho(); ?>
<!-- css -->
<?php
- $css_files=array("codestyle","owo.min","nprogress","hint.min","main/miracles.min","toaster");
+ $css_files=array("codestyle","owo.min","nprogress","hint.min","main/miracles.min","toaster","libra");
if($this->options->customCDN): $custom=$this->options->customCDN; else: $custom=Helper::options()->themeUrl("","Miracles"); endif;
Utils::addRequires($css_files,"css",$this->options->CDN,$custom);
?>