theme_path = JPATH_SITE . "/modules/mod_roknavmenu/themes/fusion"; $this->args['theme_path'] = $this->theme_path; $this->args['theme_rel_path'] = JURI::root(true) . str_replace(JPATH_SITE, '', $this->theme_path); $this->args['theme_url'] = $this->args['theme_rel_path']; } public function stageHeader() { if ($this->args['roknavmenu_fusion_effect'] == 'slidefade') $this->args['roknavmenu_fusion_effect'] = "slide and fade"; $this->addScript('js/sfhover.js'); if ($this->browser->name == "ie" && $this->args['roknavmenu_fusion_effect'] == 'slide and fade') $this->args['roknavmenu_fusion_effect'] = "slide"; if ($this->args['roknavmenu_fusion_enable_js']) { JHtml::_('behavior.framework', true); $this->addScript('js/fusion.js'); ob_start(); ?> window.addEvent('domready', function() { new Fusion('ul.menutop', { pill: args['roknavmenu_fusion_pill']; ?>, effect: 'args['roknavmenu_fusion_effect']; ?>', opacity: args['roknavmenu_fusion_opacity']; ?>, hideDelay: args['roknavmenu_fusion_hidedelay']; ?>, centered: args['roknavmenu_fusion_centeredOffset']; ?>, tweakInitial: {'x': args['roknavmenu_fusion_tweakInitial_x']; ?>, 'y': args['roknavmenu_fusion_tweakInitial_y']; ?>}, tweakSubsequent: {'x': args['roknavmenu_fusion_tweakSubsequent_x']; ?>, 'y': args['roknavmenu_fusion_tweakSubsequent_y']; ?>}, tweakSizes: {'width': args['roknavmenu_fusion_tweak-width']; ?>, 'height': args['roknavmenu_fusion_tweak-height']; ?>}, menuFx: {duration: args['roknavmenu_fusion_menu_duration']; ?>, transition: Fx.Transitions.args['roknavmenu_fusion_menu_animation']; ?>}, pillFx: {duration: args['roknavmenu_fusion_pill_duration']; ?>, transition: Fx.Transitions.args['roknavmenu_fusion_pill_animation']; ?>} }); }); appendInlineScript($inline); } if ($this->args['roknavmenu_fusion_load_css']) { $this->addStyle("css/fusion.css"); } } protected function renderItem(JoomlaRokMenuNode &$item, RokMenuNodeTree &$menu) { ?>