getMenu()->getActive(); //Load Helix $helix3_path = JPATH_PLUGINS . '/system/helix3/core/helix3.php'; if (file_exists($helix3_path)) { require_once($helix3_path); $this->helix3 = helix3::getInstance(); } else { die('Please install and activate helix plugin'); } //Coming Soon if ($this->helix3->getParam('comingsoon_mode')) { header("Location: " . JRoute::_(JUri::root(true) . "/index.php?tmpl=comingsoon", false)); exit(); } //Class Classes $body_classes = ''; if ($this->helix3->getParam('sticky_header')) { $body_classes .= ' sticky-header'; } $body_classes .= ($this->helix3->getParam('boxed_layout', 0)) ? ' layout-boxed' : ' layout-fluid'; if (isset($menu) && $menu) { if ($menu->getParams()->get('pageclass_sfx')) { $body_classes .= ' ' . $menu->getParams()->get('pageclass_sfx'); } } $body_classes .= ' off-canvas-menu-init'; //Body Background Image if ($bg_image = $this->helix3->getParam('body_bg_image')) { $body_style = 'background-image: url(' . JURI::base(true) . '/' . $bg_image . ');'; $body_style .= 'background-repeat: ' . $this->helix3->getParam('body_bg_repeat') . ';'; $body_style .= 'background-size: ' . $this->helix3->getParam('body_bg_size') . ';'; $body_style .= 'background-attachment: ' . $this->helix3->getParam('body_bg_attachment') . ';'; $body_style .= 'background-position: ' . $this->helix3->getParam('body_bg_position') . ';'; $body_style = 'body.site {' . $body_style . '}'; $doc->addStyledeclaration($body_style); } //Custom CSS if ($custom_css = $this->helix3->getParam('custom_css')) { $doc->addStyledeclaration($custom_css); } //Custom JS if ($custom_js = $this->helix3->getParam('custom_js')) { $doc->addScriptdeclaration($custom_js); } //preloader & goto top $doc->addScriptdeclaration("\nvar sp_preloader = '" . $this->params->get('preloader') . "';\n"); $doc->addScriptdeclaration("\nvar sp_gotop = '" . $this->params->get('goto_top') . "';\n"); $doc->addScriptdeclaration("\nvar sp_offanimation = '" . $this->params->get('offcanvas_animation') . "';\n"); ?>
helix3->loadHead(); ?> helix3->PresetParam('_megabg')) ? $this->helix3->PresetParam('_megabg') : '#ffffff'; $megabgtx = ($this->helix3->PresetParam('_megatx')) ? $this->helix3->PresetParam('_megatx') : '#333333'; $preloader_bg = ($this->helix3->getParam('preloader_bg')) ? $this->helix3->getParam('preloader_bg') : '#f5f5f5'; $preloader_tx = ($this->helix3->getParam('preloader_tx')) ? $this->helix3->getParam('preloader_tx') : '#f5f5f5'; // load css, less and js $this->helix3->addCSS('bootstrap.min.css') // CSS Files ->addCSS('joomla-fontawesome.min.css, font-awesome-v4-shims.min.css') ->addJS('bootstrap.min.js, jquery.sticky.js, main.js') // JS Files ->lessInit()->setLessVariables(array( 'preset' => $this->helix3->Preset(), 'bg_color' => $this->helix3->PresetParam('_bg'), 'text_color' => $this->helix3->PresetParam('_text'), 'major_color' => $this->helix3->PresetParam('_major'), 'megabg_color' => $megabgcolor, 'megatx_color' => $megabgtx, 'preloader_bg' => $preloader_bg, 'preloader_tx' => $preloader_tx, )) ->addLess('master', 'template'); //RTL if ($this->direction == 'rtl') { $this->helix3->addCSS('bootstrap-rtl.min.css') ->addLess('rtl', 'rtl'); } $this->helix3->addLess('presets', 'presets/' . $this->helix3->Preset(), array('class' => 'preset')); //Before Head if ($before_head = $this->helix3->getParam('before_head')) { echo $before_head . "\n"; } ?>