Skip to content

Commit 20576f4

Browse files
author
Simon L. Lange
committed
Merge branch 'develop' of github.com:OS2web/os2web8 into develop
2 parents effe036 + 1e0b375 commit 20576f4

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{%
2+
set classes = [
3+
'field',
4+
'field--name-' ~ field_name|clean_class,
5+
'field--type-' ~ field_type|clean_class,
6+
'field--label-' ~ label_display,
7+
]
8+
%}
9+
{%
10+
set title_classes = [
11+
'field__label',
12+
label_display == 'visually_hidden' ? 'visually-hidden',
13+
]
14+
%}
15+
16+
{% if label_hidden %}
17+
<div{{ attributes.addClass(classes) }}>
18+
<ul{{ attributes.addClass(classes) }}>
19+
{% for item in items %}
20+
<li{{ item.attributes }}>
21+
{{ item.content }}
22+
</li>
23+
{% endfor %}
24+
</ul>
25+
</div>
26+
{% else %}
27+
<div{{ attributes.addClass(classes) }}>
28+
<div{{ title_attributes.addClass(title_classes) }}>{{ label }}</div>
29+
<ul{{ attributes.addClass(classes) }}>
30+
{% for item in items %}
31+
<li{{ item.attributes }}>
32+
{{ item.content }}
33+
</li>
34+
{% endfor %}
35+
</ul>
36+
</div>
37+
{% endif %}

0 commit comments

Comments
 (0)