Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit 0f165d89 authored by escuriola's avatar escuriola
Browse files

OEL-1147: Replace bcl_block and bcl_title twig functions.

parent 7bb597fc
No related branches found
No related tags found
1 merge request!81OEL-1147 - Footer
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
'items': [ 'items': [
{ {
'type': 'content', 'type': 'content',
'content': bcl_block('whitelabel_eu_logo_block'), 'content': drupal_block('whitelabel_eu_logo_block'),
}, },
], ],
}, },
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
'items': [ 'items': [
{ {
'type': 'content', 'type': 'content',
'content': bcl_title(corporate_footer.contact_title, 'fw-bold border-bottom pb-2 mb-2'), 'content': _self.bcl_title(corporate_footer.contact_title, 'fw-bold border-bottom pb-2 mb-2'),
}, },
{ {
'type': 'links', 'type': 'links',
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
}, },
{ {
'type': 'content', 'type': 'content',
'content': bcl_title(corporate_footer.social_media_title, 'fw-bold border-bottom pb-2 pt-3 mb-2'), 'content': _self.bcl_title(corporate_footer.social_media_title, 'fw-bold border-bottom pb-2 pt-3 mb-2'),
}, },
{ {
'type': 'links', 'type': 'links',
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
}, },
{ {
'type': 'content', 'type': 'content',
'content': bcl_title(corporate_footer.legal_links_title, 'fw-bold border-bottom pb-2 pt-3 mb-2'), 'content': _self.bcl_title(corporate_footer.legal_links_title, 'fw-bold border-bottom pb-2 pt-3 mb-2'),
}, },
{ {
'type': 'links', 'type': 'links',
...@@ -69,7 +69,7 @@ ...@@ -69,7 +69,7 @@
'items': [ 'items': [
{ {
'type': 'content', 'type': 'content',
'content': bcl_title(corporate_footer.institution_links_title, 'fw-bold border-bottom pb-2 mb-2'), 'content': _self.bcl_title(corporate_footer.institution_links_title, 'fw-bold border-bottom pb-2 mb-2'),
}, },
{ {
'type': 'links', 'type': 'links',
......
...@@ -5,6 +5,10 @@ ...@@ -5,6 +5,10 @@
*/ */
#} #}
{% macro bcl_title(title, classes) %}
<p class="{{ classes }}">{{ title }}</p>
{% endmacro %}
{% set _section_2 = [] %} {% set _section_2 = [] %}
{% set _section_3 = [] %} {% set _section_3 = [] %}
{# First we parse the other_links, we make a simple grid. #} {# First we parse the other_links, we make a simple grid. #}
...@@ -13,7 +17,7 @@ ...@@ -13,7 +17,7 @@
{% set _section_2 = _section_2|merge([ {% set _section_2 = _section_2|merge([
{ {
'type': 'content', 'type': 'content',
'content': bcl_title(section.label,'fw-bold border-bottom pb-2 mb-2 mt-3'), 'content': _self.bcl_title(section.label,'fw-bold border-bottom pb-2 mb-2 mt-3'),
}, },
{ {
'type': 'links', 'type': 'links',
...@@ -24,7 +28,7 @@ ...@@ -24,7 +28,7 @@
{% set _section_3 = _section_3|merge([ {% set _section_3 = _section_3|merge([
{ {
'type': 'content', 'type': 'content',
'content': bcl_title(section.label,'fw-bold border-bottom pb-2 mb-2 mt-3'), 'content': _self.bcl_title(section.label,'fw-bold border-bottom pb-2 mb-2 mt-3'),
}, },
{ {
'type': 'links', 'type': 'links',
...@@ -55,7 +59,7 @@ ...@@ -55,7 +59,7 @@
{% set _section_2 = _section_2|merge([ {% set _section_2 = _section_2|merge([
{ {
'type': 'content', 'type': 'content',
'content': bcl_title('Follow us on social media', 'fw-bold border-bottom pb-2 mb-2 mt-3'), 'content': _self.bcl_title('Follow us on social media', 'fw-bold border-bottom pb-2 mb-2 mt-3'),
}, },
{ {
'type': 'links', 'type': 'links',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment