Skip to content

Instantly share code, notes, and snippets.

@mlncn
Forked from jacine/tpl.html
Created September 3, 2011 00:32
Show Gist options
  • Select an option

  • Save mlncn/1190283 to your computer and use it in GitHub Desktop.

Select an option

Save mlncn/1190283 to your computer and use it in GitHub Desktop.
hrm...
<span property="dc:date dc:created" content="2011-08-30T17:01:12-04:00" datatype="xsd:dateTime">
<time datetime="2011-08-30T21:01:12" pubdate="pubdate">30 Aug 2011</time>
</span>
@mlncn
Copy link
Author

mlncn commented Sep 3, 2011

scor's leprechauns do their work in:
http://api.drupal.org/api/drupal/modules--rdf--rdf.module/function/rdf_process/7
and in theme_rdf_template_variable_wrapper
"if you don't want an extra wrapper element, you can override this function to not wrap that variable and instead print the following inside your template file"
"instead print the following inside your template file: drupal_attributes($rdf_template_variable_attributes_array[$variable_name])"

Maybe date variables are being wrapped sorta by chance from this code:
$date_attributes_array = rdf_rdfa_attributes($variables['rdf_mapping']['created'], $variables['created']);
$variables['rdf_template_variable_attributes_array']['date'] = $date_attributes_array;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment