var/cache/review/twig/76/764d0000458cbda1f5df5a4f32c8b4ed.php line 80

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. /* SaloonList/list.html.twig */
  14. class __TwigTemplate_cd32d473bfffc170e928bda445bf9ffa 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.             'title' => [$this, 'block_title'],
  24.             'metaDescription' => [$this, 'block_metaDescription'],
  25.             'mainContainer' => [$this, 'block_mainContainer'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 1
  31.         return "grid.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", "SaloonList/list.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", "SaloonList/list.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", "SaloonList/list.html.twig"));
  42.         $this->parent = $this->loadTemplate("grid.html.twig", "SaloonList/list.html.twig", 1);
  43.         $this->parent->display($context, array_merge($this->blocks, $blocks));
  44.         
  45.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  46.         
  47.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  48.         
  49.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  50.     }
  51.     // line 3
  52.     public function block_title($context, array $blocks = [])
  53.     {
  54.         $macros = $this->macros;
  55.         $__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  56.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
  57.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  58.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
  59.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  60.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
  61.         // line 4
  62.         echo "    ";
  63.         echo twig_escape_filter($this->env, $this->extensions['App\Twig\SeoExtension']->metaTitle(), "html", null, true);
  64.         echo "
  65. ";
  66.         
  67.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  68.         
  69.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  70.         
  71.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  72.     }
  73.     // line 7
  74.     public function block_metaDescription($context, array $blocks = [])
  75.     {
  76.         $macros = $this->macros;
  77.         $__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  78.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metaDescription"));
  79.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  80.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metaDescription"));
  81.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  82.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metaDescription"));
  83.         // line 8
  84.         echo "    <meta name=\"description\" content=\"";
  85.         echo twig_escape_filter($this->env, $this->extensions['App\Twig\SeoExtension']->metaDescription(), "html", null, true);
  86.         echo "\">
  87. ";
  88.         
  89.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  90.         
  91.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  92.         
  93.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  94.     }
  95.     // line 11
  96.     public function block_mainContainer($context, array $blocks = [])
  97.     {
  98.         $macros = $this->macros;
  99.         $__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  100.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "mainContainer"));
  101.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  102.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "mainContainer"));
  103.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  104.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "mainContainer"));
  105.         // line 12
  106.         echo "    ";
  107.         echo $this->extensions['App\Twig\SeoExtension']->topHtml();
  108.         echo "
  109.     <h1>";
  110.         // line 13
  111.         echo $this->extensions['App\Twig\SeoExtension']->pageHeading();
  112.         echo "</h1>
  113.     ";
  114.         // line 14
  115.         $this->loadTemplate("ProfileList/geo_category_linkage.partial.html.twig", "SaloonList/list.html.twig", 14)->display($context);
  116.         // line 15
  117.         echo "
  118.     <div
  119.         id=\"saloon-list\"
  120.         class=\"row mb-3\"
  121.         data-recommendations-fill-applied=\"";
  122.         // line 19
  123.         echo ((((array_key_exists("recommendations_fill_applied", $context)) ? (_twig_default_filter((isset($context["recommendations_fill_applied"]) || array_key_exists("recommendations_fill_applied", $context) ? $context["recommendations_fill_applied"] : (function () { throw new RuntimeError('Variable "recommendations_fill_applied" does not exist.', 19, $this->source); })()), false)) : (false))) ? (1) : (0));
  124.         echo "\"
  125.         data-recommendations-fill-original-count=\"";
  126.         // line 20
  127.         echo twig_escape_filter($this->env, ((array_key_exists("recommendations_fill_original_count", $context)) ? (_twig_default_filter((isset($context["recommendations_fill_original_count"]) || array_key_exists("recommendations_fill_original_count", $context) ? $context["recommendations_fill_original_count"] : (function () { throw new RuntimeError('Variable "recommendations_fill_original_count" does not exist.', 20, $this->source); })()), ((twig_get_attribute($this->env, $this->source, ($context["saloons"] ?? null), "totalCount", [], "any", true, true, false, 20)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["saloons"] ?? null), "totalCount", [], "any", false, false, false, 20), 0)) : (0)))) : (((twig_get_attribute($this->env, $this->source, ($context["saloons"] ?? null), "totalCount", [], "any", true, true, false, 20)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["saloons"] ?? null), "totalCount", [], "any", false, false, false, 20), 0)) : (0)))), "html", null, true);
  128.         echo "\"
  129.     >
  130.         ";
  131.         // line 22
  132.         $this->loadTemplate("SaloonList/list.saloons.html.twig", "SaloonList/list.html.twig", 22)->display($context);
  133.         // line 23
  134.         echo "    </div>
  135.     ";
  136.         // line 24
  137.         if ((array_key_exists("ssr_recommended_profiles", $context) &&  !twig_test_empty((isset($context["ssr_recommended_profiles"]) || array_key_exists("ssr_recommended_profiles", $context) ? $context["ssr_recommended_profiles"] : (function () { throw new RuntimeError('Variable "ssr_recommended_profiles" does not exist.', 24, $this->source); })())))) {
  138.             // line 25
  139.             echo "        <h4>Рекоммендуемые</h4>
  140.         <div class=\"row mb-3\">
  141.             ";
  142.             // line 27
  143.             $this->loadTemplate("ProfileList/list.profiles.html.twig", "SaloonList/list.html.twig", 27)->display(twig_array_merge($context, ["profiles" =>             // line 28
  144. (isset($context["ssr_recommended_profiles"]) || array_key_exists("ssr_recommended_profiles", $context) ? $context["ssr_recommended_profiles"] : (function () { throw new RuntimeError('Variable "ssr_recommended_profiles" does not exist.', 28, $this->source); })()), "show_total_count" => false]));
  145.             // line 31
  146.             echo "        </div>
  147.     ";
  148.         }
  149.         // line 33
  150.         echo "    ";
  151.         $this->loadTemplate("SaloonList/_show_more.saloons.html.twig", "SaloonList/list.html.twig", 33)->display($context);
  152.         // line 34
  153.         echo "    ";
  154.         echo $this->extensions['Porpaginas\Twig\PorpaginasExtension']->renderPagination($this->env, (isset($context["saloons"]) || array_key_exists("saloons", $context) ? $context["saloons"] : (function () { throw new RuntimeError('Variable "saloons" does not exist.', 34, $this->source); })()));
  155.         echo "
  156. ";
  157.         
  158.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  159.         
  160.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  161.         
  162.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  163.     }
  164.     /**
  165.      * @codeCoverageIgnore
  166.      */
  167.     public function getTemplateName()
  168.     {
  169.         return "SaloonList/list.html.twig";
  170.     }
  171.     /**
  172.      * @codeCoverageIgnore
  173.      */
  174.     public function isTraitable()
  175.     {
  176.         return false;
  177.     }
  178.     /**
  179.      * @codeCoverageIgnore
  180.      */
  181.     public function getDebugInfo()
  182.     {
  183.         return array (  184 => 34,  181 => 33,  177 => 31,  175 => 28,  174 => 27,  170 => 25,  168 => 24,  165 => 23,  163 => 22,  158 => 20,  154 => 19,  148 => 15,  146 => 14,  142 => 13,  137 => 12,  124 => 11,  108 => 8,  95 => 7,  79 => 4,  66 => 3,  37 => 1,);
  184.     }
  185.     public function getSourceContext()
  186.     {
  187.         return new Source("{% extends 'grid.html.twig' %}
  188. {% block title %}
  189.     {{ seo_title() }}
  190. {% endblock %}
  191. {% block metaDescription %}
  192.     <meta name=\"description\" content=\"{{ seo_description() }}\">
  193. {% endblock %}
  194. {% block mainContainer %}
  195.     {{ seo_top() }}
  196.     <h1>{{ seo_heading() }}</h1>
  197.     {% include 'ProfileList/geo_category_linkage.partial.html.twig' %}
  198.     <div
  199.         id=\"saloon-list\"
  200.         class=\"row mb-3\"
  201.         data-recommendations-fill-applied=\"{{ recommendations_fill_applied|default(false) ? 1 : 0 }}\"
  202.         data-recommendations-fill-original-count=\"{{ recommendations_fill_original_count|default(saloons.totalCount|default(0)) }}\"
  203.     >
  204.         {% include 'SaloonList/list.saloons.html.twig' %}
  205.     </div>
  206.     {% if ssr_recommended_profiles is defined and ssr_recommended_profiles is not empty %}
  207.         <h4>Рекоммендуемые</h4>
  208.         <div class=\"row mb-3\">
  209.             {% include 'ProfileList/list.profiles.html.twig' with {
  210.                 profiles: ssr_recommended_profiles,
  211.                 show_total_count: false
  212.             } %}
  213.         </div>
  214.     {% endif %}
  215.     {% include 'SaloonList/_show_more.saloons.html.twig' %}
  216.     {{ porpaginas_render(saloons) }}
  217. {% endblock %}
  218. ", "SaloonList/list.html.twig", "/app/templates/SaloonList/list.html.twig");
  219.     }
  220. }