function theme_event_upcoming_item in Event 5.2
Same name and namespace in other branches
- 5 event.theme \theme_event_upcoming_item()
Format an individual upcoming event block item
Parameters
node: The node to render as an upcoming event TODO: decorate with hcalendar
1 theme call to theme_event_upcoming_item()
- _event_block_upcoming in ./
event.module - Helper function for upcoming events block. Can be called by other modules.
File
- ./
event.theme, line 473
Code
function theme_event_upcoming_item($node, $types = array()) {
$output = l($node->title, "node/{$node->nid}", array(
'title' => $node->title,
));
if (count($types) > 1) {
$output .= '<span class="event-nodetype">(' . $node->event['node_type'] . ')</span>';
}
$output .= '<span class="event-timeleft">(' . $node->event['timeleft'] . ')</span>';
return $output;
}