getParam(JA_TOOL_SCREEN)){ case 'auto': $tmplWidth = '97%'; break; case 'fluid': $tmplWidth = intval($tmplTools->getParam('ja_screen-fluid-fix-ja_screen_width')); $tmplWidth = $tmplWidth ? $tmplWidth.'%' : '90%'; break; case 'fix': $tmplWidth = intval($tmplTools->getParam('ja_screen-fluid-fix-ja_screen_width')); $tmplWrapMin = $tmplWidth ? ($tmplWidth+1).'px' : '791px'; $tmplWidth = $tmplWidth ? $tmplWidth.'px' : '790px'; break; default: $tmplWidth = intval($tmplTools->getParam(JA_TOOL_SCREEN)); $tmplWrapMin = $tmplWidth ? ($tmplWidth+1).'px' : '961px'; $tmplWidth = $tmplWidth ? $tmplWidth.'px' : '960px'; break; } $tmplTools->setParam ('tmplWidth', $tmplWidth); $tmplTools->setParam ('tmplWrapMin', $tmplWrapMin); //Main navigation $ja_menutype = $tmplTools->getMenuType(); $jamenu = null; if ($ja_menutype && $ja_menutype != 'none') { $japarams = new JParameter(''); $japarams->set( 'menutype', $tmplTools->getParam('menutype', 'mainmenu') ); $japarams->set( 'menu_images_align', 'left' ); $japarams->set( 'menupath', $tmplTools->templateurl() .'/ja_menus'); $japarams->set('menu_images', 1); //0: not show image, 1: show image which set in menu item $japarams->set('menu_background', 1); //0: image, 1: background $japarams->set('mega-colwidth', 200); //Megamenu only: Default column width $japarams->set('mega-style', 1); //Megamenu only: Menu style. $japarams->set('rtl',($tmplTools->getParam('direction')=='rtl' || $tmplTools->direction == 'rtl')); $jamenu = $tmplTools->loadMenu($japarams, $ja_menutype); } //End for main navigation $layout = $tmplTools->getLayout (); if ($layout) { $tmplTools->display ($layout); }