2014-06-13 02:52:19 +00:00
|
|
|
{#
|
|
|
|
/**
|
|
|
|
* @file
|
|
|
|
* Default theme implementation for an image field widget.
|
|
|
|
*
|
|
|
|
* Available variables:
|
|
|
|
* - attributes: HTML attributes for the containing element.
|
|
|
|
* - data: Render elements of the image widget.
|
|
|
|
*
|
|
|
|
* @see template_preprocess_image_widget()
|
|
|
|
*
|
|
|
|
* @ingroup themeable
|
|
|
|
*/
|
|
|
|
#}
|
|
|
|
<div{{ attributes }}>
|
|
|
|
{% if data.preview %}
|
2015-02-06 13:34:59 +00:00
|
|
|
<div>
|
2014-06-13 02:52:19 +00:00
|
|
|
{{ data.preview }}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2015-02-06 13:34:59 +00:00
|
|
|
<div>
|
2014-06-13 02:52:19 +00:00
|
|
|
{# Render widget data without the image preview that was output already. #}
|
|
|
|
{{ data|without('preview') }}
|
|
|
|
</div>
|
|
|
|
</div>
|