{# @var craft \craft\web\twig\variables\CraftVariable #} {# @var entry \craft\elements\Entry #} {# o-imageSlider ------------------------------------------------------------ #} {# -- Set Defaults -- #} {% set defaults = { cn: 'o-imageSlider', modifiers: [], customClasses: [], data: {}, js: true, images: null, caption: null, ratio: null, } %} {# -- Merge Default with Options -- #} {% set opt = opt is defined ? defaults|merge(opt) : defaults %} {# -- Modul -- #} {% if opt.images %}
{% include '_molecules/figure/_template.html' with { opt: { image: image, ratio: opt.ratio, caption: opt.caption, captionHeadline: image.imageTitle, captionText: image.imageCaption, captionSource: image.imageSource, captionSourceUrl: image.imageSourceUrl } } only %}
{% endfor %}
{% endif %}