diff options
author | petko <petko@524c5546-5005-0410-9a3e-e25e191bd360> | 2024-02-12 19:52:23 +0000 |
---|---|---|
committer | petko <petko@524c5546-5005-0410-9a3e-e25e191bd360> | 2024-02-12 19:52:23 +0000 |
commit | 227d06ab4a19c8a17603b29d9f3a4b38de71e856 (patch) | |
tree | b20cc52a3a019c50abe79afd9d2adeb88c1acf04 /scripts | |
parent | 42803a92d5002937c165cae32a1433c4b76c9c93 (diff) | |
download | pmwiki.svn-227d06ab4a19c8a17603b29d9f3a4b38de71e856.tar.bz2 |
Enable 3-way theme toggle, Light, Dark and Auto.
git-svn-id: svn://pmwiki.org/pmwiki/trunk@4640 524c5546-5005-0410-9a3e-e25e191bd360
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/utils.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/utils.php b/scripts/utils.php index d73fd3d5..dc40ae11 100644 --- a/scripts/utils.php +++ b/scripts/utils.php @@ -50,7 +50,12 @@ function PmUtilsJS() { 'copycode' => $cc, 'toggle' => IsEnabled($ToggleNextSelector, 0), 'localtimes' => IsEnabled($EnableLocalTimes, 0), - 'darktheme' => IsEnabled($EnableDarkThemeToggle, 0), + 'darktheme' => array( + 'enable'=> IsEnabled($EnableDarkThemeToggle, 0), + 'label'=> XL('Toggle theme'), + 'currently'=> XL('Currently:'), + 'modes'=> array( XL('Light'), XL('Dark'), XL('Auto'), ), + ), 'rediquiet' => IsEnabled($EnableRedirectQuiet, 0), ); $enabled = $PmTOC['Enable']; |