From 19ee5797fa24874f5ccb556eb3facd93a6eab1f2 Mon Sep 17 00:00:00 2001 From: fabrixxm Date: Fri, 15 May 2015 21:10:43 +0200 Subject: [PATCH] add map to events --- include/event.php | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/include/event.php b/include/event.php index f9f3b13204..c24484f8a5 100644 --- a/include/event.php +++ b/include/event.php @@ -1,9 +1,11 @@

' . "\r\n"; - if(strlen($ev['location'])) + if(strlen($ev['location'])){ $o .= '

' . t('Location:') . ' ' . bbcode($ev['location']) . '

' . "\r\n"; + + if (str_pos("[map", $ev['location'])==0) { + $map = generate_named_map($ev['location']); + if ($map!==$ev['location']) $o.=$map; + } + + } $o .= '' . "\r\n"; return $o; -- 2.39.5