2014-06-13 02:52:19 +00:00
|
|
|
{#
|
|
|
|
/**
|
|
|
|
* @file
|
|
|
|
* Default theme implementation to display a formatted image field.
|
|
|
|
*
|
|
|
|
* Available variables:
|
|
|
|
* - image: A collection of image data.
|
|
|
|
* - image_style: An optional image style.
|
|
|
|
* - url: An optional URL the image can be linked to.
|
|
|
|
*
|
|
|
|
* @see template_preprocess_image_formatter()
|
|
|
|
*
|
|
|
|
* @ingroup themeable
|
|
|
|
*/
|
|
|
|
#}
|
|
|
|
{% if url %}
|
2019-06-27 21:16:01 +00:00
|
|
|
{{ link(image, url) }}
|
2014-06-13 02:52:19 +00:00
|
|
|
{% else %}
|
|
|
|
{{ image }}
|
|
|
|
{% endif %}
|