Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Frontpage check in Joomla
<?php
// no direct access
defined('_JEXEC') or die('Restricted access');
// Frontpage Check
$app = JFactory::getApplication();
$menu = $app->getMenu();
if ($menu->getActive() == $menu->getDefault()) {
$isFrontpage = true;
} else {
$isFrontpage = false;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.