* * This file is part of a Moko Consulting project. * * SPDX-License-Identifier: GPL-3.0-or-later * * FILE INFORMATION * DEFGROUP: MokoJoomHero.Template * INGROUP: MokoJoomHero * REPO: https://github.com/mokoconsulting-tech/MokoJoomHero * PATH: /src/index.php * VERSION: 01.00.01 * BRIEF: Main template entry point — renders the full HTML page */ defined('_JEXEC') or die; use Joomla\CMS\Document\HtmlDocument; use Joomla\CMS\Factory; use Joomla\CMS\HTML\HTMLHelper; use Joomla\CMS\Language\Text; use Joomla\CMS\Uri\Uri; /** @var HtmlDocument $this */ $app = Factory::getApplication(); $wa = $this->getWebAssetManager(); $params = $app->getTemplate(true)->params; // Register and use template assets via Web Asset Manager $wa->usePreset('template.tpl_mokojoomhero'); // Template parameters $logo = $params->get('logoFile', ''); $site_description = $params->get('siteDescription', ''); $brand_color = $params->get('brandColor', '#1a73e8'); $fluid = (bool) $params->get('fluidContainer', 0); $sticky_header = (bool) $params->get('stickyHeader', 1); $back_to_top = (bool) $params->get('backToTop', 1); $container_class = $fluid ? 'container-fluid' : 'container'; // Inject brand color as CSS custom property $this->addHeadStyle(':root { --brand-color: ' . htmlspecialchars($brand_color, ENT_QUOTES, 'UTF-8') . '; }'); ?> countModules('topbar')) : ?>
countModules('banner')) : ?> countModules('hero')) : ?>
countModules('breadcrumbs')) : ?>
countModules('main-top')) : ?>
countModules('sidebar-left')) : ?>
countModules('sidebar-right')) : ?>
countModules('main-bottom')) : ?>
countModules('footer')) : ?>