# V2_Media_Banner

    {% set mediaBanner = module('V2_Media_Banner', '') %}

    {% if mediaBanner.items is not empty %}
      <div>
        {{ include('/admin/module/setting.twig', { moduleInfo: mediaBanner.moduleInfo }) }}
        <ul class="acms-list-nostyle acms-cssgrid acms-g-cols-1 acms-g-cols-md-3">
          {% for banner in mediaBanner.items %}
            {% if banner.type == 'source' %}
              <li>{{ banner.src|safe_html }}</li>
            {% endif %}
            {% if banner.type == 'image' %}
              <li {{ banner.attr1|safe_html }}>
                <a href="{{ banner.link }}" target="{{ banner.target }}">
                  <img
                    src="{{ banner.path|resizeImg(310) }}"
                    width="{{ banner.width }}"
                    height="{{ banner.height}}"
                    class="acms-img-responsive"
                    alt="{{ banner.alt }}"
                    loading="lazy"
                    decoding="async"
                  />
                </a>
              </li>
            {% endif %}
          {% endfor %}
        </ul>
      </div>
    {% endif %}