You are here

function theme_calendar_day in Calendar 5.2

Same name and namespace in other branches
  1. 5 calendar.theme \theme_calendar_day()

Format a day view

It's really not great to force this into a table, but the navigation is a table header and showing the header without a body is invalid html, so we force the data into a table cell.

File

./calendar.theme, line 513

Code

function theme_calendar_day($view, $header, $data) {
  $rows = array(
    array(
      array(
        'data' => $data,
        'colspan' => 3,
      ),
    ),
  );
  $output = theme("table", $header, $rows);
  return '<div class="calendar-calendar"><div class="day-view">' . $output . "</div></div>\n";
}