You are here

sooperthemes-gridstack-gridstack-formatter.html.twig in Sooperthemes GridStack 8

Default theme implementation to format image field width Gridstack.

File

templates/sooperthemes-gridstack-gridstack-formatter.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation to format image field width Gridstack.
  5. */
  6. #}
  7. {% if url %}<a href="{{ url }}">{% endif %}
  8. <div class="sooperthemes-gridstack__img" style="background-image: url({{ image_url }})"></div>
  9. {% if url %}</a>{% endif %}