{% set customLinkDefined = customLink is defined and customLink is not empty %}
{% set customAnchorDefined = customAnchor is defined and customAnchor is not empty %}
{% if customLinkDefined %}
<sulu-link href="{{ customAnchorDefined ? '%s%s'|format(customLink, customAnchor) : customLink }}">
{% else %}
<a href="{{ link }}">
{% endif %}
<img class="w-100" src="{{ image }}" alt="">
<div class="bg-darker-blue text-white card-small" data-match-height="card-small">
<div class="p-3">
{% if (title is defined) %}
<h5>{{ title }}</h5>
{% endif %}
{% if (text is defined) %}
<span>{{ text|raw }}</span>
{% endif %}
</div>
</div>
{% if customLinkDefined %}
</sulu-link>
{% else %}
</a>
{% endif %}