templates/frontend/member/_member.html.twig line 1

  1. {% if members | length > 0 %}
  2.     <h5 class="border-b-4 border-gray-200 py-2 font-bold">{{ title }}</h5>
  3.     <div class="owl-carousel owl-theme">
  4.         {% for member in members %}
  5.             <div class="item">
  6.                 <div class="text-sm px-3">{{ member.translate(app.request.locale).content | raw}}</div>
  7.             </div>
  8.         {% endfor %}
  9.     </div>
  10.     <script>
  11.         $('.owl-carousel').owlCarousel({
  12.             loop: true,
  13.             autoplay: true,
  14.             margin: 10,
  15.             responsive: {
  16.                 0: {
  17.                     items: 2
  18.                 },
  19.                 600: {
  20.                     items: 2
  21.                 },
  22.                 1000: {
  23.                     items: 2
  24.                 }
  25.             }
  26.         });
  27.     </script>
  28. {% endif %}