mirror of
https://github.com/scummvm/scummvm-web.git
synced 2026-06-20 05:45:49 +00:00
34 lines
721 B
PHP
34 lines
721 B
PHP
<?php
|
|
namespace ScummVM\Pages;
|
|
|
|
use ScummVM\Controller;
|
|
use ScummVM\Models\ArticleModel;
|
|
|
|
class PressPage extends Controller
|
|
{
|
|
|
|
|
|
/* Constructor. */
|
|
public function __construct()
|
|
{
|
|
parent::__construct();
|
|
$this->template = 'pages/press.tpl';
|
|
}
|
|
|
|
/* Display the index page. */
|
|
public function index()
|
|
{
|
|
$articles = ArticleModel::getAllArticles();
|
|
global $Smarty;
|
|
|
|
return $this->renderPage(
|
|
array(
|
|
'title' => $Smarty->getConfigVars('pressTitle'),
|
|
'content_title' => $Smarty->getConfigVars('pressContentTitle'),
|
|
'articles' => $articles,
|
|
),
|
|
$this->template
|
|
);
|
|
}
|
|
}
|