@openeuropa/bcl-project 0.22.0 → 0.23.0
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 +7 -4
- package/project.html.twig +11 -19
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": "0.
|
|
5
|
+
"version": "0.23.0",
|
|
6
6
|
"description": "OE - BCL Project",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@openeuropa/bcl-base-templates": "^0.
|
|
12
|
-
"@openeuropa/bcl-carousel": "^0.
|
|
13
|
-
"@openeuropa/bcl-description-list": "^0.
|
|
14
|
-
"@openeuropa/bcl-featured-media": "^0.
|
|
15
|
-
"@openeuropa/bcl-heading": "^0.
|
|
16
|
-
"@openeuropa/bcl-inpage-navigation": "^0.
|
|
17
|
-
"@openeuropa/bcl-project-status": "^0.
|
|
11
|
+
"@openeuropa/bcl-base-templates": "^0.23.0",
|
|
12
|
+
"@openeuropa/bcl-carousel": "^0.23.0",
|
|
13
|
+
"@openeuropa/bcl-description-list": "^0.23.0",
|
|
14
|
+
"@openeuropa/bcl-featured-media": "^0.23.0",
|
|
15
|
+
"@openeuropa/bcl-heading": "^0.23.0",
|
|
16
|
+
"@openeuropa/bcl-inpage-navigation": "^0.23.0",
|
|
17
|
+
"@openeuropa/bcl-project-status": "^0.23.0"
|
|
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": "fa2097e14024989cddf6f9cd7a9115bed5886aeb"
|
|
34
34
|
}
|
package/project-lists.html.twig
CHANGED
|
@@ -14,7 +14,8 @@
|
|
|
14
14
|
#}
|
|
15
15
|
|
|
16
16
|
{% set _title = title|default('') %}
|
|
17
|
-
{% set _title_tag = title_tag|default('
|
|
17
|
+
{% set _title_tag = title_tag|default('h2') %}
|
|
18
|
+
{% set _title_link = title_link|default({}) %}
|
|
18
19
|
{% set _title_attributes = title_attributes ?: create_attribute() %}
|
|
19
20
|
{% set _items = items|default([]) %}
|
|
20
21
|
|
|
@@ -22,7 +23,7 @@
|
|
|
22
23
|
{% set attributes = create_attribute() %}
|
|
23
24
|
{% endif %}
|
|
24
25
|
|
|
25
|
-
{% set _title_classes = ['
|
|
26
|
+
{% set _title_classes = ['my-4-5'] %}
|
|
26
27
|
{% set _title_attributes = _title_attributes.addClass(_title_classes) %}
|
|
27
28
|
|
|
28
29
|
<div
|
|
@@ -32,6 +33,7 @@
|
|
|
32
33
|
{% include '@oe-bcl/bcl-heading/heading.html.twig' with {
|
|
33
34
|
title: _title,
|
|
34
35
|
title_tag: _title_tag,
|
|
36
|
+
title_link: _title_link,
|
|
35
37
|
attributes: _title_attributes,
|
|
36
38
|
} only %}
|
|
37
39
|
{% endif %}
|
|
@@ -39,10 +41,11 @@
|
|
|
39
41
|
{% for _item in _items %}
|
|
40
42
|
{% if _item.title is not empty %}
|
|
41
43
|
{% set _item_title_attributes = _item.title_attributes ?: create_attribute() %}
|
|
42
|
-
{% set _item_title_attributes = _item_title_attributes.addClass(['
|
|
44
|
+
{% set _item_title_attributes = _item_title_attributes.addClass(['mb-3']) %}
|
|
43
45
|
{% include '@oe-bcl/bcl-heading/heading.html.twig' with {
|
|
44
46
|
title: _item.title,
|
|
45
|
-
title_tag: _item.title_tag|default('
|
|
47
|
+
title_tag: _item.title_tag|default('h3'),
|
|
48
|
+
title_link: _item.title_link|default({}),
|
|
46
49
|
attributes: _item_title_attributes,
|
|
47
50
|
} only %}
|
|
48
51
|
{% endif %}
|
package/project.html.twig
CHANGED
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
|
|
7
7
|
{% block content %}
|
|
8
8
|
{% if project_status_title is not empty %}
|
|
9
|
-
{% set _project_title_attributes = create_attribute().addClass(['
|
|
9
|
+
{% set _project_title_attributes = create_attribute().addClass(['mb-4']) %}
|
|
10
10
|
{% if project_status_id is not empty %}
|
|
11
11
|
{% set _project_title_attributes = _project_title_attributes.setAttribute('id', project_status_id) %}
|
|
12
12
|
{% endif %}
|
|
13
13
|
{% include '@oe-bcl/bcl-heading/heading.html.twig' with {
|
|
14
14
|
title: project_status_title,
|
|
15
|
-
title_tag: '
|
|
15
|
+
title_tag: 'h2',
|
|
16
16
|
attributes: _project_title_attributes,
|
|
17
17
|
} only %}
|
|
18
18
|
{% endif %}
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
{% for _paragraph in first_paragraphs %}
|
|
32
32
|
{% include '@oe-bcl/bcl-heading/heading.html.twig' with {
|
|
33
33
|
title: _paragraph.title,
|
|
34
|
-
title_tag: '
|
|
35
|
-
attributes: create_attribute().addClass(['
|
|
34
|
+
title_tag: 'h2',
|
|
35
|
+
attributes: create_attribute().addClass(['mb-4', 'pt-3'])
|
|
36
36
|
.setAttribute('id', _paragraph.title_id),
|
|
37
37
|
} only %}
|
|
38
38
|
{{- _paragraph.content -}}
|
|
@@ -51,8 +51,8 @@
|
|
|
51
51
|
{% for _paragraph in second_paragraphs %}
|
|
52
52
|
{% include '@oe-bcl/bcl-heading/heading.html.twig' with {
|
|
53
53
|
title: _paragraph.title,
|
|
54
|
-
title_tag: '
|
|
55
|
-
attributes: create_attribute().addClass(['
|
|
54
|
+
title_tag: 'h2',
|
|
55
|
+
attributes: create_attribute().addClass(['mb-4', 'pt-3'])
|
|
56
56
|
.setAttribute('id', _paragraph.title_id),
|
|
57
57
|
} only %}
|
|
58
58
|
{{- _paragraph.content -}}
|
|
@@ -60,27 +60,19 @@
|
|
|
60
60
|
{% endif %}
|
|
61
61
|
|
|
62
62
|
{% if gallery.main_title is not empty %}
|
|
63
|
-
{% set _gallery_title_attributes = create_attribute().addClass(['
|
|
63
|
+
{% set _gallery_title_attributes = create_attribute().addClass(['my-4']) %}
|
|
64
64
|
{% if gallery.main_title_id is not empty %}
|
|
65
65
|
{% set _gallery_title_attributes = _gallery_title_attributes.setAttribute('id', gallery.main_title_id) %}
|
|
66
66
|
{% endif %}
|
|
67
67
|
{% include '@oe-bcl/bcl-heading/heading.html.twig' with {
|
|
68
68
|
title: gallery.main_title,
|
|
69
|
-
title_tag: '
|
|
69
|
+
title_tag: 'h2',
|
|
70
70
|
attributes: _gallery_title_attributes,
|
|
71
71
|
} only %}
|
|
72
72
|
{% endif %}
|
|
73
|
-
{% if gallery
|
|
74
|
-
<div class="mt-3">
|
|
75
|
-
{%
|
|
76
|
-
<div class="mb-2-5 pb-4">
|
|
77
|
-
{% if _showcase.carousel %}
|
|
78
|
-
{% include '@oe-bcl/bcl-carousel/carousel.html.twig' with _showcase only %}
|
|
79
|
-
{% else %}
|
|
80
|
-
{% include '@oe-bcl/bcl-featured-media/featured-media.html.twig' with _showcase only %}
|
|
81
|
-
{% endif %}
|
|
82
|
-
</div>
|
|
83
|
-
{% endfor %}
|
|
73
|
+
{% if gallery is not empty %}
|
|
74
|
+
<div class="mt-3 mb-4-5">
|
|
75
|
+
{% include '@oe-bcl/bcl-gallery/gallery.html.twig' with gallery only %}
|
|
84
76
|
</div>
|
|
85
77
|
{% endif %}
|
|
86
78
|
|