Version 1
[yaffs-website] / web / core / modules / help / templates / help-section.html.twig
diff --git a/web/core/modules/help/templates/help-section.html.twig b/web/core/modules/help/templates/help-section.html.twig
new file mode 100644 (file)
index 0000000..9d63b4b
--- /dev/null
@@ -0,0 +1,25 @@
+{#
+/**
+ * @file
+ * Default theme implementation for a section of the help page.
+ *
+ * Available variables:
+ * - title: The section title.
+ * - description: The description text for the section.
+ * - links: Links to display in the section.
+ * - empty: Text to display if there are no links.
+ *
+ * @ingroup themeable
+ */
+#}
+<h2>{{ title }}</h2>
+<p>{{ description }}</p>
+{% if links %}
+  <ul>
+  {% for link in links %}
+    <li>{{ link }}</li>
+  {% endfor %}
+  </ul>
+{% else %}
+  <p>{{ empty }}</p>
+{% endif %}