@openeuropa/bcl-subscription-block 1.10.9 → 1.10.11
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.
|
@@ -19,14 +19,14 @@ exports[`OE - Subscription Block renders correctly 1`] = `
|
|
|
19
19
|
class="pb-2"
|
|
20
20
|
>
|
|
21
21
|
<button
|
|
22
|
-
class="btn btn-secondary btn-lg"
|
|
22
|
+
class="btn btn-secondary btn-lg gap-2-5"
|
|
23
23
|
data-bs-target="#subscribeModal"
|
|
24
24
|
data-bs-toggle="modal"
|
|
25
25
|
type="button"
|
|
26
26
|
>
|
|
27
27
|
Subscribe
|
|
28
28
|
<svg
|
|
29
|
-
class="
|
|
29
|
+
class="bi icon--fluid"
|
|
30
30
|
>
|
|
31
31
|
<use
|
|
32
32
|
xlink:href="/icons.svg#chevron-right"
|
package/package.json
CHANGED
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
"name": "@openeuropa/bcl-subscription-block",
|
|
3
3
|
"author": "European Commission",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
|
-
"version": "1.10.
|
|
5
|
+
"version": "1.10.11",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
8
8
|
},
|
|
9
9
|
"description": "OE - BCL subscription block",
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@openeuropa/bcl-alert": "^1.10.
|
|
12
|
-
"@openeuropa/bcl-button": "^1.10.
|
|
13
|
-
"@openeuropa/bcl-form": "^1.10.
|
|
14
|
-
"@openeuropa/bcl-modal": "^1.10.
|
|
11
|
+
"@openeuropa/bcl-alert": "^1.10.11",
|
|
12
|
+
"@openeuropa/bcl-button": "^1.10.11",
|
|
13
|
+
"@openeuropa/bcl-form": "^1.10.11",
|
|
14
|
+
"@openeuropa/bcl-modal": "^1.10.11"
|
|
15
15
|
},
|
|
16
16
|
"repository": {
|
|
17
17
|
"type": "git",
|
|
@@ -27,5 +27,5 @@
|
|
|
27
27
|
"design-system",
|
|
28
28
|
"twig"
|
|
29
29
|
],
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "82aecf2f60f8bd8f9afd447ea0d044396f085823"
|
|
31
31
|
}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
{% apply spaceless %}
|
|
2
|
-
|
|
3
1
|
{# Parameters:
|
|
4
2
|
- title: (string) (default: '')
|
|
5
3
|
- content: (string) (default: '')
|
|
@@ -7,32 +5,31 @@
|
|
|
7
5
|
- attributes (drupal attrs)
|
|
8
6
|
#}
|
|
9
7
|
|
|
10
|
-
{
|
|
8
|
+
{%- set _title = title|default('') %}
|
|
11
9
|
{% set _content = content|default('') %}
|
|
12
10
|
{% set _button = button|default({}) %}
|
|
13
11
|
|
|
14
|
-
{
|
|
12
|
+
{%- set _classes = ['bcl-subscription-block', 'text-bg-light', 'px-4-5', 'pt-4', 'pb-4-5'] %}
|
|
15
13
|
|
|
16
|
-
{
|
|
17
|
-
{
|
|
14
|
+
{%- if attributes is empty %}
|
|
15
|
+
{%- set attributes = create_attribute() %}
|
|
18
16
|
{% endif %}
|
|
19
17
|
|
|
20
|
-
{
|
|
18
|
+
{%- set attributes = attributes.addClass(_classes) -%}
|
|
21
19
|
|
|
22
20
|
<div
|
|
23
21
|
{{ attributes }}
|
|
24
22
|
>
|
|
25
|
-
{
|
|
23
|
+
{%- if _title is not empty -%}
|
|
26
24
|
<div class="fs-2 fw-normal">{{ _title }}</div>
|
|
27
|
-
{
|
|
28
|
-
{
|
|
29
|
-
{{ _content }}
|
|
30
|
-
{
|
|
31
|
-
{
|
|
25
|
+
{%- endif %}
|
|
26
|
+
{%- if _content is not empty %}
|
|
27
|
+
{{- _content }}
|
|
28
|
+
{%- endif %}
|
|
29
|
+
{%- if _button is not empty -%}
|
|
32
30
|
<div class="pb-2">
|
|
33
|
-
{
|
|
31
|
+
{%- include '@oe-bcl/bcl-button/button.html.twig' with _button only -%}
|
|
34
32
|
</div>
|
|
35
|
-
{
|
|
33
|
+
{%- endif -%}
|
|
36
34
|
</div>
|
|
37
|
-
|
|
38
|
-
{% endapply %}
|
|
35
|
+
{#--#}
|