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