111 lines
5.2 KiB
PHP
111 lines
5.2 KiB
PHP
|
<?php defined( '_JEXEC' ) or die;?>
|
||
|
<?php $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";
|
||
|
};
|
||
|
|
||
|
|
||
|
$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');
|
||
|
|
||
|
?>
|
||
|
<!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">
|
||
|
|
||
|
<script type="text/javascript">
|
||
|
jQuery(window).on('scroll', function() {
|
||
|
sptScroll();
|
||
|
});
|
||
|
jQuery(window).on('load', function() {
|
||
|
sptLoad();
|
||
|
});
|
||
|
</script>
|
||
|
</head>
|
||
|
<body>
|
||
|
<div class="body" id="top">
|
||
|
<?php if ($cntAbove): ?><section id="above"><div class="wrapper">
|
||
|
<jdoc:include type="modules" name="above" style="html5" /></div>
|
||
|
</section><?php endif; ?>
|
||
|
<header id="header" class="sticky"><div class="wrapper">
|
||
|
<?php if ($cntTopLeft): ?><div id="topleft"><jdoc:include type="modules" name="topleft" style="html5" /></div><?php endif; ?>
|
||
|
<?php if ($sitelogo): ?><div id="site-logo" class="site-logo">
|
||
|
<img class="site-logo" src="<?php echo $sitelogo;?>">
|
||
|
</div><?php endif; ?>
|
||
|
<?php if ($cntTop): ?><div id="topright"><jdoc:include type="modules" name="top" style="html5" /></div><?php endif; ?>
|
||
|
</div></header>
|
||
|
<?php if ($cntBreadCrumb): ?><section id="breadcrumb">
|
||
|
<jdoc:include type="modules" name="breadcrumb" style="html5" />
|
||
|
</section><?php endif; ?>
|
||
|
<?php if ($cntMessage): ?><section id="message">
|
||
|
<jdoc:include type="modules" name="message" style="html5" />
|
||
|
</section><?php endif; ?>
|
||
|
<main><div class="wrapper">
|
||
|
<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;?>
|
||
|
</div></main>
|
||
|
<?php if ($cntFooter1 || $cntFooter2 || $cntFooter3 || $cntFooter4): ?>
|
||
|
<section id="footers">
|
||
|
<div class="wrapper">
|
||
|
<?php if ($cntFooter1): ?><section id="footer-1"><div class="wrapper"><jdoc:include type="modules" name="footer-1" style="html5" /></div></section><?php endif; ?>
|
||
|
<?php if ($cntFooter2): ?><section id="footer-2"><div class="wrapper"><jdoc:include type="modules" name="footer-2" style="html5" /></div></section><?php endif; ?>
|
||
|
<?php if ($cntFooter3): ?><section id="footer-3"><div class="wrapper"><jdoc:include type="modules" name="footer-3" style="html5" /></div></section><?php endif; ?>
|
||
|
<?php if ($cntFooter4): ?><section id="footer-4"><div class="wrapper"><jdoc:include type="modules" name="footer-4" style="html5" /></div></section><?php endif; ?>
|
||
|
</div>
|
||
|
</section>
|
||
|
<?php endif; ?>
|
||
|
<?php if ($cntFooter): ?>
|
||
|
<footer id="footer">
|
||
|
<jdoc:include type="modules" name="footer" style="html5" />
|
||
|
</footer>
|
||
|
<?php endif; ?>
|
||
|
</div>
|
||
|
</body>
|
||
|
</html>
|