Base theme for LMMI Journal
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

39 lines
1.2 KiB

{#
/**
* @file
* Magazine+'s theme override for the block entity refernece field for the tabs powered custom block
*
* @see magazineplus_preprocess_field__block_content__mt_background_image_block()
*/
#}
{{ attach_library('magazineplus/background-image-block') }}
{%
set classes = [
'field',
'field--name-' ~ field_name|clean_class,
'field--type-' ~ field_type|clean_class,
'field--label-' ~ label_display,
'field--mt-background-image-block',
'clearfix',
]
%}
{%
set title_classes = [
'field__label',
label_display == 'inline' ? 'inline',
]
%}
<div{{ attributes.addClass(classes) }}>
{% if not label_hidden %}
<h3{{ title_attributes.addClass(title_classes) }}>{{ label }}</h3>
{% endif %}
<div class="background-image-block__section">
<div class="background-image {{ field_mt_bg_image_positioning_value }}" style="background-image: url({{ file_url(background_image_uri) }});"></div>
<div class="background-image-overlay {{ bg_image_overlay_color }}" style="opacity: {{ bg_image_overlay_opacity }};"></div>
<div class="{{ bg_image_layout_mode }} {{ bg_image_overlay_color }}">
{% for item in items %}
{{ item.content }}
{% endfor %}
</div>
</div>
</div>