getDocument(); $user = $app->getIdentity(); $this->language = $doc->language; $this->direction = $doc->direction; // Path detection $option = $app->input->getCmd('option', ''); $view = $app->input->getCmd('view', ''); $task = $app->input->getCmd('task', ''); $itemid = $app->input->getCmd('Itemid', ''); $isHome = ($itemid == $app->getMenu()->getDefault()->id); // Load Bootstrap and Joomla Core HTMLHelper::_('behavior.core'); // Get params $params = $this->params; $sitetitle = $params->get('sitetitle', 'Headspace Zen'); $sitedescription = $params->get('sitedescription', 'Your daily mindfulness practice'); $primaryColor = $params->get('primaryColor', '#FF8C42'); $secondaryColor = $params->get('secondaryColor', '#7B68EE'); // Add custom styles $doc->addStyleDeclaration(" :root { --primary: {$primaryColor}; --secondary: {$secondaryColor}; --primary-light: " . adjustBrightness($primaryColor, 40) . "; --bg-cream: #FDF8F3; --text-dark: #2D3748; --text-muted: #718096; --white: #FFFFFF; } "); function adjustBrightness($hex, $percent) { $hex = ltrim($hex, '#'); $r = max(0, min(255, hexdec(substr($hex, 0, 2)) + $percent)); $g = max(0, min(255, hexdec(substr($hex, 2, 2)) + $percent)); $b = max(0, min(255, hexdec(substr($hex, 4, 2)) + $percent)); return '#' . dechex($r) . dechex($g) . dechex($b); } ?>
Start your journey to a calmer mind today.