summaryrefslogtreecommitdiffstats
path: root/includes/footer.php
diff options
context:
space:
mode:
authoreltrac <hi@eltr.ac>2026-11-09 15:28:18 +0800
committereltrac <hi@eltr.ac>2026-11-09 15:28:18 +0800
commitdd2c8caaa8ac62e726ba0ddef08942519fd64037 (patch)
tree575188150c1e276edbdd9499df4c0db5975c5c5a /includes/footer.php
parent6af8666d1ef3c2a3ab2d212b41503efb0de18d61 (diff)
js: 使用 libra.js 实现图片灯箱HEADmaster
Diffstat (limited to 'includes/footer.php')
-rw-r--r--includes/footer.php7
1 files changed, 7 insertions, 0 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."\");" ?>