- Code: Select all
<?php if($this->API->get('show_menu', 1)) : ?>
<div id="gkMainMenu">
<?php
$menulang =& JFactory::getLanguage();
$this->mainmenu->loadMenu($this->API->get('menu_name' . ($menulang->getTag()), 'mainmenu'));
$this->mainmenu->genMenu($this->API->get('startlevel', 0), $this->API->get('endlevel',-1));
?>
<div id="gkMobileMenu">
<?php echo JText::_('TPL_GK_LANG_MOBILE_MENU'); ?>
<select onChange="window.location.href=this.value;">
<?php
$this->mobilemenu->loadMenu($this->API->get('menu_name' . ($menulang->getTag()), 'mainmenu'));
$this->mobilemenu->genMenu($this->API->get('startlevel', 0), $this->API->get('endlevel',-1));
?>
</select>
</div>
</div>
<?php endif; ?>
But any one any idea to make the home page work with SH404SEF? After I enable SH404SEF, the home page come without language code, while disable it, language code come with index.php?language=xxx
Thanks!