1
0
mirror of https://github.com/e107inc/e107.git synced 2025-02-24 16:52:43 +01:00

15 lines
444 B
BlitzBasic
Raw Normal View History

2006-12-02 04:36:16 +00:00
global $pref;
$parm = trim($parm);
$external = ($pref['links_new_window'] || strpos($parm, 'external') === 0) ? " rel='external'" : "";
if ($parm && $parm != 'external' && strpos($parm, ' ') === FALSE)
{
$parm = preg_replace('#^external.#is', '', $parm);
return "<a href='".$tp -> toAttribute($parm)."'".$external.">".$code_text."</a>";
}
else
{
return "<a href='".$tp -> toAttribute($code_text)."'".$external.">".$code_text."</a>";
}