templates/modul/hizmetler.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 %}{{ sayfa.title }}{% endblock %}
  4. {% block keywords %}{{ sayfa.keywords }}{% endblock %}
  5. {% block description %}{{ sayfa.description }}{% endblock %}
  6. {% block title2 %}{{ sayfa.title }}{% endblock %}
  7. {% block description2 %}{{ sayfa.description }}{% endblock %}
  8. {% block image_alt %}{{ sayfa.title }}{% endblock %}
  9. {% block title3 %}{{ sayfa.title }}{% endblock %}
  10. {% block description3 %}{{ sayfa.description }}{% endblock %}
  11. {% block image %}{{ sayfa.dilgrup|site_bannerGetir|raw }}{% endblock %}
  12. {% block image2 %}{{ sayfa.dilgrup|site_bannerGetir|raw }}{% endblock %}
  13.  
  14.  
  15. {% block body %}
  16. {% include 'siteBase/breadcrumbs.html.twig' %}
  17.  
  18.   {#
  19. -- Sayfa Verileri : "icerikler" adında bir dizi döndürülüyor. Dizi elemanları : seourl, sayfabaşlığı, anahtarkelimeler, sayfaaçıklaması, adı, metin, resimler, link
  20. -- Kategori Verileri : "kategoriler" adında bir dizi döndürülüyor. Dizi elemanları : adi, resim, link
  21. ** Eğer kategoriler dizisi boş değilse icerikler boş gelecektir. Eğer boş ise içerikler dönecektir.
  22. ** 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')"
  23. ----------------------------------------------------
  24. #}
  25.  <section class="ep-services-section pt-120 content">
  26.       <div class="container">
  27.         <div class="row g-4">
  28.             {% if kategoriler|length>0 %}
  29.              {%for veri in kategoriler %}
  30.            <div class="col-xl-4 col-md-6 mx-auto mx-xl-0 fade-up">
  31.             <div class="service-item position-relative rounded-20 overflow-hidden bg-control"
  32.               data-background="assets/img/services/service-img-1.jpg">
  33.               <div class="overlay w-100 h-100">
  34.                 {{ veri.resim|split(',')[0]|imgOlustur(300,10,'cover')|raw }}
  35.                 <div class="service-title pb-20 mb-20 d-flex align-items-center mt-20">
  36.                   <h4 class="heading-four">{{ veri.adi|html_entity_decode|raw }}</h4>
  37.                 </div>
  38.                
  39.                 <div class="pt-30">
  40.                   <a href="{{ veri.link }}" class="theme-btn transparent-btn">
  41.                     Daha Fazla
  42.                     <span class="btn-icon">
  43.                       <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none">
  44.                         <path fill-rule="evenodd" clip-rule="evenodd" d="M17.2901 10.625H2.70703V9.375H17.2901V10.625Z"
  45.                           fill="currentColor" />
  46.                         <path fill-rule="evenodd" clip-rule="evenodd"
  47.                           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"
  48.                           fill="currentColor" />
  49.                         <path fill-rule="evenodd" clip-rule="evenodd"
  50.                           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"
  51.                           fill="currentColor" />
  52.                       </svg>
  53.                     </span>
  54.                   </a>
  55.                 </div>
  56.               </div>
  57.             </div>
  58.           </div>
  59.           {%endfor%}
  60.             {%else%}
  61.             {%for veri in icerikler %}
  62.           <div class="col-xl-4 col-md-6 mx-auto mx-xl-0 fade-up">
  63.             <div class="service-item position-relative rounded-20 overflow-hidden bg-control"
  64.               data-background="assets/img/services/service-img-1.jpg">
  65.               <div class="overlay w-100 h-100">
  66.                 {{ veri.resimler|split(',')[0]|imgOlustur(300,10,'cover')|raw }}
  67.                 <div class="service-title pb-20 mb-20 d-flex align-items-center mt-20">
  68.                   <h4 class="heading-four">{{ veri.adi|html_entity_decode|raw }}</h4>
  69.                 </div>
  70.                 <p>{{ veri.metin|html_entity_decode|striptags|slice(0,75) }}...</p>
  71.                 <div class="pt-30">
  72.                   <a href="{{ veri.link }}" class="theme-btn transparent-btn">
  73.                     Daha Fazla
  74.                     <span class="btn-icon">
  75.                       <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none">
  76.                         <path fill-rule="evenodd" clip-rule="evenodd" d="M17.2901 10.625H2.70703V9.375H17.2901V10.625Z"
  77.                           fill="currentColor" />
  78.                         <path fill-rule="evenodd" clip-rule="evenodd"
  79.                           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"
  80.                           fill="currentColor" />
  81.                         <path fill-rule="evenodd" clip-rule="evenodd"
  82.                           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"
  83.                           fill="currentColor" />
  84.                       </svg>
  85.                     </span>
  86.                   </a>
  87.                 </div>
  88.               </div>
  89.             </div>
  90.           </div>
  91.           {%endfor%}
  92.           {%endif%}
  93.           
  94.           
  95.           
  96.           
  97.           
  98.           
  99.         </div>
  100.       </div>
  101.     </section>
  102.                     
  103.                     {% endblock %}
  104. {% block javascripts %}{% endblock %}