src/SiteBundle/Resources/views/Sites/index.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 %}{{ 'title'|ayarlar(app.session.get('dil')['id']) }}{% endblock %}
  4. {% block keywords %}{{ 'keywords'|ayarlar(app.session.get('dil')['id']) }}{% endblock %}
  5. {% block description %}{{ 'description'|ayarlar(app.session.get('dil')['id']) }}{% endblock %}
  6. {% block body %}
  7.     {#
  8.         {% set hizmetKategori = 9|site_sayfaKategori(3) %}
  9.         {% set hizmetler = 2|site_sayfaIcerik %}
  10.     #}
  11.    {# Popup Ayarları #}
  12.     {{ 0|site_popupGetir|raw }}
  13.    {# Sayfa İstekleri #}
  14.     {% set sBoyutlar = 'slider'|ayarlar|split('X') %}
  15.     {% set sliders = ''|site_sliders %}
  16.     {% set villaSecenekleri = 1|site_villaKategori %}
  17.     {% set ilanlar = ''|site_ilanGetir %}
  18.     <section class="section-box box-banner-home7 background-body">
  19.         <div class="container"></div>
  20.         <div class="container-banner-home7">
  21.             <div class="box-swiper">
  22.                 <div class="swiper-container swiper-group-1">
  23.                     <div class="swiper-wrapper">
  24.                         {% for slider in sliders %}
  25.                         <div class="swiper-slide">
  26.                             <div class="item-banner-slide" style="background-image: url({{ slider.resim|timthumb('uploads/',sBoyutlar[0],sBoyutlar[1],1,70) }})">
  27.                                 <div class="container"> <span class="btn btn-brand-secondary wow fadeInUp"> <img class="mr-10" src="/dist2/assets/imgs/page/homepage7/hotel.svg" alt="{{ 'siteAdi'|ayarlar }}">{{ 'siteAdi'|ayarlar }}</span>
  28.                                     <h1 class="mt-20 mb-20 color-white">{{ slider.baslik|default('') }}</h1>
  29.                                     <h5 class="color-white">{{ slider.aciklama|default('') }}</h5>
  30.                                 </div>
  31.                             </div>
  32.                         </div>
  33.                         {% endfor %}
  34.                     </div>
  35.                     <div class="swiper-pagination swiper-pagination-group-1 swiper-pagination-style-2"></div>
  36.                 </div>
  37.             </div>
  38.         </div>
  39.         <div class="container-search-advance">
  40.             <div class="container">
  41.                 <div class="box-search-advance background-card wow fadeInUp">
  42.                     <div class="box-bottom-search background-card row">
  43.                         <div class="col-md-4 mb-4">
  44.                             <label class="text-sm-bold neutral-500">Konum</label>
  45.                             <div class="dropdown">
  46.                                 <button class="btn btn-secondary dropdown-toggle btn-dropdown-search location-search konumText" type="button" data-bs-toggle="dropdown" aria-expanded="false">Bölge seç</button>
  47.                                 <ul class="dropdown-menu">
  48.                                     {% for semt in ''|ilanBolgeBul %}
  49.                                         <li><a class="dropdown-item" href="#" onclick="$('#bolgeSec').val($(this).attr('value')); $('.konumText').html($(this).html());" value="{{ semt.id }}">{{ semt.adi }}, {{ semt.ilceId|bolgeTamamla }}</a></li>
  50.                                     {% endfor %}
  51.                                 </ul>
  52.                                 <select id="bolgeSec" class="form-control d-none" tabindex="-1" aria-hidden="true">
  53.                                     <option value=""></option>
  54.                                     {% for semt in ''|ilanBolgeBul %}
  55.                                         <option value="{{ semt.id }}">{{ semt.adi }}, {{ semt.ilceId|bolgeTamamla }}</option>
  56.                                     {% endfor %}
  57.                                 </select>
  58.                             </div>
  59.                         </div>
  60.                         <div class="col-md-2 mb-4">
  61.                             <label class="text-sm-bold neutral-500">Giriş Tarihi</label>
  62.                             <div class="box-calendar-date">
  63.                                 <input class="search-input datepicker" type="text" placeholder="Giriş Tarihi" id="girisTarihi">
  64.                             </div>
  65.                         </div>
  66.                         <div class="col-md-2 mb-4">
  67.                             <label class="text-sm-bold neutral-500">Çıkış Tarihi</label>
  68.                             <div class="box-calendar-date">
  69.                                 <input class="search-input datepicker" type="text" placeholder="Çıkış Tarihi" id="cikisTarihi">
  70.                             </div>
  71.                         </div>
  72.                         <div class="col-md-2 mb-4">
  73.                             <label class="text-sm-bold neutral-500">Yetişkin Sayısı</label>
  74.                             <div class="dropdown">
  75.                                 <button class="btn btn-secondary dropdown-toggle btn-dropdown-search passenger-search yetiskinText" type="button" data-bs-toggle="dropdown" aria-expanded="false">Sayı seç</button>
  76.                                 <ul class="dropdown-menu">
  77.                                     {% for sayi in 1..14 %}
  78.                                         <li><a class="dropdown-item" href="#" onclick="$('#yetiskinSayisi').val($(this).attr('value')); $('.yetiskinText').html($(this).html());" value="{{ sayi }}">{{ sayi }}</a></li>
  79.                                     {% endfor %}
  80.                                 </ul>
  81.                                 <select id="yetiskinSayisi" class="form-control d-none yetiskinSayisi" tabindex="-1" aria-hidden="true">
  82.                                     <option value=""></option>
  83.                                     {% for sayi in 1..14 %}
  84.                                         <option value="{{ sayi }}">{{ sayi }}</option>
  85.                                     {% endfor %}
  86.                                 </select>
  87.                             </div>
  88.                         </div>
  89.                         <div class="col-md-2 mb-4 bd-none d-flex justify-content-end">
  90.                             <button class="btn btn-black-lg" onclick="hizliArama();">
  91.                                 <svg width="20" height="20" viewbox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
  92.                                     <path d="M19 19L14.6569 14.6569M14.6569 14.6569C16.1046 13.2091 17 11.2091 17 9C17 4.58172 13.4183 1 9 1C4.58172 1 1 4.58172 1 9C1 13.4183 4.58172 17 9 17C11.2091 17 13.2091 16.1046 14.6569 14.6569Z" stroke="" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
  93.                                 </svg> Ara
  94.                             </button>
  95.                         </div>
  96.                     </div>
  97.                 </div>
  98.             </div>
  99.         </div>
  100.     </section>
  101.     <section class="section-box box-top-rated-3 background-body">
  102.         <div class="container">
  103.             <div class="row align-items-end">
  104.                 <div class="col-md-12 wow fadeInUp">
  105.                     <h2 class="neutral-1000"> <svg width="27" height="39" viewbox="0 0 27 39" fill="none" xmlns="http://www.w3.org/2000/svg">
  106.                             <path fill-rule="evenodd" clip-rule="evenodd" d="M12.9721 38.9991C8.7171 38.9991 4.81518 36.9218 2.26676 33.3001C-2.75855 26.158 2.51539 14.3625 2.74208 13.8636C2.9258 13.4594 3.52612 13.5316 3.60747 13.9699C3.76126 14.8015 4.29256 16.7779 5.15293 17.7806C5.10151 14.7925 5.50964 5.77322 11.837 0.116751C12.0555 -0.0784021 12.5434 -0.0722321 12.6046 0.489233C12.7694 2.00841 13.5182 7.07279 16.2396 8.45395C16.5072 8.59014 19.041 11.7859 19.4825 14.7516C19.9265 14.1746 20.5412 12.9299 20.8221 10.3182C20.8639 9.92925 21.3458 9.7702 21.6118 10.0561C21.708 10.1596 31.1506 20.547 24.5663 32.0572C22.0801 36.4045 17.7458 38.9991 12.9718 38.9991H12.9721Z" fill="#FFA725"></path>
  107.                             <path fill-rule="evenodd" clip-rule="evenodd" d="M13.6808 35.7816C16.2031 35.7816 18.5162 34.5504 20.0269 32.4035C23.0058 28.1695 19.8795 21.1774 19.7451 20.8817C19.6361 20.642 19.2803 20.6849 19.2321 20.9448C19.1409 21.4377 18.826 22.6093 18.316 23.2036C18.3464 21.4322 18.1046 16.0858 14.3538 12.7326C14.2242 12.6169 13.9351 12.6206 13.8988 12.9533C13.801 13.8539 13.3572 16.8559 11.7439 17.6747C11.5853 17.7554 10.0832 19.65 9.82136 21.408C9.5581 21.0659 9.19362 20.328 9.02726 18.7798C9.00235 18.5492 8.71671 18.4548 8.55926 18.6244C8.50213 18.6859 2.90484 24.8435 6.80791 31.6665C8.28184 34.2435 10.8511 35.7816 13.6812 35.7816H13.6808Z" fill="#FF871E"></path>
  108.                             <path fill-rule="evenodd" clip-rule="evenodd" d="M9.85986 33.1274C9.45699 33.1274 9.24767 32.6357 9.53674 32.3471L16.8513 25.0323C17.2775 24.6061 17.9233 25.2537 17.498 25.6787L10.1832 32.9935C10.0939 33.0829 9.97709 33.1274 9.85986 33.1274Z" fill="white"></path>
  109.                             <path fill-rule="evenodd" clip-rule="evenodd" d="M11.1965 28.6139C8.66976 28.6139 8.66816 24.77 11.196 24.77C13.7241 24.77 13.7229 28.6139 11.1965 28.6139ZM11.1965 25.6834C10.3041 25.6834 9.84959 26.7698 10.4835 27.4041C11.4056 28.3264 12.8596 26.93 11.9092 25.9789C11.7189 25.7881 11.4659 25.6834 11.1965 25.6834Z" fill="white"></path>
  110.                             <path fill-rule="evenodd" clip-rule="evenodd" d="M15.839 33.2555C13.3121 33.2555 13.3109 29.4119 15.839 29.4119C18.3668 29.4119 18.3666 33.2555 15.839 33.2555ZM15.839 30.3252C14.9464 30.3252 14.4923 31.4116 15.1262 32.046C16.0481 32.9685 17.5021 31.5713 16.552 30.6207C16.3616 30.4299 16.1082 30.3252 15.839 30.3252Z" fill="white"></path>
  111.                         </svg> Popüler Villalar</h2>
  112.                     <p class="text-xl-medium neutral-500">Müşteriler tarafından değerlendirilen kalite. İdeal fiyata rezervasyon yapın!</p>
  113.                 </div>
  114.                 -
  115.             </div>
  116.         </div>
  117.         <div class="container-slider box-swiper-padding wow fadeInUp">
  118.             <div class="box-swiper mt-30">
  119.                 <div class="swiper-container swiper-group-animate swiper-group-journey">
  120.                     <div class="swiper-wrapper">
  121.                         {% for ilan in ilanlar %}
  122.                         {% set resimler = ilan.resimler|default('')|split(',') %}
  123.                         {% set alt = ilan.kategoriId|villa_altKategoriGeriYaz %}
  124.                         {% set link = ''|site_anaLink~alt~ilan.seo %}
  125.                         <div class="swiper-slide">
  126.                             <div class="card-journey-small background-card">
  127.                                 <div class="card-image"> <a class="wish" href="{{ link }}">
  128.                                         <i class="fa fa-search"></i>
  129.                                     </a>
  130.                                     <img data-src="{{ resimler[0]|timthumb('uploads/',406,326,1,100) }}" class="img-fluid mx-auto lazy" alt="{{ ilan.adi }}" />
  131.                                 </div>
  132.                                 <div class="card-info">
  133.                                     <div class="card-rating">
  134.                                         <div class="card-left"> </div>
  135.                                         <div class="card-right"> <span class="rating">5.00</span></div>
  136.                                     </div>
  137.                                     <div class="card-title text-center"> <a class="heading-6 neutral-1000" href="{{ link }}">{{ ilan.adi }} </a></div>
  138.                                     <div class="card-program">
  139.                                         <div class="card-location flex-column">
  140.                                             <p class="text-location text-md-medium neutral-500">{{ ilan.semt|semtDetay('adi') }}, {{ ilan.ilce|ilceDetay('adi') }}, {{ ilan.il|ilDetay('adi') }}</p>
  141.                                           <div class="d-flex justify-content-center">
  142.                                               <p class="text-md-medium neutral-500 px-2"><i class="fa fa-users me-2"></i>{{ ilan.kisi }} Kişilik</p>
  143.                                               <p class="text-md-medium neutral-500 px-2"><i class="fa fa-bed me-2"></i>{{ ilan.yatak }} Yatak</p>
  144.                                               <p class="text-md-medium neutral-500 px-2"><i class="fa fa-bath me-2"></i>{{ ilan.banyo }} Banyo</p>
  145.                                           </div>
  146.                                         </div>
  147.                                         <div class="endtime">
  148.                                             <div class="card-price">
  149.                                                 <h6 class="heading-6 neutral-1000">{{ ilan.dilgrup|ilan_fiyatBul }}</h6>
  150.                                                 <p class="text-md-medium neutral-500">/ gecelik</p>
  151.                                             </div>
  152.                                             <div class="card-button mt-4"> <a class="btn btn-gray" href="{{ link }}">Rezervasyon Yap</a></div>
  153.                                         </div>
  154.                                     </div>
  155.                                 </div>
  156.                             </div>
  157.                         </div>
  158.                         {% endfor %}
  159.                     </div>
  160.                 </div>
  161.             </div>
  162.         </div>
  163.     </section>
  164.     {#
  165.     <div class="image-cover hero_banner" style="background:url({{ sliders[0].resim|timthumb('uploads/',sBoyutlar[0],sBoyutlar[1],1,70) }}) no-repeat;" data-overlay="4">
  166.         <div class="container">
  167.             <div class="row justify-content-end">
  168.                 <div class="col-lg-5 col-md-5">
  169.                     <div class="box_search_wrap light">
  170.                         <div class="hero_search">
  171.                             <h1>Hızlı Arama</h1>
  172.                         </div>
  173.                         <div class="search_hero_wrapping" data-select2-id="8">
  174.                             <div class="row">
  175.                                 <div class="col-lg-12 col-md-12 col-sm-12">
  176.                                     <div class="form-group">
  177.                                         <div class="input-with-icon gray">
  178.                                             <select id="bolgeSec" class="form-control" tabindex="-1" aria-hidden="true">
  179.                                                 <option value=""></option>
  180.                                                 {% for semt in ''|ilanBolgeBul %}
  181.                                                     <option value="{{ semt.id }}">{{ semt.adi }}, {{ semt.ilceId|bolgeTamamla }}</option>
  182.                                                 {% endfor %}
  183.                                             </select>
  184.                                             <i class="ti-target"></i>
  185.                                         </div>
  186.                                     </div>
  187.                                 </div>
  188.                             </div>
  189.                             <div class="row">
  190.                                 <div class="col-lg-6 col-md-6 col-sm-6">
  191.                                     <div class="form-group">
  192.                                         <div class="input-with-icon gray">
  193.                                             <input type="date" class="form-control" placeholder="Giriş Tarihi" id="girisTarihi">
  194.                                             <i class="ti-calendar"></i>
  195.                                         </div>
  196.                                     </div>
  197.                                 </div>
  198.                                 <div class="col-lg-6 col-md-6 col-sm-6">
  199.                                     <div class="form-group">
  200.                                         <div class="input-with-icon gray">
  201.                                             <input type="date" class="form-control" placeholder="Çıkış Tarihi" id="cikisTarihi">
  202.                                             <i class="ti-calendar"></i>
  203.                                         </div>
  204.                                     </div>
  205.                                 </div>
  206.                             </div>
  207.                             <div class="row">
  208.                                 <div class="col-lg-12 col-md-12 col-sm-12">
  209.                                     <div class="form-group">
  210.                                         <input id="3gun" class="checkbox-custom" type="checkbox">
  211.                                         <label for="3gun" class="checkbox-custom-label">3 Gün önce ve sonraki villaları da göster</label>
  212.                                     </div>
  213.                                 </div>
  214.                             </div>
  215.                             <div class="row">
  216.                                 <div class="col-lg-6 col-md-6 col-sm-6">
  217.                                     <div class="form-group">
  218.                                         <div class="input-with-icon gray">
  219.                                             <select id="yetiskinSayisi" class="form-control yetiskinSayisi" tabindex="-1" aria-hidden="true">
  220.                                                 <option value=""></option>
  221.                                                 {% for sayi in 1..14 %}
  222.                                                     <option value="{{ sayi }}">{{ sayi }}</option>
  223.                                                 {% endfor %}
  224.                                             </select>
  225.                                             <i class="ti-user"></i>
  226.                                         </div>
  227.                                     </div>
  228.                                 </div>
  229.                                 <div class="col-lg-6 col-md-6 col-sm-6">
  230.                                     <div class="form-group">
  231.                                         <div class="input-with-icon gray">
  232.                                             <select id="cocukSayisi" class="form-control cocukSayisi" tabindex="-1" aria-hidden="true">
  233.                                                 <option value=""></option>
  234.                                                 {% for sayi in 1..14 %}
  235.                                                     <option value="{{ sayi }}">{{ sayi }}</option>
  236.                                                 {% endfor %}
  237.                                             </select>
  238.                                             <i class="ti-user"></i>
  239.                                         </div>
  240.                                     </div>
  241.                                 </div>
  242.                             </div>
  243.                         </div>
  244.                         <div class="hero_search-action">
  245.                             <a href="javascript:void(0);" onclick="hizliArama();" class="btn search-btn">Ara</a>
  246.                         </div>
  247.                     </div>
  248.                 </div>
  249.             </div>
  250.         </div>
  251.     </div>
  252.     <section class="gray">
  253.         <div class="container">
  254.             <div class="row">
  255.                 <div class="col-lg-12 col-md-12">
  256.                     <div class="sec-heading center">
  257.                         <h2>Villa <span class="theme-cl">Seçenekleri</span></h2>
  258.                     </div>
  259.                 </div>
  260.             </div>
  261.             <div class="row">
  262.                 {% for vKategori in villaSecenekleri %}
  263.                 {% set alt = vKategori.ustid|villa_altKategoriGeriYaz %}
  264.                 {% set link = ''|site_anaLink~alt~vKategori.seourl %}
  265.                 <!-- Single Agent -->
  266.                 <div class="col-lg-3 col-md-3 col-sm-12">
  267.                     <div class="grid_agents style-2">
  268.                         <div class="grid_agents-wrap">
  269.                             <div class="fr-grid-thumb">
  270.                                 <a href="{{ link }}">
  271.                                     <img data-src="{{ vKategori.resim|default('')|timthumb('uploads/',100,100,2,100) }}" class="img-fluid mx-auto lazy" alt="{{ vKategori.adi }}" />
  272.                                 </a>
  273.                             </div>
  274.                             <div class="fr-grid-deatil">
  275.                                 <h5 class="fr-can-name"><a href="{{ link }}">{{ vKategori.adi }}</a></h5>
  276.                             </div>
  277.                         </div>
  278.                     </div>
  279.                 </div>
  280.                 {% endfor %}
  281.             </div>
  282.         </div>
  283.     </section>
  284.     <section>
  285.         <div class="container">
  286.             <div class="row">
  287.                 {% for ilan in ilanlar %}
  288.                     {% set resimler = ilan.resimler|default('')|split(',') %}
  289.                     {% set alt = ilan.kategoriId|villa_altKategoriGeriYaz %}
  290.                     {% set link = ''|site_anaLink~alt~ilan.seo %}
  291.                     <!-- Single Property -->
  292.                     <div class="col-lg-4 col-md-6 col-sm-12">
  293.                     <div class="single_property_style property_style_2 modern">
  294.                         <div class="listing_thumb_wrapper">
  295.                             #}{#<div class="modern-pro-wrap">
  296.                                 <span class="property-type">%99 indirim</span>
  297.                             </div>#}{#
  298.                             <div class="property_gallery_slide-thumb">
  299.                                 <img data-src="{{ resimler[0]|timthumb('uploads/',348,238,1,100) }}" class="img-fluid mx-auto lazy" alt="{{ ilan.adi }}" />
  300.                             </div>
  301.                             #}{#<div class="property_price_compare">
  302.                                 <div class="property_price_reviess">
  303.                                     <span><i class="lni lni-phone mr-2"></i>+91 855 606 8702</span>
  304.                                     <div class="prt_rates"><i class="fa fa-star mr-2"></i>4.8 <span>(33 reviews)</span></div>
  305.                                 </div>
  306.                                 <div class="lpc-right">
  307.                                     <a href="#" data-toggle="tooltip" data-placement="top" title="Bookmark Property"><i class="ti-heart"></i></a>
  308.                                 </div>
  309.                             </div>#}{#
  310.                         </div>
  311.                         <div class="property_caption_wrappers pb-0">
  312.                             <div class="property_short_detail">
  313.                                 <h4 class="listing-name"><a href="{{ link }}">{{ ilan.adi }}</a></h4>
  314.                                 <span class="property-locations"><i class="ti-location-pin"></i> {{ ilan.semt|semtDetay('adi') }}, {{ ilan.ilce|ilceDetay('adi') }}, {{ ilan.il|ilDetay('adi') }}</span>
  315.                             </div>
  316.                         </div>
  317.                         <div class="property_features_wrap">
  318.                             <div class="list-fx-features">
  319.                                 <div class="listing-card-info-icon">
  320.                                     <span><i class="fa fa-users"></i> {{ ilan.kisi }} Kişilik</span>
  321.                                 </div>
  322.                                 <div class="listing-card-info-icon">
  323.                                     <span><i class="fa fa-bed"></i> {{ ilan.yatak }} Yatak</span>
  324.                                 </div>
  325.                                 <div class="listing-card-info-icon">
  326.                                     <span><i class="fa fa-bath"></i> {{ ilan.banyo }} Banyo</span>
  327.                                 </div>
  328.                             </div>
  329.                         </div>
  330.                         <div class="modern_property_footer">
  331.                             <div class="property-real-price theme-cl">{{ ilan.dilgrup|ilan_fiyatBul }}</div>
  332.                             <div class="property-author">
  333.                                 <a href="{{link}}" class="btn agent-btn btn-warning">Detaylı İncele</a>
  334.                             </div>
  335.                         </div>
  336.                     </div>
  337.                 </div>
  338.                 {% endfor %}
  339.             </div>
  340.         </div>
  341.     </section>#}
  342. {% endblock %}
  343. {% block javascripts %}
  344.     <script>
  345.         function hizliArama() {
  346.             var url = '{{ ''|site_anaLink~'hizli-arama' }}';
  347.             var xhr = new XMLHttpRequest();
  348.             var fd = new FormData();
  349.             xhr.open("POST", url, true);
  350.             xhr.onreadystatechange = function () {
  351.                 if(xhr.readyState === 4 && xhr.status === 200) {
  352.                    window.location='{{ ''|site_anaLink~'villa-kirala' }}';
  353.                 }
  354.             };
  355.             fd.append('bolge',$('#bolgeSec').val());
  356.             fd.append('girisTarihi',$('#girisTarihi').val());
  357.             fd.append('cikisTarihi',$('#cikisTarihi').val());
  358.             fd.append('yetiskinSayisi',$('#yetiskinSayisi').val());
  359.             xhr.send(fd);
  360.         }
  361.     </script>
  362. {% endblock %}