1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-02 20:57:26 +02:00

Make contact emails clickable

This commit is contained in:
e107steved
2007-12-08 12:22:36 +00:00
parent ff675f4780
commit fb824e5241

View File

@@ -11,8 +11,8 @@
| GNU General Public License (http://gnu.org). | GNU General Public License (http://gnu.org).
| |
| $Source: /cvs_backup/e107_0.8/e107_plugins/calendar_menu/calendar_shortcodes.php,v $ | $Source: /cvs_backup/e107_0.8/e107_plugins/calendar_menu/calendar_shortcodes.php,v $
| $Revision: 1.4 $ | $Revision: 1.5 $
| $Date: 2007-09-04 21:09:47 $ | $Date: 2007-12-08 12:22:36 $
| $Author: e107steved $ | $Author: e107steved $
| |
+----------------------------------------------------------------------------+ +----------------------------------------------------------------------------+
@@ -422,7 +422,12 @@ SC_BEGIN EC_EVENT_CONTACT
} }
else else
{ {
$EC_EVENT_CONTACT = $tp->toHTML($thisevent['event_contact'],TRUE,'LINKTEXT'); $tm = $thisevent['event_contact'];
if (strpos($tm,'[') === FALSE)
{
$tm = '[link=mailto:'.trim($tm).']'.substr($tm,0,strpos($tm,'@')).'[/link]';
}
$EC_EVENT_CONTACT = $tp->toHTML($tm,TRUE,'LINKTEXT');
} }
return $EC_EVENT_CONTACT; return $EC_EVENT_CONTACT;
SC_END SC_END