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.

35 lines
978 B

6 years ago
{#
/**
* @file
* Magazine+'s theme override for the block entity refernece field for the dropdown custom block.
*
* @see magazineplus_preprocess_field__block_content__field_mt_dropdown_block__mt_dropdown_block()
*/
#}
{%
set classes = [
'field',
'field--name-' ~ field_name|clean_class,
'field--type-' ~ field_type|clean_class,
'field--label-' ~ label_display,
'field--entity-reference-target-type-' ~ entity_reference_target_type|clean_class,
'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="google-map-canvas"
data-attribute-mt-latitude="{{field_mt_latitude_value}}"
data-attribute-mt-longitude="{{field_mt_longitude_value}}"
data-attribute-mt-map-zoom="{{field_mt_map_zoom_value}}">
</div>
</div>