function theme_event_calendar_date_box in Event 5.2
Same name and namespace in other branches
- 5 event.theme \theme_event_calendar_date_box()
Format an date's day box in a calendar
Parameters
date: The day to display.
1 theme call to theme_event_calendar_date_box()
- event_render_day in ./
event.module - Returns an day of events for a calendar.
File
- ./
event.theme, line 342
Code
function theme_event_calendar_date_box($date, $view) {
$output = '';
switch ($view) {
case 'table':
$output = '<div class="day">' . t('%month / %day', array(
'%month' => $date['month'],
'%day' => (int) $date['day'],
)) . '</div>' . "\n";
break;
case 'list':
$output = '<div class="day">' . event_format_date($date, 'custom', t('l F d, Y')) . '</div>' . "\n";
break;
case 'day':
break;
default:
$output = '<div class="day">' . (int) $date['day'] . '</div>' . "\n";
break;
}
return $output;
}