1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-29 09:10:23 +02:00

Tablerender: setContent('list') added to login menu and news menus.

This commit is contained in:
Cameron
2019-06-16 13:30:16 -07:00
parent 9e3a77fdf7
commit 478fc8d060
6 changed files with 44 additions and 3 deletions

View File

@@ -908,7 +908,17 @@ class e_news_tree extends e_front_tree_model
}
$mod = true === $tablerender ? 'news_latest_menu' : $tablerender;
return e107::getRender()->tablerender($caption, $ret, varset($parms['mode'], $mod), $return);
if(strpos($ret,'<ul ') !== false)
{
e107::getRender()->setUniqueId(varset($parms['mode'], $mod))->setContent('list', true);
}
$text = e107::getRender()->tablerender($caption, $ret, varset($parms['mode'], $mod), $return);
return $text;
}
if($return) return $ret;
@@ -1134,7 +1144,17 @@ class e_news_category_tree extends e_front_tree_model
}
$mod = true === $tablerender ? 'news_categories_menu' : $tablerender;
return e107::getRender()->tablerender($caption, $ret, varset($parms['mode'], $mod), $return);
if(strpos($ret,'<ul ') !== false)
{
e107::getRender()->setUniqueId($mod)->setContent('list', true);
}
$text = e107::getRender()->tablerender($caption, $ret, varset($parms['mode'], $mod), $return);
return $text;
}
if($return) return $ret;