2020-10-31 18:19:23 +01:00
< ? php defined ( '_JEXEC' ) or die ; ?>
2021-11-14 21:40:27 +01:00
< ? 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 ();
2020-10-31 18:19:23 +01:00
$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 " ;
};
2021-11-14 21:40:27 +01:00
$sitebackground = $params -> get ( 'site-background' );
2020-10-31 18:19:23 +01:00
$cntAbove = $this -> countModules ( " above " );
$cntTop = $this -> countModules ( " top " );
$cntTopLeft = $this -> countModules ( " topleft " );
2021-11-14 21:40:27 +01:00
$cntTopLeft = $this -> countModules ( " topright " );
$cntBreadCrumb = $this -> countModules ( " breadcrumbs " );
2020-10-31 18:19:23 +01:00
$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 " );
2021-11-15 15:32:56 +01:00
$this -> addStyleSheet ( $tmplBase . '/css/bootstrap/bootstrap-icons.css' , array ( 'version' => 'auto' ));
2021-11-14 21:40:27 +01:00
2020-10-31 18:19:23 +01:00
$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' ));
2021-11-14 21:40:27 +01:00
//$this->addScript($tmplBase . "/js/bootstrap.bundle.js");
2020-10-31 18:19:23 +01:00
$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 . ' ;
2021-11-14 21:40:27 +01:00
-- 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 ') . ' ;
2020-10-31 18:19:23 +01:00
} ' );
2021-11-14 21:40:27 +01:00
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 ;
}
' );
};
2020-10-31 18:19:23 +01:00
?>
<! 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 >
2021-11-14 21:40:27 +01:00
< 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 ; ?>
2021-11-15 15:32:56 +01:00
< header id = " header " class = " container-fluid sticky-top px-0 " >
2021-11-14 21:40:27 +01:00
<!-- div class = " " id = " topleft " >< jdoc : include type = " modules " name = " topleft " style = " html5 " /></ div -->
2021-11-15 15:32:56 +01:00
< div class = " container bg-header clearfix " >
2021-11-14 21:40:27 +01:00
< ? 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 -->
2020-10-31 18:19:23 +01:00
</ div >
2021-11-14 21:40:27 +01:00
<!-- 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 >
2020-10-31 18:19:23 +01:00
</ section >
2021-11-14 21:40:27 +01:00
< section id = " filler " class = " spacer " ></ section >
< aside class = " side right " >
< jdoc : include type = " modules " name = " sideright " style = " html5 " />
</ aside >
</ section >
2020-10-31 18:19:23 +01:00
< ? php if ( $cntFooter ) : ?>
2021-11-14 21:40:27 +01:00
< footer id = " footer " class = " fixed-bottom " style = " background-color: var(--bs-background); " >
< div class = " container-fluid " >
2020-10-31 18:19:23 +01:00
< jdoc : include type = " modules " name = " footer " style = " html5 " />
2021-11-14 21:40:27 +01:00
</ div >
</ footer >
2020-10-31 18:19:23 +01:00
< ? php endif ; ?>
2021-11-14 21:40:27 +01:00
<!-- script src = " <?php echo $tmplBase . " / js / bootstrap . bundle . js " ; ?> " ></ script -->
2020-10-31 18:19:23 +01:00
</ body >
</ html >