function theme_calendar_node_day in Calendar 5
Same name and namespace in other branches
- 5.2 calendar.theme \theme_calendar_node_day()
Format an calendar node for display in an expanded calendar, like a calendar page
Parameters
node: The node being displayed
1 theme call to theme_calendar_node_day()
- calendar_add_items in ./
calendar.module - Call hooks in other modules to add other items to a calendar view.
File
- ./
calendar.theme, line 452
Code
function theme_calendar_node_day($node) {
$output .= '<div class="calendar dayview">' . "\n";
$output .= theme('calendar_stripe_stripe', $node);
$output .= '<h2 class="title">' . l($node->title, "{$node->url}", array(
'title' => t('view this item'),
)) . '</h2>' . "\n";
$output .= '<div class="times">';
$output .= '<span class="start">' . $start_label . $node->start_format . '</span>' . "\n";
if ($node->calendar_start != $node->calendar_end && $node->calendar_end) {
$output .= '<span class="end"> - ' . $end_label . $node->end_format . '</span>' . "\n";
}
$output .= '</div>';
if ($node->teaser) {
$output .= '<div class="content">' . $node->teaser . "</div>\n";
}
$output .= "</div>\n";
return $output;
}