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.
47 lines
1.4 KiB
47 lines
1.4 KiB
{# |
|
/** |
|
* @file |
|
* Magazine+'s theme override for the block entity refernece field for the dropdowns powered custom block |
|
* |
|
* @see magazineplus_preprocess_field__block_content__mt_tabs_block() |
|
*/ |
|
#} |
|
{% |
|
set classes = [ |
|
'field', |
|
'field--name-' ~ field_name|clean_class, |
|
'field--type-' ~ field_type|clean_class, |
|
'field--label-' ~ label_display, |
|
'field--mt-dropdowns-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 %} |
|
{% for item in items %} |
|
<div class="btn-group" role="group"> |
|
<div class="dropdown"> |
|
<button class="dropdown-trigger" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> |
|
{% if item.content['#paragraph'].get('field_mt_dropdown_trigger_icon').value %} |
|
<i class="fa {{ item.content['#paragraph'].get('field_mt_dropdown_trigger_icon').value }}"> |
|
<span class="sr-only"> |
|
{{item.content['#paragraph'].get('field_mt_dropdown_trigger_icon').value}} dropdown trigger |
|
</span> |
|
</i> |
|
{% endif %} |
|
</button> |
|
<ul class="dropdown-menu dropdown-menu-right"> |
|
{{ item.content }} |
|
</ul> |
|
</div> |
|
</div> |
|
{% endfor %} |
|
</div>
|
|
|