Bootstrap 5 theme

Joho
Posts: 12
Joined: Wed Jun 07, 2023 6:51 am

Bootstrap 5 theme

Post by Joho »

This is a simple Bootstrap 5 theme, inspired by "Simple Material inspired theme" (that's a lot of inspiration right there :D)

Theme features:
  • Navbar
  • Searching
  • Automatic detection of dark mode / light mode
  • Support for the Simple Blog plugin
The theme requires Bootstrap 5, but does not include it. So you'll need something like the "WCMS-BS5-LOCAL" plugin (I posted about this in "Plugins" on this site) to include Bootstrap 5, or include it manually.

You can download the theme here:
https://github.com/joho1968/wcms-bs5


-joho
Last edited by Joho on Wed Aug 02, 2023 8:03 am, edited 1 time in total.
Joho
Posts: 12
Joined: Wed Jun 07, 2023 6:51 am

Re: Bootstrap 5 theme

Post by Joho »

The theme has been updated since its initial release with the following features:

1.2.2 (2023-11-08)
  • Added support for getSiteLanguage() introduced in WonderCMS 3.4.3, this is used for the <html> tag output.
  • Some <script> and <style> tags have been moved to the <body> section of the page.
  • Better CSS to disable Bootstrap animations/transitions for the navbar
1.2.1 (2023-08-02)
  • Minor fixes/cleanup for search functionality
  • Fixes for "navbar" in Dark Mode
  • Changed title from h5 to h4 to better line up with menu button and search field
  • Added support for searching the Simple Blog plugin "description" field
1.2.0 (2023-07-17)
  • Menu and site title is now "sticky", they should not scroll with content
  • Site title has an HTML TITLE element on it, in those situations where content wraps
  • Some additional CSS tweaks are made if the Simple Blog plugin is detected
  • Implemented search, it will match the search criteria against page titles and page content. The search function also supports the Simple Blog plugin
  • It is now assumed that the mb_ string functions are present since WonderCMS also requires them
1.1.1 (2023-06-08)
  • Changed footer alignment to centered (instead of right)
  • Removed truncation of page title on overflow, it will now wrap instead
1.1.0 (2023-06-07)
  • Added support for "Dark mode" (auto detected)
Last edited by Joho on Wed Nov 08, 2023 8:38 am, edited 1 time in total.
lbarriocanal
Posts: 1
Joined: Wed Jul 19, 2023 7:05 am

Re: Bootstrap 5 theme

Post by lbarriocanal »

Hi.
Thanks for your theme.
I get this error:

Code: Select all

PHP Warning:  mb_stristr(): Empty delimiter in /themes/wcms-bs5/theme.php on line 228
Best regards
Joho
Posts: 12
Joined: Wed Jun 07, 2023 6:51 am

Re: Bootstrap 5 theme

Post by Joho »

Hello, and thanks for reporting this! I'll have a look. In the meantime, would it be possible for you to file an issue here:

https://github.com/joho1968/wcms-bs5/issues

Just so I can keep them in one place? That'd be great.
Joho
Posts: 12
Joined: Wed Jun 07, 2023 6:51 am

Re: Bootstrap 5 theme

Post by Joho »

lbarriocanal wrote: Wed Jul 19, 2023 7:08 am Hi.
Thanks for your theme.
I get this error:

Code: Select all

PHP Warning:  mb_stristr(): Empty delimiter in /themes/wcms-bs5/theme.php on line 228
Best regards
I cannot seem to duplicate this. Do you know which version of PHP is in use on the server?

Also, what did you search for when you got the error/warning message?
Joho
Posts: 12
Joined: Wed Jun 07, 2023 6:51 am

Re: Bootstrap 5 theme

Post by Joho »

lbarriocanal wrote: Wed Jul 19, 2023 7:08 am I get this error:

Code: Select all

PHP Warning:  mb_stristr(): Empty delimiter in /themes/wcms-bs5/theme.php on line 228
Best regards
This should now be fixed (1.2.1)
User avatar
wiz
Posts: 749
Joined: Sat Oct 30, 2010 12:23 am

Re: Bootstrap 5 theme

Post by wiz »

We've finally gotted around to testing your theme. :)
WonderCMS 3.4.3 should be published soon. After we create a release, would you please be so kind to verify it works as expected with the latest release before we add it to the official repository?
bejoy123
Posts: 1
Joined: Sun Nov 05, 2023 3:30 pm

Re: Bootstrap 5 theme

Post by bejoy123 »

good theem
Joho
Posts: 12
Joined: Wed Jun 07, 2023 6:51 am

Re: Bootstrap 5 theme

Post by Joho »

wiz wrote: Wed Nov 01, 2023 2:06 pm We've finally gotted around to testing your theme. :)
WonderCMS 3.4.3 should be published soon. After we create a release, would you please be so kind to verify it works as expected with the latest release before we add it to the official repository?
Glad to hear you've had a time to check it out :)

I have released 1.2.2 with some minor tweaks, and support for the 3.4.3 language setting. It's 3.4.3-verified :)
Joho
Posts: 12
Joined: Wed Jun 07, 2023 6:51 am

Re: Bootstrap 5 theme

Post by Joho »

bejoy123 wrote: Sun Nov 05, 2023 3:50 pmgood theem
Thank you, glad to hear you liked it! :)
Post Reply