X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=include%2Fevent.php;h=6c0e2bdec6e68608a5d8267200cb75ea6289f8e6;hb=1aa9b7242d65191fcee2804489d6b0beb4ea550c;hp=208ba1e1fd35a6dfa35b649abc6f012eea78e706;hpb=d5fdd4287dec00adcb08e389385b1ecbc23cca6a;p=friendica.git diff --git a/include/event.php b/include/event.php index 208ba1e1fd..6c0e2bdec6 100644 --- a/include/event.php +++ b/include/event.php @@ -1,59 +1,96 @@ ".bbcode($ev['summary']).""; + + $o .= "
".bbcode($ev['desc'])."
"; + + $o .= "".$event_start."
"; + + if(! $ev['nofinish']) + $o .= "".$event_end."
"; + + if(strlen($ev['location'])) + $o .= "".$ev['location']."
"; + + return $o; + } + + $o = '' . bbcode($ev['summary']) . '
' . "\r\n"; - $o .= '' . bbcode($ev['desc']) . '
'; + $o .= '' . bbcode($ev['desc']) . '
' . "\r\n"; $o .= '' . t('Starts:') . ' ' - . (($ev['adjust']) ? day_translate(datetime_convert('UTC', date_default_timezone_get(), - $ev['start'] , $bd_format )) - : day_translate(datetime_convert('UTC', 'UTC', - $ev['start'] , $bd_format))) - . '
'; + . '" >'.$event_start + . '' . "\r\n"; if(! $ev['nofinish']) $o .= '' . t('Finishes:') . ' ' - . (($ev['adjust']) ? day_translate(datetime_convert('UTC', date_default_timezone_get(), - $ev['finish'] , $bd_format )) - : day_translate(datetime_convert('UTC', 'UTC', - $ev['finish'] , $bd_format ))) - . '
'; + . '" >'.$event_end + . '' . "\r\n"; - if(strlen($ev['location'])) - $o .= '' . t('Location:') . ' ' - . bbcode($ev['location']) - . '
'; + if(strlen($ev['location'])){ + $o .= '' . t('Location:') . ' ' + . bbcode($ev['location']) + . '
' . "\r\n"; + + if (strpos($ev['location'], "[map") !== False) { + $map = generate_named_map($ev['location']); + if ($map!==$ev['location']) $o.=$map; + } - $o .= '