@openeuropa/bcl-blockquote 0.24.0 → 0.25.1

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.
@@ -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
  >
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.24.0",
5
+ "version": "0.25.1",
6
6
  "publishConfig": {
7
7
  "access": "public"
8
8
  },
@@ -21,5 +21,5 @@
21
21
  "design-system",
22
22
  "twig"
23
23
  ],
24
- "gitHead": "a46bb6bc12771da4667516dc7b0665b00504ade2"
24
+ "gitHead": "01db3de0765fee0f44e4f202f3ea7d0f2e28f742"
25
25
  }