Full ELMS Learning Network documentation
function theme_date_display_single
×
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_single($variables) |
cle7 date.theme | theme_date_display_single($variables) |
elmsmedia7 date.theme | theme_date_display_single($variables) |
icor7 date.theme | theme_date_display_single($variables) |
meedjum_blog7 date.theme | theme_date_display_single($variables) |
mooc7 date.theme | theme_date_display_single($variables) |
Returns HTML for a date element formatted as a single date.
Related topics
1 theme call to theme_date_display_single()
- 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_single()
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 256 - Theme functions.
Code
function theme_date_display_single($variables) {
$date = $variables['date'];
$timezone = $variables['timezone'];
$attributes = $variables['attributes'];
// Wrap the result with the attributes.
$output = '<span class="date-display-single"' . drupal_attributes($attributes) . '>' . $date . $timezone . '</span>';
if ($variables['add_microdata']) {
$output .= '<meta' . drupal_attributes($variables['microdata']['value']['#attributes']) . '/>';
}
return $output;
}