You are here

function theme_date_display_remaining in Date 7.3

Same name and namespace in other branches
  1. 7.2 date.theme \theme_date_display_remaining()

Returns HTML for remaining message.

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

File

./date.theme, line 507
Theme functions.

Code

function theme_date_display_remaining($variables) {
  $remaining_days = $variables['remaining_days'];
  $output = '';
  $show_remaining_text = t('Less than 1 day remaining');
  if ($remaining_days) {
    $show_remaining_text = format_plural($remaining_days, '1 day remaining', '@count days remaining');
  }
  return '<div class="date-display-remaining"><span class="date-display-remaining">' . $show_remaining_text . '</span></div>';
}