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"; }; $sitebackground = $params->get('site-background'); $cntAbove = $this->countModules("above"); $cntTop = $this->countModules("top"); $cntTopLeft = $this->countModules("topleft"); $cntTopLeft = $this->countModules("topright"); $cntBreadCrumb = $this->countModules("breadcrumbs"); $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/bootstrap/bootstrap-icons.css', array('version' => 'auto')); $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 . '/template.css', array('version' => 'auto')); //$this->addScript($tmplBase . "/js/bootstrap.bundle.js"); $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 . '; --colPrimary: ' . $params->get('colorPrimary') . '; --colSecondary: ' . $params->get('colorSecondary') . '; --colTertiary: ' . $params->get('colorTertiary') . '; --colQuart: ' . $params->get('colorQuart') . '; --colH1: ' . $params->get('colorH1') . '; --bs-primary: ' . $params->get('colorPrimary') . '; --bs-secondary: ' . $params->get('colorSecondary') . '; --bs-tertiary: ' . $params->get('colorTertiary') . '; --bs-background: ' . $params->get('colorBackground') . '; --bs-background-content: ' . $params->get('colorContentBackground') . '; --bs-background-content-rgb: ' . hex2rgb($params->get('colorContentBackground')) . '; --bs-background-content-opacity: ' .$params->get('colorContentBackgroundOpacity') . '; --bs-h1: ' . $params->get('colorH1') . '; }'); if (!$params->get('solidTopSides')) { $this->addStyleDeclaration('.top.left, .top.right { background-color: unset !important; } '); }; if (!$params->get('solidTopLogo')) { $this->addStyleDeclaration('.top.logo { background-color: unset !important; } '); }; ?>