From: fabrixxm
Date: Fri, 15 May 2015 19:10:43 +0000 (+0200)
Subject: add map to events
X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=19ee5797fa24874f5ccb556eb3facd93a6eab1f2;p=friendica.git
add map to events
---
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;