You are here

function theme_event_upcoming_item in Event 5

Same name and namespace in other branches
  1. 5.2 event.theme \theme_event_upcoming_item()

Format an individual upcoming event block item

Parameters

node: The node to render as an upcoming event

1 theme call to theme_event_upcoming_item()
event_block_upcoming in ./event.module
Creates a block that contains upcoming events.

File

./event.theme, line 460

Code

function theme_event_upcoming_item($node) {
  $output = l($node->title, "node/{$node->nid}", array(
    'title' => $node->title,
  ));
  if (count(event_get_types('all')) + count(event_get_types('solo')) > 1) {
    $output .= '<span class="event-nodetype">' . t("({$node->typename})") . '</span>';
  }
  $output .= '<span class="event-timeleft">(' . $node->timeleft . ')</span>';
  return $output;
}