countModules('position-3') or $this->countModules('position-6') or $this->countModules('position-8')); $showbottom = ($this->countModules('position-9') or $this->countModules('position-10') or $this->countModules('position-11')); $showleft = ($this->countModules('position-4') or $this->countModules('position-7') or $this->countModules('position-5')); if ($showRightColumn == 0 and $showleft == 0) { $showno = 0; } JHtml::_('behavior.framework', true); // Get params $color = $this->params->get('templatecolor'); $logo = $this->params->get('logo'); $navposition = $this->params->get('navposition'); $headerImage = $this->params->get('headerImage'); $app = JFactory::getApplication(); $templateparams = $app->getTemplate(true)->params; $config = JFactory::getConfig(); $bootstrap = explode(',', $templateparams->get('bootstrap')); $jinput = JFactory::getApplication()->input; $option = $jinput->get('option', '', 'cmd'); // Param 2 Variable $change_content_width = $templateparams->get('change_content_width'); $content_width = $templateparams->get('content_width'); // Output as HTML5 $this->setHtml5(true); if (in_array($option, $bootstrap)) { // Load optional rtl Bootstrap css and Bootstrap bugfixes JHtml::_('bootstrap.loadCss', true, $this->direction); } $this->addStyleSheet($this->baseurl . '/templates/system/css/system.css'); $this->addStyleSheet($this->baseurl . '/templates/' . $this->template . '/css/position.css', 'text/css', 'screen'); $this->addStyleSheet($this->baseurl . '/templates/' . $this->template . '/css/layout.css', 'text/css', 'screen'); $this->addStyleSheet($this->baseurl . '/templates/' . $this->template . '/css/print.css', 'text/css', 'print'); $this->addStyleSheet($this->baseurl . '/templates/' . $this->template . '/css/general.css', 'text/css', 'screen'); $this->addStyleSheet($this->baseurl . '/templates/' . $this->template . '/css/' . htmlspecialchars($color, ENT_COMPAT, 'UTF-8') . '.css', 'text/css', 'screen'); if ($this->direction == 'rtl') { $this->addStyleSheet($this->baseurl . '/templates/' . $this->template . '/css/template_rtl.css'); if (file_exists(JPATH_SITE . '/templates/' . $this->template . '/css/' . htmlspecialchars($color, ENT_COMPAT, 'UTF-8') . '_rtl.css')) { $this->addStyleSheet($this->baseurl . '/templates/' . $this->template . '/css/' . htmlspecialchars($color, ENT_COMPAT, 'UTF-8') . '_rtl.css'); } } if ($color == 'image') { $this->addStyleDeclaration(" .logoheader { background: url('" . $this->baseurl . "/" . htmlspecialchars($headerImage) . "') no-repeat right; } body { background: " . $templateparams->get('backgroundcolor') . "; }"); } // Check for a custom CSS file $userCss = JPATH_SITE . '/templates/' . $this->template . '/css/user.css'; if (file_exists($userCss) && filesize($userCss) > 0) { $this->addStyleSheetVersion($this->baseurl . '/templates/' . $this->template . '/css/user.css'); } JHtml::_('bootstrap.framework'); if($templateparams->get('fontsizeselect')){ $this->addScript($this->baseurl . '/templates/' . $this->template . '/javascript/md_stylechanger.js'); } $this->addScript($this->baseurl . '/templates/' . $this->template . '/javascript/hide.js'); $this->addScript($this->baseurl . '/templates/' . $this->template . '/javascript/respond.src.js'); $this->addScript($this->baseurl . '/templates/' . $this->template . '/javascript/template.js'); require __DIR__ . '/jsstrings.php'; ?>
get('change_content_width')) { echo ' style="max-width: ' . $this->params->get('content_width') . 'px"'; } ?> >
get('nav2cont_ratio','25'); if ($navposition == 'left' and $showleft) : ?>
>
countModules('position-12')) : ?>