You are here

function theme_date_display_single in Date 8

Same name and namespace in other branches
  1. 5.2 date/date.theme \theme_date_display_single()
  2. 6.2 date/date.theme \theme_date_display_single()
  3. 7.3 date.theme \theme_date_display_single()
  4. 7 date.theme \theme_date_display_single()
  5. 7.2 date.theme \theme_date_display_single()

Returns HTML for a date element formatted as a single date.

1 theme call to theme_date_display_single()
theme_date_display_combination in ./date.theme
Returns HTML for a date element formatted as a Start/End combination.

File

./date.theme, line 232
Theme functions.

Code

function theme_date_display_single($variables) {
  $date = $variables['date'];
  $timezone = $variables['timezone'];
  $attributes = $variables['attributes'];

  // Wrap the result with the attributes.
  return '<span class="date-display-single"' . new Attribute($attributes) . '>' . $date . $timezone . '</span>';
}