<?php

/**
 * @copyright	The Joomla Templates
 * https://thejoomlatemplates.com/
 * Template made with the joomla component Template Creator CK - https://www.template-creator.com
 * ozzyblue
 * @license 
 * @version 
 * */

// No direct access to this file
defined('_JEXEC') or die('Restricted access');

$wa    = $this->getWebAssetManager();
$app   = \Joomla\CMS\Factory::getApplication();
$input = $app->getInput();
$input = $app->input;
?>

<!DOCTYPE html>
<html lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>" >
<head>
	<jdoc:include type="metas" />
	<jdoc:include type="styles" />
	<jdoc:include type="scripts" />
	<?php if ($this->params->get('useresponsive','1')) { ?>
	<meta name="viewport" content="width=device-width, initial-scale=1.0" />
	<?php } ?>
		<?php \Joomla\CMS\HTML\HTMLHelper::_('bootstrap.framework'); ?>
	<?php $wa->registerAndUseStyle('bootstrap', 'media/vendor/bootstrap/css/bootstrap.min.css'); ?>
	<?php \Joomla\CMS\HTML\Helpers\Bootstrap::loadCss($includeMaincss = false, $this->direction); ?>
<?php 
	$wa->useScript('core');
	$wa->registerAndUseStyle('fontawesome', 'system/joomla-fontawesome.min.css');
	if ($this->direction == 'rtl') {
	$wa->registerAndUseStyle('template', 'templates/' . $this->template . '/css/template_rtl.css');
	} else {
	$wa->registerAndUseStyle('template', 'templates/' . $this->template . '/css/template.css');
	}
	$wa->registerAndUseStyle('template-dark', 'templates/' . $this->template . '/css/dark.css');
	$wa->registerAndUseStyle('template-mobile', 'templates/' . $this->template . '/css/mobile.css');
?>
<?php
// Detecting Active Variables
$option   = $input->getCmd('option', '');
$view     = $input->getCmd('view', '');
$layout   = $input->getCmd('layout', '');
$task     = $input->getCmd('task', '');
$itemid   = $input->getCmd('Itemid', '');
$pageid   = $input->getCmd('id', '');
$tckedition   = $input->getCmd('tckedition', '');
$tckeditionclass = $tckedition ? 'tck-edition' : '';

$menu = $app->getMenu()->getActive();
$pageclass = '';

if (is_object($menu))
	$pageclass = ' ' . $menu->getParams()->get('pageclass_sfx');
?><?php
$nbmodules4 = (bool)$this->countModules('position-8', true) + (bool)$this->countModules('position-9', true) + (bool)$this->countModules('position-10', true) + (bool)$this->countModules('position-11', true) + (bool)$this->countModules('position-12', true);
?>
<?php
$mainclass = "";
if (!$this->countModules('position-7', true) && ! $tckedition) { $mainclass .= " noleft";}
if (!$this->countModules('position-6', true) && ! $tckedition) { $mainclass .= " noright";}
$mainclass = trim($mainclass); ?>

<?php
$nbmodules6 = (bool)$this->countModules('position-13', true) + (bool)$this->countModules('position-14', true) + (bool)$this->countModules('position-15', true) + (bool)$this->countModules('position-16', true) + (bool)$this->countModules('position-17', true);
?>
<?php if ($this->params->get('googleanalyticscode','')) { ?>
<script async src="https://www.googletagmanager.com/gtag/js?id=<?php echo $this->params->get('googleanalyticscode','G-xxxxxxxx-x') ?>"></script>
<script>
	window.dataLayer = window.dataLayer || [];
	function gtag(){dataLayer.push(arguments);}
	gtag('js', new Date());

	gtag('config', '<?php echo $this->params->get('googleanalyticscode','G-xxxxxxxx-x') ?>');
</script>
<?php } ?><?php
// Detecting Home
$menu = \Joomla\CMS\Factory::getApplication()->getMenu();
$lang = \Joomla\CMS\Factory::getLanguage();
if ($menu->getActive() == $menu->getDefault($lang->getTag())) {
	$siteHome = 1;
}else{
	$siteHome = 0;
}
?> 
<?php include('customheader.php'); ?>
	<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/custom.css?ver=125740" type="text/css" />

	<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/print.css?ver=125740" type="text/css" media="print" />
</head>
<body class="<?php echo $option
	. ' ' . $tckeditionclass . '-body'
	. ' view-' . $view
	. ($layout ? ' layout-' . $layout : ' no-layout')
	. ($task ? ' task-' . $task : ' no-task')
	. $pageclass
	. ($itemid ? ' itemid-' . $itemid : '')
	. ($siteHome === 1 ? ' homepage' : '')
	. ($pageid ? ' pageid-' . $pageid : '');
?> <?php echo $this->direction; ?> ">
<div id="wrapper1" class="tck-wrapper">
	<div class="inner  tck-container">

	</div>
</div>
<div id="sidebar" class="tck-wrapper">
	<div class="inner  tck-container tck-flip-module">

	<section id="bannerrow"  class="tck-row">
		<div class="inner">
			<div class="flexiblecolumn " id="sidebarcolumn1">
				<div id="bannerlogo" class="tck-logo">
					<div class="inner">
						<?php if ($this->params->get('bannerlogo_logolink')) { ?>
						<a href="<?php echo htmlspecialchars($this->params->get('bannerlogo_logolink')); ?>">
						<?php } ?>
							<img class="tck-logo-img" src="<?php echo \Joomla\CMS\Uri\Uri::root(true) . '/' .  trim('/' . $this->params->get('bannerlogo_logoimgsrc', $this->baseurl . '/templates/' . $this->template . '/images/logo_fake.png'), '/') ?>" width="<?php echo $this->params->get('bannerlogo_logowidth', '216px') ?>" height="<?php echo $this->params->get('bannerlogo_logoheight', '53px') ?>" alt="<?php echo htmlspecialchars($this->params->get('bannerlogo_logotitle',''));?>" />
						<?php if ($this->params->get('bannerlogo_logolink')) { ?>
						</a>
						<?php } ?>
						<?php if ($this->params->get('bannerlogo_logodescription')) { ?>
						<div class="bannerlogodesc">
							<div class="inner"><?php echo htmlspecialchars($this->params->get('bannerlogo_logodescription'));?></div>
						</div>
						<?php } ?>
					</div>
				</div>
			</div>
			<div class="flexiblecolumn " id="sidebarcolumn2">
				<?php if ($this->countModules('position-0', true) || $tckedition) : ?>
				<div id="bannermodule" >
					<div class="inner <?php echo $tckeditionclass ?>" data-position="position-0">
									<jdoc:include type="modules" name="position-0" style="htmlck" />
					</div>
				</div>
				<?php endif; ?>
				<?php if ($this->countModules('position-4', true) || $tckedition) : ?>
				<div id="block1" >
					<div class="inner <?php echo $tckeditionclass ?>" data-position="position-4">
									<jdoc:include type="modules" name="position-4" style="htmlck" />
					</div>
				</div>
				<?php endif; ?>
			</div>
			<div class="flexiblecolumn " id="sidebarcolumn3">
				<?php if ($this->countModules('position-2', true) || $tckedition) : ?>
				<nav id="bannermenu">
					<div class="inner <?php echo $tckeditionclass ?>" data-position="position-2">
						<jdoc:include type="modules" name="position-2" style="htmlck" />
					</div>
				</nav>
				<?php endif; ?>
			</div>
		</div>
	</section>

	<?php if ($this->countModules('position-1', true) || $tckedition) : ?>
	<nav id="nav">
		<div class="inner <?php echo $tckeditionclass ?>" data-position="position-1">
			<jdoc:include type="modules" name="position-1" style="htmlck" />
		</div>
	</nav>
	<?php endif; ?>

	<?php if ($nbmodules4 || $tckedition) : ?>
	<section id="modulestop"  class="tck-modules">
		<div class="inner scrollTo <?php echo 'n'.$nbmodules4 ?>">
			<?php if ($this->countModules('position-8', true) || $tckedition) : ?>
			<div id="modulestopmod1" class="flexiblemodule ">
				<div class="inner <?php echo $tckeditionclass ?>" data-position="position-8">
					<jdoc:include type="modules" name="position-8" style="htmlck" />
				</div>
			</div>
			<?php endif; ?>
			<?php if ($this->countModules('position-9', true) || $tckedition) : ?>
			<div id="modulestopmod2" class="flexiblemodule ">
				<div class="inner <?php echo $tckeditionclass ?>" data-position="position-9">
					<jdoc:include type="modules" name="position-9" style="htmlck" />
				</div>
			</div>
			<?php endif; ?>
			<?php if ($this->countModules('position-10', true) || $tckedition) : ?>
			<div id="modulestopmod3" class="flexiblemodule ">
				<div class="inner <?php echo $tckeditionclass ?>" data-position="position-10">
					<jdoc:include type="modules" name="position-10" style="htmlck" />
				</div>
			</div>
			<?php endif; ?>
			<?php if ($this->countModules('position-11', true) || $tckedition) : ?>
			<div id="modulestopmod4" class="flexiblemodule ">
				<div class="inner tck-flip-module <?php echo $tckeditionclass ?>" data-position="position-11">
					<jdoc:include type="modules" name="position-11" style="htmlck" />
				</div>
			</div>
			<?php endif; ?>
			<?php if ($this->countModules('position-12', true) || $tckedition) : ?>
			<div id="modulestopmod5" class="flexiblemodule ">
				<div class="inner <?php echo $tckeditionclass ?>" data-position="position-12">
					<jdoc:include type="modules" name="position-12" style="htmlck" />
				</div>
			</div>
			<?php endif; ?>
		</div>
	</section>
	<?php endif; ?>


	<div id="maincontent" class="maincontent <?php echo $mainclass ?>">
		<div class="inner clearfix">
			<?php if ($this->countModules('position-7', true) || $tckedition) : ?>
			<aside id="left" class="column column1">
				<?php if ($this->countModules('position-7', true)) : ?>
				<div class="inner clearfix <?php echo $tckeditionclass ?>" data-position="position-7">
					<jdoc:include type="modules" name="position-7" style="htmlck" />
				</div>
				<?php endif; ?>
			</aside>
			<?php endif; ?>
			<div id="main" class="column main row-fluid">
				<div class="inner clearfix">
					<?php if ($this->countModules('maintop', true) || $tckedition) : ?>
					<div id="maintopmodule" >
						<div class="inner <?php echo $tckeditionclass ?>" data-position="maintop">
											<jdoc:include type="modules" name="maintop" style="htmlck" />
						</div>
					</div>
					<?php endif; ?>
					<div id="maincenter" class="maincenter ">
						<div class="inner clearfix">
							<main id="center" class="column center ">
								<div class="inner">
								<?php if ($this->countModules('centertop', true) || $tckedition) : ?>
								<div id="centertopmodule" >
									<div class="inner <?php echo $tckeditionclass ?>" data-position="centertop">
																	<jdoc:include type="modules" name="centertop" style="htmlck" />
									</div>
								</div>
								<?php endif; ?>
									<div id="content" class="">
										<div class="inner clearfix">
											<jdoc:include type="message" />
											<jdoc:include type="component" />
										</div>
									</div>
								<?php if ($this->countModules('centerbottom', true) || $tckedition) : ?>
								<div id="centerbottommodule" >
									<div class="inner <?php echo $tckeditionclass ?>" data-position="centerbottom">
																	<jdoc:include type="modules" name="centerbottom" style="htmlck" />
									</div>
								</div>
								<?php endif; ?>
								</div>
							</main>
							<?php if ($this->countModules('position-6', true) || $tckedition) : ?>
							<aside id="right" class="column column2">
								<?php if ($this->countModules('position-6', true) || $tckedition) : ?>
								<div class="inner <?php echo $tckeditionclass ?>" data-position="position-6">
									<jdoc:include type="modules" name="position-6" style="htmlck" />
								</div>
								<?php endif; ?>
							</aside>
							<?php endif; ?>
						</div>
					</div>
					<?php if ($this->countModules('mainbottom', true) || $tckedition) : ?>
					<div id="mainbottommodule" >
						<div class="inner <?php echo $tckeditionclass ?>" data-position="mainbottom">
											<jdoc:include type="modules" name="mainbottom" style="htmlck" />
						</div>
					</div>
					<?php endif; ?>

				</div>
			</div>
			<div class="clr"></div>
		</div>
	</div>

	<?php if ($nbmodules6 || $tckedition) : ?>
	<section id="modulesbottom"  class="tck-modules">
		<div class="inner <?php echo 'n'.$nbmodules6 ?>">
			<?php if ($this->countModules('position-13', true) || $tckedition) : ?>
			<div id="modulesbottommod1" class="flexiblemodule ">
				<div class="inner <?php echo $tckeditionclass ?>" data-position="position-13">
					<jdoc:include type="modules" name="position-13" style="htmlck" />
				</div>
			</div>
			<?php endif; ?>
			<?php if ($this->countModules('position-14', true) || $tckedition) : ?>
			<div id="modulesbottommod2" class="flexiblemodule ">
				<div class="inner <?php echo $tckeditionclass ?>" data-position="position-14">
					<jdoc:include type="modules" name="position-14" style="htmlck" />
				</div>
			</div>
			<?php endif; ?>
			<?php if ($this->countModules('position-15', true) || $tckedition) : ?>
			<div id="modulesbottommod3" class="flexiblemodule ">
				<div class="inner <?php echo $tckeditionclass ?>" data-position="position-15">
					<jdoc:include type="modules" name="position-15" style="htmlck" />
				</div>
			</div>
			<?php endif; ?>
			<?php if ($this->countModules('position-16', true) || $tckedition) : ?>
			<div id="modulesbottommod4" class="flexiblemodule ">
				<div class="inner <?php echo $tckeditionclass ?>" data-position="position-16">
					<jdoc:include type="modules" name="position-16" style="htmlck" />
				</div>
			</div>
			<?php endif; ?>
			<?php if ($this->countModules('position-17', true) || $tckedition) : ?>
			<div id="modulesbottommod5" class="flexiblemodule ">
				<div class="inner <?php echo $tckeditionclass ?>" data-position="position-17">
					<jdoc:include type="modules" name="position-17" style="htmlck" />
				</div>
			</div>
			<?php endif; ?>
		</div>
	</section>
	<?php endif; ?>


	<?php if ($this->countModules('position-3', true) || $tckedition) : ?>
	<div id="footer" >
		<div class="inner <?php echo $tckeditionclass ?>" data-position="position-3">
			<jdoc:include type="modules" name="position-3" style="htmlck" />
		</div>
	</div>
	<?php endif; ?>

	</div>
</div>

<jdoc:include type="modules" name="debug" />
<?php include('customendbody.php'); ?>
</body>
</html>