From 5c48d90cfa096965de40ac4d507a3d2036a3caa6 Mon Sep 17 00:00:00 2001 From: filesite Date: Thu, 18 Jul 2024 20:09:52 +0800 Subject: [PATCH] improve dir ext and close --- themes/beauty/views/layout/main.php | 1 + themes/beauty/views/layout/player.php | 1 + themes/beauty/views/site/index.php | 10 +++++++--- www/js/beauty.js | 9 +++++++-- www/js/js.cookie.min.js | 4 ++-- 5 files changed, 18 insertions(+), 7 deletions(-) diff --git a/themes/beauty/views/layout/main.php b/themes/beauty/views/layout/main.php index 61ce7fb..c02373a 100644 --- a/themes/beauty/views/layout/main.php +++ b/themes/beauty/views/layout/main.php @@ -100,6 +100,7 @@ require_once __DIR__ . '/../../../../plugins/Html.php'; + + diff --git a/themes/beauty/views/site/index.php b/themes/beauty/views/site/index.php index 8359504..9e47272 100644 --- a/themes/beauty/views/site/index.php +++ b/themes/beauty/views/site/index.php @@ -6,6 +6,7 @@ $imgExts = !empty(FSC::$app['config']['supportedImageExts']) ? FSC::$app['config $videoExts = !empty(FSC::$app['config']['supportedVideoExts']) ? FSC::$app['config']['supportedVideoExts'] : array('mp4', 'mov', 'm3u8'); $supportedExts = array_merge($imgExts, $videoExts); +$dir_ext_status = !empty($_COOKIE['dir_ext_status']) ? $_COOKIE['dir_ext_status'] : 'opened'; ?>