mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 21:57:51 +02:00
Updated newforumposts_menu to full page render
Updated newforumposts_menu to full page render
This commit is contained in:
@@ -31,8 +31,14 @@ if(!class_exists('forum_newforumposts_menu'))
|
|||||||
function __construct()
|
function __construct()
|
||||||
{
|
{
|
||||||
$this->plugPref = e107::pref('forum'); // general forum preferences.
|
$this->plugPref = e107::pref('forum'); // general forum preferences.
|
||||||
$this->menuPref = e107::getMenu()->pref();// ie. popup config details from within menu-manager.
|
// $this->menuPref = e107::getMenu()->pref();// ie. popup config details from within menu-manager.
|
||||||
$this->forumObj = new e107forum;
|
$menuPrefs = e107::getMenu()->pref();// ie. popup config details from within menu-manager.
|
||||||
|
$this->forumObj = new e107forum;
|
||||||
|
|
||||||
|
parse_str($menuPrefs, $this->menuPref);
|
||||||
|
|
||||||
|
// echo "<hr><hr><hr>";
|
||||||
|
// var_dump($this->menuPref);
|
||||||
|
|
||||||
// Set some defaults ...
|
// Set some defaults ...
|
||||||
if (!isset($this->menuPref['title'])) $this->menuPref['title'] = "";
|
if (!isset($this->menuPref['title'])) $this->menuPref['title'] = "";
|
||||||
@@ -43,6 +49,9 @@ if(!class_exists('forum_newforumposts_menu'))
|
|||||||
if (!isset($this->menuPref['scroll'])) $this->menuPref['scroll'] = "";
|
if (!isset($this->menuPref['scroll'])) $this->menuPref['scroll'] = "";
|
||||||
if (empty($this->menuPref['layout'])) $this->menuPref['layout'] = 'default';
|
if (empty($this->menuPref['layout'])) $this->menuPref['layout'] = 'default';
|
||||||
|
|
||||||
|
// echo "<hr><hr><hr>";
|
||||||
|
// var_dump($this->menuPref);
|
||||||
|
|
||||||
$this->cacheTag .= "_".$this->menuPref['layout'];
|
$this->cacheTag .= "_".$this->menuPref['layout'];
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user