Files
newwalls.pl/modules/ph_simpleblog/controllers/front/authorslist-v16.php
2024-12-17 13:43:22 +01:00

53 lines
1.3 KiB
PHP

<?php
/**
* Blog for PrestaShop module by Krystian Podemski from PrestaHome.
*
* @author Krystian Podemski <krystian@prestahome.com>
* @copyright Copyright (c) 2008-2019 Krystian Podemski - www.PrestaHome.com / www.Podemski.info
* @license You only can use module, nothing more!
*/
class PH_SimpleBlogAuthorsListModuleFrontController extends ModuleFrontController
{
protected $blogAuthors;
public function init()
{
parent::init();
$this->blogAuthors = SimpleBlogPostAuthor::getAll();
// Assign meta tags
$this->assignMetas();
}
public function initContent()
{
// Assign JS and CSS for single post page
$this->addModulePageAssets();
parent::initContent();
$this->context->smarty->assign('authors', $this->blogAuthors);
$this->setTemplate('authors.tpl');
}
/**
* Assign meta tags to single post page.
*/
protected function assignMetas()
{
$defaultMetaTitleForBlog = Configuration::get('PH_BLOG_MAIN_TITLE', $this->context->language->id);
$this->context->smarty->assign('meta_title', $defaultMetaTitleForBlog.' - '.$this->module->l('Authors', 'authorslist-v16'));
}
/**
* CSS, JS and other assets for this page.
*/
protected function addModulePageAssets()
{
}
}