jpkcom-bs-dark-mode.php
Table of Contents
Constants
- JPKCOM_BS_DARK_MODE_VERSION : mixed = '2.0.3'
Functions
- jpkcom_bs_dark_mode_switch() : void
- Render the Bootstrap 5 dark mode switch and its toggle script.
Constants
JPKCOM_BS_DARK_MODE_VERSION
public
mixed
JPKCOM_BS_DARK_MODE_VERSION
= '2.0.3'
Functions
jpkcom_bs_dark_mode_switch()
Render the Bootstrap 5 dark mode switch and its toggle script.
jpkcom_bs_dark_mode_switch() : void
Registered for the [jpkcom-bs-dark-mode] shortcode. Outputs a Bootstrap
form-switch and persists the selected theme in localStorage (bsTheme),
defaulting to dark mode.