Updated to Drupal 8.6.4, which is PHP 7.3 friendly. Also updated HTMLaw library....
[yaffs-website] / web / core / modules / filter / templates / filter-tips.html.twig
1 {#
2 /**
3  * @file
4  * Default theme implementation for a set of filter tips.
5  *
6  * Available variables:
7  * - tips: Descriptions and a CSS ID in the form of 'module-name/filter-id'
8  *   (only used when 'long' is TRUE) for each filter in one or more text
9  *   formats.
10  * - long: A flag indicating whether the passed-in filter tips contain extended
11  *   explanations, i.e. intended to be output on the path 'filter/tips'
12  *   (TRUE), or are in a short format, i.e. suitable to be displayed below a
13  *   form element. Defaults to FALSE.
14  * - multiple: A flag indicating there is more than one filter tip.
15  *
16  * @see template_preprocess_filter_tips()
17  *
18  * @ingroup themeable
19  */
20 #}
21 {% if multiple %}
22   <h2>{{ 'Text Formats'|t }}</h2>
23 {% endif %}
24
25 {% if tips|length %}
26   {% for name, tip in tips %}
27
28     {% if multiple %}
29       <div{{ attributes }}>
30       <h3>{{ tip.name }}</h3>
31     {% endif %}
32
33     {% if tip.list|length %}
34       <ul>
35       {% for item in tip.list %}
36         <li{{ tip.attributes }}>{{ item.tip }}</li>
37       {% endfor %}
38       </ul>
39     {% endif %}
40
41     {% if multiple %}
42       </div>
43     {% endif %}
44
45   {% endfor %}
46 {% endif %}