aboutsummaryrefslogtreecommitdiff
path: root/pub/skins
diff options
context:
space:
mode:
authorpetko <petko@524c5546-5005-0410-9a3e-e25e191bd360>2024-01-23 17:25:15 +0000
committerpetko <petko@524c5546-5005-0410-9a3e-e25e191bd360>2024-01-23 17:25:15 +0000
commitccb33033a9a06fadebf07c1f73ffdc08978a9396 (patch)
tree7cfc21766558db8380b0589c5546fecb393018f7 /pub/skins
parent0b927cf181078c152a3329e85f72fde935661df7 (diff)
downloadpmwiki.svn-ccb33033a9a06fadebf07c1f73ffdc08978a9396.tar.bz2
Refactor config data passed to pmwiki-utils.php. Add $EnableDarkTheme.
git-svn-id: svn://pmwiki.org/pmwiki/trunk@4604 524c5546-5005-0410-9a3e-e25e191bd360
Diffstat (limited to 'pub/skins')
-rw-r--r--pub/skins/pmwiki-responsive/skin.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/pub/skins/pmwiki-responsive/skin.php b/pub/skins/pmwiki-responsive/skin.php
index 56882647..9f9e1506 100644
--- a/pub/skins/pmwiki-responsive/skin.php
+++ b/pub/skins/pmwiki-responsive/skin.php
@@ -10,7 +10,7 @@
***********************************************************************/
-global $HTMLStylesFmt, $SkinElementsPages, $DefaultSkinElements, $TableCellAlignFmt,
+global $HTMLStylesFmt, $SkinElementsPages, $DefaultSkinElements, $TableCellAlignFmt, $EnableDarkTheme,
$SearchBoxInputType, $WrapSkinSections, $HideTemplateSections, $EnableTableAttrToStyles;
# Disable inline styles injected by the PmWiki core (we provide these styles in skin.css)
@@ -20,6 +20,9 @@ foreach($styles as $style) $HTMLStylesFmt[$style] = '';
# CSS alignment for table cells (valid HTML5)
SDV($TableCellAlignFmt, " class='%s'");
+# Enable dark theme toggle, light theme by default
+SDV($EnableDarkTheme, 1);
+
# For (:searchbox:), valid semantic HTML5
$SearchBoxInputType = "search";