1
0
mirror of https://github.com/e107inc/e107.git synced 2025-02-25 01:02:50 +01:00
php-e107/e107_files/shortcode/email_item.sc

14 lines
379 B
Python
Raw Normal View History

global $imode;
2006-12-02 04:36:16 +00:00
if (defined("ICONMAIL") && file_exists(THEME."images/".ICONMAIL))
{
$icon = THEME."images/".ICONMAIL;
}
else
{
$icon = e_IMAGE."packs/".$imode."/generic/email.png";
2006-12-02 04:36:16 +00:00
}
$parms = explode("^",$parm);
// message^source^other_parms
return "<a href='".e_BASE."email.php?{$parms[1]}'><img src='".$icon."' style='border:0' alt='{$parms[0]}' title='{$parms[0]}'/></a>";