var/cache/dev/twig/df/dfdea217b48d32284b0c7becbe386c4fa2b29923cabbf82a3a1b040d13c1d33c.php line 43

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* Slivki/search/index.html.twig */
  14. class __TwigTemplate_4dda4b4d3b518da7390de03e12fea481f8cdeeec88ca7a6f5674182292bd430a extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'left_sidebar' => [$this'block_left_sidebar'],
  24.             'mainColumnClass' => [$this'block_mainColumnClass'],
  25.             'main_content' => [$this'block_main_content'],
  26.             'popups' => [$this'block_popups'],
  27.             'javascripts' => [$this'block_javascripts'],
  28.             'RTBHouse' => [$this'block_RTBHouse'],
  29.         ];
  30.     }
  31.     protected function doGetParent(array $context)
  32.     {
  33.         // line 1
  34.         return "base.html.twig";
  35.     }
  36.     protected function doDisplay(array $context, array $blocks = [])
  37.     {
  38.         $macros $this->macros;
  39.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  40.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Slivki/search/index.html.twig"));
  41.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  42.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Slivki/search/index.html.twig"));
  43.         $this->parent $this->loadTemplate("base.html.twig""Slivki/search/index.html.twig"1);
  44.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  45.         
  46.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  47.         
  48.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  49.     }
  50.     // line 3
  51.     public function block_left_sidebar($context, array $blocks = [])
  52.     {
  53.         $macros $this->macros;
  54.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  55.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""left_sidebar"));
  56.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  57.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""left_sidebar"));
  58.         // line 4
  59.         echo "    ";
  60.         if ($this->extensions['Slivki\Twig\SlivkiTwigExtension']->isMobileDevice()) {
  61.             // line 5
  62.             echo "        ";
  63.             $this->loadTemplate("left_sidebar.html.twig""Slivki/search/index.html.twig"5)->display($context);
  64.             // line 6
  65.             echo "    ";
  66.         }
  67.         
  68.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  69.         
  70.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  71.     }
  72.     // line 9
  73.     public function block_mainColumnClass($context, array $blocks = [])
  74.     {
  75.         $macros $this->macros;
  76.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  77.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""mainColumnClass"));
  78.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  79.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""mainColumnClass"));
  80.         $this->displayParentBlock("mainColumnClass"$context$blocks);
  81.         echo " search-result-page";
  82.         echo (( !$this->extensions['Slivki\Twig\SlivkiTwigExtension']->isMobileDevice()) ? (" one-column") : (""));
  83.         
  84.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  85.         
  86.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  87.     }
  88.     // line 11
  89.     public function block_main_content($context, array $blocks = [])
  90.     {
  91.         $macros $this->macros;
  92.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  93.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main_content"));
  94.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  95.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main_content"));
  96.         // line 12
  97.         echo "    ";
  98.         echo (isset($context["searchResultHtml"]) || array_key_exists("searchResultHtml"$context) ? $context["searchResultHtml"] : (function () { throw new RuntimeError('Variable "searchResultHtml" does not exist.'12$this->source); })());
  99.         echo "
  100. ";
  101.         
  102.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  103.         
  104.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  105.     }
  106.     // line 15
  107.     public function block_popups($context, array $blocks = [])
  108.     {
  109.         $macros $this->macros;
  110.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  111.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""popups"));
  112.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  113.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""popups"));
  114.         // line 16
  115.         echo "    ";
  116.         $this->displayParentBlock("popups"$context$blocks);
  117.         echo "
  118.     ";
  119.         // line 17
  120.         if ( !(isset($context["currentLocationCookie"]) || array_key_exists("currentLocationCookie"$context) ? $context["currentLocationCookie"] : (function () { throw new RuntimeError('Variable "currentLocationCookie" does not exist.'17$this->source); })())) {
  121.             // line 18
  122.             echo "        ";
  123.             $this->loadTemplate("Slivki/popups/user_location_popup.html.twig""Slivki/search/index.html.twig"18)->display($context);
  124.             // line 19
  125.             echo "    ";
  126.         }
  127.         
  128.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  129.         
  130.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  131.     }
  132.     // line 22
  133.     public function block_javascripts($context, array $blocks = [])
  134.     {
  135.         $macros $this->macros;
  136.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  137.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  138.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  139.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  140.         // line 23
  141.         echo "    <script src=\"https://cdnjs.cloudflare.com/ajax/libs/jquery.countdown/2.2.0/jquery.countdown.min.js\"></script>
  142.     ";
  143.         // line 24
  144.         if ( !(isset($context["currentLocationCookie"]) || array_key_exists("currentLocationCookie"$context) ? $context["currentLocationCookie"] : (function () { throw new RuntimeError('Variable "currentLocationCookie" does not exist.'24$this->source); })())) {
  145.             // line 25
  146.             echo "        <script src=\"//api-maps.yandex.ru/2.1.73/?lang=ru-RU\" type=\"text/javascript\"></script>
  147.     ";
  148.         }
  149.         // line 27
  150.         echo "    ";
  151.         $this->displayParentBlock("javascripts"$context$blocks);
  152.         echo "
  153.     <script>
  154.         \$(function() {
  155.             fixSearchFilterBlock();
  156.             addUtmToSearchResults();
  157.         });
  158.     </script>
  159. ";
  160.         
  161.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  162.         
  163.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  164.     }
  165.     // line 36
  166.     public function block_RTBHouse($context, array $blocks = [])
  167.     {
  168.         $macros $this->macros;
  169.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  170.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""RTBHouse"));
  171.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  172.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""RTBHouse"));
  173.         // line 37
  174.         echo "    ";
  175.         $this->displayParentBlock("RTBHouse"$context$blocks);
  176.         echo "
  177.     <script>
  178.         if (\$('#rtbHouseSearchIDList').length) {
  179.             try{ (function() {
  180.                 var prefix = \"\", hash = \"TS5TS2S9bdSbgKBA4Q2H\", rtbhTags = []; rtbhTags.push(\"pr_\"+hash+\"_listing_\" + document.getElementById('rtbHouseSearchIDList').value); rtbhTags.push(\"pr_\"+hash+\"_uid_\" + document.getElementById('rtbhUID').value);
  181.                 var key = \"__rtbhouse.lid\", lid = window.localStorage.getItem(key); if (!lid) {
  182.                     lid = \"\"; var pool = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\";
  183.                     for (var i = 0; i < 20; i++) lid += pool.charAt(Math.floor(Math.random() * pool.length)); window.localStorage.setItem(key, lid);}
  184.                 rtbhTags.push(\"pr_\"+hash+\"_lid_\" + lid);
  185.                 var ifr = document.createElement(\"iframe\"),
  186.                     sr = encodeURIComponent(document.referrer ? document.referrer : \"\"),
  187.                     su = encodeURIComponent(document.location.href ? document.location.href : \"\"),
  188.                     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]);}
  189.                 ifrSrc += \"&su=\" + su + \"&sr=\" + sr + \"&ts=\" + tmstmp;
  190.                 ifr.setAttribute(\"src\", ifrSrc); ifr.setAttribute(\"width\", \"1\");
  191.                 ifr.setAttribute(\"height\", \"1\"); ifr.setAttribute(\"scrolling\", \"no\");
  192.                 ifr.setAttribute(\"frameBorder\", \"0\"); ifr.setAttribute(\"style\", \"display:none\");
  193.                 ifr.setAttribute(\"referrerpolicy\", \"no-referrer-when-downgrade\"); if(document.body){document.body.appendChild(ifr);}
  194.                 else{window.addEventListener('DOMContentLoaded', function(){document.body.appendChild(ifr);});}
  195.             })();} catch(e) {}
  196.         }
  197.     </script>
  198. ";
  199.         
  200.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  201.         
  202.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  203.     }
  204.     public function getTemplateName()
  205.     {
  206.         return "Slivki/search/index.html.twig";
  207.     }
  208.     public function isTraitable()
  209.     {
  210.         return false;
  211.     }
  212.     public function getDebugInfo()
  213.     {
  214.         return array (  213 => 37,  203 => 36,  184 => 27,  180 => 25,  178 => 24,  175 => 23,  165 => 22,  154 => 19,  151 => 18,  149 => 17,  144 => 16,  134 => 15,  121 => 12,  111 => 11,  90 => 9,  79 => 6,  76 => 5,  73 => 4,  63 => 3,  40 => 1,);
  215.     }
  216.     public function getSourceContext()
  217.     {
  218.         return new Source("{% extends 'base.html.twig' %}
  219. {% block left_sidebar %}
  220.     {% if isMobileDevice() %}
  221.         {% include 'left_sidebar.html.twig' %}
  222.     {% endif %}
  223. {% endblock %}
  224. {% block mainColumnClass %}{{ parent() }} search-result-page{{ not isMobileDevice() ? ' one-column' }}{% endblock %}
  225. {% block main_content %}
  226.     {{ searchResultHtml|raw }}
  227. {% endblock%}
  228. {% block popups %}
  229.     {{ parent() }}
  230.     {% if not currentLocationCookie %}
  231.         {% include 'Slivki/popups/user_location_popup.html.twig' %}
  232.     {% endif %}
  233. {% endblock %}
  234. {% block javascripts %}
  235.     <script src=\"https://cdnjs.cloudflare.com/ajax/libs/jquery.countdown/2.2.0/jquery.countdown.min.js\"></script>
  236.     {% if not currentLocationCookie %}
  237.         <script src=\"//api-maps.yandex.ru/2.1.73/?lang=ru-RU\" type=\"text/javascript\"></script>
  238.     {% endif %}
  239.     {{ parent() }}
  240.     <script>
  241.         \$(function() {
  242.             fixSearchFilterBlock();
  243.             addUtmToSearchResults();
  244.         });
  245.     </script>
  246. {% endblock %}
  247. {% block RTBHouse %}
  248.     {{ parent() }}
  249.     <script>
  250.         if (\$('#rtbHouseSearchIDList').length) {
  251.             try{ (function() {
  252.                 var prefix = \"\", hash = \"TS5TS2S9bdSbgKBA4Q2H\", rtbhTags = []; rtbhTags.push(\"pr_\"+hash+\"_listing_\" + document.getElementById('rtbHouseSearchIDList').value); rtbhTags.push(\"pr_\"+hash+\"_uid_\" + document.getElementById('rtbhUID').value);
  253.                 var key = \"__rtbhouse.lid\", lid = window.localStorage.getItem(key); if (!lid) {
  254.                     lid = \"\"; var pool = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\";
  255.                     for (var i = 0; i < 20; i++) lid += pool.charAt(Math.floor(Math.random() * pool.length)); window.localStorage.setItem(key, lid);}
  256.                 rtbhTags.push(\"pr_\"+hash+\"_lid_\" + lid);
  257.                 var ifr = document.createElement(\"iframe\"),
  258.                     sr = encodeURIComponent(document.referrer ? document.referrer : \"\"),
  259.                     su = encodeURIComponent(document.location.href ? document.location.href : \"\"),
  260.                     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]);}
  261.                 ifrSrc += \"&su=\" + su + \"&sr=\" + sr + \"&ts=\" + tmstmp;
  262.                 ifr.setAttribute(\"src\", ifrSrc); ifr.setAttribute(\"width\", \"1\");
  263.                 ifr.setAttribute(\"height\", \"1\"); ifr.setAttribute(\"scrolling\", \"no\");
  264.                 ifr.setAttribute(\"frameBorder\", \"0\"); ifr.setAttribute(\"style\", \"display:none\");
  265.                 ifr.setAttribute(\"referrerpolicy\", \"no-referrer-when-downgrade\"); if(document.body){document.body.appendChild(ifr);}
  266.                 else{window.addEventListener('DOMContentLoaded', function(){document.body.appendChild(ifr);});}
  267.             })();} catch(e) {}
  268.         }
  269.     </script>
  270. {% endblock %}""Slivki/search/index.html.twig""/mnt/data/virtwww/test/templates/Slivki/search/index.html.twig");
  271.     }
  272. }