1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 20:00:37 +02:00

Added support for sitelink function parms. Added sitelink functions for Page books and book-chapters.

This commit is contained in:
Cameron
2013-10-28 21:30:24 -07:00
parent 02bc1e64a0
commit af6174bf02
3 changed files with 86 additions and 5 deletions

View File

@@ -557,13 +557,17 @@ class links_admin_form_ui extends e_admin_form_ui
$tp = e107::getParser();
$tmp = e107::getAddonConfig('e_sitelink','sitelink');
foreach($tmp as $cat=> $array)
{
$func = array();
foreach($array as $val)
{
$newkey = $cat.'::'.$val['function'];
if(vartrue($val['parm']))
{
$newkey .= "(".$val['parm'].")";
}
$func[$newkey] = $tp->toHtml($val['name'],'','TITLE');
}
$this->linkFunctions[$cat] = $func;