mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-24 15:48:55 +01:00
* Calendar: Add event description to calendar event body if the event is long enough (3 times bigger than calendar view interval).
This commit is contained in:
parent
65cec34408
commit
5f2a173513
@ -1809,6 +1809,13 @@ class calendar_uiviews extends calendar_ui
|
||||
(isset($data['border']) ? '&border='.urlencode($data['border']) : ''));
|
||||
}
|
||||
*/
|
||||
// Add event description to cal event view body if the event is long enough (ATM 3 times longer than interval)
|
||||
// to be able to show some lines of description text
|
||||
if ($event['whole_day'] || ($event['end'] - $event['start']) > ($this->cal_prefs['interval'] * 3 * 60))
|
||||
{
|
||||
$tpl->set_var('bodydescription', !$is_private ? nl2br(html::htmlspecialchars($event['description'])) : '');
|
||||
}
|
||||
|
||||
$tooltip = $tpl->fp('tooltip','event_tooltip');
|
||||
$html = $tpl->fp('out',$block);
|
||||
|
||||
|
@ -3,7 +3,12 @@
|
||||
{indent} {header}
|
||||
{indent} <div class="calendar_calEventIcons">{icons}</div>
|
||||
{indent}</div>
|
||||
{indent}<div class="calendar_calEventBody{Small}">{title}</div>
|
||||
{indent}<div class="calendar_calEventBody{Small}">
|
||||
{indent} <p style="margin: 0px;">
|
||||
{indent} <span class="calendar_calEventTitle">{title}</span>
|
||||
{indent} <br>{bodydescription}
|
||||
{indent} </p>
|
||||
{indent}</div>
|
||||
<!-- END event_widget -->
|
||||
|
||||
<!-- BEGIN event_widget_wholeday_on_top -->
|
||||
|
Loading…
Reference in New Issue
Block a user