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

Fix for broken download links when using SEF Urls. Cleaned up next/prev template. {GLYPH} now uses 2.x format. eg {GLYPH: type=download&size=2x}

This commit is contained in:
Cameron
2014-02-07 17:57:06 -08:00
parent f3ae51e037
commit ef4ced985a
4 changed files with 88 additions and 26 deletions

View File

@@ -3,6 +3,16 @@
function glyph_shortcode($parm = '')
{
$file = "icon-".$parm.".glyph";
return e107::getParser()->toGlyph($file,false);
if(!is_array($parm))
{
$file = $parm;
$parm = null;
}
else
{
$file = vartrue($parm['type']);
unset($parm['type']);
}
return e107::getParser()->toGlyph($file,$parm);
}