feat(lightbox): 接入全站图片预览

This commit is contained in:
2026-09-02 18:33:47 +08:00
parent 0985d0cb0a
commit ddf7c37556
29 changed files with 1212 additions and 1805 deletions
+1 -8
View File
@@ -72,14 +72,7 @@ while (have_posts()) :
?>
</main>
<?php if (!empty($settings['lightbox'])) : ?>
<div class="lightbox-overlay" id="lightbox-overlay" role="dialog" aria-modal="true" aria-label="<?php esc_attr_e('图片预览', 'aksrt'); ?>" aria-hidden="true">
<button type="button" class="lightbox-close" aria-label="<?php esc_attr_e('关闭', 'aksrt'); ?>"><i class="fa fas fa-times" aria-hidden="true"></i></button>
<img src="" alt="" class="lightbox-img">
<div class="lightbox-caption" aria-live="polite"></div>
</div>
<?php endif; ?>
<?php endwhile; ?>
<?php get_footer(); ?>