mirror of
https://github.com/gantry/gantry5.git
synced 2026-08-17 16:34:55 -05:00
38 lines
924 B
PHP
38 lines
924 B
PHP
<?php
|
|
|
|
/**
|
|
* @package Gantry 5 Theme
|
|
* @author Tiger12 http://tiger12.com
|
|
* @originalCreator RocketTheme (Gantry Framework)
|
|
* @currentDeveloper Tiger12, LLC
|
|
* @copyright Copyright (C) 2007 - 2022 Tiger12, LLC
|
|
* @license GNU/GPLv2 and later
|
|
*
|
|
* http://www.gnu.org/licenses/gpl-2.0.html
|
|
*/
|
|
|
|
defined('_JEXEC') or die;
|
|
|
|
use Gantry\Framework\Platform;
|
|
use Gantry\Framework\Theme;
|
|
|
|
// Bootstrap Gantry framework or fail gracefully (inside included file).
|
|
$className = __DIR__ . '/custom/includes/gantry.php';
|
|
if (!is_file($className)) {
|
|
$className = __DIR__ . '/includes/gantry.php';
|
|
}
|
|
$gantry = include $className;
|
|
|
|
/** @var Platform $joomla */
|
|
$joomla = $gantry['platform'];
|
|
$joomla->document = $this;
|
|
|
|
/** @var Theme $theme */
|
|
$theme = $gantry['theme'];
|
|
|
|
// All the custom twig variables can be defined in here:
|
|
$context = array();
|
|
|
|
// Render the page.
|
|
echo $theme->render('index.html.twig', $context);
|