templates/page-listing-v1.html.twig line 1

Open in your IDE?
  1. {% extends 'parent.html.twig' %}
  2. {% block stylesheets %}
  3.     {{ parent() }}
  4.   <style>
  5.   .area{
  6.     position: absolute;
  7.     right: 1.5vw;
  8.     font-weight: bold;
  9.   }
  10.   .invisible{
  11.     display: none;
  12.   }
  13.   @media(max-width: 756px)
  14.   {
  15.     .asRange
  16.     {
  17.       margin-top: 115px;
  18.     }
  19.   }
  20.   </style>
  21. {% endblock %}
  22. {% block body %}
  23.   <!-- Listing Grid View -->
  24.   <section class="our-listing pb30-991">
  25.     <div class="container">
  26.       <div class="row">
  27.         <div class="col-lg-12">
  28.           <div class="listing_sidebar dn db-lg">
  29.             <div class="sidebar_content_details style3">
  30.               <!-- <a href="javascript:void(0)" class="closebtn" onclick="closeNav()">&times;</a> -->
  31.               <div class="sidebar_listing_list style2 mobile_sytle_sidebar mb0">
  32.                 <div class="siderbar_widget_header">
  33.                   <h4 class="title mb0">Trouvez votre panneau<a class="filter_closed_btn float-right" href="#"><small>x</small><span class="flaticon-close"></span></a></h4>
  34.                 </div>
  35.                 <form method="get">
  36.                   <div class="sidebar_advanced_search_widget">
  37.                     <ul class="sasw_list mb0">
  38.                       <li class="search_area">
  39.                         <div class="form-group">
  40.                           <input type="text" class="form-control form_control" placeholder="Nom du panneau" name="name" value="{% if name is defined %}{{ name }}{% endif %}">
  41.                         </div>
  42.                       </li>
  43.                       <li>
  44.                         <div class="search_option_two">
  45.                           <div class="sidebar_select_options">
  46.                             <select class="selectpicker w100 show-tick" name="type">
  47.                               <option value="0">Tous types</option>
  48.                             {% for type_panel in type_panels %}
  49.                               <option value="{{ loop.index }}" {% if loop.index == type %}selected{% endif %}>{{ type_panel.name }}</option>
  50.                             {% endfor %}
  51.                             </select>
  52.                           </div>
  53.                         </div>
  54.                       </li>
  55.                       <li>
  56.                         <div class="search_option_two">
  57.                           <div class="sidebar_select_options">
  58.                             <select class="selectpicker w100 show-tick">
  59.                               <option>Toutes les villes</option>
  60.                               <option value="London">London</option>
  61.                               <option value="NewYork">New York</option>
  62.                               <option value="Paris">Paris</option>
  63.                               <option value="Istanbul">Istanbul</option>
  64.                               <option value="Amsterdam">Amsterdam</option>
  65.                               <option value="Rome">Rome</option>
  66.                               <option value="LogAngeles">Log Angeles</option>
  67.                             </select>
  68.                           </div>
  69.                         </div>
  70.                       </li>
  71.                       <li>
  72.                         <div class="sidebar_priceing_slider_mobile">
  73.                           <div class="wrapper">
  74.                             <p class="mb0">Prix</p>
  75.                             <div class="mt20 ml10" id="slider"></div>
  76.                             <span id="slider-range-value1"></span>
  77.                             <input class="invisible" name="lowest" id="lowest"/>
  78.                             <span id="slider-range-value2"></span>
  79.                             <input class="invisible" name="highest" id="highest"/>
  80.                           </div>
  81.                         </div>
  82.                       </li>
  83.                       <li>
  84.                         <div class="sidebar_range_slider mb30 mt100">
  85.                           <input class="range-example-km mb20" value="{% if area <= 0 %}{{ max_area }}{% else %}{{ area }}{% endif %}" type="text" name="area">
  86.                         </div>
  87.                       </li>
  88.                       <li>
  89.                         <div class="search_option_button text-center mt25">
  90.                           <script>
  91.                             const lowestSelector = document.querySelector("#slider-range-value1");
  92.                             const lowestInput = document.querySelector("#lowest");
  93.                             const highestSelector = document.querySelector("#slider-range-value2");
  94.                             const highestInput = document.querySelector("#highest");
  95.                             function updateInput()
  96.                             {
  97.                               lowestInput.value = lowestSelector.textContent;
  98.                               highestInput.value = highestSelector.textContent;
  99.                             }
  100.                           </script>
  101.                           <button type="submit" class="btn btn-block btn-thm mb25" onclick="updateInput();">Chercher</button>
  102.                           <ul class="mb0">
  103.                             <li class="list-inline-item mb0"><a href="/listing-panels"><span class="vam flaticon-return mr10"></span> Réinitialiser la recherche</a></li>
  104.                           </ul>
  105.                         </div>
  106.                       </li>
  107.                     </ul>
  108.                   </div>
  109.                 </form>
  110.               </div>
  111.             </div>
  112.           </div>
  113.         </div>
  114.       </div>
  115.       <div class="row">
  116.         <div class="col-lg-12">
  117.           <div class="breadcrumb_content style2 mb100">
  118.             <h2 class="breadcrumb_title">Panneaux publicitaires à louer</h2>
  119.             <p>Trouvez le panneau qui correspond à vos critères</p>
  120.           </div>
  121.         </div>
  122.         <div class="col-lg-12">
  123.           <div class="dn db-lg mb30-md text-center">
  124.             <div id="main2"><a id="open2" class="filter_open_btn btn-thm" href="#">Filtres<span class="flaticon-setting-lines ml10"></span></a></div>
  125.           </div>
  126.         </div>
  127.       </div>
  128.       <div class="row">
  129.         <div class="col-xl-3">
  130.           <div class="sidebar_listing_grid1 mb30 dn-lg">
  131.             <div class="sidebar_listing_list">
  132.             <form method="get">
  133.               <div class="sidebar_advanced_search_widget">
  134.                 <ul class="sasw_list mb0">
  135.                   <li><h4 class="mb0">Trouvez votre panneau</h4></li>
  136.                   <li class="search_area">
  137.                     <div class="form-group">
  138.                       <input type="text" class="form-control form_control" placeholder="Nom du panneau" name="name" value="{% if name is defined %}{{ name }}{% endif %}">
  139.                     </div>
  140.                   </li>
  141.                   <li>
  142.                     <div class="search_option_two">
  143.                       <div class="sidebar_select_options">
  144.                         <select class="selectpicker w100 show-tick" name="type">
  145.                           <option value="0">Tous types</option>
  146.                           {% for type_panel in type_panels %}
  147.                             <option value="{{ loop.index }}" {% if loop.index == type %}selected{% endif %}>{{ type_panel.name }}</option>
  148.                           {% endfor %}
  149.                         </select>
  150.                       </div>
  151.                     </div>
  152.                   </li>
  153.                   <li>
  154.                     <div class="search_option_two">
  155.                       <div class="sidebar_select_options">
  156.                         <select class="selectpicker w100 show-tick">
  157.                           <option>Toutes les villes</option>
  158.                           <option value="London">London</option>
  159.                           <option value="NewYork">New York</option>
  160.                           <option value="Paris">Paris</option>
  161.                           <option value="Istanbul">Istanbul</option>
  162.                           <option value="Amsterdam">Amsterdam</option>
  163.                           <option value="Rome">Rome</option>
  164.                           <option value="LogAngeles">Log Angeles</option>
  165.                         </select>
  166.                       </div>
  167.                     </div>
  168.                   </li>
  169.                   <li>
  170.                     <div class="sidebar_priceing_slider_desktop">
  171.                       <div class="wrapper">
  172.                         <p class="mb0">Prix</p>
  173.                         <div class="slider-range"></div>
  174.                         <input type="text" class="amount" placeholder="{{ lowest }}" name="lowest"> 
  175.                         <input type="text" class="amount2" placeholder="{{ highest }}" name="highest">
  176.                         <script>
  177.                           const input1 = document.querySelector('.amount');
  178.                           const input2 = document.querySelector('.amount2');
  179.                           input1.value = input1.placeholder;
  180.                           input2.value = input2.placeholder;
  181.                         </script>
  182.                       </div>
  183.                     </div>
  184.                   </li>
  185.                   <li>
  186.                     <div class="sidebar_range_slider mb30 mt100">
  187.                       <input class="range-example-km mb20" value="{% if area <= 0 %}{{ max_area }}{% else %}{{ area }}{% endif %}" type="text" name="area">
  188.                     </div>
  189.                   </li>
  190.                   <li>
  191.                     <div class="search_option_button text-center mt25">
  192.                       <button type="submit" class="btn btn-block btn-thm mb25">Chercher</button>
  193.                       <ul class="mb0">
  194.                         <li class="list-inline-item mb0"><a href="/listing-panels"><span class="vam flaticon-return mr10"></span>Réinitialiser la recherche</a></li>
  195.                       </ul>
  196.                     </div>
  197.                   </li>
  198.                 </ul>
  199.               </div>
  200.             </div>
  201.             </form>
  202.           </div>
  203.         </div>
  204.         <div class="col-xl-9">
  205.           <div class="row">
  206.             <div class="listing_filter_row dif db-767">
  207.               <div class="col-sm-12 col-md-4 col-lg-4 col-xl-5">
  208.                 <div class="left_area tac-xsd mb30-767">
  209.                   <p class="mb0 mt10"><span class="heading-color">{{ panels|length }}</span> résultat{% if panels|length > 1 %}s{% endif %}</p>
  210.                 </div>
  211.               </div>
  212.             </div>
  213.           </div>
  214.           <div class="row">
  215.           {% if error is defined %}
  216.           <h3 style="margin: auto; color: #969696;">{{ error }}</h3>
  217.           {% endif %}
  218.             {% for panel in panels %}
  219.             <div class="col-lg-6 col-xl-4">
  220.               <div class="feat_property">
  221.                 <div class="thumb">
  222.                 
  223.                   <a href="/listing-panel-single/{{ panel.id }}"><img class="img-whp" src="{{ images[loop.index0] }}" alt="fl1.jpg"></a>
  224.                   <div class="thmb_cntnt">
  225.                     <ul class="tag mb0" style="width:95%;display: flex;justify-content: space-between;">
  226.                       <li class="list-inline-item"><a href="#" style="background-color: #0D263B;">{% if panel.typePanel|length > 0 %}{{ panel.typePanel.name }}{% endif %}</a></li>
  227.                       <li class="list-inline-item color-panel">
  228.                       <span data-toggle="tooltip" title="{% if panel.zone|length > 0 %}
  229.                         {% if panel.zone.name == "Rouge" %}Les panneaux rouges sont situés dans des zones très fréquentées. Ceux-ci vous garantiront une exposition d'enfer, de quoi faire connaitre votre marque.
  230.                         {% elseif panel.zone.name == "Bleu" %}Les panneaux bleus sont un excellent compromis entre visibilité pour votre marque et budget raisonable. De quoi vous faire connaitre sans vous ruiner !
  231.                         {% elseif panel.zone.name == "Vert" %}Ces panneaux sont situés dans des zones rurales, et donc mois fréquentées. Un panneau vert vous conviendra si vous visez un petit budget !
  232.                         {% endif %}
  233.                       {% endif %}">
  234.                       <a href="#"style="background-color:
  235.                         {% if panel.zone|length > 0 %}
  236.                           {% if panel.zone.name == "Rouge" %}#ec1e28;
  237.                           {% elseif panel.zone.name == "Bleu" %}#4188fa;
  238.                           {% elseif panel.zone.name == "Vert" %}#42ed84;
  239.                           {% endif %}
  240.                         {% else %}#0D263B;{% endif %}">{% if panel.zone|length > 0 %}{{ panel.zone.name }}{% endif %}</a></span></li>
  241.                     </ul>
  242.                   </div>
  243.                   <div class="thmb_cntnt2">
  244.                     <ul class="listing_gallery mb0">
  245.                       <li class="list-inline-item"><a class="text-white" href="#"><span class="flaticon-photo-camera mr5"></span>{{ panel.images|length }}</a></li>
  246.                       <li class="list-inline-item"><a class="text-white" href="#"><svg class="svg-icon" viewBox="0 0 20 20">
  247.                         <path fill="none" d="M19.471,8.934L18.883,8.34c-2.096-2.14-4.707-4.804-8.903-4.804c-4.171,0-6.959,2.83-8.996,4.897L0.488,8.934c-0.307,0.307-0.307,0.803,0,1.109l0.401,0.403c2.052,2.072,4.862,4.909,9.091,4.909c4.25,0,6.88-2.666,8.988-4.807l0.503-0.506C19.778,9.737,19.778,9.241,19.471,8.934z M9.98,13.787c-3.493,0-5.804-2.254-7.833-4.3C4.182,7.424,6.493,5.105,9.98,5.105c3.536,0,5.792,2.301,7.784,4.332l0.049,0.051C15.818,11.511,13.551,13.787,9.98,13.787z"></path>
  248.                         <circle fill="none" cx="9.98" cy="9.446" r="1.629"></circle>
  249.                       </svg> {{ panel.historyViews|length }}</a></li>
  250.                       <style>
  251.                       .svg-icon {
  252.                         width: 1.6em;
  253.                         height: 1.6em;
  254.                       }
  255.                       .svg-icon path,
  256.                       .svg-icon polygon,
  257.                       .svg-icon rect {
  258.                         fill: #fff;
  259.                       }
  260.                       .svg-icon circle {
  261.                         stroke: #fff;
  262.                         stroke-width: 0.5;
  263.                       }
  264.                       </style>
  265.                     </ul>
  266.                   </div>
  267.                 </div>
  268.                 <div class="details">
  269.                   <div class="tc_content">
  270.                     <h4><a href="page-listing-single-v8.html">{{panel.situation}} ({{ panel.name }})</a></h4>
  271.                     <p>{{ panel.address }}</p>
  272.                   </div>
  273.                   <div class="fp_footer">
  274.                     <ul class="fp_meta float-left mb0">
  275.                       <li class="list-inline-item">
  276.                         <a href="#">
  277.                           <span class="heading-color fw600">{{ panel.price }}&euro;</span>
  278.                         </a>
  279.                       </li>
  280.                     </ul>
  281.                     <span class="area">{{ panel.area }} m<sup>2</sup></span>
  282.                   </div>
  283.                 </div>
  284.               </div>
  285.             </div>
  286.             {% endfor %}
  287.           </div>
  288.         </div>
  289.       </div>
  290.     </div>
  291.   </section>
  292.   <!-- Our Footer -->
  293.   <section class="footer_one home1">
  294.     <div class="container pt10 pb30">
  295.       <div class="row">
  296.         <div class="col-md-4 col-lg-4">
  297.           <div class="copyright-widget mt10 mb15-767" style="display: flex; flex-direction: row; justify-content: center;">
  298.             <li class="list-inline-item list_s"><a href="#" class="btn" data-toggle="modal" data-target="#logInModal"><span class="flaticon-user" style="color: white;"></span></a></li>
  299.             <p>| © 2022 Pubup | Developed by <a href="https://wecodx.com/" target="_blank">Wecodx.</a></p>
  300.           </div>
  301.         </div>
  302.         <div class="col-md-4 col-lg-4">
  303.           <div class="footer_logo_widget text-center mb15-767">
  304.             <div class="wrapper">
  305.               <div class="logo text-center"> <img src="/assets/images/footer-logo.svg" alt="footer-logo.svg"> <span class="logo_title text-white pl15">Houzing</span> </div>
  306.             </div>
  307.           </div>
  308.         </div>
  309.         <div class="col-md-4 col-lg-4">
  310.           <div class="footer_menu_widget text-right tac-md mt15">
  311.             <ul>
  312.               <li class="list-inline-item"><a href="/">Accueil</a></li>
  313.               <li class="list-inline-item"><a href="/listing-panels">Nos Panneaux</a></li>
  314.               <li class="list-inline-item"><a href="/about-us">Notre Équipe</a></li>
  315.               <li class="list-inline-item"><a href="/contact">Contact</a></li>
  316.             </ul>
  317.           </div>
  318.         </div>
  319.       </div>
  320.     </div>
  321.   </section>
  322. <a class="scrollToHome" href="#"><i class="fa fa-angle-up"></i></a>
  323. </div>
  324. <script>
  325.   var minPrice = {{ lowest }};
  326.   var maxPrice = {{ highest }};
  327.   var maxArea = {{ max_area }};
  328.   var mostExpensive = {{ most_expensive }};
  329. </script>
  330. {% endblock %}
  331. {% block footer %}
  332. {% endblock %}
  333. {% block javascripts %}
  334. <script src="/assets/js/jquery-3.6.0.js"></script>
  335. <script src="/assets/js/jquery-migrate-3.0.0.min.js"></script>
  336. <script src="/assets/js/popper.min.js"></script>
  337. <script src="/assets/js/bootstrap.min.js"></script>
  338. <script src="/assets/js/jquery.mmenu.all.js"></script>
  339. <script src="/assets/js/ace-responsive-menu.js"></script>
  340. <script src="/assets/js/bootstrap-select.min.js"></script>
  341. <script src="/assets/js/isotop.js"></script> 
  342. <script src="/assets/js/snackbar.min.js"></script>
  343. <script src="/assets/js/simplebar.js"></script>
  344. <script src="/assets/js/parallax.js"></script>
  345. <script src="/assets/js/scrollto.js"></script>
  346. <script src="/assets/js/jquery-scrolltofixed-min.js"></script>
  347. <script src="/assets/js/jquery.counterup.js"></script>
  348. <script src="/assets/js/wow.min.js"></script>
  349. <script src="/assets/js/progressbar.js"></script>
  350. <script src="/assets/js/slider.js"></script>
  351. <script src="/assets/js/pricing-slider.js"></script>
  352. <script src="/assets/js/timepicker.js"></script>
  353. <!-- Custom script for all pages --> 
  354. <script src="/assets/js/script.js"></script>
  355. {% endblock %}