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

Skip to content
Snippets Groups Projects
Commit 0cf56f54 authored by drishu's avatar drishu
Browse files

OEL-579: Update oe_bootstrap_theme version.

parent 98c34ed9
No related branches found
No related tags found
1 merge request!36OEL-579 - Whitelabel - Medley branch with BCL 0.9.0 upgradel
card_search:
label: Card search page
description: Formatted card to display the search result content.
fields:
title:
type: text
label: Title of the search-card
text:
type: array
label: Text of the search-card result
image:
type: array
label: Image of the search-card
content:
type: array
label: Badges of the search-card
{% set badges = [] %}
{% if content is not empty %}
{% set badge_attr = create_attribute({'class': ['me-2']}) %}
{% for key,item in content %}
{% if key|first != '#' %}
{% set badges = badges|merge([{
'#type': 'pattern',
'#id': 'badge',
'#fields': {
label: item['#title'],
attributes: badge_attr
}
}]) %}
{% endif %}
{% endfor %}
{% endif %}
{% if image is defined and image['#markup'] is not empty %}
{% set _image = {
path: image['#markup'],
position: "top",
} %}
{% endif %}
{{ pattern('card', {
horizontal: true,
horizontal_grid: {
left_col_classes: "col-md-3",
right_col_classes: "col-md-9",
gutter: 0,
},
title: {
content: title,
classes: "mb-4",
},
text: {
content: text|render|striptags,
classes: "mb-4",
},
attributes: attributes.addClass(["border-0", "mb-5"]),
image:_image,
content: badges|render
}) }}
header_nav:
label: Header Navigation
header:
label: Header
description: A navigation section for the header
variants:
ec:
label: European Commission
eu:
label: European Union
fields:
navbar_branding:
type: array
......
{% if bcl_component_library == 'ec' %}
<header class="ec__header bcl-header">
{% else %}
<header class="bcl-header">
{% endif %}
<header class="ec__header bcl-header">
<nav class="w-100 shadow-sm navbar navbar-expand-lg navbar-light">
<div class="container">
{{ navbar_branding }}
......@@ -24,8 +20,8 @@
{{ pattern('navbar', {
navbar_left: header_left,
navbar_right: header_right,
color_set: "light",
collapse_id: "navbarNavDropdown",
color_set: 'light',
collapse_id: 'navbarNavDropdown',
attributes: attributes
}) }}
<div class="container">
......
<header class="bcl-header">
<nav class="w-100 shadow-sm navbar navbar-expand-lg navbar-light">
<div class="container">
{{ navbar_branding }}
<ul class="nav">
{{ navbar_right }}
</ul>
</div>
</nav>
<div class="bcl-header__project">
<div class="container">
{{ header_top }}
</div>
</div>
{% set attributes = {
'class': [
'bcl-header__navbar',
]
} %}
{{ pattern('navbar', {
navbar_left: header_left,
navbar_right: header_right,
color_set: 'light',
collapse_id: 'navbarNavDropdown',
attributes: attributes
}) }}
<div class="container">
{{ breadcrumbs }}
</div>
</header>
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