*/
function _content()
{
- global $registry, $prefs;
-
- // @TODO Remove this hack when maintenance is refactored.
- $no_maint = true;
require_once dirname(__FILE__) . '/../base.php';
Horde::addScriptFile('tooltips.js', 'horde');
} elseif ($day->diff() < 7) {
$dayname = $day->strftime('%A');
} else {
- $dayname = $day->strftime($prefs->getValue('date_format'));
+ $dayname = $day->strftime($GLOBALS['prefs']->getValue('date_format'));
}
$url = Horde::applicationUrl('day.php', true)
->add('date', $day->dateString());
if ($event_active) {
$html .= '<strong>';
}
-
if ($event->isAllDay()) {
$time = _("All day");
} else {
- $time = $event->start->format($prefs->getValue('twentyFour') ? 'H:i' : 'h:ia')
- . '-' . $event->end->format($prefs->getValue('twentyFour') ? 'H:i' : 'h:ia');
- }
-
- $text = $event->getTitle();
- if ($event->location) {
- $text .= ' (' . $event->location . ')';
+ $time = $event->start->format($GLOBALS['prefs']->getValue('twentyFour') ? 'H:i' : 'h:ia')
+ . '-' . $event->end->format($GLOBALS['prefs']->getValue('twentyFour') ? 'H:i' : 'h:ia');
}
$html .= $time;
if ($event_active) {
$html .= '</strong>';
}
+ $html .= ' </td>';
+ $html .= '<td class="text" valign="top">';
if ($event_active) {
$html .= '<strong>';
}