newsplus_lite-8.x-1.x-dev/templates/image-formatter--node--field-image.html.twig
templates/image-formatter--node--field-image.html.twig
{#
/**
* @file
* Theme override to display a formatted image field.
*
* Available variables:
* - image: A collection of image data.
* - image_style: An optional image style.
* - path: An optional array containing the link 'path' and link 'options'.
* - url: An optional URL the image can be linked to.
*
* @see template_preprocess_image_formatter()
*/
#}
{% if url %}
<a class="image-popup overlayed" href="{{ url }}">{{ image }}<span class="overlay"><i class="fa fa-plus"></i></span></a>
{% else %}
{{ image }}
{% endif %}
