mirror of
https://github.com/e107inc/e107.git
synced 2025-08-15 02:57:15 +02:00
Deprecate noTableRender from template files - send template name to tablerender() $mode instead for less confusion and consistent logic.
This commit is contained in:
@@ -285,20 +285,20 @@ class e_menu
|
||||
$text = $tp->parseTemplate($template['body'], true, $page_shortcodes);
|
||||
// echo "TEMPLATE= ($mpath)".$page['menu_template'];
|
||||
|
||||
if($template['noTableRender'] !==true)
|
||||
{
|
||||
$ns->tablerender($caption, $text);
|
||||
}
|
||||
else
|
||||
{
|
||||
echo $text;
|
||||
}
|
||||
// if($template['noTableRender'] !==true) // XXX Deprecated - causes confusion while themeing.
|
||||
// {
|
||||
$ns->tablerender($caption, $text, 'cmenu-'.$page['menu_template']);
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// echo $text;
|
||||
// }
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
$text = $tp->toHTML($page['menu_text'], true, 'parse_sc, constants');
|
||||
$ns->tablerender($caption, $text);
|
||||
$ns->tablerender($caption, $text, 'cmenu');
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user