templates/Slivki/search/index.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block left_sidebar %}
  3.     {% if isMobileDevice() %}
  4.         {% include 'left_sidebar.html.twig' %}
  5.     {% endif %}
  6. {% endblock %}
  7. {% block mainColumnClass %}{{ parent() }} search-result-page{{ not isMobileDevice() ? ' one-column' }}{% endblock %}
  8. {% block main_content %}
  9.     {{ searchResultHtml|raw }}
  10. {% endblock%}
  11. {% block popups %}
  12.     {{ parent() }}
  13.     {% if not currentLocationCookie %}
  14.         {% include 'Slivki/popups/user_location_popup.html.twig' %}
  15.     {% endif %}
  16. {% endblock %}
  17. {% block javascripts %}
  18.     <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.countdown/2.2.0/jquery.countdown.min.js"></script>
  19.     {% if not currentLocationCookie %}
  20.         <script src="//api-maps.yandex.ru/2.1.73/?lang=ru-RU" type="text/javascript"></script>
  21.     {% endif %}
  22.     {{ parent() }}
  23.     <script>
  24.         $(function() {
  25.             fixSearchFilterBlock();
  26.             addUtmToSearchResults();
  27.         });
  28.     </script>
  29. {% endblock %}
  30. {% block RTBHouse %}
  31.     {{ parent() }}
  32.     <script>
  33.         if ($('#rtbHouseSearchIDList').length) {
  34.             try{ (function() {
  35.                 var prefix = "", hash = "TS5TS2S9bdSbgKBA4Q2H", rtbhTags = []; rtbhTags.push("pr_"+hash+"_listing_" + document.getElementById('rtbHouseSearchIDList').value); rtbhTags.push("pr_"+hash+"_uid_" + document.getElementById('rtbhUID').value);
  36.                 var key = "__rtbhouse.lid", lid = window.localStorage.getItem(key); if (!lid) {
  37.                     lid = ""; var pool = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
  38.                     for (var i = 0; i < 20; i++) lid += pool.charAt(Math.floor(Math.random() * pool.length)); window.localStorage.setItem(key, lid);}
  39.                 rtbhTags.push("pr_"+hash+"_lid_" + lid);
  40.                 var ifr = document.createElement("iframe"),
  41.                     sr = encodeURIComponent(document.referrer ? document.referrer : ""),
  42.                     su = encodeURIComponent(document.location.href ? document.location.href : ""),
  43.                     ifrSrc = "https://"+prefix+"creativecdn.com/tags?type=iframe", tmstmp = encodeURIComponent("" + Date.now()); for(var i=0; i<rtbhTags.length; i++) {ifrSrc += "&id=" + encodeURIComponent(rtbhTags[i]);}
  44.                 ifrSrc += "&su=" + su + "&sr=" + sr + "&ts=" + tmstmp;
  45.                 ifr.setAttribute("src", ifrSrc); ifr.setAttribute("width", "1");
  46.                 ifr.setAttribute("height", "1"); ifr.setAttribute("scrolling", "no");
  47.                 ifr.setAttribute("frameBorder", "0"); ifr.setAttribute("style", "display:none");
  48.                 ifr.setAttribute("referrerpolicy", "no-referrer-when-downgrade"); if(document.body){document.body.appendChild(ifr);}
  49.                 else{window.addEventListener('DOMContentLoaded', function(){document.body.appendChild(ifr);});}
  50.             })();} catch(e) {}
  51.         }
  52.     </script>
  53. {% endblock %}