@openeuropa/bcl-blockquote 0.4298.202511051800 → 0.4360.202601141610
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/blockquote.html.twig +17 -20
- package/package.json +2 -2
package/blockquote.html.twig
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
{% apply spaceless %}
|
|
2
|
-
|
|
3
1
|
{# Parameters:
|
|
4
2
|
- title (string) (default: '')
|
|
5
3
|
- title_tag (string) (default: 'h2')
|
|
@@ -13,7 +11,7 @@
|
|
|
13
11
|
- attributes (drupal attrs)
|
|
14
12
|
#}
|
|
15
13
|
|
|
16
|
-
{
|
|
14
|
+
{%- set _title = title|default('') %}
|
|
17
15
|
{% set _title_tag = title_tag|default('h2') %}
|
|
18
16
|
{% set _title_link = title_link|default({}) %}
|
|
19
17
|
{% set _title_attributes = title_attributes ?: create_attribute() %}
|
|
@@ -22,7 +20,7 @@
|
|
|
22
20
|
{% set _cite = cite|default('') %}
|
|
23
21
|
{% set _alignment = alignment|default('left') %}
|
|
24
22
|
|
|
25
|
-
{
|
|
23
|
+
{%- set _classes = [
|
|
26
24
|
'text-' ~ _alignment,
|
|
27
25
|
"bg-lighter",
|
|
28
26
|
"p-2",
|
|
@@ -31,19 +29,19 @@
|
|
|
31
29
|
"border-secondary"
|
|
32
30
|
] %}
|
|
33
31
|
|
|
34
|
-
{
|
|
35
|
-
{
|
|
32
|
+
{%- if _alignment == "center" %}
|
|
33
|
+
{%- set _classes = _classes|merge(["border-top"]) %}
|
|
36
34
|
{% elseif _alignment == "end" %}
|
|
37
|
-
{
|
|
35
|
+
{%- set _classes = _classes|merge(["border-end"]) %}
|
|
38
36
|
{% else %}
|
|
39
|
-
{
|
|
37
|
+
{%- set _classes = _classes|merge(["border-start"]) %}
|
|
40
38
|
{% endif %}
|
|
41
39
|
|
|
42
|
-
{
|
|
43
|
-
{
|
|
40
|
+
{%- if attributes is empty %}
|
|
41
|
+
{%- set attributes = create_attribute() %}
|
|
44
42
|
{% endif %}
|
|
45
43
|
|
|
46
|
-
{
|
|
44
|
+
{%- set attributes = attributes.addClass(_classes) %}
|
|
47
45
|
|
|
48
46
|
{%- if _title is not empty -%}
|
|
49
47
|
{% include '@oe-bcl/bcl-heading/heading.html.twig' with {
|
|
@@ -56,18 +54,17 @@
|
|
|
56
54
|
|
|
57
55
|
<figure
|
|
58
56
|
{{ attributes }}
|
|
59
|
-
>
|
|
60
|
-
<blockquote class="blockquote mb-2">
|
|
61
|
-
<p>{{- _quote -}}</p>
|
|
57
|
+
>{# -#}
|
|
58
|
+
<blockquote class="blockquote mb-2">{# -#}
|
|
59
|
+
<p>{{- _quote -}}</p>{# -#}
|
|
62
60
|
</blockquote>
|
|
63
|
-
{
|
|
61
|
+
{%- if _attribution is not empty -%}
|
|
64
62
|
<figcaption class="blockquote-footer m-0">
|
|
65
63
|
{{- _attribution -}}
|
|
66
|
-
{% if _cite is not empty
|
|
64
|
+
{% if _cite is not empty -%}
|
|
67
65
|
<cite title="{{ _cite }}">{{- _cite -}}</cite>
|
|
68
|
-
{
|
|
66
|
+
{%- endif -%}
|
|
69
67
|
</figcaption>
|
|
70
|
-
{
|
|
68
|
+
{%- endif -%}
|
|
71
69
|
</figure>
|
|
72
|
-
|
|
73
|
-
{% endapply %}
|
|
70
|
+
{#--#}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@openeuropa/bcl-blockquote",
|
|
3
3
|
"author": "European Commission",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
|
-
"version": "0.
|
|
5
|
+
"version": "0.4360.202601141610",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
8
8
|
},
|
|
@@ -21,5 +21,5 @@
|
|
|
21
21
|
"design-system",
|
|
22
22
|
"twig"
|
|
23
23
|
],
|
|
24
|
-
"gitHead": "
|
|
24
|
+
"gitHead": "2caf9255f88587416f6e83e572a1f20e4cf206f5"
|
|
25
25
|
}
|