public function onAfterRouteSite()
{
$app = JFactory::getApplication();
if (!$app->isSite())
{
return;
}
// Make sure Gantry has been loaded (and theme is active).
if (!class_exists('Gantry\Framework\Gantry'))
{
return;
}
// TODO: Add logic to set the custom outline.
// NOTE: Just remember not to set outline if you want to use regular template style assignments.
$outline = null;
if (1)
{
$outline = 'default';
}
elseif (0)
{
$outline = 'foobar';
}
// If custom outline is set, use it!
if (isset($outline))
{
$gantry = Gantry\Framework\Gantry::instance();
$theme = $gantry['theme'];
$theme->setLayout($outline);
}
}
The following users have thanked you: MrT
$app->setTemplate($template, $styleParams);
The following users have thanked you: MrT
Time to create page: 0.069 seconds