templates/modul/index.html.twig line 1

Open in your IDE?
  1. {% extends 'siteBase.html.twig' %}
  2. {# Sayfa İstekleri #}
  3. {% set sBoyutlar = 'slider'|ayarlar|split('X') %}
  4. {% set sliders = ''|site_sliders %}
  5. {% block dil %}{{ app.session.get('dil')['kisa'] }}{% endblock %} {# tr or en #}
  6. {% block title %}{{ 'title'|ayarlar(app.session.get('dil')['id']) }}{% endblock %}
  7. {% block keywords %}{{ 'keywords'|ayarlar(app.session.get('dil')['id']) }}{% endblock %}
  8. {% block description %}{{ 'description'|ayarlar(app.session.get('dil')['id']) }}{% endblock %}
  9. {% block title2 %}{{ 'title'|ayarlar(app.session.get('dil')['id']) }}{% endblock %}
  10. {% block description2 %}{{ 'description'|ayarlar(app.session.get('dil')['id']) }}{% endblock %}
  11. {% block image_alt %}{{ 'title'|ayarlar(app.session.get('dil')['id']) }}{% endblock %}
  12. {% block title3 %}{{ 'title'|ayarlar(app.session.get('dil')['id']) }}{% endblock %}
  13. {% block description3 %}{{ 'description'|ayarlar(app.session.get('dil')['id']) }}{% endblock %}
  14. {% block image %}{{ 'siteYolu'|ayarlar~'storage/logo.webp' }}{% endblock %}
  15. {% block image2 %}{{ 'siteYolu'|ayarlar~'storage/logo.webp' }}{% endblock %}
  16. {% block body %}
  17.  
  18.   {#
  19. -- Slider : "sliders" adında bir dizide döndürülmektedir. Dizinin "baslik, aciklama, resim" değişkenleri bulunuyor. Bu bilgiler ile kodlamayınız.
  20. ----------------------------------------------------
  21. #}
  22. <section class="ep-banner-section gray-bg position-relative overflow-hidden">
  23.       <div class="container">
  24.         <div class="row">
  25.           <div class="col-lg-5">
  26.             <div class="banner-content position-relative text-center text-lg-start z-3">
  27.               <h5 class="sub-title pb-15 heading-five text-uppercase">{{ 'siteAdi'|ayarlar }}</h5>
  28.               <div class="banner-title position-relative">
  29.                 <h1 class="heading-one split-text right">{{ sliders[0].baslik|default('') }}</h1>
  30.               </div>
  31.               <p class="py-30">{{ sliders[0].aciklama|default('') }}</p>
  32.               <a href="{{ iletisimLink }}" class="theme-btn primary primary-bg">
  33.                 Bize Ulaşın
  34.                 <span class="btn-icon">
  35.                   <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none">
  36.                     <path fill-rule="evenodd" clip-rule="evenodd" d="M17.2901 10.625H2.70703V9.375H17.2901V10.625Z"
  37.                       fill="currentColor" />
  38.                     <path fill-rule="evenodd" clip-rule="evenodd"
  39.                       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"
  40.                       fill="currentColor" />
  41.                     <path fill-rule="evenodd" clip-rule="evenodd"
  42.                       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"
  43.                       fill="currentColor" />
  44.                   </svg>
  45.                 </span>
  46.               </a>
  47.               <div class="banner-shadow">
  48.                 <div class="shadow shadow1 position-absolute z-n1"></div>
  49.                 <div class="shadow shadow2 position-absolute z-n1"></div>
  50.               </div>
  51.             </div>
  52.           </div>
  53.           <div class="col-lg-7">
  54.             <div class="banner-image position-relative">
  55.               <div class="img position-relative reveal down">
  56.                 {{ sliders[0].resim|imgOlustur(650,0,'cover')|raw  }}
  57.               
  58.               </div>
  59.               <div class="img-shapes">
  60.                 <img class="position-absolute shape-1" src="/dist/assets/img/shape/banner-shape-1.svg" alt="banner-shape-1">
  61.                 <img class="position-absolute shape-2" src="/dist/assets/img/shape/banner-shape-2.svg" alt="banner-shape-2">
  62.                 <img class="position-absolute shape-3" src="/dist/assets/img/shape/banner-shape-3.svg" alt="banner-shape-3">
  63.               </div>
  64.             </div>
  65.           </div>
  66.         </div>
  67.       </div>
  68.     </section>{#
  69. -- Site Sayfa Verileri : "veriler[4]" adında bir dizi döndürülüyor. 0. elemanı sayfa bilgilerini içerir. 1 elemanı dizidir. Ve sayfa içeriğini döndürür. Bu bilgilere göre kodlama yapınız.  
  70. -- Modül alanları : seourl, sayfabaşlığı, anahtarkelimeler, sayfaaçıklaması, adı, metin, resimler
  71. ** 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')"
  72. ----------------------------------------------------
  73. #}
  74. <section class="ep-about-us-section gray-bg pt-100">
  75.       <div class="container">
  76.           
  77.         <div class="row g-4">
  78.           <div class="col-lg-6 align-self-center">
  79.             <div class="about-text">
  80.               <div class="section-title pb-20">
  81.                 <h5 class="heading-five subtitle text-uppercase pb-15">{{ 'siteAdi'|ayarlar }}</h5>
  82.                 <h2 class="heading-two title split-text right">{{ veriler[3][1][0].adi|html_entity_decode|raw }}</h2>
  83.               </div>
  84.               {% set metin = veriler[3][1][0].metin|split('</p>') %}
  85.             
  86.                 {{ metin[0]|html_entity_decode|raw }}</p>
  87.           <br>
  88.                 {{ metin[1]|html_entity_decode|raw }}</p>
  89.         <br>
  90.               <a href="/{{veriler[3][0].seo}}" class="theme-btn primary primary-bg">
  91.                 Daha Fazla
  92.                 <span class="btn-icon">
  93.                   <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none">
  94.                     <path fill-rule="evenodd" clip-rule="evenodd" d="M17.2901 10.625H2.70703V9.375H17.2901V10.625Z"
  95.                       fill="currentColor" />
  96.                     <path fill-rule="evenodd" clip-rule="evenodd"
  97.                       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"
  98.                       fill="currentColor" />
  99.                     <path fill-rule="evenodd" clip-rule="evenodd"
  100.                       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"
  101.                       fill="currentColor" />
  102.                   </svg>
  103.                 </span>
  104.               </a>
  105.             </div>
  106.           </div>
  107.           <div class="col-lg-6">
  108.             <div class="about-image reveal right ps-xl-4">
  109.               <img src="/storage/{{ veriler[3][1][0].resimler|split(',')[0] }}" alt="about-img" class="img-fluid w-100">
  110.             </div>
  111.           </div>
  112.         </div>
  113.       </div>
  114.     </section>
  115.  <section class="ep-services-section pt-120 content">
  116.       <div class="container">
  117.         <div class="row">
  118.             <div class="col-lg-8 mx-auto">
  119.               <div class="section-title text-center pb-60">
  120.                 <h5 class="heading-five subtitle text-uppercase pb-15">{{ 'siteAdi'|ayarlar }}</h5>
  121.                 <h2 class="heading-two title split-text right">{{ veriler[4][0].adi|html_entity_decode|raw }}</h2>
  122.               </div>
  123.             </div>
  124.           </div>
  125.         <div class="row g-4">
  126.             
  127.              {% for veri in veriler[4][1] %}
  128.           <div class="col-xl-4 col-md-6 mx-auto mx-xl-0 fade-up">
  129.             <div class="service-item position-relative rounded-20 overflow-hidden bg-control"
  130.               data-background="assets/img/services/service-img-1.jpg">
  131.               <div class="overlay w-100 h-100">
  132.                 {{ veri.resimler|split(',')[0]|imgOlustur(300,10,'cover')|raw }}
  133.                 <div class="service-title pb-20 mb-20 d-flex align-items-center mt-20">
  134.                   <h4 class="heading-four">{{ veri.adi|html_entity_decode|raw }}</h4>
  135.                 </div>
  136.                 <p>{{ veri.metin|html_entity_decode|striptags|slice(0,75) }}...</p>
  137.                 <div class="pt-30">
  138.                   <a href="{{ veri.link }}" class="theme-btn transparent-btn">
  139.                     Daha Fazla
  140.                     <span class="btn-icon">
  141.                       <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none">
  142.                         <path fill-rule="evenodd" clip-rule="evenodd" d="M17.2901 10.625H2.70703V9.375H17.2901V10.625Z"
  143.                           fill="currentColor" />
  144.                         <path fill-rule="evenodd" clip-rule="evenodd"
  145.                           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"
  146.                           fill="currentColor" />
  147.                         <path fill-rule="evenodd" clip-rule="evenodd"
  148.                           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"
  149.                           fill="currentColor" />
  150.                       </svg>
  151.                     </span>
  152.                   </a>
  153.                 </div>
  154.               </div>
  155.             </div>
  156.           </div>
  157.           {%endfor%}
  158.         
  159.           
  160.           
  161.           
  162.           
  163.           
  164.           
  165.         </div>
  166.       </div>
  167.     </section>
  168.  
  169.                     
  170.                     {% endblock %}
  171. {% block javascripts %}{% endblock %}