var/cache/review/twig/d7/d78dfc8e559f63014fcb61ede69230a7.php line 51

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_7baac6302ffef406500bd87a50b9e3f4 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.             'mainContainer' => [$this'block_mainContainer'],
  24.         ];
  25.     }
  26.     protected function doGetParent(array $context)
  27.     {
  28.         // line 1
  29.         return "grid.html.twig";
  30.     }
  31.     protected function doDisplay(array $context, array $blocks = [])
  32.     {
  33.         $macros $this->macros;
  34.         $__internal_b91a4435ea3baf1e2b6bfda56133dace $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  35.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""SaloonList/list.html.twig"));
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""SaloonList/list.html.twig"));
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""SaloonList/list.html.twig"));
  40.         $this->parent $this->loadTemplate("grid.html.twig""SaloonList/list.html.twig"1);
  41.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  42.         
  43.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  44.         
  45.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  46.         
  47.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  48.     }
  49.     // line 3
  50.     public function block_mainContainer($context, array $blocks = [])
  51.     {
  52.         $macros $this->macros;
  53.         $__internal_b91a4435ea3baf1e2b6bfda56133dace $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  54.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""mainContainer"));
  55.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  56.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""mainContainer"));
  57.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  58.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""mainContainer"));
  59.         // line 4
  60.         echo "
  61.     <div
  62.         id=\"saloon-list\"
  63.         class=\"row mb-3\"
  64.         data-recommendations-fill-applied=\"";
  65.         // line 8
  66.         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.'8$this->source); })()), false)) : (false))) ? (1) : (0));
  67.         echo "\"
  68.         data-recommendations-fill-original-count=\"";
  69.         // line 9
  70.         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.'9$this->source); })()), ((twig_get_attribute($this->env$this->source, ($context["saloons"] ?? null), "totalCount", [], "any"truetruefalse9)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source, ($context["saloons"] ?? null), "totalCount", [], "any"falsefalsefalse9), 0)) : (0)))) : (((twig_get_attribute($this->env$this->source, ($context["saloons"] ?? null), "totalCount", [], "any"truetruefalse9)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source, ($context["saloons"] ?? null), "totalCount", [], "any"falsefalsefalse9), 0)) : (0)))), "html"nulltrue);
  71.         echo "\"
  72.     >
  73.         ";
  74.         // line 11
  75.         $this->loadTemplate("SaloonList/list.saloons.html.twig""SaloonList/list.html.twig"11)->display($context);
  76.         // line 12
  77.         echo "    </div>
  78.     ";
  79.         // line 13
  80.         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.'13$this->source); })())))) {
  81.             // line 14
  82.             echo "        <h4>Рекоммендуемые</h4>
  83.         <div class=\"row mb-3\">
  84.             ";
  85.             // line 16
  86.             $this->loadTemplate("ProfileList/list.profiles.html.twig""SaloonList/list.html.twig"16)->display(twig_array_merge($context, ["profiles" =>             // line 17
  87. (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.'17$this->source); })()), "show_total_count" => false]));
  88.             // line 20
  89.             echo "        </div>
  90.     ";
  91.         }
  92.         // line 22
  93.         echo "    ";
  94.         $this->loadTemplate("SaloonList/_show_more.saloons.html.twig""SaloonList/list.html.twig"22)->display($context);
  95.         // line 23
  96.         echo "    ";
  97.         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.'23$this->source); })()));
  98.         echo "
  99. ";
  100.         
  101.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  102.         
  103.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  104.         
  105.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  106.     }
  107.     /**
  108.      * @codeCoverageIgnore
  109.      */
  110.     public function getTemplateName()
  111.     {
  112.         return "SaloonList/list.html.twig";
  113.     }
  114.     /**
  115.      * @codeCoverageIgnore
  116.      */
  117.     public function isTraitable()
  118.     {
  119.         return false;
  120.     }
  121.     /**
  122.      * @codeCoverageIgnore
  123.      */
  124.     public function getDebugInfo()
  125.     {
  126.         return array (  113 => 23,  110 => 22,  106 => 20,  104 => 17,  103 => 16,  99 => 14,  97 => 13,  94 => 12,  92 => 11,  87 => 9,  83 => 8,  77 => 4,  64 => 3,  35 => 1,);
  127.     }
  128.     public function getSourceContext()
  129.     {
  130.         return new Source("{% extends 'grid.html.twig' %}
  131. {% block mainContainer %}
  132.     <div
  133.         id=\"saloon-list\"
  134.         class=\"row mb-3\"
  135.         data-recommendations-fill-applied=\"{{ recommendations_fill_applied|default(false) ? 1 : 0 }}\"
  136.         data-recommendations-fill-original-count=\"{{ recommendations_fill_original_count|default(saloons.totalCount|default(0)) }}\"
  137.     >
  138.         {% include 'SaloonList/list.saloons.html.twig' %}
  139.     </div>
  140.     {% if ssr_recommended_profiles is defined and ssr_recommended_profiles is not empty %}
  141.         <h4>Рекоммендуемые</h4>
  142.         <div class=\"row mb-3\">
  143.             {% include 'ProfileList/list.profiles.html.twig' with {
  144.                 profiles: ssr_recommended_profiles,
  145.                 show_total_count: false
  146.             } %}
  147.         </div>
  148.     {% endif %}
  149.     {% include 'SaloonList/_show_more.saloons.html.twig' %}
  150.     {{ porpaginas_render(saloons) }}
  151. {% endblock %}
  152. ""SaloonList/list.html.twig""/app/templates/SaloonList/list.html.twig");
  153.     }
  154. }