This repository has been archived on 2024-06-26. You can view files and clone it, but cannot push or open issues or pull requests.
sakura/main/news.php
2015-04-02 16:21:37 +02:00

19 lines
432 B
PHP

<?php
/*
* Sakura News Page
*/
// Declare Namespace
namespace Sakura;
// Include components
require_once '/var/www/flashii.net/_sakura/sakura.php';
// Add page specific things
$renderData['page'] = [
'title' => 'Flashii News'
];
$renderData['newsPosts'] = Main::getNewsPosts((isset($_GET['id']) && is_numeric($_GET['id'])) ? $_GET['id'] : null);
// Print page contents
print Main::tplRender('main/news.tpl', $renderData);