@openeuropa/bcl-twig-templates 0.24.0 → 0.25.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 +65 -65
- package/templates/bcl-accordion/accordion.html.twig +17 -0
- package/templates/bcl-blockquote/blockquote.html.twig +17 -0
- package/templates/bcl-card/card.html.twig +7 -5
- package/templates/bcl-carousel/carousel.html.twig +18 -2
- package/templates/bcl-content-banner/content-banner.html.twig +11 -8
- package/templates/bcl-description-list/description-list.html.twig +129 -88
- package/templates/bcl-fact-figures/fact-figures.html.twig +2 -2
- package/templates/bcl-featured-media/featured-media.html.twig +21 -9
- package/templates/bcl-file/file.html.twig +3 -1
- package/templates/bcl-links-block/links-block.html.twig +4 -0
- package/templates/bcl-listing/listing.html.twig +40 -50
- package/templates/bcl-modal/modal.html.twig +1 -1
- package/templates/bcl-page/page.html.twig +4 -23
- package/templates/bcl-project/project-lists.html.twig +1 -1
- package/templates/bcl-search-form/search-form.html.twig +1 -1
- package/templates/bcl-subscription-block/subscription-block.html.twig +3 -1
- package/templates/bcl-user/user-compact.html.twig +3 -2
- package/templates/bcl-user/user-terms.html.twig +4 -4
- package/templates/bcl-user/user.html.twig +2 -2
package/package.json
CHANGED
|
@@ -2,75 +2,75 @@
|
|
|
2
2
|
"name": "@openeuropa/bcl-twig-templates",
|
|
3
3
|
"author": "European Commission",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
|
-
"version": "0.
|
|
5
|
+
"version": "0.25.0",
|
|
6
6
|
"description": "OE Bcl Twig Templates",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
9
9
|
},
|
|
10
10
|
"devDependencies": {
|
|
11
|
-
"@openeuropa/bcl-accordion": "^0.
|
|
12
|
-
"@openeuropa/bcl-alert": "^0.
|
|
13
|
-
"@openeuropa/bcl-badge": "^0.
|
|
14
|
-
"@openeuropa/bcl-banner": "^0.
|
|
15
|
-
"@openeuropa/bcl-base-templates": "^0.
|
|
16
|
-
"@openeuropa/bcl-blockquote": "^0.
|
|
17
|
-
"@openeuropa/bcl-breadcrumb": "^0.
|
|
18
|
-
"@openeuropa/bcl-button": "^0.
|
|
19
|
-
"@openeuropa/bcl-button-group": "^0.
|
|
20
|
-
"@openeuropa/bcl-card": "^0.
|
|
21
|
-
"@openeuropa/bcl-card-layout": "^0.
|
|
22
|
-
"@openeuropa/bcl-carousel": "^0.
|
|
23
|
-
"@openeuropa/bcl-contact-form": "^0.
|
|
24
|
-
"@openeuropa/bcl-content-banner": "^0.
|
|
25
|
-
"@openeuropa/bcl-date-block": "^0.
|
|
26
|
-
"@openeuropa/bcl-description-list": "^0.
|
|
27
|
-
"@openeuropa/bcl-dropdown": "^0.
|
|
28
|
-
"@openeuropa/bcl-event": "^0.
|
|
29
|
-
"@openeuropa/bcl-fact-figures": "^0.
|
|
30
|
-
"@openeuropa/bcl-featured-media": "^0.
|
|
31
|
-
"@openeuropa/bcl-file": "^0.
|
|
32
|
-
"@openeuropa/bcl-footer": "^0.
|
|
33
|
-
"@openeuropa/bcl-form": "^0.
|
|
34
|
-
"@openeuropa/bcl-form-input": "^0.
|
|
35
|
-
"@openeuropa/bcl-gallery": "^0.
|
|
36
|
-
"@openeuropa/bcl-glossary": "^0.
|
|
37
|
-
"@openeuropa/bcl-group": "^0.
|
|
38
|
-
"@openeuropa/bcl-header": "^0.
|
|
39
|
-
"@openeuropa/bcl-heading": "^0.
|
|
40
|
-
"@openeuropa/bcl-icon": "^0.
|
|
41
|
-
"@openeuropa/bcl-inpage-navigation": "^0.
|
|
42
|
-
"@openeuropa/bcl-landing-page": "^0.
|
|
43
|
-
"@openeuropa/bcl-language-list": "^0.
|
|
44
|
-
"@openeuropa/bcl-language-switcher": "^0.
|
|
45
|
-
"@openeuropa/bcl-link": "^0.
|
|
46
|
-
"@openeuropa/bcl-links-block": "^0.
|
|
47
|
-
"@openeuropa/bcl-list-group": "^0.
|
|
48
|
-
"@openeuropa/bcl-listing": "^0.
|
|
49
|
-
"@openeuropa/bcl-modal": "^0.
|
|
50
|
-
"@openeuropa/bcl-multilingual": "^0.
|
|
51
|
-
"@openeuropa/bcl-navbar": "^0.
|
|
52
|
-
"@openeuropa/bcl-navigation": "^0.
|
|
53
|
-
"@openeuropa/bcl-news": "^0.
|
|
54
|
-
"@openeuropa/bcl-offcanvas": "^0.
|
|
55
|
-
"@openeuropa/bcl-page": "^0.
|
|
56
|
-
"@openeuropa/bcl-pagination": "^0.
|
|
57
|
-
"@openeuropa/bcl-person": "^0.
|
|
58
|
-
"@openeuropa/bcl-placeholder": "^0.
|
|
59
|
-
"@openeuropa/bcl-progress": "^0.
|
|
60
|
-
"@openeuropa/bcl-project": "^0.
|
|
61
|
-
"@openeuropa/bcl-project-status": "^0.
|
|
62
|
-
"@openeuropa/bcl-recent-activities": "^0.
|
|
63
|
-
"@openeuropa/bcl-search": "^0.
|
|
64
|
-
"@openeuropa/bcl-search-form": "^0.
|
|
65
|
-
"@openeuropa/bcl-select": "^0.
|
|
66
|
-
"@openeuropa/bcl-spinner": "^0.
|
|
67
|
-
"@openeuropa/bcl-subscription": "^0.
|
|
68
|
-
"@openeuropa/bcl-subscription-block": "^0.
|
|
69
|
-
"@openeuropa/bcl-table": "^0.
|
|
70
|
-
"@openeuropa/bcl-textarea": "^0.
|
|
71
|
-
"@openeuropa/bcl-timeline": "^0.
|
|
72
|
-
"@openeuropa/bcl-toast": "^0.
|
|
73
|
-
"@openeuropa/bcl-user": "^0.
|
|
11
|
+
"@openeuropa/bcl-accordion": "^0.25.0",
|
|
12
|
+
"@openeuropa/bcl-alert": "^0.25.0",
|
|
13
|
+
"@openeuropa/bcl-badge": "^0.25.0",
|
|
14
|
+
"@openeuropa/bcl-banner": "^0.25.0",
|
|
15
|
+
"@openeuropa/bcl-base-templates": "^0.25.0",
|
|
16
|
+
"@openeuropa/bcl-blockquote": "^0.25.0",
|
|
17
|
+
"@openeuropa/bcl-breadcrumb": "^0.25.0",
|
|
18
|
+
"@openeuropa/bcl-button": "^0.25.0",
|
|
19
|
+
"@openeuropa/bcl-button-group": "^0.25.0",
|
|
20
|
+
"@openeuropa/bcl-card": "^0.25.0",
|
|
21
|
+
"@openeuropa/bcl-card-layout": "^0.25.0",
|
|
22
|
+
"@openeuropa/bcl-carousel": "^0.25.0",
|
|
23
|
+
"@openeuropa/bcl-contact-form": "^0.25.0",
|
|
24
|
+
"@openeuropa/bcl-content-banner": "^0.25.0",
|
|
25
|
+
"@openeuropa/bcl-date-block": "^0.25.0",
|
|
26
|
+
"@openeuropa/bcl-description-list": "^0.25.0",
|
|
27
|
+
"@openeuropa/bcl-dropdown": "^0.25.0",
|
|
28
|
+
"@openeuropa/bcl-event": "^0.25.0",
|
|
29
|
+
"@openeuropa/bcl-fact-figures": "^0.25.0",
|
|
30
|
+
"@openeuropa/bcl-featured-media": "^0.25.0",
|
|
31
|
+
"@openeuropa/bcl-file": "^0.25.0",
|
|
32
|
+
"@openeuropa/bcl-footer": "^0.25.0",
|
|
33
|
+
"@openeuropa/bcl-form": "^0.25.0",
|
|
34
|
+
"@openeuropa/bcl-form-input": "^0.25.0",
|
|
35
|
+
"@openeuropa/bcl-gallery": "^0.25.0",
|
|
36
|
+
"@openeuropa/bcl-glossary": "^0.25.0",
|
|
37
|
+
"@openeuropa/bcl-group": "^0.25.0",
|
|
38
|
+
"@openeuropa/bcl-header": "^0.25.0",
|
|
39
|
+
"@openeuropa/bcl-heading": "^0.25.0",
|
|
40
|
+
"@openeuropa/bcl-icon": "^0.25.0",
|
|
41
|
+
"@openeuropa/bcl-inpage-navigation": "^0.25.0",
|
|
42
|
+
"@openeuropa/bcl-landing-page": "^0.25.0",
|
|
43
|
+
"@openeuropa/bcl-language-list": "^0.25.0",
|
|
44
|
+
"@openeuropa/bcl-language-switcher": "^0.25.0",
|
|
45
|
+
"@openeuropa/bcl-link": "^0.25.0",
|
|
46
|
+
"@openeuropa/bcl-links-block": "^0.25.0",
|
|
47
|
+
"@openeuropa/bcl-list-group": "^0.25.0",
|
|
48
|
+
"@openeuropa/bcl-listing": "^0.25.0",
|
|
49
|
+
"@openeuropa/bcl-modal": "^0.25.0",
|
|
50
|
+
"@openeuropa/bcl-multilingual": "^0.25.0",
|
|
51
|
+
"@openeuropa/bcl-navbar": "^0.25.0",
|
|
52
|
+
"@openeuropa/bcl-navigation": "^0.25.0",
|
|
53
|
+
"@openeuropa/bcl-news": "^0.25.0",
|
|
54
|
+
"@openeuropa/bcl-offcanvas": "^0.25.0",
|
|
55
|
+
"@openeuropa/bcl-page": "^0.25.0",
|
|
56
|
+
"@openeuropa/bcl-pagination": "^0.25.0",
|
|
57
|
+
"@openeuropa/bcl-person": "^0.25.0",
|
|
58
|
+
"@openeuropa/bcl-placeholder": "^0.25.0",
|
|
59
|
+
"@openeuropa/bcl-progress": "^0.25.0",
|
|
60
|
+
"@openeuropa/bcl-project": "^0.25.0",
|
|
61
|
+
"@openeuropa/bcl-project-status": "^0.25.0",
|
|
62
|
+
"@openeuropa/bcl-recent-activities": "^0.25.0",
|
|
63
|
+
"@openeuropa/bcl-search": "^0.25.0",
|
|
64
|
+
"@openeuropa/bcl-search-form": "^0.25.0",
|
|
65
|
+
"@openeuropa/bcl-select": "^0.25.0",
|
|
66
|
+
"@openeuropa/bcl-spinner": "^0.25.0",
|
|
67
|
+
"@openeuropa/bcl-subscription": "^0.25.0",
|
|
68
|
+
"@openeuropa/bcl-subscription-block": "^0.25.0",
|
|
69
|
+
"@openeuropa/bcl-table": "^0.25.0",
|
|
70
|
+
"@openeuropa/bcl-textarea": "^0.25.0",
|
|
71
|
+
"@openeuropa/bcl-timeline": "^0.25.0",
|
|
72
|
+
"@openeuropa/bcl-toast": "^0.25.0",
|
|
73
|
+
"@openeuropa/bcl-user": "^0.25.0",
|
|
74
74
|
"copyfiles": "2.4.1",
|
|
75
75
|
"rimraf": "3.0.2"
|
|
76
76
|
},
|
|
@@ -93,5 +93,5 @@
|
|
|
93
93
|
"design-system",
|
|
94
94
|
"twig"
|
|
95
95
|
],
|
|
96
|
-
"gitHead": "
|
|
96
|
+
"gitHead": "f50c7dfeab8695bbb5c18d5f7d5304509512268a"
|
|
97
97
|
}
|
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
{#
|
|
4
4
|
Parameters:
|
|
5
|
+
- title (string) (default: '')
|
|
6
|
+
- title_tag (string) (default: 'h2')
|
|
7
|
+
- title_link: (link object) (default: {})
|
|
8
|
+
- title_attributes: (drupal attrs)
|
|
5
9
|
- id (int) (default: random(1000))
|
|
6
10
|
- flush (boolean) (default: false)
|
|
7
11
|
- items (array) (default: []): format: [
|
|
@@ -16,6 +20,10 @@
|
|
|
16
20
|
- attributes (drupal attrs)
|
|
17
21
|
#}
|
|
18
22
|
|
|
23
|
+
{% set _title = title|default('') %}
|
|
24
|
+
{% set _title_tag = title_tag|default('h2') %}
|
|
25
|
+
{% set _title_link = title_link|default({}) %}
|
|
26
|
+
{% set _title_attributes = title_attributes ?: create_attribute() %}
|
|
19
27
|
{% set _id = id|default(random(1000)) %}
|
|
20
28
|
{% set _flush = flush|default(false) %}
|
|
21
29
|
{% set _items = items|default([]) %}
|
|
@@ -35,6 +43,15 @@
|
|
|
35
43
|
<div
|
|
36
44
|
{{ attributes }}
|
|
37
45
|
>
|
|
46
|
+
{%- if _title is not empty -%}
|
|
47
|
+
{% include '@oe-bcl/bcl-heading/heading.html.twig' with {
|
|
48
|
+
title: _title,
|
|
49
|
+
title_tag: _title_tag,
|
|
50
|
+
title_link: _title_link,
|
|
51
|
+
attributes: _title_attributes,
|
|
52
|
+
} only %}
|
|
53
|
+
{%- endif -%}
|
|
54
|
+
|
|
38
55
|
{% for _item in _items %}
|
|
39
56
|
{% set _open_item = _open_item_id == loop.index %}
|
|
40
57
|
{% set _button_classes = ['accordion-button'] %}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
{% spaceless %}
|
|
2
2
|
|
|
3
3
|
{# Parameters:
|
|
4
|
+
- title (string) (default: '')
|
|
5
|
+
- title_tag (string) (default: 'h2')
|
|
6
|
+
- title_link: (link object) (default: {})
|
|
7
|
+
- title_attributes: (drupal attrs)
|
|
4
8
|
- quote (string) (default: '')
|
|
5
9
|
- attribution (string) (default: '')
|
|
6
10
|
- cite (string) (default: '')
|
|
@@ -9,6 +13,10 @@
|
|
|
9
13
|
- attributes (drupal attrs)
|
|
10
14
|
#}
|
|
11
15
|
|
|
16
|
+
{% set _title = title|default('') %}
|
|
17
|
+
{% set _title_tag = title_tag|default('h2') %}
|
|
18
|
+
{% set _title_link = title_link|default({}) %}
|
|
19
|
+
{% set _title_attributes = title_attributes ?: create_attribute() %}
|
|
12
20
|
{% set _quote = quote|default('') %}
|
|
13
21
|
{% set _attribution = attribution|default('') %}
|
|
14
22
|
{% set _cite = cite|default('') %}
|
|
@@ -37,6 +45,15 @@
|
|
|
37
45
|
|
|
38
46
|
{% set attributes = attributes.addClass(_classes) %}
|
|
39
47
|
|
|
48
|
+
{%- if _title is not empty -%}
|
|
49
|
+
{% include '@oe-bcl/bcl-heading/heading.html.twig' with {
|
|
50
|
+
title: _title,
|
|
51
|
+
title_tag: _title_tag,
|
|
52
|
+
title_link: _title_link,
|
|
53
|
+
attributes: _title_attributes,
|
|
54
|
+
} only %}
|
|
55
|
+
{%- endif -%}
|
|
56
|
+
|
|
40
57
|
<figure
|
|
41
58
|
{{ attributes }}
|
|
42
59
|
>
|
|
@@ -28,9 +28,10 @@
|
|
|
28
28
|
- horizontal (boolean) (default: false)
|
|
29
29
|
- horizontal_grid (object) (default: {})
|
|
30
30
|
format: {
|
|
31
|
-
left_col_classes (default: 'col
|
|
32
|
-
right_col_classes (default: 'col
|
|
31
|
+
left_col_classes (default: 'bcl-card-start-col')
|
|
32
|
+
right_col_classes (default: 'col')
|
|
33
33
|
gutter (default: '')
|
|
34
|
+
gutter (default: '') - options: ['small', 'large']
|
|
34
35
|
}
|
|
35
36
|
- variant (string) (default: '')
|
|
36
37
|
- border_variant (string) (default: '')
|
|
@@ -63,8 +64,9 @@
|
|
|
63
64
|
{% set _variant = variant|default('') %}
|
|
64
65
|
{% set _horizontal = horizontal|default(false) %}
|
|
65
66
|
{% set _horizontal_grid = horizontal_grid|default({
|
|
66
|
-
left_col_classes: 'col
|
|
67
|
-
right_col_classes: 'col
|
|
67
|
+
left_col_classes: 'bcl-card-start-col',
|
|
68
|
+
right_col_classes: 'col',
|
|
69
|
+
left_col_size: '',
|
|
68
70
|
}) %}
|
|
69
71
|
{% set _border_variant = border_variant|default('') %}
|
|
70
72
|
{% set _text_color = text_color|default('') %}
|
|
@@ -170,7 +172,7 @@
|
|
|
170
172
|
<div class='{{ _body_classes }}'>
|
|
171
173
|
{% if _title is not empty %}
|
|
172
174
|
{% if _title_attributes.class is empty %}
|
|
173
|
-
{% set _title_attributes = _title_attributes.addClass('fs-
|
|
175
|
+
{% set _title_attributes = _title_attributes.addClass('fs-4') %}
|
|
174
176
|
{% endif %}
|
|
175
177
|
{% set _title_attributes = _title_attributes.addClass('card-title') %}
|
|
176
178
|
{% include '@oe-bcl/bcl-heading/heading.html.twig' with {
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
{% spaceless %}
|
|
2
2
|
|
|
3
3
|
{# Parameters:
|
|
4
|
-
-
|
|
4
|
+
- title (string) (default: '')
|
|
5
|
+
- title_tag (string) (default: 'h2')
|
|
6
|
+
- title_link: (link object) (default: {})
|
|
7
|
+
- title_attributes: (drupal attrs)
|
|
5
8
|
- autoplay (boolean) (default: true)
|
|
6
9
|
- autoinit (boolean) (default: true)
|
|
7
10
|
- dark (boolean) (default: false)
|
|
@@ -25,6 +28,10 @@
|
|
|
25
28
|
- attributes (drupal attrs)
|
|
26
29
|
#}
|
|
27
30
|
|
|
31
|
+
{% set _title = title|default('') %}
|
|
32
|
+
{% set _title_tag = title_tag|default('h2') %}
|
|
33
|
+
{% set _title_link = title_link|default({}) %}
|
|
34
|
+
{% set _title_attributes = title_attributes ?: create_attribute() %}
|
|
28
35
|
{% set _id = id|default('') %}
|
|
29
36
|
{% set _autoinit = autoinit ?? true %}
|
|
30
37
|
{% set _autoplay = autoplay ?? true %}
|
|
@@ -39,7 +46,7 @@
|
|
|
39
46
|
{% set _rounded_indicators = rounded_indicators|default(false) %}
|
|
40
47
|
{% set _disable_touch = disable_touch|default(false) %}
|
|
41
48
|
|
|
42
|
-
{% set _classes = ['carousel slide'] %}
|
|
49
|
+
{% set _classes = ['carousel', 'slide'] %}
|
|
43
50
|
|
|
44
51
|
{% if _fade %}
|
|
45
52
|
{% set _classes = _classes|merge(['carousel-fade']) %}
|
|
@@ -74,6 +81,15 @@
|
|
|
74
81
|
|
|
75
82
|
{% set attributes = attributes.addClass(_classes) %}
|
|
76
83
|
|
|
84
|
+
{%- if _title is not empty -%}
|
|
85
|
+
{% include '@oe-bcl/bcl-heading/heading.html.twig' with {
|
|
86
|
+
title: _title,
|
|
87
|
+
title_tag: _title_tag,
|
|
88
|
+
title_link: _title_link,
|
|
89
|
+
attributes: _title_attributes,
|
|
90
|
+
} only %}
|
|
91
|
+
{%- endif -%}
|
|
92
|
+
|
|
77
93
|
<div
|
|
78
94
|
{{ attributes }}
|
|
79
95
|
>
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
- image (object)
|
|
12
12
|
- image_size: (string)
|
|
13
13
|
- date: (object)
|
|
14
|
-
options: ['sm', 'md', 'lg']
|
|
14
|
+
options: ['sm', 'md', 'lg', 'xl']
|
|
15
15
|
- content: (string)
|
|
16
16
|
- badges: (array of objects of type badge)
|
|
17
17
|
- links: (array of objects of type link)
|
|
@@ -63,20 +63,23 @@
|
|
|
63
63
|
{% set _right_col_classes = 'col-md-8 col-lg-9 col-xxl-8' %}
|
|
64
64
|
|
|
65
65
|
{% if _image is not empty %}
|
|
66
|
-
{% set _left_col_classes = '
|
|
67
|
-
{% set _right_col_classes = 'col-md-8 col-lg-9 col-xxl-8' %}
|
|
66
|
+
{% set _left_col_classes = 'bcl-card-start-col' %}
|
|
68
67
|
{% set _body_classes = 'pt-4 pt-md-0 px-0 px-md-3 pb-0' %}
|
|
69
68
|
{% if _image_size == 'lg' %}
|
|
70
|
-
{% set _left_col_classes = '
|
|
71
|
-
{% set _right_col_classes = 'col-md-8' %}
|
|
69
|
+
{% set _left_col_classes = _left_col_classes ~ ' bcl-size-large' %}
|
|
70
|
+
{% set _right_col_classes = 'col-12 col-md-7 col-lg-8 col-xl-9 col-xxl-8' %}
|
|
72
71
|
{% endif %}
|
|
73
72
|
{% if _image_size == 'sm' %}
|
|
74
|
-
{% set _left_col_classes =
|
|
73
|
+
{% set _left_col_classes = _left_col_classes ~ ' bcl-size-small' %}
|
|
74
|
+
{% endif %}
|
|
75
|
+
{% if _image_size == 'xl' %}
|
|
76
|
+
{% set _left_col_classes = _left_col_classes ~ ' bcl-size-extra-large' %}
|
|
77
|
+
{% set _right_col_classes = 'col-12 col-lg-7 col-xl-8' %}
|
|
75
78
|
{% endif %}
|
|
76
79
|
{% endif %}
|
|
77
80
|
{% if _date is not empty %}
|
|
78
|
-
{% set _left_col_classes = '
|
|
79
|
-
{% set _right_col_classes = 'col-
|
|
81
|
+
{% set _left_col_classes = 'bcl-card-start-col' %}
|
|
82
|
+
{% set _right_col_classes = 'col-12 col-md col-xxl-9' %}
|
|
80
83
|
{% endif %}
|
|
81
84
|
|
|
82
85
|
{% set _horizontal_classes = {
|
|
@@ -2,37 +2,59 @@
|
|
|
2
2
|
|
|
3
3
|
{#
|
|
4
4
|
Parameters:
|
|
5
|
-
- title: (string) (default:
|
|
6
|
-
- title_tag: (string) (default:
|
|
5
|
+
- title: (string) (default: '')
|
|
6
|
+
- title_tag: (string) (default: 'h2')
|
|
7
7
|
- title_link: (link object) (default: {})
|
|
8
8
|
- title_attributes (drupal attrs)
|
|
9
|
+
- bordered (boolean) (default: '')
|
|
9
10
|
- items (array) (default: []): format: [
|
|
10
11
|
{
|
|
11
12
|
term (object or array of object) -format: {
|
|
12
13
|
icon: {} - icon object,
|
|
13
|
-
label:
|
|
14
|
+
label: ''
|
|
14
15
|
}
|
|
15
16
|
definition (block or array of string)
|
|
16
17
|
},
|
|
17
18
|
...
|
|
18
19
|
]
|
|
19
20
|
- variant (string) (default: '')
|
|
20
|
-
- option: [
|
|
21
|
+
- option: ['horizontal']
|
|
21
22
|
#}
|
|
22
23
|
|
|
23
24
|
{% set _title = title|default('') %}
|
|
24
25
|
{% set _title_tag = title_tag|default('h2') %}
|
|
25
26
|
{% set _title_link = title_link|default({}) %}
|
|
27
|
+
{% set _bordered = bordered|default(false) %}
|
|
28
|
+
{% set _title_link = title_link|default({}) %}
|
|
26
29
|
{% set _title_attributes = title_attributes ?: create_attribute() %}
|
|
27
30
|
{% set _items = items|default([]) %}
|
|
28
31
|
{% set _variant = variant|default('') %}
|
|
29
32
|
|
|
33
|
+
{% set _classes = ['bcl-description-list'] %}
|
|
34
|
+
|
|
30
35
|
{% if attributes is empty %}
|
|
31
36
|
{% set attributes = create_attribute() %}
|
|
32
37
|
{% endif %}
|
|
33
38
|
|
|
39
|
+
{% set _item_classes = '' %}
|
|
40
|
+
|
|
34
41
|
{% if _variant == 'horizontal' %}
|
|
35
|
-
{% set
|
|
42
|
+
{% set _item_classes = 'd-md-grid grid-3-9' %}
|
|
43
|
+
{% if _bordered %}
|
|
44
|
+
{% set _item_classes = _item_classes ~ ' mb-2-5 pb-2-5' %}
|
|
45
|
+
{% else %}
|
|
46
|
+
{% set _item_classes = _item_classes ~ ' mb-3' %}
|
|
47
|
+
{% endif %}
|
|
48
|
+
{% else %}
|
|
49
|
+
{% set _item_classes = 'mb-3' %}
|
|
50
|
+
{% if _bordered %}
|
|
51
|
+
{% set _item_classes = 'mb-2-5' %}
|
|
52
|
+
{% set _item_classes = _item_classes ~ ' pb-2-5' %}
|
|
53
|
+
{% endif %}
|
|
54
|
+
{% endif %}
|
|
55
|
+
|
|
56
|
+
{% if _bordered %}
|
|
57
|
+
{% set _item_classes = _item_classes ~ ' border-bottom' %}
|
|
36
58
|
{% endif %}
|
|
37
59
|
|
|
38
60
|
{% if _title is not empty %}
|
|
@@ -44,101 +66,120 @@
|
|
|
44
66
|
} only %}
|
|
45
67
|
{% endif %}
|
|
46
68
|
|
|
47
|
-
|
|
69
|
+
{% set attributes = attributes.addClass(_classes) %}
|
|
70
|
+
|
|
71
|
+
<div
|
|
48
72
|
{{ attributes }}
|
|
49
73
|
>
|
|
50
74
|
{% for _item in _items %}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
<div class="d-flex align-items-center">
|
|
73
|
-
<span class="p-2 me-2 d-inline-block rounded-1 {{ _term.color }}"></span>{{- _term.label -}}
|
|
74
|
-
</div>
|
|
75
|
-
{%- else -%}
|
|
76
|
-
{{- _term.label -}}
|
|
77
|
-
{%- endif -%}
|
|
78
|
-
</dt>
|
|
79
|
-
{% endfor %}
|
|
75
|
+
{% if loop.last and _variant != 'horizontal' %}
|
|
76
|
+
{% set _item_classes = '' %}
|
|
77
|
+
{% endif %}
|
|
78
|
+
{% if _item.term is not empty %}
|
|
79
|
+
<dl
|
|
80
|
+
{% if _item_classes is not empty %}
|
|
81
|
+
class="{{ _item_classes }}"
|
|
82
|
+
{% endif %}
|
|
83
|
+
>
|
|
84
|
+
{% if _item.term is iterable %}
|
|
85
|
+
<dt>
|
|
86
|
+
{% for _term in _item.term %}
|
|
87
|
+
{%- if _item.term|length > 1 -%}
|
|
88
|
+
<div
|
|
89
|
+
{% if _variant == 'horizontal' and _term.icon is not empty %}
|
|
90
|
+
class="d-flex"
|
|
91
|
+
{% endif %}
|
|
92
|
+
>
|
|
93
|
+
{%- endif -%}
|
|
94
|
+
{%- if _term.icon is not empty -%}
|
|
95
|
+
{% set _icon_classes = ["me-2"] %}
|
|
80
96
|
{% if _variant == 'horizontal' %}
|
|
81
|
-
|
|
97
|
+
{% set _icon_classes = _icon_classes|merge(["mt-1"]) %}
|
|
82
98
|
{% endif %}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
>
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
{{- _item.term.label -}}
|
|
104
|
-
{%- endif -%}
|
|
105
|
-
</dt>
|
|
99
|
+
{% include '@oe-bcl/bcl-icon/icon.html.twig' with _term.icon|merge({
|
|
100
|
+
attributes: create_attribute().addClass(_icon_classes)
|
|
101
|
+
}) only %}
|
|
102
|
+
<p class="mb-0 d-inline-block">{{ _term.label }}</p>
|
|
103
|
+
{%- elseif _term.color is not empty -%}
|
|
104
|
+
<div class="d-flex align-items-center">
|
|
105
|
+
<span class="p-2 me-2 d-inline-block rounded-1 {{ _term.color }}"></span>{{- _term.label -}}
|
|
106
|
+
</div>
|
|
107
|
+
{%- else -%}
|
|
108
|
+
{{- _term.label -}}
|
|
109
|
+
{%- endif -%}
|
|
110
|
+
{% if _item.term|length > 1 %}
|
|
111
|
+
</div>
|
|
112
|
+
{% endif %}
|
|
113
|
+
{% endfor %}
|
|
114
|
+
</dt>
|
|
115
|
+
{% else %}
|
|
116
|
+
<dt
|
|
117
|
+
{% if _variant == 'horizontal' and _item.term.icon is not empty %}
|
|
118
|
+
class="d-flex"
|
|
106
119
|
{% endif %}
|
|
120
|
+
>
|
|
121
|
+
{%- if _item.term.icon is not empty -%}
|
|
122
|
+
{% set _icon_classes = ["me-2"] %}
|
|
123
|
+
{% if _variant == 'horizontal' %}
|
|
124
|
+
{% set _icon_classes = _icon_classes|merge(["mt-1"]) %}
|
|
125
|
+
{% endif %}
|
|
126
|
+
{%- include '@oe-bcl/bcl-icon/icon.html.twig' with _item.term.icon|merge({
|
|
127
|
+
attributes: create_attribute().addClass(_icon_classes)
|
|
128
|
+
}) only -%}
|
|
129
|
+
<p class="mb-0 d-inline-block">{{ _item.term.label }}</p>
|
|
130
|
+
{%- elseif _item.term.color is not empty -%}
|
|
131
|
+
<div class="d-flex align-items-center">
|
|
132
|
+
<span class="p-2 me-2 d-inline-block rounded-1 {{ _item.term.color }}"></span>{{- _item.term.label -}}
|
|
133
|
+
</div>
|
|
134
|
+
{%- else -%}
|
|
135
|
+
{{- _item.term.label -}}
|
|
136
|
+
{%- endif -%}
|
|
137
|
+
</dt>
|
|
107
138
|
{% endif %}
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
139
|
+
{% endif %}
|
|
140
|
+
{% if _item.definition is not empty %}
|
|
141
|
+
{% if _item.definition is iterable %}
|
|
142
|
+
{% if _variant == 'horizontal' %}
|
|
143
|
+
<dd
|
|
144
|
+
{% if _bordered %}
|
|
145
|
+
class="mb-0"
|
|
112
146
|
{% endif %}
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
147
|
+
>
|
|
148
|
+
{% endif %}
|
|
149
|
+
{% for _definition in _item.definition %}
|
|
150
|
+
{% if _variant == 'horizontal' %}<div>{% else %}<dd>{% endif %}
|
|
151
|
+
{%- if _definition.button is defined -%}
|
|
152
|
+
{% include '@oe-bcl/bcl-button/button.html.twig' with _definition.button only %}
|
|
153
|
+
{%- elseif _definition.link is defined %}
|
|
154
|
+
{% include '@oe-bcl/bcl-link/link.html.twig' with _definition.link only -%}
|
|
155
|
+
{%- else -%}
|
|
156
|
+
{%- if _definition.icon is defined -%}
|
|
157
|
+
{%- set _icon_classes = ["me-2"] -%}
|
|
158
|
+
{%- include '@oe-bcl/bcl-icon/icon.html.twig' with _definition.icon|merge({
|
|
159
|
+
attributes: create_attribute().addClass(_icon_classes)
|
|
160
|
+
}) only -%}
|
|
161
|
+
<p class="mb-0 d-inline-block">{{ _definition.label }}</p>
|
|
119
162
|
{%- else -%}
|
|
120
|
-
{
|
|
121
|
-
{%- set _icon_classes = ["me-2"] -%}
|
|
122
|
-
{%- include '@oe-bcl/bcl-icon/icon.html.twig' with _definition.icon|merge({
|
|
123
|
-
attributes: create_attribute().addClass(_icon_classes)
|
|
124
|
-
}) only -%}
|
|
125
|
-
<p class="mb-0 d-inline-block">{{ _definition.label }}</p>
|
|
126
|
-
{%- else -%}
|
|
127
|
-
{{- _definition.label -}}
|
|
128
|
-
{%- endif -%}
|
|
163
|
+
{{- _definition.label -}}
|
|
129
164
|
{%- endif -%}
|
|
130
|
-
{
|
|
131
|
-
{%
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
{%
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
165
|
+
{%- endif -%}
|
|
166
|
+
{% if _variant == 'horizontal' %}</div>{% else %}</dd>{% endif %}
|
|
167
|
+
{% endfor %}
|
|
168
|
+
{% if _variant == 'horizontal' %}
|
|
169
|
+
</dd>
|
|
170
|
+
{% endif %}
|
|
171
|
+
{% else %}
|
|
172
|
+
<dd
|
|
173
|
+
{% if _bordered %}
|
|
174
|
+
class="mb-0"
|
|
139
175
|
{% endif %}
|
|
176
|
+
>
|
|
177
|
+
{%- block definition _item.definition -%}
|
|
178
|
+
</dd>
|
|
140
179
|
{% endif %}
|
|
180
|
+
</dl>
|
|
181
|
+
{% endif %}
|
|
141
182
|
{% endfor %}
|
|
142
|
-
</
|
|
183
|
+
</div>
|
|
143
184
|
|
|
144
185
|
{% endspaceless %}
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
{% set _title_link = title_link|default({}) %}
|
|
30
30
|
{% set _title_attributes = title_attributes ?: create_attribute() %}
|
|
31
31
|
{% set _variant = variant|default('default') %}
|
|
32
|
-
{% set
|
|
32
|
+
{% set _classes = ['bcl-fact-figures', 'bcl-fact-figures--' ~ _variant] %}
|
|
33
33
|
{% set _display_icons = display_icons ?? true %}
|
|
34
34
|
{% set _items = items|default([]) %}
|
|
35
35
|
{% set _grid_columns = grid_columns|default(1) %}
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
{% set attributes = create_attribute() %}
|
|
67
67
|
{% endif %}
|
|
68
68
|
|
|
69
|
-
{% set attributes = attributes.addClass(
|
|
69
|
+
{% set attributes = attributes.addClass(_classes) %}
|
|
70
70
|
|
|
71
71
|
<div {{ attributes }}>
|
|
72
72
|
{% if _title is not empty %}
|
|
@@ -2,8 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
{# Parameters:
|
|
4
4
|
- with_text (boolean) (default: false)
|
|
5
|
-
- title
|
|
6
|
-
- title_tag
|
|
5
|
+
- title (string) (default: '')
|
|
6
|
+
- title_tag (string) (default: 'h2')
|
|
7
|
+
- title_link: (link object) (default: {})
|
|
8
|
+
- title_attributes: (drupal attrs)
|
|
7
9
|
- image: (string) (default: "")
|
|
8
10
|
- poster_image: (string) (default: "")
|
|
9
11
|
- content: (string) (default: "")
|
|
@@ -34,6 +36,8 @@
|
|
|
34
36
|
|
|
35
37
|
{% set _title = title|default('') %}
|
|
36
38
|
{% set _title_tag = title_tag|default('h2') %}
|
|
39
|
+
{% set _title_link = title_link|default({}) %}
|
|
40
|
+
{% set _title_attributes = title_attributes ?: create_attribute() %}
|
|
37
41
|
{% set _with_text = with_text|default(false) %}
|
|
38
42
|
{% set _wrapper_classes = 'bcl-featured-item' %}
|
|
39
43
|
{% set _description = description|default('') %}
|
|
@@ -57,19 +61,27 @@
|
|
|
57
61
|
{% set attributes = create_attribute() %}
|
|
58
62
|
{% endif %}
|
|
59
63
|
|
|
64
|
+
{% if _with_text %}
|
|
65
|
+
{% set _title_attributes = _title_attributes.addClass(['fw-bold', 'mb-4']) %}
|
|
66
|
+
{% endif %}
|
|
67
|
+
|
|
60
68
|
{% set attributes = attributes.addClass(["rounded", "overflow-hidden"]) %}
|
|
61
69
|
|
|
62
70
|
{% if _with_text %}
|
|
63
71
|
<div class="{{ _wrapper_classes }}">
|
|
64
|
-
|
|
65
|
-
{% if _title is not empty %}
|
|
66
|
-
{% set _title_classes = 'fw-bold mb-4' %}
|
|
67
|
-
<{{ _title_tag }} class="{{ _title_classes }}">
|
|
68
|
-
{{- _title -}}
|
|
69
|
-
</{{ _title_tag }}>
|
|
72
|
+
<div class="row">
|
|
70
73
|
{% endif %}
|
|
71
74
|
|
|
72
|
-
|
|
75
|
+
{%- if _title is not empty -%}
|
|
76
|
+
{% include '@oe-bcl/bcl-heading/heading.html.twig' with {
|
|
77
|
+
title: _title,
|
|
78
|
+
title_tag: _title_tag,
|
|
79
|
+
title_link: _title_link,
|
|
80
|
+
attributes: _title_attributes,
|
|
81
|
+
} only %}
|
|
82
|
+
{%- endif -%}
|
|
83
|
+
|
|
84
|
+
{% if _with_text %}
|
|
73
85
|
<div class="{{ _col_classes }} order-{{ _alignment == "right" ? '1' : '2' }}">
|
|
74
86
|
{{- _description|default('') -}}
|
|
75
87
|
|
|
@@ -56,11 +56,13 @@
|
|
|
56
56
|
{% set _translation = translation|default({}) %}
|
|
57
57
|
{% set _icon_path = icon_path|default({}) %}
|
|
58
58
|
|
|
59
|
+
{% set _classes = ['bcl-file'] %}
|
|
60
|
+
|
|
59
61
|
{% if attributes is empty %}
|
|
60
62
|
{% set attributes = create_attribute() %}
|
|
61
63
|
{% endif %}
|
|
62
64
|
|
|
63
|
-
{% set attributes = attributes.addClass(
|
|
65
|
+
{% set attributes = attributes.addClass(_classes) %}
|
|
64
66
|
|
|
65
67
|
{% if _icon is not empty %}
|
|
66
68
|
{% set _container_classes = _container_classes ~ ' ms-2-5' %}
|
|
@@ -21,6 +21,8 @@
|
|
|
21
21
|
{% set _variant = variant|default('vertical') %}
|
|
22
22
|
{% set _links = links|default([])%}
|
|
23
23
|
|
|
24
|
+
{% set _classes = ['bcl-links-block'] %}
|
|
25
|
+
|
|
24
26
|
{% set _title_classes = ['pb-3', 'mb-3', 'border-bottom'] %}
|
|
25
27
|
|
|
26
28
|
{% if attributes is empty %}
|
|
@@ -31,6 +33,8 @@
|
|
|
31
33
|
{% set attributes = attributes.addClass(['bg-light', 'px-4', 'py-3', 'rounded-2']) %}
|
|
32
34
|
{% endif %}
|
|
33
35
|
|
|
36
|
+
{% set attributes = attributes.addClass(_classes) %}
|
|
37
|
+
|
|
34
38
|
<div
|
|
35
39
|
{{ attributes }}
|
|
36
40
|
>
|
|
@@ -11,6 +11,8 @@
|
|
|
11
11
|
- link: (object of type link)
|
|
12
12
|
- alignment: (string) (default: '')
|
|
13
13
|
options ['start', 'end', 'center', 'baseline', 'stretch']
|
|
14
|
+
- image_size: (string) (default: '')
|
|
15
|
+
options ['small', 'large', 'extra-large']
|
|
14
16
|
- attributes (drupal attrs)
|
|
15
17
|
#}
|
|
16
18
|
|
|
@@ -21,6 +23,7 @@
|
|
|
21
23
|
{% set _items = items|default([]) %}
|
|
22
24
|
{% set _variant = variant|default('default-1-col') %}
|
|
23
25
|
{% set _alignment = alignment|default('') %}
|
|
26
|
+
{% set _image_size = image_size|default('') %}
|
|
24
27
|
{% set _link = link|default({}) %}
|
|
25
28
|
|
|
26
29
|
{% set _classes = ['bcl-listing', 'bcl-listing--' ~ _variant] %}
|
|
@@ -52,19 +55,14 @@
|
|
|
52
55
|
{% if _items is not empty %}
|
|
53
56
|
{% for _card in _items %}
|
|
54
57
|
{% set _alignment_class = '' %}
|
|
55
|
-
{% set
|
|
56
|
-
{% set
|
|
57
|
-
{%
|
|
58
|
-
|
|
59
|
-
{%
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
{% set
|
|
63
|
-
{% set _card = _card|merge({image: _card.image|merge({
|
|
64
|
-
classes: _image_classes,
|
|
65
|
-
})}) %}
|
|
66
|
-
{% elseif _card.date is not empty %}
|
|
67
|
-
{% set _max_width = 'mw-col-date mb-3' %}
|
|
58
|
+
{% set _image_classes = _card.image.classes ?: '' %}
|
|
59
|
+
{% set _start_col_classes = 'bcl-card-start-col mb-3 mb-lg-0' %}
|
|
60
|
+
{% set _end_col_classes = 'col-12 col-md' %}
|
|
61
|
+
{% if _image_size is not empty %}
|
|
62
|
+
{% set _start_col_classes = _start_col_classes ~ ' bcl-size-' ~ _image_size %}
|
|
63
|
+
{% endif %}
|
|
64
|
+
{% if 'd-none' in _image_classes %}
|
|
65
|
+
{% set _start_col_classes = _start_col_classes ~ ' d-none d-md-block' %}
|
|
68
66
|
{% endif %}
|
|
69
67
|
{% if _alignment is not empty %}
|
|
70
68
|
{% set _alignment_class = ' align-self-' ~ _alignment %}
|
|
@@ -76,7 +74,7 @@
|
|
|
76
74
|
title_attributes: _card_title_attributes.addClass(['fs-5'])
|
|
77
75
|
}) %}
|
|
78
76
|
|
|
79
|
-
{% if _variant == 'default-1-col' %}
|
|
77
|
+
{% if _variant == 'default-1-col' or _variant == 'default-2-col' or _variant == 'default-3-col' %}
|
|
80
78
|
{% set _card_classes = [
|
|
81
79
|
'listing-item',
|
|
82
80
|
'border-bottom',
|
|
@@ -87,45 +85,18 @@
|
|
|
87
85
|
{% set _card = _card|merge({
|
|
88
86
|
horizontal: true,
|
|
89
87
|
extra_classes_body: 'p-0 pb-md-0 pb-3',
|
|
90
|
-
horizontal_grid: {
|
|
91
|
-
left_col_classes: 'col-md-3 col-lg-2 rounded ' ~ _max_width ~ _alignment_class,
|
|
92
|
-
right_col_classes: 'col-md-9 col-lg-10' ~ _alignment_class,
|
|
93
|
-
},
|
|
94
|
-
attributes: _card_attributes,
|
|
95
|
-
}) %}
|
|
96
|
-
{% endif %}
|
|
97
|
-
|
|
98
|
-
{% if _variant == 'default-2-col' or _variant == 'default-3-col' %}
|
|
99
|
-
{% set _card_classes = [
|
|
100
|
-
'listing-item',
|
|
101
|
-
'border-bottom',
|
|
102
|
-
'border-md-0',
|
|
103
|
-
'border-0',
|
|
104
|
-
] %}
|
|
105
|
-
{% set _card_attributes = _card_attributes.addClass(_card_classes) %}
|
|
106
|
-
{% set _card = _card|merge({
|
|
107
|
-
extra_classes_body: 'p-0 pb-md-0 pb-3',
|
|
108
|
-
horizontal: true,
|
|
109
88
|
attributes: _card_attributes,
|
|
89
|
+
horizontal_grid: {
|
|
90
|
+
left_col_classes: _start_col_classes ~ _alignment_class,
|
|
91
|
+
right_col_classes: _end_col_classes ~ _alignment_class,
|
|
92
|
+
}
|
|
110
93
|
}) %}
|
|
111
|
-
|
|
94
|
+
|
|
112
95
|
{% if _variant == 'default-2-col' %}
|
|
113
|
-
{% set _card = _card|merge({
|
|
114
|
-
horizontal_grid: {
|
|
115
|
-
left_col_classes: 'col-xl-3 col-md-5 ' ~ _max_width ~ _alignment_class,
|
|
116
|
-
right_col_classes: 'col-xl-9 col-md-7' ~ _alignment_class,
|
|
117
|
-
},
|
|
118
|
-
}) %}
|
|
119
96
|
{% set _card_layout = _card_layout|merge({
|
|
120
97
|
responsive_columns: 2,
|
|
121
98
|
}) %}
|
|
122
|
-
{%
|
|
123
|
-
{% set _card = _card|merge({
|
|
124
|
-
horizontal_grid: {
|
|
125
|
-
left_col_classes: 'col-lg-4 col-md-6 ' ~ _max_width ~ _alignment_class,
|
|
126
|
-
right_col_classes: 'col-lg-8 col-md-6' ~ _alignment_class,
|
|
127
|
-
},
|
|
128
|
-
}) %}
|
|
99
|
+
{% elseif _variant == 'default-3-col' %}
|
|
129
100
|
{% set _card_layout = _card_layout|merge({
|
|
130
101
|
attributes: _card_layout.attributes.addClass(['row-cols-md-2']),
|
|
131
102
|
responsive_columns: 3,
|
|
@@ -150,9 +121,19 @@
|
|
|
150
121
|
extra_classes_body: "pt-0",
|
|
151
122
|
}) %}
|
|
152
123
|
{% endif %}
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
124
|
+
{% set _card_layout = _card_layout|merge({
|
|
125
|
+
cols_extra_classes: 'mt-4-5',
|
|
126
|
+
}) %}
|
|
127
|
+
{% if _card.image is not empty %}
|
|
128
|
+
{% set _image_classes = _card.image.classes ?: '' %}
|
|
129
|
+
{% if not _alignment == 'center' %}
|
|
130
|
+
{% set _image_classes = _image_classes ? _image_classes ~ ' mb-3' : 'mb-3' %}
|
|
131
|
+
{% endif %}
|
|
132
|
+
{% set _card = _card|merge({image: _card.image|merge({
|
|
133
|
+
classes: _image_classes,
|
|
134
|
+
})}) %}
|
|
135
|
+
{% endif %}
|
|
136
|
+
|
|
156
137
|
{% endif %}
|
|
157
138
|
|
|
158
139
|
{% if _variant == 'highlight-2-col' or variant == 'highlight-3-col' %}
|
|
@@ -173,6 +154,15 @@
|
|
|
173
154
|
extra_classes_body: 'pt-0',
|
|
174
155
|
}) %}
|
|
175
156
|
{% endif %}
|
|
157
|
+
{% if _card.image is not empty %}
|
|
158
|
+
{% set _image_classes = _card.image.classes ?: '' %}
|
|
159
|
+
{% if not _alignment == 'center' %}
|
|
160
|
+
{% set _image_classes = _image_classes ? _image_classes ~ ' mb-3' : 'mb-3' %}
|
|
161
|
+
{% endif %}
|
|
162
|
+
{% set _card = _card|merge({image: _card.image|merge({
|
|
163
|
+
classes: _image_classes,
|
|
164
|
+
})}) %}
|
|
165
|
+
{% endif %}
|
|
176
166
|
{% set _card_layout = _card_layout|merge({ gutter: '4' }) %}
|
|
177
167
|
{% if variant == 'highlight-2-col' %}
|
|
178
168
|
{% set _card_layout = _card_layout|merge({ responsive_columns: 2 }) %}
|
|
@@ -5,11 +5,7 @@
|
|
|
5
5
|
{% endblock %}
|
|
6
6
|
|
|
7
7
|
{% block content %}
|
|
8
|
-
<p id="content">
|
|
9
|
-
a euismod dolor lacinia. Nam facilisis ipsum et sollicitudin imperdiet. Curabitur a efficitur ante. Phasellus non felis laoreet,
|
|
10
|
-
posuere ante ut, rhoncus tortor. Proin sed erat vel nisl luctus vulputate. Nunc tristique ultricies turpis, eu dictum enim ultrices vel.
|
|
11
|
-
Sed posuere at leo sit amet placerat. Sed dapibus viverra urna ac pretium. Praesent et laoreet erat, eget volutpat metus. Duis ac augue
|
|
12
|
-
sed tortor elementum dignissim in sit amet velit. Nullam nec viverra mi.
|
|
8
|
+
<p id="content">{{ get_dummy_text(6) }}
|
|
13
9
|
</p>
|
|
14
10
|
<h2 id="item-1" class="my-4">Section 1</h2>
|
|
15
11
|
{% if featured_item %}
|
|
@@ -26,12 +22,7 @@
|
|
|
26
22
|
|
|
27
23
|
<h2 id="item-2" class="my-4">Section 2</h2>
|
|
28
24
|
|
|
29
|
-
|
|
30
|
-
a euismod dolor lacinia. Nam facilisis ipsum et sollicitudin imperdiet. Curabitur a efficitur ante. Phasellus non felis laoreet,
|
|
31
|
-
posuere ante ut, rhoncus tortor. Proin sed erat vel nisl luctus vulputate. Nunc tristique ultricies turpis, eu dictum enim ultrices vel.
|
|
32
|
-
Sed posuere at leo sit amet placerat. Sed dapibus viverra urna ac pretium. Praesent et laoreet erat, eget volutpat metus. Duis ac augue
|
|
33
|
-
sed tortor elementum dignissim in sit amet velit. Nullam nec viverra mi.
|
|
34
|
-
</p>
|
|
25
|
+
{{ get_dummy_text(6, true) }}
|
|
35
26
|
|
|
36
27
|
{% if blockquote %}
|
|
37
28
|
{% include '@oe-bcl/bcl-blockquote/blockquote.html.twig' with blockquote only %}
|
|
@@ -43,21 +34,11 @@
|
|
|
43
34
|
{% include '@oe-bcl/bcl-timeline/timeline.html.twig' with timeline only %}
|
|
44
35
|
{% endif %}
|
|
45
36
|
|
|
46
|
-
|
|
47
|
-
a euismod dolor lacinia. Nam facilisis ipsum et sollicitudin imperdiet. Curabitur a efficitur ante. Phasellus non felis laoreet,
|
|
48
|
-
posuere ante ut, rhoncus tortor. Proin sed erat vel nisl luctus vulputate. Nunc tristique ultricies turpis, eu dictum enim ultrices vel.
|
|
49
|
-
Sed posuere at leo sit amet placerat. Sed dapibus viverra urna ac pretium. Praesent et laoreet erat, eget volutpat metus. Duis ac augue
|
|
50
|
-
sed tortor elementum dignissim in sit amet velit. Nullam nec viverra mi.
|
|
51
|
-
</p>
|
|
37
|
+
{{ get_dummy_text(8, true) }}
|
|
52
38
|
|
|
53
39
|
<h2 id="item-3" class="my-4">Section 3</h2>
|
|
54
40
|
|
|
55
|
-
|
|
56
|
-
a euismod dolor lacinia. Nam facilisis ipsum et sollicitudin imperdiet. Curabitur a efficitur ante. Phasellus non felis laoreet,
|
|
57
|
-
posuere ante ut, rhoncus tortor. Proin sed erat vel nisl luctus vulputate. Nunc tristique ultricies turpis, eu dictum enim ultrices vel.
|
|
58
|
-
Sed posuere at leo sit amet placerat. Sed dapibus viverra urna ac pretium. Praesent et laoreet erat, eget volutpat metus. Duis ac augue
|
|
59
|
-
sed tortor elementum dignissim in sit amet velit. Nullam nec viverra mi.
|
|
60
|
-
</p>
|
|
41
|
+
{{ get_dummy_text(4, true) }}
|
|
61
42
|
|
|
62
43
|
{% include '@oe-bcl/bcl-file/file.html.twig' with files[0] only %}
|
|
63
44
|
{% include '@oe-bcl/bcl-file/file.html.twig' with files[1] only %}
|
|
@@ -11,11 +11,13 @@
|
|
|
11
11
|
{% set _content = content|default('') %}
|
|
12
12
|
{% set _button = button|default({}) %}
|
|
13
13
|
|
|
14
|
+
{% set _classes = ['bcl-subscription-block', 'bg-light', 'px-4-5', 'pt-4', 'pb-4-5'] %}
|
|
15
|
+
|
|
14
16
|
{% if attributes is empty %}
|
|
15
17
|
{% set attributes = create_attribute() %}
|
|
16
18
|
{% endif %}
|
|
17
19
|
|
|
18
|
-
{% set attributes = attributes.addClass(
|
|
20
|
+
{% set attributes = attributes.addClass(_classes) %}
|
|
19
21
|
|
|
20
22
|
<div
|
|
21
23
|
{{ attributes }}
|
|
@@ -13,13 +13,14 @@
|
|
|
13
13
|
- infos (array of strings) (default: [])
|
|
14
14
|
#}
|
|
15
15
|
|
|
16
|
-
{% set _picture_classes =
|
|
16
|
+
{% set _picture_classes = 'rounded-pill' %}
|
|
17
|
+
{% set _classes = ['bcl-user-compact', 'd-flex', 'mb-3'] %}
|
|
17
18
|
|
|
18
19
|
{% if attributes is empty %}
|
|
19
20
|
{% set attributes = create_attribute() %}
|
|
20
21
|
{% endif %}
|
|
21
22
|
|
|
22
|
-
{% set attributes = attributes.addClass(
|
|
23
|
+
{% set attributes = attributes.addClass(_classes) %}
|
|
23
24
|
|
|
24
25
|
{% if picture is not empty and picture.classes is not empty %}
|
|
25
26
|
{% set _picture_classes = _picture_classes ~ ' ' ~ picture.classes %}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{% extends "@oe-bcl/bcl-base-templates/content-type.html.twig" %}
|
|
2
2
|
|
|
3
3
|
{% block content %}
|
|
4
|
-
|
|
4
|
+
{{ get_dummy_text(4, true) }}
|
|
5
5
|
<ul class="mb-4-5">
|
|
6
|
-
<li>
|
|
7
|
-
<li>
|
|
8
|
-
<li>
|
|
6
|
+
<li>{{ get_dummy_text() }}</li>
|
|
7
|
+
<li>{{ get_dummy_text() }}</li>
|
|
8
|
+
<li>{{ get_dummy_text() }}</li>
|
|
9
9
|
</ul>
|
|
10
10
|
{% include '@oe-bcl/bcl-form/form.html.twig' with terms_form only %}
|
|
11
11
|
{% endblock %}
|
|
@@ -100,10 +100,10 @@
|
|
|
100
100
|
<h1 class="my-4-5">Edit my profile</h1>
|
|
101
101
|
<h2 class="mb-4-5">Profile image</h2>
|
|
102
102
|
<div class="row">
|
|
103
|
-
<div class="
|
|
103
|
+
<div class="bcl-card-start-col bcl-size-large mx-auto ms-md-2-5">
|
|
104
104
|
<img src="https://picsum.photos/seed/1002/400/400" class="img-fluid" alt="profile-image">
|
|
105
105
|
</div>
|
|
106
|
-
<div class="col align-self-center">
|
|
106
|
+
<div class="col-12 col-md align-self-center">
|
|
107
107
|
<div class="mt-3 text-center text-md-start">
|
|
108
108
|
{% include '@oe-bcl/bcl-form-input/form-input.html.twig' with edit.image_upload_input only %}
|
|
109
109
|
<div class="d-md-inline-block">
|