mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 09:18:54 +00:00
Update Page.php, add back some things previously removed.
This commit is contained in:
@@ -17,10 +17,13 @@ class Page extends BasePage
|
||||
$role = $this->userdata["role"];
|
||||
|
||||
$content = new Contents(['Settings' => $this->settings]);
|
||||
$f = new Forum();
|
||||
$menu = new Menu($this->settings);
|
||||
$this->smarty->assign('menulist',$menu->get($role, $this->serverurl));
|
||||
$this->smarty->assign('usefulcontentlist', $content->getForMenuByTypeAndRole(Contents::TYPEUSEFUL, $role));
|
||||
$this->smarty->assign('articlecontentlist', $content->getForMenuByTypeAndRole(Contents::TYPEARTICLE, $role));
|
||||
if ($this->userdata != null)
|
||||
$this->smarty->assign('recentforumpostslist',$f->getRecentPosts($this->settings->getSetting('showrecentforumposts')));
|
||||
|
||||
$this->smarty->assign('main_menu',$this->smarty->fetch('mainmenu.tpl'));
|
||||
$this->smarty->assign('useful_menu',$this->smarty->fetch('usefullinksmenu.tpl'));
|
||||
|
||||
Reference in New Issue
Block a user