templates/modul/hizmetler_kategori.html.twig line 1

Open in your IDE?
  1. {% extends 'siteBase.html.twig' %}
  2. {% block dil %}{{ app.session.get('dil')['kisa'] }}{% endblock %} {# tr or en #}
  3. {% block title %}{{ kategori.title }}{% endblock %}
  4. {% block keywords %}{{ kategori.keywords|default('') }}{% endblock %}
  5. {% block description %}{{ kategori.description|default('') }}{% endblock %}
  6. {% block title2 %}{{ kategori.title }}{% endblock %}
  7. {% block description2 %}{{ kategori.description|default('') }}{% endblock %}
  8. {% block image_alt %}{{ kategori.title }}{% endblock %}
  9. {% block title3 %}{{ kategori.title }}{% endblock %}
  10. {% block description3 %}{{ kategori.description|default('') }}{% endblock %}
  11. {% block image %}{{ 'siteYolu'|ayarlar~'storage/' }}{{ kategori.resim|default('logo.webp') }}{% endblock %}
  12. {% block image2 %}{{ 'siteYolu'|ayarlar~'storage/' }}{{ kategori.resim|default('logo.webp') }}{% endblock %}
  13. {% block body %}
  14.     {% set oncekiKategoriler = kategori.ustid|site_kategoriGeriLi(app.session.get('dil')['id'])|split('~') %}
  15.     {% include 'siteBase/breadcrumbs.html.twig' %}
  16.  
  17.   {#
  18. -- Sayfa Verileri : "icerikler" adında bir dizi döndürülüyor. Dizi elemanları : seourl, sayfabaşlığı, anahtarkelimeler, sayfaaçıklaması, adı, metin, resim, link
  19. -- Kategori Verileri : "kategoriler" adında bir dizi döndürülüyor. Dizi elemanları : adi, resim, link
  20. ** Eğer kategoriler dizisi boş değilse icerikler boş gelecektir. Eğer boş ise içerikler dönecektir.
  21. ** Resimleri çekerken sadece "ornek.jpg|imgOlustur(100,10,'cover')" filtresini kullanmalısın. Bu filtre şu özelliğe sahitir; "ornek.jpg|imgOlustur(yükseklik,radius,'cover/contain')"
  22. ----------------------------------------------------
  23. #}
  24. <section class="my-120">
  25.     <div class="container-lg">
  26.         <div class="case-studies-cards v2">
  27.             <div class="row">
  28.                 {% if kategoriler is not empty %}
  29.                     {% for kategori in kategoriler %}
  30.                         <div class="col-md-4 col-xl-4 col-sm-6" data-aos="fade-up" data-aos-duration="800" data-aos-delay="{{ loop.index0 * 200 + 100 }}">
  31.                             <div class="case-studies-card">
  32.                                 <div class="item-icon">
  33.                                   {{ kategori.resim|imgOlustur(300,10,'cover')|raw }}
  34.                                 </div>
  35.                                 <h4 class="item-title">{{ kategori.adi }}</h4>
  36.                                 <div class="all-btn">
  37.                                     <a href="{{ kategori.link }}" class="btn-p v2 btn-white rounded-full icon-v1">Daha fazla</a>
  38.                                 </div>
  39.                             </div>
  40.                         </div>
  41.                     {% endfor %}
  42.                 {% elseif icerikler is not empty %}
  43.                     {% for icerik in icerikler %}
  44.                         <div class="col-md-4 col-xl-4 col-sm-6" data-aos="fade-up" data-aos-duration="800" data-aos-delay="{{ loop.index0 * 200 + 100 }}">
  45.                             <div class="case-studies-card">
  46.                                 <div class="item-icon">
  47.                                     {{ icerik.resim|imgOlustur(300,10,'cover')|raw }}
  48.                                 </div>
  49.                                 <h4 class="item-title">{{ icerik.adi }}</h4>
  50.                                 <div class="all-btn">
  51.                                     <a href="{{ icerik.link }}" class="btn-p v2 btn-white rounded-full icon-v1">Daha fazla</a>
  52.                                 </div>
  53.                             </div>
  54.                         </div>
  55.                     {% endfor %}
  56.                 {% endif %}
  57.             </div>
  58.         </div>
  59.     </div>
  60. </section>
  61.                     
  62.                     {% endblock %}
  63. {% block javascripts %}{% endblock %}