Exemplo n.º 1
0
 public function stageHeader()
 {
     global $gantry;
     JHtml::_('behavior.framework', true);
     if (!self::$jsLoaded && $gantry->get('layout-mode', 'responsive') == 'responsive') {
         if (!($gantry->browser->name == 'ie' && $gantry->browser->shortver < 9)) {
             $gantry->addScript($gantry->baseUrl . 'modules/mod_roknavmenu/themes/default/js/rokmediaqueries.js');
             if ($this->args['responsive-menu'] == 'selectbox') {
                 $gantry->addScript($gantry->baseUrl . 'modules/mod_roknavmenu/themes/default/js/responsive.js');
                 $gantry->addScript($gantry->baseUrl . 'modules/mod_roknavmenu/themes/default/js/responsive-selectbox.js');
             } else {
                 if (file_exists($gantry->basePath . '/modules/mod_roknavmenu/themes/default/js/sidemenu.js') && $this->args['responsive-menu'] == 'panel') {
                     $gantry->addScript($gantry->baseUrl . 'modules/mod_roknavmenu/themes/default/js/sidemenu.js');
                 }
             }
         }
         self::$jsLoaded = true;
     }
     $gantry->addLess('menu.less');
 }
Exemplo n.º 2
0
 public function stageHeader()
 {
     /** @var $gantry Gantry */
     global $gantry;
     JHtml::_('behavior.framework', true);
     if (!self::$jsLoaded && $gantry->get('layout-mode', 'responsive') == 'responsive') {
         if (!($gantry->browser->name == 'ie' && $gantry->browser->shortver < 9)) {
             $gantry->addScript($gantry->baseUrl . 'modules/mod_roknavmenu/themes/default/js/rokmediaqueries.js');
             $gantry->addScript($gantry->baseUrl . 'modules/mod_roknavmenu/themes/default/js/responsive.js');
             if ($this->args['responsive-menu'] == 'selectbox') {
                 $gantry->addScript($gantry->baseUrl . 'modules/mod_roknavmenu/themes/default/js/responsive-selectbox.js');
             }
         }
         self::$jsLoaded = true;
     }
     $gantry->addLess('menu.less', 'menu.css', 1, array('headerstyle' => $gantry->get('headerstyle', 'dark'), 'menuHoverColor' => $gantry->get('linkcolor')));
     // no media queries for IE8 so we compile and load the hovers
     if ($gantry->browser->name == 'ie' && $gantry->browser->shortver < 9) {
         $gantry->addLess('menu-hovers.less', 'menu-hovers.css', 1, array('headerstyle' => $gantry->get('headerstyle', 'dark'), 'menuHoverColor' => $gantry->get('linkcolor')));
     }
 }
Exemplo n.º 3
0
 public function stageHeader()
 {
     global $gantry;
     JHtml::_('behavior.framework', true);
     if (!self::$jsLoaded && $gantry->get('layout-mode', 'responsive') == 'responsive') {
         if (!($gantry->browser->name == 'ie' && $gantry->browser->shortver < 9)) {
             $gantry->addScript($gantry->baseUrl . 'modules/mod_roknavmenu/themes/default/js/rokmediaqueries.js');
             if ($this->args['responsive-menu'] == 'selectbox') {
                 $gantry->addScript($gantry->baseUrl . 'modules/mod_roknavmenu/themes/default/js/responsive.js');
                 if ($this->args['responsive-menu'] == 'selectbox') {
                     $gantry->addScript($gantry->baseUrl . 'modules/mod_roknavmenu/themes/default/js/responsive-selectbox.js');
                 }
             } else {
                 $gantry->addScript($gantry->baseUrl . 'modules/mod_roknavmenu/themes/default/js/sidemenu.js');
             }
         }
         self::$jsLoaded = true;
     }
     $gantry->addLess('menu.less', 'menu.css', 1, array('showcasebackground' => $gantry->get('showcasebackground', '#3399aa'), 'linkcolor' => $gantry->get('linkcolor', '#3399aa'), 'linkcolorhover' => $gantry->get('linkcolorhover', '#227799'), 'buttontextcolor' => $gantry->get('buttontextcolor', '#fff'), 'headerstyle' => $gantry->get('headerstyle', 'dark'), 'menupositionbackgroundcolor' => $gantry->get('menupositionbackgroundcolor', '#eec60d'), 'menupositionbackgroundcolorgradient' => $gantry->get('menupositionbackgroundcolorgradient', '#ffc600'), 'menubackgroundcolor' => $gantry->get('menubackgroundcolor', '#55aadd'), 'menubackgroundcolorhover' => $gantry->get('menubackgroundcolorhover', '#111111'), 'menuHoverColor' => $gantry->get('menuHoverColor', '#fff'), 'menuShadowColor' => $gantry->get('menuShadowColor', '#fff'), 'menuItemOutlineColor' => $gantry->get('menuItemOutlineColor', '#fff'), 'submenuShadowColor' => $gantry->get('submenuShadowColor', '#fff'), 'submenuTextColor' => $gantry->get('submenuTextColor', '#ffffff'), 'submenuActiveColor' => $gantry->get('submenuActiveColor', '#ffffff'), 'submenuHoverColor' => $gantry->get('submenuHoverColor', '#ffffff'), 'submenuGradientLeftColor' => $gantry->get('submenuGradientLeftColor', '#00aaff'), 'submenuGradientRightColor' => $gantry->get('submenuGradientRightColor', '#dc6e0a'), 'mainbackgroundLeftGradientColor' => $gantry->get('mainbackgroundLeftGradientColor', '#dc6e0a'), 'mainbackgroundRightGradientColor' => $gantry->get('mainbackgroundRightGradientColor', '#00AAFF'), 'menuTextColor' => $gantry->get('menuTextColor', '#405060'), 'menuTextHover' => $gantry->get('menuTextHover', '#ffffff'), 'menuItemRadius' => $gantry->get('menuItemRadius', '50%'), 'simpleMenu' => $gantry->get('simpleMenu', 1)));
     // no media queries for IE8 so we compile and load the hovers
     if ($gantry->browser->name == 'ie' && $gantry->browser->shortver < 9) {
         $gantry->addLess('menu-hovers.less', 'menu-hovers.css', 1, array('headerstyle' => $gantry->get('headerstyle', 'dark'), 'menuHoverColor' => $gantry->get('linkcolor')));
     }
 }