@openeuropa/bcl-project 0.1.202408021145
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/LICENSE.md +21 -0
- package/package.json +34 -0
- package/project-lists.html.twig +73 -0
- package/project.html.twig +72 -0
package/LICENSE.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2020-2021 Mark Otto
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|
package/package.json
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@openeuropa/bcl-project",
|
|
3
|
+
"author": "European Commission",
|
|
4
|
+
"license": "EUPL-1.2",
|
|
5
|
+
"version": "0.1.202408021145",
|
|
6
|
+
"description": "OE - BCL Project",
|
|
7
|
+
"publishConfig": {
|
|
8
|
+
"access": "public"
|
|
9
|
+
},
|
|
10
|
+
"dependencies": {
|
|
11
|
+
"@openeuropa/bcl-base-templates": "^0.1.202408021145",
|
|
12
|
+
"@openeuropa/bcl-carousel": "^0.1.202408021145",
|
|
13
|
+
"@openeuropa/bcl-description-list": "^0.1.202408021145",
|
|
14
|
+
"@openeuropa/bcl-featured-media": "^0.1.202408021145",
|
|
15
|
+
"@openeuropa/bcl-heading": "^0.1.202408021145",
|
|
16
|
+
"@openeuropa/bcl-inpage-navigation": "^0.1.202408021145",
|
|
17
|
+
"@openeuropa/bcl-project-status": "^0.1.202408021145"
|
|
18
|
+
},
|
|
19
|
+
"repository": {
|
|
20
|
+
"type": "git",
|
|
21
|
+
"url": "git+https://github.com/openeuropa/bootstrap-component-library.git"
|
|
22
|
+
},
|
|
23
|
+
"bugs": {
|
|
24
|
+
"url": "https://github.com/openeuropa/bootstrap-component-library.git/issues"
|
|
25
|
+
},
|
|
26
|
+
"homepage": "https://github.com/openeuropa/bootstrap-component-library",
|
|
27
|
+
"keywords": [
|
|
28
|
+
"openeuropa",
|
|
29
|
+
"bootstrap-component-library",
|
|
30
|
+
"design-system",
|
|
31
|
+
"twig"
|
|
32
|
+
],
|
|
33
|
+
"gitHead": "7ee2013f7f64a70ddfa35228a9a65967dd71eec3"
|
|
34
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
{% apply spaceless %}
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
{#
|
|
5
|
+
Parameters:
|
|
6
|
+
- title: (string) (default: '')
|
|
7
|
+
- title_tag: (string) (default: 'h2')
|
|
8
|
+
- title_link: (link object) (default: {})
|
|
9
|
+
- title_attributes (drupal attrs)
|
|
10
|
+
- items (array) (default: [])
|
|
11
|
+
{
|
|
12
|
+
title: (heading object),
|
|
13
|
+
content: [
|
|
14
|
+
description list object
|
|
15
|
+
]
|
|
16
|
+
}
|
|
17
|
+
#}
|
|
18
|
+
|
|
19
|
+
{% set _title = title|default('') %}
|
|
20
|
+
{% set _title_tag = title_tag|default('h2') %}
|
|
21
|
+
{% set _title_link = title_link|default({}) %}
|
|
22
|
+
{% set _title_attributes = title_attributes ?: create_attribute() %}
|
|
23
|
+
{% set _items = items|default([]) %}
|
|
24
|
+
|
|
25
|
+
{% if attributes is empty %}
|
|
26
|
+
{% set attributes = create_attribute() %}
|
|
27
|
+
{% endif %}
|
|
28
|
+
|
|
29
|
+
{% set _title_classes = ['my-4-5'] %}
|
|
30
|
+
{% set _title_attributes = _title_attributes.addClass(_title_classes) %}
|
|
31
|
+
|
|
32
|
+
<div
|
|
33
|
+
{{ attributes }}
|
|
34
|
+
>
|
|
35
|
+
{% if _title is not empty %}
|
|
36
|
+
{% include '@oe-bcl/bcl-heading/heading.html.twig' with {
|
|
37
|
+
title: _title,
|
|
38
|
+
title_tag: _title_tag,
|
|
39
|
+
title_link: _title_link,
|
|
40
|
+
attributes: _title_attributes,
|
|
41
|
+
} only %}
|
|
42
|
+
{% endif %}
|
|
43
|
+
{% if _items is defined and _items is not empty %}
|
|
44
|
+
{% for _item in _items %}
|
|
45
|
+
{% if _item.title is not empty %}
|
|
46
|
+
{% set _item_title_attributes = _item.title_attributes ?: create_attribute() %}
|
|
47
|
+
{% set _item_title_attributes = _item_title_attributes.addClass(['mb-3']) %}
|
|
48
|
+
{% include '@oe-bcl/bcl-heading/heading.html.twig' with {
|
|
49
|
+
title: _item.title,
|
|
50
|
+
title_tag: _item.title_tag|default('h3'),
|
|
51
|
+
title_link: _item.title_link|default({}),
|
|
52
|
+
attributes: _item_title_attributes,
|
|
53
|
+
} only %}
|
|
54
|
+
{% endif %}
|
|
55
|
+
{% for _list in _item.content %}
|
|
56
|
+
{% if _list.attributes is empty %}
|
|
57
|
+
{% set _list = _list|merge({
|
|
58
|
+
attributes: create_attribute()
|
|
59
|
+
}) %}
|
|
60
|
+
{% endif %}
|
|
61
|
+
{% if not loop.last %}
|
|
62
|
+
{% set _list = _list|merge({
|
|
63
|
+
attributes: _list.attributes.addClass(['border-bottom', 'mb-3'])
|
|
64
|
+
})
|
|
65
|
+
%}
|
|
66
|
+
{% endif %}
|
|
67
|
+
{% include '@oe-bcl/bcl-description-list/description-list.html.twig' with _list only %}
|
|
68
|
+
{% endfor %}
|
|
69
|
+
{% endfor %}
|
|
70
|
+
{% endif %}
|
|
71
|
+
</div>
|
|
72
|
+
|
|
73
|
+
{% endapply %}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
{% extends '@oe-bcl/bcl-base-templates/content-type.html.twig' %}
|
|
2
|
+
|
|
3
|
+
{% block sidebar %}
|
|
4
|
+
{% include '@oe-bcl/bcl-inpage-navigation/inpage-navigation.html.twig' with sidebar only %}
|
|
5
|
+
{% endblock %}
|
|
6
|
+
|
|
7
|
+
{% block content %}
|
|
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
|
+
title: project_status_title,
|
|
13
|
+
title_tag: 'h2',
|
|
14
|
+
attributes: create_attribute().setAttribute('id', project_status_id),
|
|
15
|
+
} only %}
|
|
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
|
+
|
|
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
|
+
title: _paragraph.title,
|
|
30
|
+
title_tag: 'h2',
|
|
31
|
+
attributes: create_attribute().addClass(['mb-4', 'pt-3'])
|
|
32
|
+
.setAttribute('id', _paragraph.title_id),
|
|
33
|
+
} only %}
|
|
34
|
+
{{- _paragraph.content -}}
|
|
35
|
+
{% endfor %}
|
|
36
|
+
{% endif %}
|
|
37
|
+
|
|
38
|
+
{% if featured_lists is not empty %}
|
|
39
|
+
{% include '@oe-bcl/bcl-project/project-lists.html.twig' with featured_lists only %}
|
|
40
|
+
{% endif %}
|
|
41
|
+
|
|
42
|
+
{% if content_lists is not empty %}
|
|
43
|
+
{% include '@oe-bcl/bcl-project/project-lists.html.twig' with content_lists only %}
|
|
44
|
+
{% endif %}
|
|
45
|
+
|
|
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
|
+
title: _paragraph.title,
|
|
50
|
+
title_tag: 'h2',
|
|
51
|
+
attributes: create_attribute().addClass(['mb-4', 'pt-3'])
|
|
52
|
+
.setAttribute('id', _paragraph.title_id),
|
|
53
|
+
} only %}
|
|
54
|
+
{{- _paragraph.content -}}
|
|
55
|
+
{% endfor %}
|
|
56
|
+
{% endif %}
|
|
57
|
+
|
|
58
|
+
{% if gallery is not empty %}
|
|
59
|
+
<div class="mt-3 mb-4-5">
|
|
60
|
+
{% include '@oe-bcl/bcl-gallery/gallery.html.twig' with gallery only %}
|
|
61
|
+
</div>
|
|
62
|
+
{% endif %}
|
|
63
|
+
|
|
64
|
+
{% if social_block is not empty %}
|
|
65
|
+
{% block social_block %}
|
|
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
|
+
{% endblock %}
|
|
70
|
+
{% endif %}
|
|
71
|
+
|
|
72
|
+
{% endblock %}
|