{% if currentWidget.properties.image.normal.src or currentWidget.properties.image.hover.src %} {% if currentWidget.properties.caption.hover.useFromNormal %} {% set hoverCaptionContent = currentWidget.properties.caption.normal.content %} {% else %} {% set hoverCaptionContent = currentWidget.properties.caption.hover.content %} {% endif %}
{% if currentWidget.properties.image.hover.src %}
{% if isPreview or currentWidget.properties.link.action == 'none' %} {{ currentWidget.properties.image.normal.alt }} {% else %} {{ currentWidget.properties.image.normal.alt }} {% endif %}
{% if currentWidget.properties.icon.normal %}
{% endif %} {% if currentWidget.properties.caption.normal.enabled %}
{% filter page_html_content(currentWidget.properties.caption.normal, 'widget:advanced_image.caption') %} {% include template_from_string(currentWidget.properties.caption.normal.content) %} {% endfilter %}
{% endif %}
{% if isPreview or currentWidget.properties.link.action == 'none' %} {{ currentWidget.properties.image.hover.alt }} {% else %} {{ currentWidget.properties.image.hover.alt }} {% endif %}
{% if currentWidget.properties.icon.hover %}
{% endif %} {% if currentWidget.properties.caption.hover.enabled %}
{% filter page_html_content(currentWidget.properties.caption.hover, 'widget:advanced_image.caption') %} {% include template_from_string(hoverCaptionContent) %} {% endfilter %}
{% endif %}
{% else %}
{% if isPreview or currentWidget.properties.link.action == 'none' %} {{ currentWidget.properties.image.normal.alt }} {% else %} {{ currentWidget.properties.image.normal.alt }} {% endif %}
{% if currentWidget.properties.icon.normal %}
{% endif %} {% if currentWidget.properties.caption.normal.enabled %}
{% filter page_html_content(currentWidget.properties.caption.normal, 'widget:advanced_image.caption') %} {% include template_from_string(currentWidget.properties.caption.normal.content) %} {% endfilter %}
{% endif %}
{% if currentWidget.properties.icon.hover %}
{% endif %} {% if currentWidget.properties.caption.hover.enabled %}
{% filter page_html_content(currentWidget.properties.caption.hover, 'widget:advanced_image.caption') %} {% include template_from_string(hoverCaptionContent) %} {% endfilter %}
{% endif %}
{% endif %}
{% else %}
{% endif %}