language = $doc->language; $this->direction = $doc->direction; $input = $app->input; $user = JFactory::getUser(); // Add JavaScript Frameworks JHtml::_('bootstrap.framework'); $doc->addScriptVersion($this->baseurl . '/templates/' . $this->template . '/js/template.js'); // Add Stylesheets $doc->addStyleSheetVersion($this->baseurl . '/templates/' . $this->template . '/css/template' . ($this->direction == 'rtl' ? '-rtl' : '') . '.css'); // Load custom.css $file = 'templates/' . $this->template . '/css/custom.css'; if (is_file($file)) { $doc->addStyleSheetVersion($file); } // Load specific language related CSS $file = 'language/' . $lang->getTag() . '/' . $lang->getTag() . '.css'; if (is_file($file)) { $doc->addStyleSheetVersion($file); } // Detecting Active Variables $option = $input->get('option', ''); $view = $input->get('view', ''); $layout = $input->get('layout', ''); $task = $input->get('task', ''); $itemid = $input->get('Itemid', ''); $sitename = htmlspecialchars($app->get('sitename', ''), ENT_QUOTES, 'UTF-8'); $cpanel = ($option === 'com_cpanel'); $hidden = JFactory::getApplication()->input->get('hidemainmenu'); $showSubmenu = false; $this->submenumodules = JModuleHelper::getModules('submenu'); foreach ($this->submenumodules as $submenumodule) { $output = JModuleHelper::renderModule($submenumodule); if (strlen($output)) { $showSubmenu = true; break; } } // Template Parameters $displayHeader = $this->params->get('displayHeader', '1'); $statusFixed = $this->params->get('statusFixed', '1'); $stickyToolbar = $this->params->get('stickyToolbar', '1'); // Header classes $template_is_light = ($this->params->get('templateColor') && colorIsLight($this->params->get('templateColor'))); $header_is_light = ($displayHeader && $this->params->get('headerColor') && colorIsLight($this->params->get('headerColor'))); if ($displayHeader) { // Logo file if ($this->params->get('logoFile')) { $logo = JUri::root() . $this->params->get('logoFile'); } else { $logo = $this->baseurl . '/templates/' . $this->template . '/images/logo' . ($header_is_light ? '-inverse' : '') . '.png'; } } function colorIsLight($color) { $r = hexdec(substr($color, 1, 2)); $g = hexdec(substr($color, 3, 2)); $b = hexdec(substr($color, 5, 2)); $yiq = (($r * 299) + ($g * 587) + ($b * 114)) / 1000; return $yiq >= 200; } ?> params->get('templateColor')) : ?> params->get('headerColor')) : ?> params->get('sidebarColor')) : ?> params->get('linkColor')) : ?>
countModules('status'))) : ?>

JComponentTitle, 0, false, false); ?>

countModules('bottom')) : ?>
countModules('status') || (!$statusFixed && $this->countModules('status'))) : ?>

©

countModules('status'))) : ?>