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