mirror of
https://github.com/e107inc/e107.git
synced 2025-08-07 15:16:30 +02:00
Independent menu_class added to custom pages/menus.
This commit is contained in:
4
page.php
4
page.php
@@ -444,9 +444,9 @@ class pageClass
|
||||
// $tmpl = e107::getCoreTemplate('chapter','docs', true, true); // always merge
|
||||
$template = $tmpl['listPages'];
|
||||
|
||||
$pageOnly = ($layout == 'panel') ? '1' : "page_title !='' "; // When in 'panel' mode, allow Menus to be rendered.
|
||||
$pageOnly = ($layout == 'panel') ? " menu_class IN (".USERCLASS_LIST.") " : "page_title !='' AND page_class IN (".USERCLASS_LIST.") "; // When in 'panel' mode, allow Menus to be rendered while checking menu_class.
|
||||
|
||||
if(!$count = $sql->select("page", "*", $pageOnly." AND page_chapter=".intval($chapt)." AND page_class IN (".USERCLASS_LIST.") ORDER BY page_order ASC "))
|
||||
if(!$count = $sql->select("page", "*", $pageOnly." AND page_chapter=".intval($chapt)." AND ORDER BY page_order ASC "))
|
||||
{
|
||||
return array('text' => "<em>".(LAN_PAGE_2)."</em>");
|
||||
// $text = "<ul class='page-pages-list page-pages-none'><li>".LAN_PAGE_2."</li></ul>";
|
||||
|
Reference in New Issue
Block a user