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

Banner and News e_menu.php (config.php replacement) upgrades.

This commit is contained in:
Cameron
2016-02-08 13:54:44 -08:00
parent a2fef504a2
commit 05ed9a7090
11 changed files with 161 additions and 35 deletions

View File

@@ -7,13 +7,26 @@
*/
if (!defined('e107_INIT')) { exit; }
$cacheString = 'nq_news_latest_menu_'.md5($parm);
$cacheString = 'nq_news_latest_menu_'.md5(serialize($parm));
$cached = e107::getCache()->retrieve($cacheString);
if(false === $cached)
{
e107::plugLan('news');
parse_str($parm, $parms);
if(is_string($parm))
{
parse_str($parm, $parms);
}
else
{
$parms = $parm;
}
if(isset($parms['caption'][e_LANGUAGE]))
{
$parms['caption'] = $parms['caption'][e_LANGUAGE];
}
$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'));