{% import "admin/Macros/Buttons/_button.html.twig" as button %}
{% for lang in getLangs() %} {% set affiliateLang = affiliates is defined ? getAffiliatesLangs({Affiliates: affiliates, lang: lang.shortTitle}) : {} %}
{% endfor %}
Pasifse görünmeyecektir

{% set dimensions = '540x540' %}
{% set files = [] %} {% set langs = [] %} {% for lang in affiliates.langs|default %} {% set key = lang.lang.shortTitle %} {% set langs = langs|merge({(key): lang.logoAlt}) %} {% endfor %} {% if affiliates is defined %} {% for image in affiliates.images()|filter(e => e.del == 0 and e.type == 'logo')|default([]) %} {% if image.name|default %} {% set files = files|merge([{ id: image.id, name: image.name, langs: langs, location: asset('media/affiliates/'~image.name) }]) %} {% endif %} {% endfor %} {% endif %} {{ include('admin/Common/_dropzone.html.twig', { name: 'logo', labelName: 'Logo', dimensions: dimensions, files: files, multipleDropzoneInOneSection: true, options: {acceptedFiles: '.jpeg,.jpg,.png,.webp,.gif,.bmp,.svg'} }, with_context = false) }}
{% set files = [] %} {% set langs = [] %} {% for lang in affiliates.langs|default %} {% set key = lang.lang.shortTitle %} {% set langs = langs|merge({(key): lang.imagealt}) %} {% endfor %} {% if affiliates is defined %} {% for image in affiliates.images()|filter(e => e.del == 0 and e.type == 'image')|default([]) %} {% if image.name|default %} {% set files = files|merge([{ id: image.id, name: image.name, langs: langs, location: asset('media/affiliates/'~image.name) }]) %} {% endif %} {% endfor %} {% endif %} {{ include('admin/Common/_dropzone.html.twig', { name: 'image', labelName: 'Resim', dimensions: '1900x1600', files: files, multipleDropzoneInOneSection: true, options: {acceptedFiles: '.jpeg,.jpg,.png,.webp,.gif,.bmp,.svg'} }, with_context = false) }}