diff --git a/boot.php b/boot.php index 193b34a60..0db66c09f 100644 --- a/boot.php +++ b/boot.php @@ -1858,15 +1858,14 @@ if(! function_exists('get_events')) { $skip = 0; foreach($r as &$rr) { - if($rr['adjust']) - $md = datetime_convert('UTC',$a->timezone,$rr['start'],'Y/m'); - else - $md = datetime_convert('UTC','UTC',$rr['start'],'Y/m'); - $md .= "/#link-".$rr['id']; + $title = strip_tags(html_entity_decode(bbcode($rr['summary']),ENT_QUOTES,'UTF-8')); - $title = substr(strip_tags(bbcode($rr['desc'])),0,32) . '... '; - if(! $title) - $title = t('[No description]'); + if(strlen($title) > 35) + $title = substr($title,0,32) . '... '; + + $description = substr(strip_tags(bbcode($rr['desc'])),0,32) . '... '; + if(! $description) + $description = t('[No description]'); $strt = datetime_convert('UTC',$rr['convert'] ? $a->timezone : 'UTC',$rr['start']); @@ -1876,9 +1875,9 @@ if(! function_exists('get_events')) { } $today = ((substr($strt,0,10) === datetime_convert('UTC',$a->timezone,'now','Y-m-d')) ? true : false); - - $rr['link'] = $md; + $rr['title'] = $title; + $rr['description'] = $desciption; $rr['date'] = day_translate(datetime_convert('UTC', $rr['adjust'] ? $a->timezone : 'UTC', $rr['start'], $bd_format)) . (($today) ? ' ' . t('[today]') : ''); $rr['startime'] = $strt; $rr['today'] = $today; diff --git a/view/templates/events_reminder.tpl b/view/templates/events_reminder.tpl index df163b815..9aceb3f1c 100644 --- a/view/templates/events_reminder.tpl +++ b/view/templates/events_reminder.tpl @@ -4,7 +4,7 @@
{{/if}}