Skip to content

Instantly share code, notes, and snippets.

@rdeutz
Last active December 25, 2015 13:59
Show Gist options
  • Save rdeutz/6988153 to your computer and use it in GitHub Desktop.
Save rdeutz/6988153 to your computer and use it in GitHub Desktop.
Multilanguage Frontpage check
/**
* frontpage check
*/
$menu = JFactory::getApplication()->getMenu();
$defaultmenuitems = array($menu->getDefault()->id, $menu->getDefault(JFactory::getLanguage()->getTag())->id);
$isFrontpage = in_array($menu->getActive()->id, $defaultmenuitems);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment