**Major Release** — introduces the long-awaited **Dark Mode Toggle**, streamlining accessibility and usability enhancements.

##Added

* **Dark Mode Toggle**

	* Frontend toggle switch included in template.
	* JavaScript handles switching between light/dark modes.
	* Dark mode CSS rules applied across template styles.
	* Automatic persistence of user choice (via localStorage).

* **Header Parameters Update**

	* Added **logo parameter support** in template settings.
	* Updated metadata & copyright header.

* **Expanded TOC (Table of Contents)**

	* Automatic TOC injection when enabled.
	* User selects placement via article > options > layout (`toc-left` or `toc-right`).

##Improved

* Cleaned up `index.php` by removing **skip-to-content** duplicate calls.
* Consolidated JavaScript asset loading (ensuring dark-mode script is loaded correctly from external JS file).
* Streamlined CSS for **toggle switch**, ensuring it inherits Bootstrap/Cassiopeia defaults.
* General accessibility refinements in typography and color contrast.

##Fixed

* Fixed missing **logo param** in header output.
* Corrected stylesheet inconsistencies between Bootstrap 5 helpers and template overrides.
* Patched redundant calls in script includes.
This commit is contained in:
2025-08-30 18:41:15 -05:00
parent d6f84ebb46
commit bee7796645
47 changed files with 2915 additions and 3124 deletions

View File

@@ -1,13 +1,30 @@
;---------------------------------------------------
; Template: moko-cassiopeia
; File: en-GB.tpl_moko-cassiopeia.ini
; Version: 02.00
; Author: Jonathan Miller
; Copyright: (C) 2025 Moko Consulting. All rights reserved.
; License: GNU General Public License v3 or later; see LICENSE.txt
; Description: Language strings for the frontend template.
; Note: All ini files must be saved as UTF-8 without BOM.
;---------------------------------------------------
# =========================================================================
# Copyright (C) 2025 Moko Consulting <hello@mokoconsulting.tech>
#
# This file is part of a Moko Consulting project.
#
# SPDX-License-Identifier: GPL-3.0-or-later
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program 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 this program. If not, see https://www.gnu.org/licenses/ .
# =========================================================================
# FILE INFORMATION
# DEFGROUP: Joomla
# INGROUP: Moko-Cassiopeia
# PATH: language/en-GB/tpl_moko-cassiopeia.ini
# VERSION: 02.00
# BRIEF: English (GB) language strings for the Moko-Cassiopeia Joomla template
# =========================================================================
; ===== Template meta =====
MOKO-CASSIOPEIA="MOKO-CASSIOPEIA Site template"

View File

@@ -1,13 +1,30 @@
;---------------------------------------------------
; Template: moko-cassiopeia
; File: en-GB.tpl_moko-cassiopeia.sys.ini
; Version: 02.00
; Author: Jonathan Miller
; Copyright: (C) 2025 Moko Consulting. All rights reserved.
; License: GNU General Public License v3 or later; see LICENSE.txt
; Description: Language strings for the frontend template.
; Note: All ini files must be saved as UTF-8 without BOM.
;---------------------------------------------------
# =========================================================================
# Copyright (C) 2025 Moko Consulting <hello@mokoconsulting.tech>
#
# This file is part of a Moko Consulting project.
#
# SPDX-License-Identifier: GPL-3.0-or-later
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program 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 this program. If not, see https://www.gnu.org/licenses/ .
# =========================================================================
# FILE INFORMATION
# DEFGROUP: Joomla
# INGROUP: Moko-Cassiopeia
# PATH: language/en-GB/tpl_moko-cassiopeia.sys.ini
# VERSION: 02.00
# BRIEF: English (GB) system language strings for template metadata and installer
# =========================================================================
TPL_MOKO-CASSIOPEIA="Moko-Cassiopeia Site template"
TPL_MOKO-CASSIOPEIA_MOD_MENU_LAYOUT_COLLAPSE-METISMENU="Collapsible Dropdown"
@@ -30,11 +47,12 @@ TPL_MOKO-CASSIOPEIA_POSITION_TOP-B="Top-b"
TPL_MOKO-CASSIOPEIA_POSITION_TOPBAR="Top Bar"
TPL_MOKO-CASSIOPEIA_POSITION_DRAWER-LEFT="Drawer-Left"
TPL_MOKO-CASSIOPEIA_POSITION_DRAWER-RIGHT="Drawer-Right"
TPL_MOKO-CASSIOPEIA_XML_DESCRIPTION="<h3>MOKO-CASSIOPEIA Template Description</h3>
TPL_MOKO-CASSIOPEIA_XML_DESCRIPTION=
TPL_MOKO-CASSIOPEIA_XML_DESCRIPTION="<h3>MOKO-CASSIOPEIA Template Description (v2.0)</h3>
<p>
<strong>MOKO-CASSIOPEIA</strong> continues Joomlas tradition of space-themed default templates—
building on the legacy of <em>Solarflare</em> from Joomla 1.0, <em>Milkyway</em> from Joomla 1.5,
and <em>Protostar</em> from Joomla 3.0.
<strong>MOKO-CASSIOPEIA 2.0</strong> continues Joomlas tradition of space-themed default templates—
building on the legacy of <em>Solarflare</em> (Joomla 1.0), <em>Milkyway</em> (Joomla 1.5),
and <em>Protostar</em> (Joomla 3.0).
</p>
<p>
This template is a customized fork of the <strong>Cassiopeia</strong> template introduced in Joomla 4,
@@ -42,41 +60,40 @@ TPL_MOKO-CASSIOPEIA_XML_DESCRIPTION="<h3>MOKO-CASSIOPEIA Template Description</h
enhancements and structural refinements specifically tailored for use by Moko Consulting.
</p>
<p>
<strong>MOKO-CASSIOPEIA</strong> is designed to serve as a versatile, production-ready base for
contemporary Joomla websites, emphasizing speed, clarity, and open-source philosophy.
<strong>Version 2.0</strong> introduces significant new functionality including a Dark Mode toggle,
Google Tag Manager (GTM) and Google Analytics 4 (GA4) hooks, and expanded template configuration
options — all while keeping overrides minimal and upgrade-friendly.
</p>
<h4>Features</h4>
<ul>
<li>Fully responsive and mobile-first layout</li>
<li>Based on Joomla 4+ template architecture</li>
<li>Enhanced SCSS and CSS overrides for custom styling</li>
<li>Built-in support for Bootstrap 5</li>
<li>
Integrated dynamic Table of Contents via
<a href="https://afeld.github.io/bootstrap-toc/" target="_blank" rel="noopener">Bootstrap TOC</a>
</li>
<li>Enhanced SCSS and CSS overrides for streamlined custom styling</li>
<li>Built-in support for <strong>Bootstrap 5</strong></li>
<li>Font Awesome 6 integration for modern iconography</li>
<li>Automatic Table of Contents (TOC) — selectable per article via <code>toc-left</code> or <code>toc-right</code> layouts</li>
<li><strong>Dark Mode toggle (new in v2.0)</strong> with user switch and admin override</li>
<li><strong>Optional GTM + GA4 hooks (new in v2.0)</strong> for analytics and marketing integration</li>
<li>Optimized template structure for performance and maintainability</li>
<li>Custom module positions and layout presets</li>
<li>Accessible, lightweight, and extensible</li>
<li>Accessible, lightweight, and extensible for long-term use</li>
<li>Ideal for professional services, portfolios, and informational websites</li>
</ul>
<h4>Code Attribution</h4>
<p>
This template is based on the original <strong>Cassiopeia</strong> template developed by the
<a href="https://www.joomla.org" target="_blank" rel="noopener">Joomla! Project</a> and released under the GNU General Public License.
<a href=\"https://www.joomla.org\" target=\"_blank\" rel=\"noopener\">Joomla! Project</a> and released under the GNU General Public License.
</p>
<p>
Modifications and enhancements have been made by Moko Consulting in accordance with open-source licensing standards.
</p>a
</p>
<p>
It includes integration with
<a href="https://afeld.github.io/bootstrap-toc/" target="_blank" rel="noopener">Bootstrap TOC</a>,
<a href=\"https://afeld.github.io/bootstrap-toc/\" target=\"_blank\" rel=\"noopener\">Bootstrap TOC</a>,
an open-source table of contents generator by A. Feld, licensed under the MIT License.
</p>
<p>
All third-party libraries and assets remain the property of their respective authors and are credited within their source files where applicable.
</p>"
JGLOBAL_OFFLINE="Offline"

View File

@@ -1,13 +1,30 @@
;---------------------------------------------------
; Template: moko-cassiopeia
; File: en-GB.tpl_moko-cassiopeia.ini
; Version: 02.00
; Author: Jonathan Miller
; Copyright: (C) 2025 Moko Consulting. All rights reserved.
; License: GNU General Public License v3 or later; see LICENSE.txt
; Description: Language strings for the frontend template.
; Note: All ini files must be saved as UTF-8 without BOM.
;---------------------------------------------------
# =========================================================================
# Copyright (C) 2025 Moko Consulting <hello@mokoconsulting.tech>
#
# This file is part of a Moko Consulting project.
#
# SPDX-License-Identifier: GPL-3.0-or-later
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program 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 this program. If not, see https://www.gnu.org/licenses/ .
# =========================================================================
# FILE INFORMATION
# DEFGROUP: Joomla
# INGROUP: Moko-Cassiopeia
# PATH: language/en-US/tpl_moko-cassiopeia.ini
# VERSION: 02.00
# BRIEF: English (US) language strings for the Moko-Cassiopeia Joomla template
# =========================================================================
; ===== Template meta =====
MOKO-CASSIOPEIA="MOKO-CASSIOPEIA Site template"

View File

@@ -1,13 +1,30 @@
;---------------------------------------------------
; Template: moko-cassiopeia
; File: en-US.tpl_moko-cassiopeia.sys.ini
; Version: 02.00
; Author: Jonathan Miller
; Copyright: (C) 2025 Moko Consulting. All rights reserved.
; License: GNU General Public License v3 or later; see LICENSE.txt
; Description: Language strings for the frontend template.
; Note: All ini files must be saved as UTF-8 without BOM.
;---------------------------------------------------
# =========================================================================
# Copyright (C) 2025 Moko Consulting <hello@mokoconsulting.tech>
#
# This file is part of a Moko Consulting project.
#
# SPDX-License-Identifier: GPL-3.0-or-later
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program 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 this program. If not, see https://www.gnu.org/licenses/ .
# =========================================================================
# FILE INFORMATION
# DEFGROUP: Joomla
# INGROUP: Moko-Cassiopeia
# PATH: language/en-US/tpl_moko-cassiopeia.sys.ini
# VERSION: 02.00
# BRIEF: English (US) system language strings for template metadata and installer
# =========================================================================
TPL_MOKO-CASSIOPEIA="Moko-Cassiopeia Site template"
TPL_MOKO-CASSIOPEIA_MOD_MENU_LAYOUT_COLLAPSE-METISMENU="Collapsible Dropdown"
@@ -31,11 +48,11 @@ TPL_MOKO-CASSIOPEIA_POSITION_TOPBAR="Top Bar"
TPL_MOKO-CASSIOPEIA_POSITION_DRAWER-LEFT="Drawer-Left"
TPL_MOKO-CASSIOPEIA_POSITION_DRAWER-RIGHT="Drawer-Right"
TPL_MOKO-CASSIOPEIA_XML_DESCRIPTION=
TPL_MOKO-CASSIOPEIA_XML_DESCRIPTION="<h3>MOKO-CASSIOPEIA Template Description</h3>
TPL_MOKO-CASSIOPEIA_XML_DESCRIPTION="<h3>MOKO-CASSIOPEIA Template Description (v2.0)</h3>
<p>
<strong>MOKO-CASSIOPEIA</strong> continues Joomlas tradition of space-themed default templates—
building on the legacy of <em>Solarflare</em> from Joomla 1.0, <em>Milkyway</em> from Joomla 1.5,
and <em>Protostar</em> from Joomla 3.0.
<strong>MOKO-CASSIOPEIA 2.0</strong> continues Joomlas tradition of space-themed default templates—
building on the legacy of <em>Solarflare</em> (Joomla 1.0), <em>Milkyway</em> (Joomla 1.5),
and <em>Protostar</em> (Joomla 3.0).
</p>
<p>
This template is a customized fork of the <strong>Cassiopeia</strong> template introduced in Joomla 4,
@@ -43,41 +60,40 @@ TPL_MOKO-CASSIOPEIA_XML_DESCRIPTION="<h3>MOKO-CASSIOPEIA Template Description</h
enhancements and structural refinements specifically tailored for use by Moko Consulting.
</p>
<p>
<strong>MOKO-CASSIOPEIA</strong> is designed to serve as a versatile, production-ready base for
contemporary Joomla websites, emphasizing speed, clarity, and open-source philosophy.
<strong>Version 2.0</strong> introduces significant new functionality including a Dark Mode toggle,
Google Tag Manager (GTM) and Google Analytics 4 (GA4) hooks, and expanded template configuration
options — all while keeping overrides minimal and upgrade-friendly.
</p>
<h4>Features</h4>
<ul>
<li>Fully responsive and mobile-first layout</li>
<li>Based on Joomla 4+ template architecture</li>
<li>Enhanced SCSS and CSS overrides for custom styling</li>
<li>Built-in support for Bootstrap 5</li>
<li>
Integrated dynamic Table of Contents via
<a href="https://afeld.github.io/bootstrap-toc/" target="_blank" rel="noopener">Bootstrap TOC</a>
</li>
<li>Enhanced SCSS and CSS overrides for streamlined custom styling</li>
<li>Built-in support for <strong>Bootstrap 5</strong></li>
<li>Font Awesome 6 integration for modern iconography</li>
<li>Automatic Table of Contents (TOC) — selectable per article via <code>toc-left</code> or <code>toc-right</code> layouts</li>
<li><strong>Dark Mode toggle (new in v2.0)</strong> with user switch and admin override</li>
<li><strong>Optional GTM + GA4 hooks (new in v2.0)</strong> for analytics and marketing integration</li>
<li>Optimized template structure for performance and maintainability</li>
<li>Custom module positions and layout presets</li>
<li>Accessible, lightweight, and extensible</li>
<li>Accessible, lightweight, and extensible for long-term use</li>
<li>Ideal for professional services, portfolios, and informational websites</li>
</ul>
<h4>Code Attribution</h4>
<p>
This template is based on the original <strong>Cassiopeia</strong> template developed by the
<a href="https://www.joomla.org" target="_blank" rel="noopener">Joomla! Project</a> and released under the GNU General Public License.
<a href=\"https://www.joomla.org\" target=\"_blank\" rel=\"noopener\">Joomla! Project</a> and released under the GNU General Public License.
</p>
<p>
Modifications and enhancements have been made by Moko Consulting in accordance with open-source licensing standards.
</p>a
</p>
<p>
It includes integration with
<a href="https://afeld.github.io/bootstrap-toc/" target="_blank" rel="noopener">Bootstrap TOC</a>,
<a href=\"https://afeld.github.io/bootstrap-toc/\" target=\"_blank\" rel=\"noopener\">Bootstrap TOC</a>,
an open-source table of contents generator by A. Feld, licensed under the MIT License.
</p>
<p>
All third-party libraries and assets remain the property of their respective authors and are credited within their source files where applicable.
</p>"
JGLOBAL_OFFLINE="Offline"