language = $doc->language; $this->direction = $doc->direction; // Getting params from template $params = $app->getMenu()->getActive(); $params = $params ? $params->params : new JRegistry(); // 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', ''); $skin = $this->params->get( 'templateSkin', 'light' ); $baseUrlSkin = $this->baseurl . '/templates/' . $this->template . '/skins/' . $skin . '/'; // Add favicon if($favicon = $this->params->get('favFile')) { $doc->addFavicon( JURI::root() . $favicon); } // Add JavaScript Frameworks JHtml::_('bootstrap.framework'); foreach( $doc->_scripts as $src => $attrs ) { if( preg_match( '/k2\.js/', $src, $matches ) ) { unset( $doc->_scripts[ $src ] ); $doc->_scripts[ preg_replace( '/\?.+/', '', $src ) ] = $attrs; } if( preg_match( '/bootstrap\.min\.js/', $src, $matches ) ) { unset( $doc->_scripts[ $src ] ); } } /* JQUERY:: LIGHTBOX.JS */ if( $params->get('pageclass_sfx', '' ) == 't-masonary' ) { /* JQUERY:: PLUGIN.JS */ $doc->addScript($baseUrlSkin . 'js/masonry.min.js'); } $doc->addScript($baseUrlSkin . 'js/lightbox-plus-jquery.min.js'); if( $params->get('pageclass_sfx', '' ) == 't-inner_page' ) { /* JQUERY:: PLUGIN.JS */ $doc->addScript($baseUrlSkin . 'js/jquery.plugins.inner.min.js'); $doc->addScript($baseUrlSkin . 'js/custom.min.js'); } else { /* JQUERY:: PLUGIN.JS */ $doc->addScript($baseUrlSkin . 'js/jquery.plugin.min.js'); /* JQUERY:: INDEX.JS **** FOR INDEX JQUERY CODE **** */ $doc->addScript($baseUrlSkin . 'js/index.min.js'); } // Add Stylesheets $doc->addStyleSheet($baseUrlSkin . 'css/bootstrap.min.css'); /* CSS:: ANIMATION */ $doc->addStyleSheet($baseUrlSkin . 'css/animator.css'); /* CSS:: ANIMATION */ $doc->addStyleSheet($baseUrlSkin . 'css/jquery.slider.css'); /* CSS:: FONTS */ $doc->addStyleSheet($baseUrlSkin . 'css/font-awesome.min.css'); $doc->addStyleSheet($baseUrlSkin . 'css/simple-line-icons.css'); $doc->addStyleSheet('//fonts.googleapis.com/css?family=Montserrat:400,700'); $doc->addStyleSheet('//fonts.googleapis.com/css?family=Droid+Serif:400,400italic,700'); /* CSS:: */ if( $this->countModules( 'gx' ) ) { $doc->addStyleSheet($baseUrlSkin . 'css/sidemenu.css'); $doc->addScript($baseUrlSkin . 'js/plugin/sidemenu.js'); $doc->addScriptDeclaration(" jQuery(function($) { $('#gx-sidemenu').gxSideMenu({ mode: isMobile.any() ? 'tiny' : 'normal', // normal | tiny interval: 300, // animations' interval direction: 'left', // left | right openOnHover: false, // true | false clickTrigger: true, // true | false followURLs: true, // true | false trigger: '.gx-menu-open.list', // class or id of trigger element startFrom: 60, // start pixel from corner on hover trigger startClosed: false, // menu opens on document load scrolling: true, // menu scrollable (iScroll plugin needed!) urlBase: '/', // document base URL backText: '<<', // Back button text onOpen: function() { }, // Open callback onClose: function() { } // Close callback }); }); "); } $doc->addStyleSheet($baseUrlSkin . 'css/lightbox.css'); $doc->addStyleSheet($baseUrlSkin . 'css/reset.css'); $main_skin = 'main.css'; if( $skin == 'light' ) { $main_skin = $this->params->get( 'templateColor', 'main.css'); } $doc->addStyleSheet($baseUrlSkin . "css/{$main_skin}" ); ?> params->get('afterHeader')) : ?>
countModules( 'gx' ) ) : ?>
countModules('position-2')) : ?> countModules('position-5')) : ?>
countModules('position-6')) : ?>
BA
CK
params->get('afterBody')) : ?>