aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Oster <parasytic@users.sourceforge.net>2009-05-20 18:07:25 +0000
committerJason Oster <parasytic@users.sourceforge.net>2009-05-20 18:07:25 +0000
commit060d8db531325eae2cf0972a13f04b70bd551c8e (patch)
treed902b86349d96b22848f73a63e8d845885929005
parent551fd26870aaa5fb9f1cee0a6a85c5859338555b (diff)
downloadphpicalendar-060d8db531325eae2cf0972a13f04b70bd551c8e.zip
phpicalendar-060d8db531325eae2cf0972a13f04b70bd551c8e.tar.gz
phpicalendar-060d8db531325eae2cf0972a13f04b70bd551c8e.tar.bz2
Show organizer/attendee email addresses in events popup
-rw-r--r--includes/event.php11
1 files changed, 4 insertions, 7 deletions
diff --git a/includes/event.php b/includes/event.php
index ae9df5c..ea87418 100644
--- a/includes/event.php
+++ b/includes/event.php
@@ -30,25 +30,22 @@ if ($_POST['time'] == -1) {
$event['event_text'] = sanitizeForWeb(urldecode($event['event_text']));
$event['description'] = sanitizeForWeb(urldecode($event['description']));
$event['location'] = sanitizeForWeb(urldecode($event['location']));
-$display ='';
if (isset($event['description'])) $event['description'] = ereg_replace("[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]",'<a target="_new" href="\0">\0</a>',$event['description']);
if (isset($organizer) && is_array($organizer)) {
$i=0;
- $display .= $lang['l_organizer'] . ' - ';
$organizers = array();
- foreach ($organizer as $val) {
- $organizers[] = $organizer[$i]["name"];
+ foreach ($organizer as $val) {
+ $organizers[] .= "<a href=\"mailto:{$organizer[$i]["email"]}\">{$organizer[$i]["name"]}</a>";
$i++;
}
$organizer = implode(', ',$organizers);
}
if (isset($attendee) && is_array($attendee)) {
$i=0;
- $display .= $lang['l_attendee'] . ' - ';
$attendees = array();
- foreach ($attendee as $val) {
- $attendees[] .= $attendee[$i]["name"];
+ foreach ($attendee as $val) {
+ $attendees[] .= "<a href=\"mailto:{$attendee[$i]["email"]}\">{$attendee[$i]["name"]}</a>";
$i++;
}
$attendee = implode(', ',$attendees);

© 2014-2020 Faster IT GmbH | imprint | privacy policy