Version 1
[yaffs-website] / web / core / modules / filter / templates / filter-caption.html.twig
diff --git a/web/core/modules/filter/templates/filter-caption.html.twig b/web/core/modules/filter/templates/filter-caption.html.twig
new file mode 100644 (file)
index 0000000..c90e35b
--- /dev/null
@@ -0,0 +1,18 @@
+{#
+/**
+ * @file
+ * Default theme implementation for a filter caption.
+ *
+ * Returns HTML for a captioned image, audio, video or other tag.
+ *
+ * Available variables
+ * - string node: The complete HTML tag whose contents are being captioned.
+ * - string tag: The name of the HTML tag whose contents are being captioned.
+ * - string caption: The caption text.
+ * - string classes: The classes of the captioned HTML tag.
+ */
+#}
+<figure role="group"{%- if classes %} class="{{ classes }}"{%- endif %}>
+{{ node }}
+<figcaption>{{ caption }}</figcaption>
+</figure>