From 4b89b3d71665e45ff34baaacb6ac72a6ae5be97b Mon Sep 17 00:00:00 2001 From: n0099 Date: Mon, 6 Feb 2023 18:36:18 +0800 Subject: [PATCH] Update theme-core.php --- inc/theme-core.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/theme-core.php b/inc/theme-core.php index 6d072af..4c8e8da 100644 --- a/inc/theme-core.php +++ b/inc/theme-core.php @@ -42,6 +42,7 @@ function theme_autoload() wp_enqueue_style('kicon', ASSET_PATH . '/assets/css/iconfont.min.css', array(), THEME_VERSION); wp_enqueue_style('layer', ASSET_PATH . '/assets/css/layer.min.css', array(), '3.1.1'); if (kratos_option('g_lightgallery', true)) { + wp_enqueue_script('lightgallery', ASSET_PATH . '/assets/js/lightgallery.min.js', array(), '1.4.0', true); wp_enqueue_style('lightgallery', ASSET_PATH . '/assets/css/lightgallery.min.css', array(), '1.4.0'); } if (kratos_option('g_animate', false)) { @@ -98,7 +99,6 @@ function theme_autoload() wp_enqueue_script('bootstrap-bundle', ASSET_PATH . '/assets/js/bootstrap.bundle.min.js', array(), '4.5.0', true); wp_enqueue_script('layer', ASSET_PATH . '/assets/js/layer.min.js', array(), '3.1.1', true); wp_enqueue_script('dplayer', ASSET_PATH . '/assets/js/DPlayer.min.js', array(), THEME_VERSION, true); - wp_enqueue_script('lightgallery', ASSET_PATH . '/assets/js/lightgallery.min.js', array(), '1.4.0', true); wp_enqueue_script('kratos', ASSET_PATH . '/assets/js/kratos.js', array(), THEME_VERSION, true); $data = array(