<?php
/*================================================================*\
|| # Copyright (C) 2019 Joomla51. All Rights Reserved. ||
|| # license - PHP files are licensed under GNU/GPL V2 ||
|| # license - CSS - JS - IMAGE files are Copyrighted material ||
|| # Website: http://www.joomla51.com ||
\*================================================================*/
defined('_JEXEC') or die;
use \Joomla\CMS\Factory;
$app = Factory::getApplication();
$document = Factory::getDocument();
$user = Factory::getUser();
$this->language = $document->language;
$this->direction = $document->direction;
$document->setHtml5(true);
$params = $app->getTemplate(true)->params;
// Detecting Active Variables
$option = $app->input->getCmd('option', '');
$view = $app->input->getCmd('view', '');
$layout = $app->input->getCmd('layout', '');
$task = $app->input->getCmd('task', '');
$itemid = $app->input->getCmd('Itemid', '');
$sitename = $app->get('sitename');
$menu = $app->getMenu()->getActive();
$menuParams = new \Joomla\Registry\Registry();
$pageclass = $menuParams->get('pageclass_sfx','');
$editing = false;
if (($option === 'com_config' && $view === 'modules') || ($layout === 'edit')) {
$editing = true;
}
require_once("inc/helper.php");
require_once("inc/variables.php");
?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" >
<head>
<jdoc:include type="metas" />
<jdoc:include type="styles" />
<jdoc:include type="scripts" />
<?php include ("inc/head.php");?>
<?php include ("inc/scripts.php");?>
<?php echo $this->params->get('head_custom_code'); ?>
</head>
<body class="site <?php echo $option
. ' view-' . $view
. ($layout ? ' layout-' . $layout : ' no-layout')
. ($task ? ' task-' . $task : ' no-task')
. ($itemid ? ' itemid-' . $itemid : '')
. ' ' . $pageclass
. ($params->get('fluidContainer') ? ' fluid' : '');
echo ($this->direction === 'rtl' ? ' rtl' : '');
?>">
<?php if($mobile_menu_type == "slideout") { ?>
<div id="slideout" style="display:none;">
<?php if($this->params->get('hornavPosition') == '1') : ?>
<jdoc:include type="modules" name="hornav" />
<?php else : ?>
<?php echo $hornav; ?>
<?php endif; ?>
</div>
<?php } ?>
<?php if($mobile_menu_type == "slideout") { ?><div id="body_panel"><?php } ?>
<header id="container_header">
<div class="header_sticky">
<div class="header_row">
<div class="wrapper960">
<?php if ($this->countModules( 'header-1' )) : ?>
<div class="header-1">
<jdoc:include type="modules" name="header-1" style="header" />
</div>
<?php endif; ?>
<?php if ($this->countModules( 'header-2' )) : ?>
<div class="header-2">
<jdoc:include type="modules" name="header-2" style="header" />
</div>
<?php endif; ?>
<?php require("inc/layouts/header.php"); ?>
<?php if($mobile_menu_type == "slideout") { ?>
<a class="slideout-toggle"><i class="fa fa-bars" aria-hidden="true"></i></a>
<?php } ?>
<?php require("inc/layouts/social_icons.php"); ?>
<?php require("inc/layouts/hornav.php"); ?>
</div>
</div>
</div>
<?php if (j51BlockExists($this, 'showcase-1')) { ?>
<div id="container_showcase1_modules" class="module_block jarallax" style="background-position: 50% 0">
<div class="wrapper960">
<?php j51Block($this, 'showcase-1'); ?>
</div>
</div>
<?php } ?>
</header>
<?php if (j51BlockExists($this, 'top-1')) { ?>
<div id="container_top1_modules" class="module_block jarallax" style="background-position: 50% 0">
<div class="wrapper960">
<?php if($particle_block == "top1") {echo $particles;} ?>
<?php j51Block($this, 'top-1'); ?>
</div>
</div>
<?php }?>
<?php if (j51BlockExists($this, 'top-2')) { ?>
<div id="container_top2_modules" class="module_block jarallax" style="background-position: 50% 0">
<div class="wrapper960">
<?php if($particle_block == "top2") {echo $particles;} ?>
<?php j51Block($this, 'top-2'); ?>
</div>
</div>
<?php }?>
<?php if ($this->countModules('breadcrumb') || j51BlockExists($this, 'top-3')) { ?>
<div id="container_top3_modules" class="module_block jarallax" style="background-position: 50% 0">
<div class="wrapper960">
<?php if($particle_block == "top3") {echo $particles;} ?>
<?php j51Block($this, 'top-3'); ?>
<?php if ($this->countModules( 'breadcrumb' )) : ?>
<jdoc:include type="modules" name="breadcrumb" style="mod_breadcrumb" />
<?php endif; ?>
</div>
</div>
<?php }?>
<?php if($this->params->get('hide_component') == "0") { ?>
<div id="container_main">
<div class="wrapper960">
<?php require("inc/layouts/main.php"); ?>
</div>
</div>
<?php } ?>
<?php if (j51BlockExists($this, 'bottom-1')) { ?>
<div id="container_bottom1_modules" class="module_block jarallax" style="background-position: 50% 0">
<div class="wrapper960">
<?php if($particle_block == "bottom1") {echo $particles;} ?>
<?php j51Block($this, 'bottom-1'); ?>
</div>
</div>
<?php }?>
<?php if (j51BlockExists($this, 'bottom-2')) { ?>
<div id="container_bottom2_modules" class="module_block jarallax" style="background-position: 50% 0">
<div class="wrapper960">
<?php if($particle_block == "bottom2") {echo $particles;} ?>
<?php j51Block($this, 'bottom-2'); ?>
</div>
</div>
<?php }?>
<?php if (j51BlockExists($this, 'bottom-3')) { ?>
<div id="container_bottom3_modules" class="module_block jarallax" style="background-position: 50% 0">
<div class="wrapper960">
<?php if($particle_block == "bottom3") {echo $particles;} ?>
<?php j51Block($this, 'bottom-3'); ?>
</div>
</div>
<?php }?>
<div class="clearfix"></div>
<div class="clearfix"></div>
<?php require("inc/layouts/base.php"); ?>
<?php if($mobile_menu_type == "slideout") { ?></div><?php } ?>
<?php echo $this->params->get('body_custom_code'); ?>
<?php if (!$this->params->get('top1_bg') || !$this->params->get('top2_bg') || !$this->params->get('top3_bg') || !$this->params->get('bottom1_bg') || !$this->params->get('bottom2_bg') || !$this->params->get('bottom3_bg')) { ?>
<?php $wa->useScript('template.jarallax'); ?>
<script>
jarallax(document.querySelectorAll('.jarallax'), {
speed: 0.5,
disableParallax: /iPad|iPhone|iPod|Android/,
disableVideo: /iPad|iPhone|iPod|Android/
});
</script>
<?php } ?>
<?php if($particle_block != "0") { ?>
<script src="http://cdn.jsdelivr.net/particles.js/2.0.0/particles.min.js"></script>
<script type="text/javascript">
particlesJS("particles-js", {"particles":{"number":{"value":400,"density":{"enable":true,"value_area":800}},"color":{"value":"<?php echo $particle_color; ?>"},"shape":{"type":"circle","stroke":{"width":0,"color":"#000000"},"polygon":{"nb_sides":5},"image":{"src":"img/github.svg","width":100,"height":100}},"opacity":{"value":0.5,"random":true,"anim":{"enable":false,"speed":1,"opacity_min":0.1,"sync":false}},"size":{"value":3,"random":true,"anim":{"enable":false,"speed":40,"size_min":0.1,"sync":false}},"line_linked":{"enable":false,"distance":500,"color":"#ffffff","opacity":0.4,"width":2},"move":{"enable":true,"speed":6,"direction":"bottom","random":true,"straight":true,"out_mode":"out","bounce":false,"attract":{"enable":false,"rotateX":600,"rotateY":1200}}},"interactivity":{"detect_on":"canvas","events":{"onhover":{"enable":false,"mode":"bubble"},"onclick":{"enable":false,"mode":"repulse"},"resize":true},"modes":{"grab":{"distance":400,"line_linked":{"opacity":0.5}},"bubble":{"distance":400,"size":4,"duration":0.3,"opacity":1,"speed":3},"repulse":{"distance":200,"duration":0.4},"push":{"particles_nb":4},"remove":{"particles_nb":2}}},"retina_detect":true});var count_particles, stats, update; stats = new Stats; stats.setMode(0); stats.domElement.style.position = 'absolute'; stats.domElement.style.left = '0px'; stats.domElement.style.top = '0px'; document.body.appendChild(stats.domElement); count_particles = document.querySelector('.js-count-particles'); update = function() { stats.begin(); stats.end(); if (window.pJSDom[0].pJS.particles && window.pJSDom[0].pJS.particles.array) { count_particles.innerText = window.pJSDom[0].pJS.particles.array.length; } requestAnimationFrame(update); }; requestAnimationFrame(update);;
</script>
<?php } ?>
<jdoc:include type="modules" name="debug" />
</body>
</html>