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

allow the 'caption=xxxx' menu parameter to function on all news menus.

This commit is contained in:
Cameron
2015-04-01 23:02:17 -07:00
parent b7e6837e34
commit 21f3f2ed19
4 changed files with 60 additions and 17 deletions

View File

@@ -11,6 +11,12 @@ if (!defined('e107_INIT')) { exit; }
$cString = 'nq_news_months_menu_'.md5($parm);
$cached = e107::getCache()->retrieve($cString);
if(!empty($parm))
{
parse_str($parm, $parms);
}
if(false === $cached)
{
if(!function_exists('newsFormatDate'))
@@ -25,11 +31,12 @@ if(false === $cached)
}
}
if(!isset($parms['showarchive']))
{
$parms['showarchive'] = 0;
}
//parse_str($parm, $parms); // FIXME - menu settings...
$parms['showarchive'] = 0;
//e107::plugLan('blogcalendar_menu');
// e107::lan('blogcalendar_menu', e_LANGUAGE); // FIXME decide on language file structure (#743)
e107::includeLan(e_PLUGIN.'blogcalendar_menu/languages/English.php');
@@ -38,7 +45,7 @@ if(false === $cached)
$marray = e107::getDate()->terms('month');
// TODO parms
//$parms['year'] = "2011 0";
if(vartrue($parms['year']))
{