mirror of
https://github.com/scummvm/scummvm-web.git
synced 2026-05-21 05:40:47 +00:00
33 lines
865 B
PHP
33 lines
865 B
PHP
<?php
|
|
namespace ScummVM\Pages;
|
|
|
|
use ScummVM\Controller;
|
|
use ScummVM\Models\GameDownloadsModel;
|
|
|
|
class GamesPage extends Controller
|
|
{
|
|
private $gameDownloadsModel;
|
|
|
|
/* Constructor. */
|
|
public function __construct()
|
|
{
|
|
parent::__construct();
|
|
$this->template = 'pages/games.tpl';
|
|
$this->gameDownloadsModel = new GameDownloadsModel();
|
|
}
|
|
|
|
/* Display the index page. */
|
|
public function index()
|
|
{
|
|
$downloads = $this->gameDownloadsModel->getAllDownloads();
|
|
return $this->renderPage(
|
|
array(
|
|
'title' => $this->getConfigVars('gamesTitle'),
|
|
'description' => strip_tags($this->getConfigVars('gamesContentP1')),
|
|
'content_title' => $this->getConfigVars('gamesContentTitle'),
|
|
'downloads' => $downloads,
|
|
)
|
|
);
|
|
}
|
|
}
|