@openeuropa/bcl-project 1.10.9 → 1.10.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +9 -9
- package/project-lists.html.twig +25 -29
- package/project.html.twig +35 -35
package/package.json
CHANGED
|
@@ -2,19 +2,19 @@
|
|
|
2
2
|
"name": "@openeuropa/bcl-project",
|
|
3
3
|
"author": "European Commission",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
|
-
"version": "1.10.
|
|
5
|
+
"version": "1.10.11",
|
|
6
6
|
"description": "OE - BCL Project",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@openeuropa/bcl-base-templates": "^1.10.
|
|
12
|
-
"@openeuropa/bcl-carousel": "^1.10.
|
|
13
|
-
"@openeuropa/bcl-description-list": "^1.10.
|
|
14
|
-
"@openeuropa/bcl-featured-media": "^1.10.
|
|
15
|
-
"@openeuropa/bcl-heading": "^1.10.
|
|
16
|
-
"@openeuropa/bcl-inpage-navigation": "^1.10.
|
|
17
|
-
"@openeuropa/bcl-project-status": "^1.10.
|
|
11
|
+
"@openeuropa/bcl-base-templates": "^1.10.11",
|
|
12
|
+
"@openeuropa/bcl-carousel": "^1.10.11",
|
|
13
|
+
"@openeuropa/bcl-description-list": "^1.10.11",
|
|
14
|
+
"@openeuropa/bcl-featured-media": "^1.10.11",
|
|
15
|
+
"@openeuropa/bcl-heading": "^1.10.11",
|
|
16
|
+
"@openeuropa/bcl-inpage-navigation": "^1.10.11",
|
|
17
|
+
"@openeuropa/bcl-project-status": "^1.10.11"
|
|
18
18
|
},
|
|
19
19
|
"repository": {
|
|
20
20
|
"type": "git",
|
|
@@ -30,5 +30,5 @@
|
|
|
30
30
|
"design-system",
|
|
31
31
|
"twig"
|
|
32
32
|
],
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "82aecf2f60f8bd8f9afd447ea0d044396f085823"
|
|
34
34
|
}
|
package/project-lists.html.twig
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
{% apply spaceless %}
|
|
2
|
-
|
|
3
|
-
|
|
4
1
|
{#
|
|
5
2
|
Parameters:
|
|
6
3
|
- title: (string) (default: '')
|
|
@@ -16,24 +13,24 @@
|
|
|
16
13
|
}
|
|
17
14
|
#}
|
|
18
15
|
|
|
19
|
-
{
|
|
16
|
+
{%- set _title = title|default('') %}
|
|
20
17
|
{% set _title_tag = title_tag|default('h2') %}
|
|
21
18
|
{% set _title_link = title_link|default({}) %}
|
|
22
19
|
{% set _title_attributes = title_attributes ?: create_attribute() %}
|
|
23
20
|
{% set _items = items|default([]) %}
|
|
24
21
|
|
|
25
|
-
{
|
|
26
|
-
{
|
|
22
|
+
{%- if attributes is empty %}
|
|
23
|
+
{%- set attributes = create_attribute() %}
|
|
27
24
|
{% endif %}
|
|
28
25
|
|
|
29
|
-
{
|
|
30
|
-
{% set _title_attributes = _title_attributes.addClass(_title_classes)
|
|
26
|
+
{%- set _title_classes = ['my-4-5'] %}
|
|
27
|
+
{% set _title_attributes = _title_attributes.addClass(_title_classes) -%}
|
|
31
28
|
|
|
32
29
|
<div
|
|
33
30
|
{{ attributes }}
|
|
34
31
|
>
|
|
35
|
-
{
|
|
36
|
-
{
|
|
32
|
+
{%- if _title is not empty %}
|
|
33
|
+
{%- include '@oe-bcl/bcl-heading/heading.html.twig' with {
|
|
37
34
|
title: _title,
|
|
38
35
|
title_tag: _title_tag,
|
|
39
36
|
title_link: _title_link,
|
|
@@ -41,33 +38,32 @@
|
|
|
41
38
|
} only %}
|
|
42
39
|
{% endif %}
|
|
43
40
|
{% if _items is defined and _items is not empty %}
|
|
44
|
-
{
|
|
45
|
-
{
|
|
46
|
-
{
|
|
47
|
-
{
|
|
48
|
-
{
|
|
41
|
+
{%- for _item in _items %}
|
|
42
|
+
{%- if _item.title is not empty %}
|
|
43
|
+
{%- set _item_title_attributes = _item.title_attributes ?: create_attribute() %}
|
|
44
|
+
{%- set _item_title_attributes = _item_title_attributes.addClass(['mb-3']) %}
|
|
45
|
+
{%- include '@oe-bcl/bcl-heading/heading.html.twig' with {
|
|
49
46
|
title: _item.title,
|
|
50
47
|
title_tag: _item.title_tag|default('h3'),
|
|
51
48
|
title_link: _item.title_link|default({}),
|
|
52
49
|
attributes: _item_title_attributes,
|
|
53
50
|
} only %}
|
|
54
|
-
{
|
|
55
|
-
{
|
|
56
|
-
{
|
|
57
|
-
{
|
|
51
|
+
{%- endif %}
|
|
52
|
+
{%- for _list in _item.content %}
|
|
53
|
+
{%- if _list.attributes is empty %}
|
|
54
|
+
{%- set _list = _list|merge({
|
|
58
55
|
attributes: create_attribute()
|
|
59
56
|
}) %}
|
|
60
|
-
{
|
|
61
|
-
{
|
|
62
|
-
{
|
|
57
|
+
{%- endif %}
|
|
58
|
+
{%- if not loop.last %}
|
|
59
|
+
{%- set _list = _list|merge({
|
|
63
60
|
attributes: _list.attributes.addClass(['border-bottom', 'mb-3'])
|
|
64
61
|
})
|
|
65
62
|
%}
|
|
66
|
-
{
|
|
67
|
-
{
|
|
68
|
-
{
|
|
69
|
-
{
|
|
70
|
-
{% endif
|
|
63
|
+
{%- endif %}
|
|
64
|
+
{%- include '@oe-bcl/bcl-description-list/description-list.html.twig' with _list only %}
|
|
65
|
+
{%- endfor %}
|
|
66
|
+
{%- endfor %}
|
|
67
|
+
{% endif -%}
|
|
71
68
|
</div>
|
|
72
|
-
|
|
73
|
-
{% endapply %}
|
|
69
|
+
{#--#}
|
package/project.html.twig
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
{% extends '@oe-bcl/bcl-base-templates/content-type.html.twig' -%}
|
|
2
2
|
|
|
3
3
|
{%- block sidebar %}
|
|
4
|
-
{
|
|
4
|
+
{%- include '@oe-bcl/bcl-inpage-navigation/inpage-navigation.html.twig' with sidebar only %}
|
|
5
5
|
{%- endblock -%}
|
|
6
6
|
|
|
7
7
|
{%- block content %}
|
|
8
|
-
{
|
|
9
|
-
{
|
|
10
|
-
{
|
|
11
|
-
{
|
|
8
|
+
{%- if project_status is not empty %}
|
|
9
|
+
{%- if project_status_title is not empty %}
|
|
10
|
+
{%- set _project_title_attributes = create_attribute().addClass(['mb-4']) %}
|
|
11
|
+
{%- include '@oe-bcl/bcl-heading/heading.html.twig' with {
|
|
12
12
|
title: project_status_title,
|
|
13
13
|
title_tag: 'h2',
|
|
14
14
|
attributes: create_attribute().setAttribute('id', project_status_id),
|
|
15
15
|
} only %}
|
|
16
|
-
{
|
|
17
|
-
{
|
|
18
|
-
{
|
|
19
|
-
{
|
|
20
|
-
{
|
|
21
|
-
{
|
|
22
|
-
{
|
|
23
|
-
{
|
|
24
|
-
{
|
|
16
|
+
{%- endif %}
|
|
17
|
+
{%- include '@oe-bcl/bcl-project-status/project-status.html.twig' with project_status %}
|
|
18
|
+
{%- if project_contributions is not empty %}
|
|
19
|
+
{%- include '@oe-bcl/bcl-project-status/project-contributions.html.twig' with project_contributions %}
|
|
20
|
+
{%- endif %}
|
|
21
|
+
{%- if status_lists is not empty %}
|
|
22
|
+
{%- include '@oe-bcl/bcl-project/project-lists.html.twig' with status_lists only %}
|
|
23
|
+
{%- endif %}
|
|
24
|
+
{%- endif %}
|
|
25
25
|
|
|
26
|
-
{
|
|
27
|
-
{
|
|
28
|
-
{
|
|
26
|
+
{%- if first_paragraphs is defined and first_paragraphs is not empty %}
|
|
27
|
+
{%- for _paragraph in first_paragraphs %}
|
|
28
|
+
{%- include '@oe-bcl/bcl-heading/heading.html.twig' with {
|
|
29
29
|
title: _paragraph.title,
|
|
30
30
|
title_tag: 'h2',
|
|
31
31
|
attributes: create_attribute().addClass(['mb-4', 'pt-3'])
|
|
@@ -33,19 +33,19 @@
|
|
|
33
33
|
} only %}
|
|
34
34
|
{{- _paragraph.content -}}
|
|
35
35
|
{% endfor %}
|
|
36
|
-
{
|
|
36
|
+
{%- endif %}
|
|
37
37
|
|
|
38
|
-
{
|
|
39
|
-
{
|
|
40
|
-
{
|
|
38
|
+
{%- if featured_lists is not empty %}
|
|
39
|
+
{%- include '@oe-bcl/bcl-project/project-lists.html.twig' with featured_lists only %}
|
|
40
|
+
{%- endif %}
|
|
41
41
|
|
|
42
|
-
{
|
|
43
|
-
{
|
|
44
|
-
{
|
|
42
|
+
{%- if content_lists is not empty %}
|
|
43
|
+
{%- include '@oe-bcl/bcl-project/project-lists.html.twig' with content_lists only %}
|
|
44
|
+
{%- endif %}
|
|
45
45
|
|
|
46
|
-
{
|
|
47
|
-
{
|
|
48
|
-
{
|
|
46
|
+
{%- if second_paragraphs is defined and second_paragraphs is not empty %}
|
|
47
|
+
{%- for _paragraph in second_paragraphs %}
|
|
48
|
+
{%- include '@oe-bcl/bcl-heading/heading.html.twig' with {
|
|
49
49
|
title: _paragraph.title,
|
|
50
50
|
title_tag: 'h2',
|
|
51
51
|
attributes: create_attribute().addClass(['mb-4', 'pt-3'])
|
|
@@ -53,19 +53,19 @@
|
|
|
53
53
|
} only %}
|
|
54
54
|
{{- _paragraph.content -}}
|
|
55
55
|
{% endfor %}
|
|
56
|
-
{
|
|
56
|
+
{%- endif %}
|
|
57
57
|
|
|
58
|
-
{
|
|
58
|
+
{%- if gallery is not empty -%}
|
|
59
59
|
<div class="mt-3 mb-4-5">
|
|
60
|
-
{
|
|
60
|
+
{%- include '@oe-bcl/bcl-gallery/gallery.html.twig' with gallery only -%}
|
|
61
61
|
</div>
|
|
62
|
-
{
|
|
62
|
+
{%- endif %}
|
|
63
63
|
|
|
64
|
-
{
|
|
64
|
+
{%- if social_block is not empty %}
|
|
65
65
|
{%- block social_block %}
|
|
66
|
-
{{ social_buttons }}
|
|
67
|
-
{
|
|
68
|
-
{
|
|
66
|
+
{{- social_buttons }}
|
|
67
|
+
{%- include '@oe-bcl/bcl-button/button.html.twig' with button_social_modal only %}
|
|
68
|
+
{%- include '@oe-bcl/bcl-modal/modal.html.twig' with social_modal only %}
|
|
69
69
|
{%- endblock -%}
|
|
70
70
|
{% endif %}
|
|
71
71
|
|