| ". $this->ds[($this->weekstart + $i) % 7] ." | "; $out .= "|
|---|---|
| \n"; } else { $class = 'weekday'; if (is_array($this->events[$year][$month][$current])) { // Class for the day is that of first event found. $class = $this->events[$year][$month][$current][0]['class']; } elseif ($i == 0 || $i == 6) $class = 'weekend'; if ($year == $today['year'] && $month == $today['mon'] && $current == $today['mday']) $class = 'today'; $out .= "\t\t | $current | \n"; $current++; }; }; $out .= "\t
| ". $this->days[($this->weekstart + $i) % 7] ." | "; $out .= "|
|---|---|
| \n"; } else { $class = 'weekday'; $events = false; if (is_array($this->events[$year][$month][$current])) { // Class for the day is that of first event found. $class = $this->events[$year][$month][$current][0]['class']; $events = true; } elseif ($i == 0 || $i == 6) $class = 'weekend'; if ($year == $today['year'] && $month == $today['mon'] && $current == $today['mday']) $class = 'today'; $out .= "\t\t | $current \n";
if ($events) foreach ($this->events[$year][$month][$current] as $event) {
$out .= "\t\t\t {$event['title']} \n";
};
$out .= "\t\t | \n";
$current++;
};
};
$out .= "\t