Skip to content

Commit 0350451

Browse files
committed
Added from subsites theme
1 parent 1e0b375 commit 0350451

File tree

1 file changed

+42
-0
lines changed

1 file changed

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

0 commit comments

Comments
 (0)