function theme_calendar_year in Calendar 5
Same name and namespace in other branches
- 5.2 calendar.theme \theme_calendar_year()
Format a calendar view
Parameters
day: The day to display.
File
- ./
calendar.theme, line 386
Code
function theme_calendar_year($op, $header, $rows, $month_rows) {
$year = array_shift($month_rows);
$output = '<div class="calendar-calendar"><div class="year-view">';
$output .= $year;
$i = 0;
foreach ($month_rows as $month) {
$i++;
$row .= '<div class="mini">' . $month . '</div>';
if ($i == 3) {
$output .= '<div class="mini-row">' . $row . '</div>';
$row = '';
$i = 0;
}
}
$output .= "</div></div>\n";
return $output;
}