{# Image Grid ========== #} {# -- Macros -- #} {% import '_macros/_macro-image.html' as macroImage %} {# -- Set Vars -- #} {% set classname = name is defined and name is not empty ? name : 'm-imageGrid' %} {% set images = data.singleImages is defined ? data.singleImages %} {% set settings = data.settingsImageGrid is defined ? data.settingsImageGrid %} {% set columns = settings.columns is defined ? ' ' ~ classname ~ '--' ~ settings.columns ~ 'columns' %} {% if settings.imageRatio is defined %} {% switch settings.imageRatio %} {% case "landscape" %} {% set ratio = '16:10' %} {% case "square" %} {% set ratio = '1:1' %} {% case "portrait" %} {% set ratio = '10:16' %} {% endswitch %} {% else %} {% set ratio = '' %} {% endif %} {# Modul #}