getTemplate(true); $params = $template->params; $tmplBase = $this->baseurl . "/templates/" . $this->template; $sitelogo = $params->get("site-logo"); if (! $sitelogo){ $sitelogo = $this->baseurl . "/templates/" . $this->template . "images/site-logo.png"; }; $cntAbove = $this->countModules("above"); $cntTop = $this->countModules("top"); $cntTopLeft = $this->countModules("topleft"); $cntBreadCrumb = $this->countModules("breadcrumb"); $cntMessage = $this->countModules("message"); $cntLeft = $this->countModules("left"); $cntRight= $this->countModules("right"); $cntFooter1 = $this->countModules("footer-1"); $cntFooter2 = $this->countModules("footer-2"); $cntFooter3 = $this->countModules("footer-3"); $cntFooter4 = $this->countModules("footer-4"); $cntFooter = $this->countModules("footer"); $this->addStyleSheet($tmplBase . '/css/colors.css', array('version' => 'auto')); $this->addStyleSheet($tmplBase . '/css/fonts.css', array('version' => 'auto')); $this->addStyleSheet($tmplBase . '/css/defaults.css', array('version' => 'auto')); $this->addStyleSheet($tmplBase . '/css/layout.css', array('version' => 'auto')); $this->addStyleSheet($tmplBase . '/template.css', array('version' => 'auto')); $this->addScript($tmplBase . "/js/template.js"); $rspDesktopWidth = $params->get('rspDesktopWidth'); $rspTabletWidth = $params->get('rspTabletWidth'); $rspGutterWidth = $params->get('rspGutterWidth'); $this->addStyleDeclaration('@import "' . $tmplBase . '/css/tablet.css' . '" screen and (min-width: '. $rspTabletWidth .') and (max-width: '. $rspDesktopWidth .');'); $this->addStyleDeclaration('@import "' . $tmplBase . '/css/mobile.css' . '" screen and (max-width: '. $rspTabletWidth .');'); $this->addStyleDeclaration(':root { --rspDesktopWidth: ' . $rspDesktopWidth . '; --rspTabletWidth: ' . $rspTabletWidth . '; --gutterMinWidth: ' . $rspGutterWidth . '; }'); JHtml::_('behavior.caption'); ?>