1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-30 09:39:55 +02:00

Issue #1512 News Grid Menu

This commit is contained in:
Cameron
2016-04-09 16:12:08 -07:00
parent dd294e71fa
commit 444348dc4d
13 changed files with 163 additions and 22 deletions

View File

@@ -29,7 +29,17 @@ if(false === $cached)
$ntree = e107::getObject('e_news_tree', null, e_HANDLER.'news_class.php');
$template = e107::getTemplate('news', vartrue($parms['tmpl'], 'news_menu'), vartrue($parms['tmpl_key'], 'latest'));
if(empty($parms['tmpl']))
{
$parms['tmpl'] = 'news_menu';
}
if(empty($parms['tmpl_key']))
{
$parms['tmpl_key'] = 'latest';
}
$template = e107::getTemplate('news', $parms['tmpl'], $parms['tmpl_key']);
$treeparm = array();
if(vartrue($parms['count'])) $treeparm['db_limit'] = '0, '.intval($parms['count']);