You are here

function theme_rich_snippets_date in Rich Snippets 7

Returns HTML for result dates.

Parameters

$variables: An associative array containing:

  • date: The unix timestamp of the date the result was created.
1 theme call to theme_rich_snippets_date()
rich_snippets_default_preprocessor in ./rich_snippets.preprocess.inc
Default preprocessor when the result isn't associated with a schema.

File

./rich_snippets.theme.inc, line 17
Theme hook implementations.

Code

function theme_rich_snippets_date($variables) {
  $date = format_date($variables['date'], 'rich_snippets_published_date');
  return '<span class="search-result-date">' . check_plain($date) . ' –</span>';
}