{#
Clefs disponibles
- enabled
- tel
- mailto
- url
- route
- params
- class
- target
- content
## Optionnel pour title_paragraph => wrapper.class
#}
{% if link.enabled is not defined or link.enabled %}
{% set url = getItemLink(link) %}
{% if app.user %}
{% set userPoint = getAvailablePointOfUser(app.user) %}
{% endif %}
{% if url is not same as('') %}
<a href="{{ url }}"
class="{% if link.button is defined %}{{ link.button }}{% elseif link.class is defined%}{{ link.class }}{% endif %}"
{% if link.target is defined %}target="{{ link.target }}"{% endif %}>
{% if link.alternative_content_no_point is defined and userPoint is defined and userPoint == 0 %}
{{ link.alternative_content_no_point|trans|raw }}
{% else %}
{{ link.content|trans|raw }}
{% endif %}
</a>
{% else %}
<span class="badge badge-danger">{{ 'link avec url non définie'|trans }}</span>
{% endif %}
{% endif %}