templates/gallery/index.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block title %}{{page.translate(locale).title}}{% endblock %}
  3. {% block meta_desc %}{{page.translate(locale).introduction[:150]|striptags|raw }}...{% endblock %}
  4. {% block body %}
  5. {% include "components/areas/page/welcome.html.twig" %}
  6. <main class="gallery-main">
  7.     <section class="page-header gallery-header">
  8.         <div class="container">
  9.             <h2 class="page-header-title">{{page.translate(locale).title}}</h2>
  10.             <div class="outline"></div>
  11.             <div class="page-header-intro">{{page.translate(locale).introduction|raw}}</div>
  12.         </div>
  13.     </section>
  14.     <section class="page-content gallery-ctn">
  15.         <div class="container">
  16.             <div class="gallery">
  17.                 <!-- FILTER -->
  18.                 <div class="gallery-cat text-uppercase">
  19.                     <ul class="list-inline">
  20.                         <li class="active"><a href="#" data-filter="*">{% trans %}Voir tout{% endtrans %}</a></li>
  21.                         {% for category in categories %}
  22.                             <li><a href="#" data-filter=".{{category.translate(locale).slug}}">{{category.translate(locale).name}}</a></li>
  23.                         {% endfor %}
  24.                     </ul>
  25.                 </div>
  26.                 <!-- END / FILTER -->
  27.                 <!-- GALLERY CONTENT -->
  28.                 <div class="gallery-content">
  29.                     <div class="row">
  30.                         <div class="gallery-isotope col-3">
  31.                             <!-- ITEM SIZE -->
  32.                             <div class="item-size "></div>
  33.                             <!-- END / ITEM SIZE -->
  34.                             {% for category in categories %}
  35.                                 {% for item in category.images|sort((a, b) => a.position <=> b.position) %}
  36.                                     <!-- ITEM -->
  37.                                     <div class="item-isotope {{category.translate(locale).slug}}">
  38.                                         <div class="wrap-box-1">
  39.                                             <div class="box-img">
  40.                                                 <a class="lightbox" href="images/gallery/{{item.url}}" data-littlelightbox-group="gallery" title="{{item.translate(locale).caption}}">
  41.                                                     <img src="images/lazy.png" data-src="images/gallery/{{item.url}}" class="img-responsive lazy" alt="{{item.translate(locale).caption}}" title="{{item.translate(locale).caption}}">
  42.                                                 </a>
  43.                                                 <p>{{item.translate(locale).caption}}</p>
  44.                                             </div>
  45.                                         </div>
  46.                                     </div>
  47.                                     <!-- END / ITEM -->
  48.                                 {% endfor %}
  49.                             {% endfor %}
  50.                         </div>
  51.                     </div>
  52.                 </div>
  53.                 <!-- GALLERY CONTENT -->
  54.             </div>
  55.         </div>
  56.     </section>
  57. </main>
  58. {% endblock %}