This is probably going to break all the templates
This commit is contained in:
parent
93f5c15e88
commit
1d0f78d59f
3 changed files with 15 additions and 8 deletions
|
@ -24,4 +24,4 @@ $fiiConf['urls']['system'] = 'sys.iihsalf.net';
|
|||
// Errata
|
||||
$fiiConf['etc']['localPath'] = '/var/www/flashii.net/';
|
||||
$fiiConf['etc']['templatesPath'] = $fiiConf['etc']['localPath'] .'_sakura/templates/';
|
||||
$fiiConf['etc']['design'] = 'yuuno';
|
||||
$fiiConf['etc']['design'] = 'yuuno';
|
||||
|
|
|
@ -40,3 +40,11 @@ set_error_handler(array('Flashii\Flashii', 'ErrorHandler'));
|
|||
|
||||
// Initialise Flashii Class
|
||||
$flashii = new Flashii\Flashii($fiiConf);
|
||||
|
||||
// Set base page rendering data
|
||||
$renderData = array(
|
||||
'sakura' => [
|
||||
'sakura_version' => SAKURA_VERSION,
|
||||
'urls' => $fiiConf['urls']
|
||||
]
|
||||
);
|
||||
|
|
|
@ -9,11 +9,10 @@ require_once('/var/www/flashii.net/_sakura/sakura.php');
|
|||
// Initialise templating engine
|
||||
$flashii->initTwig();
|
||||
|
||||
// Add page specific things
|
||||
$renderData['page'] = array_merge($renderData['page'], [
|
||||
'title' => 'Flashii Dev'
|
||||
]);
|
||||
|
||||
// Print page contents
|
||||
print $flashii->twig->render('main/index.tpl',
|
||||
array(
|
||||
'sakura_version' => SAKURA_VERSION,
|
||||
'configuration' => $fiiConf,
|
||||
'pageTitle' => 'Flashii Even More Nightly :^)'
|
||||
)
|
||||
);
|
||||
print $flashii->twig->render('main/index.tpl', $renderData);
|
||||
|
|
Reference in a new issue