mirror of
https://github.com/scummvm/scummvm-web.git
synced 2026-06-20 05:45:49 +00:00
38 lines
914 B
PHP
38 lines
914 B
PHP
<?php
|
|
namespace ScummVM\Pages;
|
|
|
|
use ScummVM\Controller;
|
|
use ScummVM\Models\GamesModel;
|
|
|
|
class GamesPage extends Controller
|
|
{
|
|
|
|
|
|
/* Constructor. */
|
|
public function __construct()
|
|
{
|
|
parent::__construct();
|
|
$this->template = 'pages/games.tpl';
|
|
}
|
|
|
|
/* Display the index page. */
|
|
public function index()
|
|
{
|
|
$downloads = GamesModel::getAllDownloads();
|
|
$sections = GamesModel::getAllSections();
|
|
global $Smarty;
|
|
|
|
return $this->renderPage(
|
|
array(
|
|
'title' => $Smarty->getConfigVars('gamesTitle'),
|
|
'content_title' => $Smarty->getConfigVars('gamesContentTitle'),
|
|
'downloads' => $downloads,
|
|
'sections' => $sections,
|
|
'release_tools' => RELEASE_TOOLS,
|
|
'release_debian' => RELEASE_DEBIAN,
|
|
),
|
|
$this->template
|
|
);
|
|
}
|
|
}
|