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.   {# -- Slider : "sliders" adında bir dizide döndürülmektedir. Dizinin "baslik, aciklama, resim" değişkenleri bulunuyor. Bu bilgiler ile kodlamayınız. -- #}
  19.  <!-- Hero Section Start -->
  20.     <div class="hero hero-slider-layout">
  21.         <div class="swiper">
  22.             <div class="swiper-wrapper">
  23.                 {% for slider in sliders %}
  24.                 <!-- Hero Slide Start -->
  25.                 <div class="swiper-slide">
  26.                     <div class="hero-slide">
  27.                         <!-- Slider Image Start -->
  28.                         <div class="hero-slider-image">
  29.                             <img src="/storage/{{ slider.resim }}" alt="">
  30.                         </div>
  31.                         <!-- Slider Image End -->
  32.                         <div class="container">
  33.                             <div class="row">
  34.                                 <div class="col-lg-8">
  35.                                     <!-- Hero Content Start -->
  36.                                     <div class="hero-content">
  37.                                         <!-- Section Title Start -->
  38.                                         <div class="section-title dark-section">
  39.                                             <h3 class="wow fadeInUp">{{ 'siteAdi'|ayarlar }}</h3>
  40.                                             <h1 class="text-anime-style-3" data-cursor="-opaque">{{slider.baslik|default('') }}</h1>
  41.                                             <p class="wow fadeInUp" data-wow-delay="0.2s">{{slider.aciklama|default('') }}</p>
  42.                                         </div>
  43.                                         <!-- Section Title End -->
  44.                 
  45.                                         <!-- Hero Buttons Start -->
  46.                                         <div class="hero-btn wow fadeInUp" data-wow-delay="0.4s">
  47.                                             <a href="/{{ veriler[4][0].seo }}" class="btn-default">{{ veriler[4][0].adi }}</a>
  48.                                             <a href="{{iletisimLink}}" class="btn-default btn-highlighted">Bize Ulaşın</a>
  49.                                         </div>
  50.                                         <!-- Hero Buttons End -->
  51.                 
  52.                                        
  53.                                     </div>
  54.                                     <!-- Hero Content End -->
  55.                                 </div>
  56.                             </div>
  57.                         </div>
  58.                     </div>
  59.                 </div>
  60.                 <!-- Hero Slide End -->
  61.                 {% endfor %}
  62.               
  63.               
  64.               
  65.             </div>
  66.             <div class="hero-pagination"></div>
  67.         </div>        
  68.     </div>
  69.     <!-- Hero Section End -->
  70. <!-- About Us Section Start -->
  71. <div class="about-us">
  72.     <div class="container">
  73.         <div class="row align-items-center">
  74.             <div class="col-lg-6">
  75.                 <!-- About Us Image Start -->
  76.                 <div class="about-us-image">
  77.                     <!-- About Image Start -->
  78.                     <div class="about-image">
  79.                         <figure class="image-anime reveal">
  80.                          {{ veriler[3][1][0]['resim']|imgOlustur(600,10,'cover')|raw }}
  81.                         </figure>
  82.                     </div>
  83.                     <!-- About Image End -->
  84.                     <!-- About Customer Box Start -->
  85.                     <div class="about-customer-box">
  86.                         <h2><span class="counter">92</span>%</h2>
  87.                         <p>Mutlu Müşteri</p>
  88.                     </div>
  89.                     <!-- About Customer Box End -->
  90.                 </div>
  91.                 <!-- About Us Image End -->
  92.             </div>
  93.             
  94.             <div class="col-lg-6">
  95.                 <div class="about-us-content">
  96.                     <!-- Section Title Start -->
  97.                     <div class="section-title">
  98.                         <h3 class="wow fadeInUp">{{ 'siteAdi'|ayarlar }}</h3>
  99.                         <h2 class="text-anime-style-3" data-cursor="-opaque">{{ veriler[3][1][0]['baslik'] }}</h2>
  100.                       {% set metin = veriler[3][1][0]['metin']|split('.') %}
  101.                         <p class="wow fadeInUp" data-wow-delay="0.2s">
  102.                               {% for key,mm in metin %}
  103.                                   {% if key<4 %}
  104.                                       {{ mm|html_entity_decode|raw }}.
  105.                                 {% endif %}            
  106.                               {% endfor %}
  107.                           </p>
  108.                         <p class="wow fadeInUp" data-wow-delay="0.2s">
  109.                           {% for key,mm in metin %}
  110.                                   {% if key>=4 and key<8 %}
  111.                                       {{ mm|html_entity_decode|raw }}.
  112.                                 {% endif %}            
  113.                               {% endfor %}
  114.                         </p>
  115.                     </div>
  116.                     <!-- Section Title End -->
  117.                    
  118.                     <!-- About Us Button Start -->
  119.                     <div class="about-us-btn wow fadeInUp" data-wow-delay="0.8s">
  120.                         <a href="/{{ veriler[3][0].seo }}" class="btn-default">Daha Fazla</a>
  121.                     </div>
  122.                     <!-- About Us Button End -->
  123.                 </div>
  124.             </div>
  125.           
  126.         </div>
  127.     </div>
  128. </div>
  129. <!-- About Us Section End -->
  130. {#
  131. -- 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.  
  132. -- Modül alanları : seourl, sayfabaşlığı, anahtarkelimeler, sayfaaçıklaması, adı, metin, resim
  133. ** 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')"
  134. ----------------------------------------------------
  135. #}
  136.     <!-- Work Gallery Section Start -->
  137.     <div class="work-gallery">
  138.         <div class="container">
  139.             <div class="row section-row align-items-center">
  140.                 <div class="col-lg-6">
  141.                     <!-- Section Title Start -->
  142.                     <div class="section-title">
  143.                         <h3 class="wow fadeInUp">{{ 'siteAdi'|ayarlar }}</h3>
  144.                         <h2 class="text-anime-style-3" data-cursor="-opaque">{{ veriler[4][0].adi }}</h2>
  145.                     </div>
  146.                     <!-- Section Title End -->
  147.                 </div>
  148.                 <div class="col-lg-6">
  149.                     <!-- Section Title Content Start -->
  150.                     <div class="section-title-content">
  151.                         <p class="wow fadeInUp" data-wow-delay="0.2s">Özel bakım paketlerimizle güzellik yolculuğunuza başlayın.</p>
  152.                     </div>
  153.                     <!-- Section Title Content End -->
  154.                 </div>
  155.             </div>
  156.             <div class="row">
  157.               
  158.                   {% for hh in veriler[4][1] %}
  159.                 <div class="col-lg-4 col-md-6">
  160.                     <!-- Work Gallery Item Start -->
  161.                     <div class="work-gallery-item wow fadeInUp">
  162.                         <div class="work-gallery-img">
  163.                             <a href="{{ hh.link }}" data-cursor-text="İncele">
  164.                                 <figure class="image-anime">
  165.                                   {{ hh.resim|imgOlustur(500,10,'cover')|raw }}
  166.                                 </figure>
  167.                             </a>
  168.                         </div>
  169.                         <div class="work-gallery-content">
  170.                             <h3><a href="{{ hh.link }}">{{ hh.adi|html_entity_decode|raw }}</a></h3>
  171.                         </div>
  172.                     </div>
  173.                     <!-- Work Gallery Item End -->
  174.                 </div>
  175.               {% endfor %}
  176.               
  177.               
  178.               
  179.               
  180.             </div>
  181.           
  182.         </div>
  183.     </div>
  184.     <!-- Work Gallery Section End -->
  185.                     
  186.                     {% endblock %}
  187. {% block javascripts %}{% endblock %}