var/cache/review/twig/bd/bd8deb8f2b0dde3c99e036069b4a65e6.php line 160

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. /* grid.html.twig */
  14. class __TwigTemplate_216becd0a7c4ace58385face9c6ed490 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.             'grid' => [$this'block_grid'],
  24.             'leftSidebar' => [$this'block_leftSidebar'],
  25.             'mainContainer' => [$this'block_mainContainer'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 1
  31.         return "layout.html.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_b91a4435ea3baf1e2b6bfda56133dace $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  37.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""grid.html.twig"));
  38.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  39.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""grid.html.twig"));
  40.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  41.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""grid.html.twig"));
  42.         // line 3
  43.         $context["currentCity"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'3$this->source); })()), "request", [], "any"falsefalsefalse3), "attributes", [], "any"falsefalsefalse3), "get", ["city"$this->extensions['App\Twig\DefaultCityExtension']->defaultCity()], "method"falsefalsefalse3);
  44.         // line 1
  45.         $this->parent $this->loadTemplate("layout.html.twig""grid.html.twig"1);
  46.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  47.         
  48.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  49.         
  50.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  51.         
  52.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  53.     }
  54.     // line 5
  55.     public function block_grid($context, array $blocks = [])
  56.     {
  57.         $macros $this->macros;
  58.         $__internal_b91a4435ea3baf1e2b6bfda56133dace $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  59.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""grid"));
  60.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  61.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""grid"));
  62.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  63.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""grid"));
  64.         // line 6
  65.         echo "    <div class=\"col-2\">
  66.         <div id=\"left_column_metric\">
  67.         ";
  68.         // line 8
  69.         $this->displayBlock('leftSidebar'$context$blocks);
  70.         // line 11
  71.         echo "        </div>
  72.     </div>
  73.     <div class=\"col-8\">
  74.         <div id=\"center_column_metric\">
  75.         ";
  76.         // line 15
  77.         echo $this->extensions['Knp\Menu\Twig\MenuExtension']->render("breadcrumbs", ["template" => "_menu/breadcrumbs.html.twig"]);
  78.         echo "
  79.         ";
  80.         // line 17
  81.         $this->displayBlock('mainContainer'$context$blocks);
  82.         // line 18
  83.         echo "        ";
  84.         if ( !((array_key_exists("skip_listing_recommendations"$context)) ? (_twig_default_filter((isset($context["skip_listing_recommendations"]) || array_key_exists("skip_listing_recommendations"$context) ? $context["skip_listing_recommendations"] : (function () { throw new RuntimeError('Variable "skip_listing_recommendations" does not exist.'18$this->source); })()), false)) : (false))) {
  85.             // line 19
  86.             echo "            ";
  87.             echo twig_include($this->env$context"BotHelper/_profile_bot_helper.html.twig");
  88.             echo "
  89.         ";
  90.         }
  91.         // line 21
  92.         echo "
  93.         ";
  94.         // line 22
  95.         echo $this->extensions['App\Twig\SeoExtension']->bottomHtml();
  96.         echo "
  97.         ";
  98.         // line 23
  99.         $context["footerCity"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'23$this->source); })()), "request", [], "any"falsefalsefalse23), "attributes", [], "any"falsefalsefalse23), "get", ["city"$this->extensions['App\Twig\DefaultCityExtension']->defaultCity()], "method"falsefalsefalse23);
  100.         // line 24
  101.         echo "        ";
  102.         if (($this->extensions['Flagception\Bundle\FlagceptionBundle\Twig\ToggleExtension']->isActive("intim_moscow_listing") && (twig_get_attribute($this->env$this->source, (isset($context["footerCity"]) || array_key_exists("footerCity"$context) ? $context["footerCity"] : (function () { throw new RuntimeError('Variable "footerCity" does not exist.'24$this->source); })()), "id", [], "any"falsefalsefalse24) == twig_get_attribute($this->env$this->source$this->extensions['App\Twig\DefaultCityExtension']->defaultCity(), "id", [], "any"falsefalsefalse24)))) {
  103.             // line 25
  104.             echo "            <div>
  105.                 <a href=\"";
  106.             // line 26
  107.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("profile_list.list_intim");
  108.             echo "\">Интим объявления Москва</a>
  109.             </div>
  110.         ";
  111.         }
  112.         // line 29
  113.         echo "        </div>
  114.     </div>
  115. ";
  116.         
  117.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  118.         
  119.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  120.         
  121.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  122.     }
  123.     // line 8
  124.     public function block_leftSidebar($context, array $blocks = [])
  125.     {
  126.         $macros $this->macros;
  127.         $__internal_b91a4435ea3baf1e2b6bfda56133dace $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  128.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""leftSidebar"));
  129.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  130.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""leftSidebar"));
  131.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  132.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""leftSidebar"));
  133.         // line 9
  134.         echo "            ";
  135.         echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragmentStrategy("esi"Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\HttpCacheController::leftAsideFullView", ["city" => twig_get_attribute($this->env$this->source, (isset($context["currentCity"]) || array_key_exists("currentCity"$context) ? $context["currentCity"] : (function () { throw new RuntimeError('Variable "currentCity" does not exist.'9$this->source); })()), "uriIdentity", [], "any"falsefalsefalse9)]));
  136.         echo "
  137.         ";
  138.         
  139.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  140.         
  141.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  142.         
  143.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  144.     }
  145.     // line 17
  146.     public function block_mainContainer($context, array $blocks = [])
  147.     {
  148.         $macros $this->macros;
  149.         $__internal_b91a4435ea3baf1e2b6bfda56133dace $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  150.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""mainContainer"));
  151.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  152.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""mainContainer"));
  153.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  154.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""mainContainer"));
  155.         
  156.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  157.         
  158.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  159.         
  160.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  161.     }
  162.     /**
  163.      * @codeCoverageIgnore
  164.      */
  165.     public function getTemplateName()
  166.     {
  167.         return "grid.html.twig";
  168.     }
  169.     /**
  170.      * @codeCoverageIgnore
  171.      */
  172.     public function isTraitable()
  173.     {
  174.         return false;
  175.     }
  176.     /**
  177.      * @codeCoverageIgnore
  178.      */
  179.     public function getDebugInfo()
  180.     {
  181.         return array (  175 => 17,  159 => 9,  146 => 8,  131 => 29,  125 => 26,  122 => 25,  119 => 24,  117 => 23,  113 => 22,  110 => 21,  104 => 19,  101 => 18,  99 => 17,  94 => 15,  88 => 11,  86 => 8,  82 => 6,  69 => 5,  55 => 1,  53 => 3,  37 => 1,);
  182.     }
  183.     public function getSourceContext()
  184.     {
  185.         return new Source("{% extends 'layout.html.twig' %}
  186. {% set currentCity = app.request.attributes.get('city', default_city()) %}
  187. {% block grid %}
  188.     <div class=\"col-2\">
  189.         <div id=\"left_column_metric\">
  190.         {% block leftSidebar %}
  191.             {{ render_esi(controller('App\\\\Controller\\\\HttpCacheController::leftAsideFullView', {'city': currentCity.uriIdentity})) }}
  192.         {% endblock %}
  193.         </div>
  194.     </div>
  195.     <div class=\"col-8\">
  196.         <div id=\"center_column_metric\">
  197.         {{ knp_menu_render('breadcrumbs', {'template': '_menu/breadcrumbs.html.twig'}) }}
  198.         {% block mainContainer %}{% endblock %}
  199.         {% if not skip_listing_recommendations|default(false) %}
  200.             {{ include('BotHelper/_profile_bot_helper.html.twig') }}
  201.         {% endif %}
  202.         {{ seo_footer() }}
  203.         {% set footerCity = app.request.attributes.get('city', default_city()) %}
  204.         {% if feature('intim_moscow_listing') and footerCity.id == default_city().id %}
  205.             <div>
  206.                 <a href=\"{{ path('profile_list.list_intim') }}\">Интим объявления Москва</a>
  207.             </div>
  208.         {% endif %}
  209.         </div>
  210.     </div>
  211. {% endblock %}
  212. ""grid.html.twig""/app/templates/grid.html.twig");
  213.     }
  214. }