@openeuropa/bcl-base-templates 0.14.0 → 0.15.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.
@@ -6,7 +6,6 @@
6
6
  - with_footer (boolean) (default: false)
7
7
  - with_banner (boolean) (default: false)
8
8
  - with_sidebar (boolean) (default: false)
9
- - title (string) (default: '')
10
9
  - columns (string) (default: 3-9 )
11
10
  - content_type (string) (default: '')
12
11
  - attributes (drupal attrs)
@@ -27,15 +26,14 @@
27
26
  {% set _with_banner = banner|default(false) %}
28
27
  {% set _with_sidebar = sidebar|default(false) %}
29
28
  {% set _columns = columns|default('3-9') %}
30
- {% set _title = title|default('') %}
31
29
  {% set _content_type = content_type|default('') %}
32
30
  {% set _classes = ['bcl-node-type'] %}
33
- {% set _col_classes = { left: 'col-md-3', right: 'col-12 col-lg-9' } %}
31
+ {% set _col_classes = { left: 'col-md-3', right: 'col-12 col-md-9' } %}
34
32
 
35
33
  {% if _columns == '4-8' %}
36
- {% set _col_classes = { left: 'col-md-4', right: 'col-12 col-lg-8' } %}
34
+ {% set _col_classes = { left: 'col-md-4', right: 'col-12 col-md-8' } %}
37
35
  {% elseif _columns == '2-10' %}
38
- {% set _col_classes = { left: 'col-md-2', right: 'col-12 col-lg-10' } %}
36
+ {% set _col_classes = { left: 'col-md-2', right: 'col-12 col-md-10' } %}
39
37
  {% endif %}
40
38
 
41
39
  {% if _content_type is not empty %}
@@ -47,11 +45,12 @@
47
45
  {% endif %}
48
46
 
49
47
  <main {{ attributes }}>
50
- {% if _with_banner %}
51
- {% block banner %}
52
- {% include '@oe-bcl/bcl-content-banner/content-banner.html.twig' with banner only %}
53
- {% endblock %}
54
- {% endif %}
48
+ {% if _with_banner %}
49
+ {% block banner %}
50
+ {% include '@oe-bcl/bcl-content-banner/content-banner.html.twig' with banner only %}
51
+ {% endblock %}
52
+ {% endif %}
53
+
55
54
  <div class="container mt-md-4-75 mt-4">
56
55
  <div class="row">
57
56
  {% if _with_sidebar %}
@@ -71,13 +70,13 @@
71
70
  {% block content_bottom %}
72
71
  {{ content_bottom }}
73
72
  {% endblock %}
73
+ {% block related %}
74
+ {{ related }}
75
+ {% endblock %}
74
76
  </div>
75
77
  </div>
76
78
  </main>
77
79
 
78
- {% block related %}
79
- {{ related }}
80
- {% endblock %}
81
80
  {% block feedback %}
82
81
  {{ feedback }}
83
82
  {% endblock %}
@@ -3,6 +3,7 @@
3
3
  - listing (object) (default: {})
4
4
  - pagination (object) (default: {})
5
5
  - sidebar (object) (default: '')
6
+ - page_title (string) (default: '')
6
7
  #}
7
8
 
8
9
  {% extends "@oe-bcl/bcl-base-templates/content-type.html.twig" %}
@@ -11,6 +12,7 @@
11
12
  {% set _pagination = pagination|default({}) %}
12
13
  {% set _search = search|default({}) %}
13
14
  {% set _sidebar = sidebar|default({}) %}
15
+ {% set _page_title = page_title|default({}) %}
14
16
 
15
17
  {% block content_top %}
16
18
  {% include '@oe-bcl/bcl-button/button.html.twig' with filter_button only %}
@@ -22,7 +24,7 @@
22
24
  </div>
23
25
  <h4 class="mb-4">
24
26
  <span class="text-capitalize">
25
- {{ content_type }}
27
+ {{- _page_title -}}
26
28
  </span>
27
29
  ({{ listing.items.length }})
28
30
  </h4>
package/package.json CHANGED
@@ -2,11 +2,22 @@
2
2
  "name": "@openeuropa/bcl-base-templates",
3
3
  "author": "European Commission",
4
4
  "license": "EUPL-1.2",
5
- "version": "0.14.0",
5
+ "version": "0.15.0",
6
6
  "description": "OE - BCL base templates",
7
7
  "publishConfig": {
8
8
  "access": "public"
9
9
  },
10
+ "dependencies": {
11
+ "@openeuropa/bcl-badge": "^0.15.0",
12
+ "@openeuropa/bcl-button": "^0.15.0",
13
+ "@openeuropa/bcl-content-banner": "^0.15.0",
14
+ "@openeuropa/bcl-footer": "^0.15.0",
15
+ "@openeuropa/bcl-header": "^0.15.0",
16
+ "@openeuropa/bcl-listing": "^0.15.0",
17
+ "@openeuropa/bcl-offcanvas": "^0.15.0",
18
+ "@openeuropa/bcl-pagination": "^0.15.0",
19
+ "@openeuropa/bcl-select": "^0.15.0"
20
+ },
10
21
  "repository": {
11
22
  "type": "git",
12
23
  "url": "git+https://github.com/openeuropa/bootstrap-component-library.git"
@@ -21,5 +32,5 @@
21
32
  "design-system",
22
33
  "twig"
23
34
  ],
24
- "gitHead": "b91fc0b466f8a604eda1cfd519f3be4cbbc75324"
35
+ "gitHead": "97a9f0822ee0d4d800e40aa17bf87dc698c5906c"
25
36
  }