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, resimler, 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="ep-services-section pt-120 content">
  25.       <div class="container">
  26.         <div class="row g-4">
  27.             {% if kategoriler|length>0 %}
  28.              {%for veri in kategoriler %}
  29.            <div class="col-xl-4 col-md-6 mx-auto mx-xl-0 fade-up">
  30.             <div class="service-item position-relative rounded-20 overflow-hidden bg-control"
  31.               data-background="assets/img/services/service-img-1.jpg">
  32.               <div class="overlay w-100 h-100">
  33.                 {{ veri.resim|split(',')[0]|imgOlustur(300,10,'cover')|raw }}
  34.                 <div class="service-title pb-20 mb-20 d-flex align-items-center mt-20">
  35.                   <h4 class="heading-four">{{ veri.adi|html_entity_decode|raw }}</h4>
  36.                 </div>
  37.                
  38.                 <div class="pt-30">
  39.                   <a href="{{ veri.link }}" class="theme-btn transparent-btn">
  40.                     Daha Fazla
  41.                     <span class="btn-icon">
  42.                       <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none">
  43.                         <path fill-rule="evenodd" clip-rule="evenodd" d="M17.2901 10.625H2.70703V9.375H17.2901V10.625Z"
  44.                           fill="currentColor" />
  45.                         <path fill-rule="evenodd" clip-rule="evenodd"
  46.                           d="M16.6659 9.37109C13.7263 9.37109 11.3242 11.9562 11.3242 14.7128V15.3378H12.5742V14.7128C12.5742 12.6198 14.4431 10.6211 16.6659 10.6211H17.2906V9.37109H16.6659Z"
  47.                           fill="currentColor" />
  48.                         <path fill-rule="evenodd" clip-rule="evenodd"
  49.                           d="M16.6659 10.623C13.7263 10.623 11.3242 8.03784 11.3242 5.28125V4.65625H12.5742V5.28125C12.5742 7.37423 14.4431 9.37296 16.6659 9.37296H17.2906V10.623H16.6659Z"
  50.                           fill="currentColor" />
  51.                       </svg>
  52.                     </span>
  53.                   </a>
  54.                 </div>
  55.               </div>
  56.             </div>
  57.           </div>
  58.           {%endfor%}
  59.             {%else%}
  60.             {%for veri in icerikler %}
  61.           <div class="col-xl-4 col-md-6 mx-auto mx-xl-0 fade-up">
  62.             <div class="service-item position-relative rounded-20 overflow-hidden bg-control"
  63.               data-background="assets/img/services/service-img-1.jpg">
  64.               <div class="overlay w-100 h-100">
  65.                 {{ veri.resimler|split(',')[0]|imgOlustur(300,10,'cover')|raw }}
  66.                 <div class="service-title pb-20 mb-20 d-flex align-items-center mt-20">
  67.                   <h4 class="heading-four">{{ veri.adi|html_entity_decode|raw }}</h4>
  68.                 </div>
  69.                 <p>{{ veri.metin|html_entity_decode|striptags|slice(0,75) }}...</p>
  70.                 <div class="pt-30">
  71.                   <a href="{{ veri.link }}" class="theme-btn transparent-btn">
  72.                     Daha Fazla
  73.                     <span class="btn-icon">
  74.                       <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none">
  75.                         <path fill-rule="evenodd" clip-rule="evenodd" d="M17.2901 10.625H2.70703V9.375H17.2901V10.625Z"
  76.                           fill="currentColor" />
  77.                         <path fill-rule="evenodd" clip-rule="evenodd"
  78.                           d="M16.6659 9.37109C13.7263 9.37109 11.3242 11.9562 11.3242 14.7128V15.3378H12.5742V14.7128C12.5742 12.6198 14.4431 10.6211 16.6659 10.6211H17.2906V9.37109H16.6659Z"
  79.                           fill="currentColor" />
  80.                         <path fill-rule="evenodd" clip-rule="evenodd"
  81.                           d="M16.6659 10.623C13.7263 10.623 11.3242 8.03784 11.3242 5.28125V4.65625H12.5742V5.28125C12.5742 7.37423 14.4431 9.37296 16.6659 9.37296H17.2906V10.623H16.6659Z"
  82.                           fill="currentColor" />
  83.                       </svg>
  84.                     </span>
  85.                   </a>
  86.                 </div>
  87.               </div>
  88.             </div>
  89.           </div>
  90.           {%endfor%}
  91.           {%endif%}
  92.           
  93.           
  94.           
  95.           
  96.           
  97.           
  98.         </div>
  99.       </div>
  100.     </section>
  101.                     
  102.                     {% endblock %}
  103. {% block javascripts %}{% endblock %}