30 lines
614 B
PHP
30 lines
614 B
PHP
<?php
|
|
|
|
require _PS_MODULE_DIR_.'cmsps/cmsps.php';
|
|
|
|
class VideosControllerCore extends FrontController
|
|
{
|
|
public $php_self = 'videos';
|
|
|
|
public function canonicalRedirection($canonical_url = '') {
|
|
parent::canonicalRedirection($this->context->link->getVideosLink());
|
|
}
|
|
|
|
public function init() {
|
|
parent::init();
|
|
}
|
|
|
|
public function initContent() {
|
|
parent::initContent();
|
|
$id_lang = Context::getContext()->language->id;
|
|
|
|
$articles = CmsPsPost::getVideoPost($id_lang, 999);
|
|
|
|
$this->context->smarty->assign(array(
|
|
'articles' => $articles
|
|
));
|
|
|
|
$this->setTemplate(_PS_THEME_DIR_.'videos.tpl');
|
|
}
|
|
|
|
} |