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