templates/index/index.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2.  
  3. {% block stylesheets %}
  4.   <link href="theme/css/t-datepicker.min.css" rel="stylesheet" type="text/css">
  5.   <link href="theme/css/themes/t-datepicker-blue.css" rel="stylesheet" type="text/css">
  6. <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>     
  7.   {% set type =   2  %}
  8. <style>
  9. {% if   type ==  1 %}
  10. .home1_bgi1 {
  11.     background-image: url({{ image }});
  12.     -webkit-background-size: cover;
  13.     background-size: cover;
  14.     background-position: center center;
  15.     height: 960px;
  16. }
  17.      {% endif %} 
  18.  
  19. {% if   type ==  2 %}
  20. <style>
  21. .home1_bgi1 {
  22.     background-image: url({{ image }});
  23.     -webkit-background-size: cover;
  24.     background-size: cover;
  25.     background-position: center center;
  26.     height: 960px;
  27. }
  28.      {% endif %} 
  29.  
  30. .home1_bgi2 {
  31.   background-image: url({{ image }});
  32.   -webkit-background-size: cover;
  33.   background-size: cover;
  34.   background-position: center center;
  35.   height: 960px;
  36. }
  37. .our-testimonial:before{
  38.   background-image: url({{ asset('uploads/index/' ~ testimonial) | imagine_filter('testimonial') }});
  39.   bottom: 0;
  40.   content: "";
  41.   left: 0;
  42.   opacity: .5;
  43.   position: absolute;
  44.   right: 0;
  45.   top: 0;
  46. }
  47.  
  48. .user_setting .dropdown-menu .user_setting_content a.active,
  49. .user_setting .dropdown-menu .user_setting_content a.active span,
  50. .user_setting .dropdown-menu .user_setting_content a:hover,
  51. .user_setting .dropdown-menu .user_setting_content a:hover span {
  52.   background-color: transparent;
  53.   color: #484848;
  54. }
  55. header.header-nav.menu_style_home_one .ace-responsive-menu li a {
  56.   color: #FFFFFF;
  57. }
  58.  
  59. .home_adv_srch_opt .nav-pills {
  60.   border-bottom: none;
  61.   margin: 0 auto;
  62.   text-align: center;
  63.   width: 550px;
  64. }
  65. .t-datepicker {
  66.  
  67. background-color: #ffffff;
  68. border: 1px solid #ebebeb;
  69. border-radius: 8px;
  70. font-size: 14px;
  71. color: #484848;
  72. line-height: 1.2;
  73. height: 50px;
  74. width: 135px;
  75. }
  76. .t-check-in {
  77. font-size: 14px;
  78. height: 50px;
  79. }
  80. .t-dates {
  81.   padding: 10px 15px;
  82.   height: 46px;
  83.   box-sizing: border-box;
  84. }
  85.  
  86.  
  87. </style>
  88. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.3.0/font/bootstrap-icons.css">
  89. <script src="https://cpwebassets.codepen.io/assets/common/stopExecutionOnTimeout-2c7831bb44f98c1391d6a4ffda0e1fd302503391ca806e7fcc7b9b87197aec26.js"></script>
  90.   
  91. <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
  92. <style>
  93.     /* Popup container */
  94.   .popup {
  95.     position: relative;
  96.     display: inline-block;
  97.     cursor: pointer;
  98.   }
  99.   
  100.   /* The actual popup (appears on top) */
  101.   .popup .popuptext {
  102.     visibility: hidden;
  103.     width: 160px;
  104.     background-color: #fff;
  105.     color: #fff;
  106.     text-align: center;
  107.     border-radius: 6px;
  108.     padding: 8px 0;
  109.     position: absolute;
  110.     z-index: 1;
  111.     bottom: 125%;
  112.     left: 50%;
  113.     margin-left: -80px;
  114.   }
  115.   
  116.   /* Popup arrow */
  117.   .popup .popuptext::after {
  118.     content: "";
  119.     position: absolute;
  120.     top: 100%;
  121.     left: 50%;
  122.     margin-left: -5px;
  123.     border-width: 5px;
  124.     border-style: solid;
  125.     border-color: #fff transparent transparent transparent;
  126.   }
  127.   
  128.   /* Toggle this class when clicking on the popup container (hide and show the popup) */
  129.   .popup .show {
  130.     visibility: visible;
  131.     -webkit-animation: fadeIn 1s;
  132.     animation: fadeIn 1s
  133.   }
  134.   
  135.   /* Add animation (fade in the popup) */
  136.   @-webkit-keyframes fadeIn {
  137.     from {opacity: 0;}
  138.     to {opacity: 1;}
  139.   }
  140.   
  141.   @keyframes fadeIn {
  142.     from {opacity: 0;}
  143.     to {opacity:1 ;}
  144.   } 
  145.   body {
  146.           background: #fff;
  147.           color: #fff;
  148.           font-family: sans-serif;
  149.           margin: 0;
  150.           text-align: center;
  151.           -webkit-font-smoothing: antialiased;
  152.           -moz-osx-font-smoothing: grayscale;
  153.         }
  154.         
  155.         .twitter-share {
  156.           background: #fff;
  157.           color:  #00acee;
  158.           cursor: pointer;
  159.           display: inline-block;
  160.           -webkit-border-radius: 6px;
  161.           border-radius: 6px;
  162.         }
  163.         .twitter-share:hover {
  164.           position: relative;
  165.           top: -1px;
  166.         }
  167.          .facebook-share {
  168.           background: #fff;
  169.           color:  #3b5998;
  170.           cursor: pointer;
  171.           display: inline-block;
  172.           -webkit-border-radius: 6px;
  173.           border-radius: 6px;
  174.         }
  175.         .facebook-share:hover {
  176.           position: relative;
  177.           top: -1px;
  178.         }
  179.         .linkedin-share {
  180.           background: #fff;
  181.           color:  #0e76a8;
  182.           cursor: pointer;
  183.           display: inline-block;
  184.           -webkit-border-radius: 6px;
  185.           border-radius: 6px;
  186.         }
  187.         .linkedin-share:hover {
  188.           position: relative;
  189.           top: -1px;
  190.         }
  191.           </style>
  192. {% endblock %}
  193. {% block title %}Hello IndexController!{% endblock %}
  194. {% block nav %}
  195.     <header class="header-nav menu_style_home_one navbar-scrolltofixed stricky main-menu">
  196. {% endblock %}
  197.  {% block logo %}
  198.  
  199.               {{ include('include/logo.html.twig') }} 
  200. {% endblock %}
  201.  
  202. {% block body %}
  203.   {% set type =   1  %}
  204.     {% if   type ==  1 %}
  205.     {{ include('index/form1.html.twig') }}  
  206.      {% endif %}  
  207.          {% if   type ==  2 %}
  208.     {{ include('index/form2.html.twig') }}  
  209.      {% endif %}  
  210.     
  211.  {% set type =   1  %}
  212.     {% if   type ==  1 %}
  213.      {{ include('index/properties1.html.twig') }}  
  214.      {% endif %}  
  215.          {% if   type ==  2 %}
  216.      {{ include('index/properties2.html.twig') }}  
  217.      {% endif %}  
  218.     
  219.  {% set type =   1  %}
  220.  
  221.     {% if   type ==  1 %}
  222.  
  223.  {% if fra == 1 %}
  224.      {{ include('index/localite1.html.twig') }}  
  225. {% endif %}
  226.      {% endif %}  
  227. {% if   type ==  2 %}
  228.      {{ include('index/localite2.html.twig') }}  
  229.      {% endif %}  
  230.  
  231.     <!-- Why Chose Us -->
  232.     <section id="why-chose" class="whychose_us bgc-f7 pb30">
  233.         <div class="container">
  234.             <div class="row">
  235.                 <div class="col-lg-6 offset-lg-3">
  236.                     <div class="main-title text-center">
  237.                         <h2>Why Choose Us</h2>
  238.                         <p>We provide full service at every step.</p>
  239.                     </div>
  240.                 </div>
  241.             </div>
  242.             <div class="row">
  243.                 <div class="col-md-6 col-lg-4 col-xl-4">
  244.                     <div class="why_chose_us">
  245.                         <div class="icon">
  246.                             <span class="flaticon-high-five"></span>
  247.                         </div>
  248.                         <div class="details">
  249.                             <h4>Trusted By Thousands</h4>
  250.                             <p>Aliquam dictum elit vitae mauris facilisis at dictum urna dignissim donec vel lectus vel felis.</p>
  251.                         </div>
  252.                     </div>
  253.                 </div>
  254.                 <div class="col-md-6 col-lg-4 col-xl-4">
  255.                     <div class="why_chose_us">
  256.                         <div class="icon">
  257.                             <span class="flaticon-home-1"></span>
  258.                         </div>
  259.                         <div class="details">
  260.                             <h4>Wide Renge Of Properties</h4>
  261.                             <p>Aliquam dictum elit vitae mauris facilisis at dictum urna dignissim donec vel lectus vel felis.</p>
  262.                         </div>
  263.                     </div>
  264.                 </div>
  265.                 <div class="col-md-6 col-lg-4 col-xl-4">
  266.                     <div class="why_chose_us">
  267.                         <div class="icon">
  268.                             <span class="flaticon-profit"></span>
  269.                         </div>
  270.                         <div class="details">
  271.                             <h4>Financing Made Easy</h4>
  272.                             <p>Aliquam dictum elit vitae mauris facilisis at dictum urna dignissim donec vel lectus vel felis.</p>
  273.                         </div>
  274.                     </div>
  275.                 </div>
  276.             </div>
  277.         </div>
  278.     </section>
  279.     <!-- Our Testimonials -->
  280.     <section id="our-testimonials" class="our-testimonial">
  281.         <div class="container">
  282.             <div class="row">
  283.                 <div class="col-lg-6 offset-lg-3">
  284.                     <div class="main-title text-center">
  285.                         <h2 class="color-white">Testimonials</h2>
  286.                         <p class="color-white">Here could be a nice sub title</p>
  287.                     </div>
  288.                 </div>
  289.             </div>
  290.             <div class="row">
  291.                 <div class="col-lg-6 offset-lg-3">
  292.                     <div class="testimonial_grid_slider">
  293.  {% for i in 0..8 %}
  294.                         <div class="item">
  295.                             <div class="testimonial_grid">
  296.                                 <div class="thumb">
  297.                                     <img src="images/testimonial/1.jpg" alt="1.jpg">
  298.                                 </div>
  299.                                 <div class="details">
  300.                                     <h4>Augusta Silva</h4>
  301.                                     <p>Sales Manager</p>
  302.                                     <p class="mt25">Aliquam dictum elit vitae mauris facilisis at dictum urna dignissim donec vel lectus vel felis.</p>
  303.                                 </div>
  304.                             </div>
  305.                         </div>
  306.  
  307.  {% endfor %}
  308.                     </div>
  309.                 </div>
  310.             </div>
  311.         </div>
  312.     </section>
  313.     <!-- Our Blog -->
  314.     <section class="our-blog bgc-f7 pb30">
  315.         <div class="container">
  316.             <div class="row">
  317.                 <div class="col-lg-6 offset-lg-3">
  318.                     <div class="main-title text-center">
  319.                         <h2>Articles & Tips</h2>
  320.                         <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
  321.                     </div>
  322.                 </div>
  323.             </div>
  324.             <div class="row">
  325.              {% for i in 0..2 %}
  326.                 <div class="col-md-6 col-lg-4 col-xl-4">
  327.                     <div class="for_blog feat_property">
  328.                         <div class="thumb">
  329.                             <img class="img-whp" src="images/blog/bh1.jpg" alt="bh1.jpg">
  330.                         </div>
  331.                         <div class="details">
  332.                             <div class="tc_content">
  333.                                 <p class="text-thm">Business</p>
  334.                                 <h4>Skills That You Can Learn In The Real Estate Market</h4>
  335.                             </div>
  336.                             <div class="fp_footer">
  337.                                 <ul class="fp_meta float-left mb0">
  338.                                     <li class="list-inline-item"><a href="#"><img src="images/property/pposter1.png" alt="pposter1.png"></a></li>
  339.                                     <li class="list-inline-item"><a href="#">Ali Tufan</a></li>
  340.                                 </ul>
  341.                                 <a class="fp_pdate float-right" href="#">7 August 2019</a>
  342.                             </div>
  343.                         </div>
  344.                     </div>
  345.                 </div>
  346.       {% endfor %}
  347.             </div>
  348.         </div>
  349.     </section>
  350.     <!-- Our Partners -->
  351.     <section id="our-partners" class="our-partners">
  352.         <div class="container">
  353.             <div class="row">
  354.                 <div class="col-lg-6 offset-lg-3">
  355.                     <div class="main-title text-center">
  356.                         <h2>Our Partners</h2>
  357.                         <p>We only work with the best companies around the globe</p>
  358.                     </div>
  359.                 </div>
  360.             </div>
  361.             <div class="row">
  362.                 <div class="col-sm-6 col-md-4 col-lg">
  363.                     <div class="our_partner">
  364.                         <img class="img-fluid" src="images/partners/1.png" alt="1.png">
  365.                     </div>
  366.                 </div>
  367.                 <div class="col-sm-6 col-md-4 col-lg">
  368.                     <div class="our_partner">
  369.                         <img class="img-fluid" src="images/partners/2.png" alt="2.png">
  370.                     </div>
  371.                 </div>
  372.                 <div class="col-sm-6 col-md-4 col-lg">
  373.                     <div class="our_partner">
  374.                         <img class="img-fluid" src="images/partners/3.png" alt="3.png">
  375.                     </div>
  376.                 </div>
  377.                 <div class="col-sm-6 col-md-4 col-lg">
  378.                     <div class="our_partner">
  379.                         <img class="img-fluid" src="images/partners/4.png" alt="4.png">
  380.                     </div>
  381.                 </div>
  382.                 <div class="col-sm-6 col-md-4 col-lg">
  383.                     <div class="our_partner">
  384.                         <img class="img-fluid" src="images/partners/5.png" alt="5.png">
  385.                     </div>
  386.                 </div>
  387.             </div>
  388.         </div>
  389.     </section>
  390.     <!-- Start Partners -->
  391.     <section class="start-partners bgc-thm pt50 pb50">
  392.         <div class="container">
  393.             <div class="row">
  394.                 <div class="col-lg-8">
  395.                     <div class="start_partner tac-smd">
  396.                         <h2>Become a Real Estate Agent</h2>
  397.                         <p>We only work with the best companies around the globe</p>
  398.                     </div>
  399.                 </div>
  400.                 <div class="col-lg-4">
  401.                     <div class="parner_reg_btn text-right tac-smd">
  402.                         <a class="btn btn-thm2" href="#">Register Now</a>
  403.                     </div>
  404.                 </div>
  405.             </div>
  406.         </div>
  407.     </section>
  408.     
  409.   {% block javascripts %}
  410.   
  411.  
  412. <script src="https://unpkg.com/axios/dist/axios.min.js"></script>
  413. <!-- Script -->
  414.  
  415.   
  416.   {{ include('recherche/js.html.twig') }}  
  417.  
  418.     <script type='text/javascript' >
  419.  $(document).ready(function() {
  420.   const $valueSpan = $('.valueSpan');
  421.   const $value = $('#slider11');
  422.   $valueSpan.html($value.val());
  423.   $value.on('input change', () => {
  424.     $valueSpan.html($value.val());
  425.   });
  426. });
  427.  
  428.  $(document).ready(function() {
  429.   const $valueSpan = $('.valueSpan1');
  430.   const $value = $('#slider12');
  431.   $valueSpan.html($value.val());
  432.   $value.on('input change', () => {
  433.     $valueSpan.html($value.val());
  434.   });
  435. });
  436.  
  437.  $(document).ready(function() {
  438.   const $valueSpan = $('.valueSpan2');
  439.   const $value = $('#slider13');
  440.   $valueSpan.html($value.val());
  441.   $value.on('input change', () => {
  442.     $valueSpan.html($value.val());
  443.   });
  444. });
  445.  
  446.    </script>
  447.  <script src="https://unpkg.com/axios/dist/axios.min.js"></script>
  448. <script>
  449.   
  450.     function onClickBtnLike(event) {
  451.     event.preventDefault();
  452.     const url = this.href;
  453.     const spanCount = this.querySelector('span.js-likes');
  454.     const icone = this.querySelector('i');
  455.     axios.get(url).then(function (response) {
  456.         spanCount.textContent = response.data.likes;
  457. if (response.status === 200){
  458.                if (icone.classList.contains('fas')) {
  459.             icone.classList.replace('fas','far');
  460.         }
  461.         else {
  462.             icone.classList.replace('far', 'fas');
  463.         }
  464.         
  465.         }
  466.  
  467.  
  468.     }).catch(function (error) {
  469.          
  470.     });
  471. }
  472. document.querySelectorAll('a.js-like').forEach(function (link){
  473.     link.addEventListener('click', onClickBtnLike)
  474. })
  475.         </script>
  476.  
  477. {% endblock %}
  478. {% block jsindex %}
  479.  
  480.               <script src="https://code.jquery.com/jquery-3.3.1.min.js"
  481.     integrity="sha384-tsQFqpEReu7ZLhBV2VZlAu7zcOV+rXbYlF2cqB8txI/8aZajjp4Bqd+V6D5IgvKT"
  482.     crossorigin="anonymous"></script>
  483. {% endblock %}
  484. {% endblock %}