Simple Bootstrap 5 theme, inspired by "Simple Material inspired theme" by @tunguskha.
This theme does not contain the actual Bootstrap 5 files since I believe in modular design and resource distribution.
The WCMS-BS5-LOCAL plugin for WonderCMS plugin comes with Bootstrap 5.x and will serve Bootstrap 5.x files from your web server.
:warning: This theme is not compatible with the SummerNote editor plugin for WonderCMS, since it automatically includes Bootstrap from some CDN.
themes/
folder of your WonderCMS site-1.0.0
of the unpacked folderdata/files/database.js
file and change the theme to wcms-bs5
The theme will, since 1.1.0, automatically detect the visitor browser's "theme preference" and toggle Bootstrap 5 to the corresponding setting ("dark" or "light"). One could possibly also add a manual toggle, but this involves a nice looking icon, and some more code. I would consider adding this if there's a request for it.
There's, unfortunately, a small "flash effect" when a page is first loaded if the visitor's browser has "Dark mode" enabled. I'm not sure if there's a better solution than the one I use in the theme to switch colors, if there is, I'm all ears.
I'm not entirely satisfied with Bootstrap 5's choices for the background colors used in its "dark mode", but to stay true to Boostrap's CSS classes, I have chosen not to modify anything.
getSiteLanguage()
introduced in WonderCMS 3.4.3, this is used for the <html>
tag output.<script>
and <style>
tags have been moved to the <body>
section of the page.Please see LICENSE for a full copy of GPLv2
Copyright (C) 2023 Joaquim Homrighausen; all rights reserved.
This file is part of wcms-bs5. wcms-bs5 is free software.
You may redistribute it and/or modify it under the terms of the GNU General Public License version 2, as published by the Free Software Foundation.
wcms-bs5 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with the wcms-bs5-local package. If not, write to:
The Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor
Boston, MA 02110-1301, USA.