1 date.theme.inc theme_date_display_remaining($variables)

Returns HTML for remaining message.

Related topics

File

core/modules/date/date.theme.inc, line 453
Theme and preprocess functions for output by Date module.

Code

function theme_date_display_remaining($variables) {
  $remaining_days = $variables['remaining_days'];
  $show_remaining_text = t('The upcoming date less then 1 day.');
  if ($remaining_days) {
    $show_remaining_text = format_plural($remaining_days, 'To event remaining 1 day', 'To event remaining @count days');
  }

  return '<div class="date-display-remaining"><span class="date-display-remaining">' . $show_remaining_text . '</span></div>';
}