@openeuropa/bcl-listing 1.10.11 → 1.11.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/listing.html.twig +6 -5
- package/package.json +5 -5
package/listing.html.twig
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
- title_link: (link object) (default: {})
|
|
5
5
|
- title_attributes (drupal attrs)
|
|
6
6
|
- items: (card[])
|
|
7
|
+
supports image copyright via `image_copyright` and `copyright` (alias)
|
|
7
8
|
- variant: (string) (default: 'default-1-col')
|
|
8
9
|
options [ default-1-col, highlight-1-col, default-2-col, default-3-col, highlight-2-col, highlight-3-col ]
|
|
9
10
|
- link: (object of type link)
|
|
@@ -69,7 +70,7 @@
|
|
|
69
70
|
{%- set _card_attributes = card.attributes ? card.attributes : create_attribute() %}
|
|
70
71
|
{%- set _card_title_attributes = card.title_attributes ? card.title_attributes : create_attribute() %}
|
|
71
72
|
{%- set _card = _card|merge({
|
|
72
|
-
title_attributes: _card_title_attributes.addClass(['h5'])
|
|
73
|
+
title_attributes: _card_title_attributes.addClass(['h5']),
|
|
73
74
|
}) %}
|
|
74
75
|
|
|
75
76
|
{%- if _variant == 'default-1-col' or _variant == 'default-2-col' or _variant == 'default-3-col' %}
|
|
@@ -116,7 +117,7 @@
|
|
|
116
117
|
}) %}
|
|
117
118
|
{%- if _card.image is defined and _card.image is not empty %}
|
|
118
119
|
{%- set _card = _card|merge({
|
|
119
|
-
extra_classes_body:
|
|
120
|
+
extra_classes_body: _card.image_copyright is not empty ? 'pt-3' : 'pt-0',
|
|
120
121
|
}) %}
|
|
121
122
|
{%- endif %}
|
|
122
123
|
{%- set _card_layout = _card_layout|merge({
|
|
@@ -124,7 +125,7 @@
|
|
|
124
125
|
}) %}
|
|
125
126
|
{%- if _card.image is not empty %}
|
|
126
127
|
{%- set _image_classes = _card.image.classes ?: '' %}
|
|
127
|
-
{%- if not _alignment == 'center' %}
|
|
128
|
+
{%- if not _alignment == 'center' and _card.image_copyright is empty %}
|
|
128
129
|
{%- set _image_classes = _image_classes ? _image_classes ~ ' mb-3' : 'mb-3' %}
|
|
129
130
|
{%- endif %}
|
|
130
131
|
{%- set _card = _card|merge({image: _card.image|merge({
|
|
@@ -149,12 +150,12 @@
|
|
|
149
150
|
}) %}
|
|
150
151
|
{%- if _card.image is defined and _card.image is not empty %}
|
|
151
152
|
{%- set _card = _card|merge({
|
|
152
|
-
extra_classes_body: 'pt-0',
|
|
153
|
+
extra_classes_body: _card.image_copyright is not empty ? 'pt-3' : 'pt-0',
|
|
153
154
|
}) %}
|
|
154
155
|
{%- endif %}
|
|
155
156
|
{%- if _card.image is not empty %}
|
|
156
157
|
{%- set _image_classes = _card.image.classes ?: '' %}
|
|
157
|
-
{%- if not _alignment == 'center' %}
|
|
158
|
+
{%- if not _alignment == 'center' and _card.image_copyright is empty %}
|
|
158
159
|
{%- set _image_classes = _image_classes ? _image_classes ~ ' mb-3' : 'mb-3' %}
|
|
159
160
|
{%- endif %}
|
|
160
161
|
{%- set _card = _card|merge({image: _card.image|merge({
|
package/package.json
CHANGED
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
"name": "@openeuropa/bcl-listing",
|
|
3
3
|
"author": "European Commission",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
|
-
"version": "1.
|
|
5
|
+
"version": "1.11.0",
|
|
6
6
|
"description": "OE - BCL Listing",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@openeuropa/bcl-card-layout": "^1.
|
|
12
|
-
"@openeuropa/bcl-heading": "^1.
|
|
13
|
-
"@openeuropa/bcl-link": "^1.
|
|
11
|
+
"@openeuropa/bcl-card-layout": "^1.11.0",
|
|
12
|
+
"@openeuropa/bcl-heading": "^1.11.0",
|
|
13
|
+
"@openeuropa/bcl-link": "^1.11.0"
|
|
14
14
|
},
|
|
15
15
|
"repository": {
|
|
16
16
|
"type": "git",
|
|
@@ -26,5 +26,5 @@
|
|
|
26
26
|
"design-system",
|
|
27
27
|
"twig"
|
|
28
28
|
],
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "88c25456473404f881593e7c70bbb0ac99ae2d2b"
|
|
30
30
|
}
|