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:
@@ -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'));
|
||||
|
Reference in New Issue
Block a user