Skip to content

Instantly share code, notes, and snippets.

@psynaptic
Created April 24, 2012 14:47
Show Gist options
  • Select an option

  • Save psynaptic/2480207 to your computer and use it in GitHub Desktop.

Select an option

Save psynaptic/2480207 to your computer and use it in GitHub Desktop.
<?php
$published_day_attributes = (empty($variables['rdf_template_variable_attributes_array']['date'])) ? array() : $variables['rdf_template_variable_attributes_array']['date'];
$published_day_attributes['class'][] = 'published';
$published_day_attributes['title'][] = (empty($variables['rdf_template_variable_attributes_array']['date']['content'])) ? '' : $variables['rdf_template_variable_attributes_array']['date']['content'];
$published_day_title = format_date($variables['created'], 'custom', 'F d, Y');
$variables['content']['links_top']['#links']['published_day'] = array(
'title' => $published_day_title,
'attributes' => $published_day_attributes,
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment