";
}
$html .= ''
. $weeklink . ' | ';
}
}
if ($date->isToday()) {
$style = ' class="kronolith-today"';
} elseif ($date->month != $this->month) {
$style = ' class="kronolith-other-month"';
} elseif ($date->dayOfWeek() == 0 || $date->dayOfWeek() == 6) {
$style = ' class="kronolith-weekend"';
} else {
$style = '';
}
$html .= '';
$html .= $day_url->add('date', $date->dateString())->link()
. $date->mday . '';
if ($addLinks) {
$new_url->add('date', $date->dateString());
if ($sidebyside) {
$new_url->add('calendar', $id);
}
$html .= $new_url->link(array('title' => _("Create a New Event"), 'class' => 'newEvent'))
. $new_img . '';
}
$html .= ' ';
$date_stamp = $date->dateString();
if (!empty($this->_events[$date_stamp])) {
foreach ($this->_events[$date_stamp] as $event) {
if (!$sidebyside || $event->calendar == $id) {
$html .= 'getCSSColors() . '>';
if ($showTime && !$event->isAllDay()) {
$html .= '' . htmlspecialchars($event->getTimeRange()) . '';
}
$html .= $event->getLink($date, true, Horde::signUrl($this_link));
if (!$event->isPrivate() && $showLocation) {
$html .= '' . htmlspecialchars($event->getLocation()) . '';
}
$html .= ' ';
}
}
}
$html .= " | \n";
++$cell;
}
if ($sidebyside) {
$html .= '
';
}
}
if (!$sidebyside && count($this->_currentCalendars)) {
$html .= '';
}
echo $html . '';
}
public function getMonth($offset = 0)
{
$month = new Horde_Date($this->date);
$month->month += $offset;
return $month;
}
public function link($offset = 0, $full = false)
{
$month = $this->getMonth($offset);
return Horde::url('month.php', $full)
->add('date', $month->dateString());
}
public function getName()
{
return 'Month';
}
}