diff --git a/calendar/inc/class.uicalendar.inc.php b/calendar/inc/class.uicalendar.inc.php index d97a10c59b..3921d65b1b 100755 --- a/calendar/inc/class.uicalendar.inc.php +++ b/calendar/inc/class.uicalendar.inc.php @@ -2704,15 +2704,31 @@ { $time = ''; } - $text = ''; + + $texttitle = $texttime = $textdesc = $textlocation = $textstatus = ''; + + if(!$is_private) { - $text .= $this->bo->display_status($event['users_status']); + //$text .= $this->bo->display_status($event['users_status']); + + // split text for better display by templates, also see $texttime $texttitle $textdesc $textlocation + $textstatus=$this->bo->display_status($event['users_status']); + } + + /* $text = ' '.$time.'  '.$this->bo->get_short_field($event,$is_private,'title').$text. - (!$is_private && $event['description'] ? ': '.$this->bo->get_short_field($event,$is_private,'description').'':''). + (!$is_private && $event['description'] ? ': '.$this->bo->get_short_field($event,$is_private,'description').'':''). $GLOBALS['phpgw']->browser->br; + */ + + $texttime=$time; + $texttitle=$this->bo->get_short_field($event,$is_private,'title'); + $textdesc=(!$is_private && $event['description'] ? $this->bo->get_short_field($event,$is_private,'description'):''); + // added $textlocation but this must be activated in the actual pict_link.tpl file of the used template set + $textlocation=$this->bo->get_short_field($event,$is_private,'location'); if ($viewable) { @@ -2806,10 +2822,15 @@ ); $this->output_template_array($this->link_tpl,'picture','pict',$var); } - if ($text) + if ($texttitle) { $var = Array( - 'text' => $text + // 'text' => $text, + 'time'=> $texttime, + 'title'=> $texttitle, + 'users_status'=>$textstatus, + 'desc'=> $textdesc, + 'location'=> $textlocation ); $this->output_template_array($this->link_tpl,'picture','link_text',$var); } diff --git a/calendar/templates/default/link_pict.tpl b/calendar/templates/default/link_pict.tpl index c6f78c5239..7b30854f66 100755 --- a/calendar/templates/default/link_pict.tpl +++ b/calendar/templates/default/link_pict.tpl @@ -6,10 +6,10 @@ - + - {text} + {time}  {title} {users_status}: {desc}