| 1 date.theme.inc | theme_date_display_single($variables) | 
Returns HTML for a date element formatted as a single date.
Related topics
File
- core/modules/ date/ date.theme.inc, line 325 
- Theme and preprocess functions for output by Date module.
Code
function theme_date_display_single($variables) {
  $date = $variables['date'];
  $attributes = $variables['attributes'];
  $show_remaining_days = isset($variables['show_remaining_days']) ? $variables['show_remaining_days'] : '';
  // Wrap the result with the attributes.
  $output = '<span class="date-display-single"' . backdrop_attributes($attributes) . '>' . $date . '</span>';
  // Add remaining message and return.
  return $output . $show_remaining_days;
}
