function theme_date_display_range

×

Error message

User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
cis7 date.theme theme_date_display_range($variables)
cle7 date.theme theme_date_display_range($variables)
elmsmedia7 date.theme theme_date_display_range($variables)
icor7 date.theme theme_date_display_range($variables)
meedjum_blog7 date.theme theme_date_display_range($variables)
mooc7 date.theme theme_date_display_range($variables)

Returns HTML for a date element formatted as a range.

Related topics

1 theme call to theme_date_display_range()
theme_date_display_combination in sites/all/modules/ulmus/date/date.theme
Returns HTML for a date element formatted as a Start/End combination.
2 string references to the theme hook from theme_date_display_range()

Note: this list is generated by looking for the string for this theme hook, so it may include some references that are not actually using this theme hook.

date_theme in sites/all/modules/ulmus/date/date.module
Implements hook_theme().
theme_date_display_combination in sites/all/modules/ulmus/date/date.theme
Returns HTML for a date element formatted as a Start/End combination.

File

sites/all/modules/ulmus/date/date.theme, line 311
Theme functions.

Code

function theme_date_display_range($variables) {
  $date1 = $variables['date1'];
  $date2 = $variables['date2'];
  $timezone = $variables['timezone'];
  $attributes_start = $variables['attributes_start'];
  $attributes_end = $variables['attributes_end'];

  $start_date = '<span class="date-display-start"' . drupal_attributes($attributes_start) . '>' . $date1 . '</span>';
  $end_date = '<span class="date-display-end"' . drupal_attributes($attributes_end) . '>' . $date2 . $timezone . '</span>';

  // If microdata attributes for the start date property have been passed in,
  // add the microdata in meta tags.
  if (!empty($variables['add_microdata'])) {
    $start_date .= '<meta' . drupal_attributes($variables['microdata']['value']['#attributes']) . '/>';
    $end_date .= '<meta' . drupal_attributes($variables['microdata']['value2']['#attributes']) . '/>';
  }

  // Wrap the result with the attributes.
  return t('!start-date to !end-date', array(
    '!start-date' => $start_date,
    '!end-date' => $end_date,
  ));
}