Version 1
[yaffs-website] / web / core / themes / classy / templates / misc / rdf-metadata.html.twig
diff --git a/web/core/themes/classy/templates/misc/rdf-metadata.html.twig b/web/core/themes/classy/templates/misc/rdf-metadata.html.twig
new file mode 100644 (file)
index 0000000..acc62df
--- /dev/null
@@ -0,0 +1,20 @@
+{#
+/**
+ * @file
+ * Theme override for empty spans with RDF attributes.
+ *
+ * The XHTML+RDFa doctype allows either <span></span> or <span /> syntax to
+ * be used, but for maximum browser compatibility, W3C recommends the
+ * former when serving pages using the text/html media type, see
+ * http://www.w3.org/TR/xhtml1/#C_3.
+ *
+ * Available variables:
+ * - metadata: Each item within corresponds to its own set of attributes,
+ *   and therefore, needs its own 'attributes' element.
+ *
+ * @see template_preprocess_rdf_metadata()
+ */
+#}
+{% for attributes in metadata %}
+  <span{{ attributes.addClass('rdf-meta', 'hidden') }}></span>
+{% endfor %}