1
0
mirror of https://github.com/e107inc/e107.git synced 2025-09-03 11:22:40 +02:00

FAQs enhancement and support for faq-category SEF urls. (work in progress)

This commit is contained in:
Cameron
2015-01-28 02:29:26 -08:00
parent fb22dc7b11
commit 05c8f263d1
7 changed files with 73 additions and 39 deletions

View File

@@ -2578,20 +2578,24 @@ class e107
/**
* Experimental static (easy) sef-url creation method (works with e_url.php @see /index.php)
*/
public static function url($plugin='',$key)
public static function url($plugin='',$key, $row=array())
{
$tmp = e107::getAddonConfig('e_url');
$tp = e107::getParser();
if(varset($tmp[$plugin][$key]['sef']))
{
return e_HTTP.$tmp[$plugin][$key]['sef'];
$rawUrl = $tp->simpleParse($tmp[$plugin][$key]['sef'], $row);
return e_HTTP.$rawUrl;
}
/*
elseif(varset($tmp[$plugin][$key]['redirect']))
{
return self::getParser()->replaceConstants($tmp[$plugin][$key]['redirect'],'full');
}
return;
* */
}