152 lines
6.3 KiB
PHP
Executable File
152 lines
6.3 KiB
PHP
Executable File
<?php defined( '_JEXEC' ) or die;?>
|
|
<?php
|
|
|
|
include_once "tools.php";
|
|
|
|
use Joomla\CMS\HTML\HTMLHelper;
|
|
use Joomla\CMS\Language\Text;
|
|
|
|
JHtml::_('bootstrap.framework');
|
|
JHtml::_('bootstrap.loadCss', true);
|
|
|
|
$app = Jfactory::getApplication();
|
|
$template = $app->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.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-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') . ';
|
|
|
|
}');
|
|
|
|
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;
|
|
}
|
|
');
|
|
};
|
|
|
|
|
|
?>
|
|
<!DOCTYPE html>
|
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de" dir="ltr">
|
|
<head>
|
|
<jdoc:include type="head" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
</head>
|
|
<body class="bg-viewport" style="background-color: var(--bs-background); <?php if ($sitebackground): ?>background-image: url(<?php echo $this->baseurl.'/'.$sitebackground; ?>);<?php endif; ?>">
|
|
<?php if ($cntAbove): ?><section id="above" class="container">
|
|
<jdoc:include type="modules" name="above" style="html5" />
|
|
</section><?php endif; ?>
|
|
|
|
<header id="header" class="container-fluid sticky-top">
|
|
<!--div class="" id="topleft"><jdoc:include type="modules" name="topleft" style="html5" /></div-->
|
|
|
|
<div class="container bg-header">
|
|
<?php if ($sitelogo): ?><img class="float-start" src="<?php echo $sitelogo;?>"><?php endif; ?>
|
|
<jdoc:include type="modules" name="top" style="html5" />
|
|
<!--div class="container" id="top"></div-->
|
|
</div>
|
|
|
|
<!--div class="" id="topright"><jdoc:include type="modules" name="topright" style="html5" /></div-->
|
|
<?php if ($cntBreadCrumb): ?><section id="breadcrumbs" class="container bg-content solid">
|
|
<jdoc:include type="modules" name="breadcrumbs" style="html5" />
|
|
</section><?php endif; ?>
|
|
|
|
</header>
|
|
|
|
<section class="main">
|
|
<aside class="side left">
|
|
<jdoc:include type="modules" name="sideleft" style="html5" />
|
|
</aside>
|
|
|
|
<section id="content" class="container <?php if ($params->get('solidContentBackground')) { echo 'bg-content '; } ?>py-3 mb-5">
|
|
<?php if ($cntMessage): ?><section id="message">
|
|
<jdoc:include type="modules" name="message" style="html5" />
|
|
</section><?php endif; ?>
|
|
<main>
|
|
<section id="component">
|
|
<jdoc:include type="component" />
|
|
</section>
|
|
<?php if ($cntLeft): ?><section id="left"><jdoc:include type="modules" name="left" style="html5" /></section><?php endif;?>
|
|
<?php if ($cntRight): ?><section id="right"><jdoc:include type="modules" name="right" style="html5" /></section><?php endif;?>
|
|
</main>
|
|
</section>
|
|
<section id="filler" class="spacer"></section>
|
|
|
|
<aside class="side right">
|
|
<jdoc:include type="modules" name="sideright" style="html5" />
|
|
</aside>
|
|
</section>
|
|
|
|
<?php if ($cntFooter): ?>
|
|
<footer id="footer" class="fixed-bottom" style="background-color: var(--bs-background);">
|
|
<div class="container-fluid">
|
|
<jdoc:include type="modules" name="footer" style="html5" />
|
|
</div>
|
|
</footer>
|
|
<?php endif; ?>
|
|
<!--script src="<?php echo $tmplBase . "/js/bootstrap.bundle.js"; ?>"></script-->
|
|
</body>
|
|
</html>
|