Skip to content
Snippets Groups Projects

Gallery - phoenix Listing Directory

  • Clone with SSH
  • Clone with HTTPS
  • Embed
  • Share
    The snippet can be accessed without any authentication.
    Authored by Gilblas Ngunte Possi
    Edited
    gallery_exemple.twig 1.13 KiB
    <div class="owl-carousel wt-list-single-provider-gallery mfp-gallery gallery  owl-btn-vertical-center bg-white">
                  {% set gallerie_de_photos = field("gallerie_de_photos", settings.post_id) %}
                  {% if gallerie_de_photos is not empty %}
                  {% for photo in gallerie_de_photos %}
       
                    <div class="item">
                        <div class="wt-list-single2-gallery-wrap">
                        	<div class="wt-list-single2-gallery-overlay"></div>
                            <div class="wt-list-single2-gallery-pic"> {% if photo is not empty %}
                                            {% set photos = la_photo(photo, 'large') %}
                                                <img src="{{ photos.0 }}" width="{{ photos.1 }}" height="{{ photos.2 }}" alt="{{ title }}" title="{{ title }}">
                                <a href="{{ photos.0 }}" class="mfp-link wt-list-single2-gallery-zoom"><i class="fa fa-arrows-alt"></i></a>
                                            {% endif %}</div>
                          
                        </div>
                    </div>
                  {% endfor %}
    {% endif %}
    </div>    
    0% or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment