mirror of
https://github.com/e107inc/e107.git
synced 2025-08-20 13:21:54 +02:00
new module creation
This commit is contained in:
17
e107_files/shortcode/emailto.sc
Normal file
17
e107_files/shortcode/emailto.sc
Normal file
@@ -0,0 +1,17 @@
|
||||
global $pref;
|
||||
|
||||
if (!USER)
|
||||
{
|
||||
return "";
|
||||
}
|
||||
|
||||
$image = IMAGE_email;
|
||||
|
||||
if(is_numeric($parm))
|
||||
{
|
||||
return "<a href='".e_BASE."emailmember.php?id.{$parm}'>{$image}</a>";
|
||||
}
|
||||
else
|
||||
{
|
||||
return "<a href='mailto:{$parm}'>{$image}</a>";
|
||||
}
|
Reference in New Issue
Block a user