Skip to content
Snippets Groups Projects
Commit 1c3aaa44 authored by Tim Rohaly's avatar Tim Rohaly
Browse files

Issue #1910596 by ytsurk: markup issues: w3c validation

parent 64d6fd39
No related branches found
No related tags found
No related merge requests found
...@@ -201,8 +201,12 @@ function template_preprocess_entity(&$variables) { ...@@ -201,8 +201,12 @@ function template_preprocess_entity(&$variables) {
// Add RDF type and about URI. // Add RDF type and about URI.
if (module_exists('rdf')) { if (module_exists('rdf')) {
$variables['attributes_array']['about'] = empty($uri['path']) ? NULL: url($uri['path']); if (!empty($uri['path'])) {
$variables['attributes_array']['typeof'] = empty($entity->rdf_mapping['rdftype']) ? NULL : $entity->rdf_mapping['rdftype']; $variables['attributes_array']['about'] = url($uri['path']);
}
if (!empty($entity->rdf_mapping['rdftype'])) {
$variables['attributes_array']['typeof'] = $entity->rdf_mapping['rdftype'];
}
} }
// Add suggestions. // Add suggestions.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment