{# configuration example
###########
class: col-md-4
enabled: true
link:
enabled: false
tel: ''
mailto: ''
url: ''
route: ''
params: ''
class: ''
target: _self
img:
url: ''
alt: 'test test'
class: ''
#}
{% if canDisplayComponent(app.user, value) %}
{% set link = value.img.link is defined ? value.img.link : value.link %}
{% if link.enabled is not defined or link.enabled %}
{% set url = getItemLink(link)%}
{% if url is not same as('') %}
<a href="{{ url }}"
{% if link.class is defined %}class="{{ link.class }}"{% endif %}
{% if link.target is defined %}target="{{ link.target }}"{% endif %}>
{% endif %}
{% endif %}
{% include '/platform/component/atom/img_static.html.twig' with {'img': value.img} %}
{% if url is defined and url is not null %}
</a>
{% endif %}
{% endif %}