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

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.         echo $this->extensions['App\Twig\SeoExtension']->topHtml();
  62.         echo "
  63.     <h1>";
  64.         // line 5
  65.         echo $this->extensions['App\Twig\SeoExtension']->pageHeading();
  66.         echo "</h1>
  67.     ";
  68.         // line 6
  69.         $this->loadTemplate("ProfileList/geo_category_linkage.partial.html.twig""SaloonList/list.html.twig"6)->display($context);
  70.         // line 7
  71.         echo "
  72.     <div
  73.         id=\"saloon-list\"
  74.         class=\"row mb-3\"
  75.         data-recommendations-fill-applied=\"";
  76.         // line 11
  77.         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.'11$this->source); })()), false)) : (false))) ? (1) : (0));
  78.         echo "\"
  79.         data-recommendations-fill-original-count=\"";
  80.         // line 12
  81.         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.'12$this->source); })()), ((twig_get_attribute($this->env$this->source, ($context["saloons"] ?? null), "totalCount", [], "any"truetruefalse12)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source, ($context["saloons"] ?? null), "totalCount", [], "any"falsefalsefalse12), 0)) : (0)))) : (((twig_get_attribute($this->env$this->source, ($context["saloons"] ?? null), "totalCount", [], "any"truetruefalse12)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source, ($context["saloons"] ?? null), "totalCount", [], "any"falsefalsefalse12), 0)) : (0)))), "html"nulltrue);
  82.         echo "\"
  83.     >
  84.         ";
  85.         // line 14
  86.         $this->loadTemplate("SaloonList/list.saloons.html.twig""SaloonList/list.html.twig"14)->display($context);
  87.         // line 15
  88.         echo "    </div>
  89.     ";
  90.         // line 16
  91.         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.'16$this->source); })())))) {
  92.             // line 17
  93.             echo "        <h4>Рекоммендуемые</h4>
  94.         <div class=\"row mb-3\">
  95.             ";
  96.             // line 19
  97.             $this->loadTemplate("ProfileList/list.profiles.html.twig""SaloonList/list.html.twig"19)->display(twig_array_merge($context, ["profiles" =>             // line 20
  98. (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.'20$this->source); })()), "show_total_count" => false]));
  99.             // line 23
  100.             echo "        </div>
  101.     ";
  102.         }
  103.         // line 25
  104.         echo "    ";
  105.         $this->loadTemplate("SaloonList/_show_more.saloons.html.twig""SaloonList/list.html.twig"25)->display($context);
  106.         // line 26
  107.         echo "    ";
  108.         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.'26$this->source); })()));
  109.         echo "
  110. ";
  111.         
  112.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  113.         
  114.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  115.         
  116.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  117.     }
  118.     /**
  119.      * @codeCoverageIgnore
  120.      */
  121.     public function getTemplateName()
  122.     {
  123.         return "SaloonList/list.html.twig";
  124.     }
  125.     /**
  126.      * @codeCoverageIgnore
  127.      */
  128.     public function isTraitable()
  129.     {
  130.         return false;
  131.     }
  132.     /**
  133.      * @codeCoverageIgnore
  134.      */
  135.     public function getDebugInfo()
  136.     {
  137.         return array (  124 => 26,  121 => 25,  117 => 23,  115 => 20,  114 => 19,  110 => 17,  108 => 16,  105 => 15,  103 => 14,  98 => 12,  94 => 11,  88 => 7,  86 => 6,  82 => 5,  77 => 4,  64 => 3,  35 => 1,);
  138.     }
  139.     public function getSourceContext()
  140.     {
  141.         return new Source("{% extends 'grid.html.twig' %}
  142. {% block mainContainer %}
  143.     {{ seo_top() }}
  144.     <h1>{{ seo_heading() }}</h1>
  145.     {% include 'ProfileList/geo_category_linkage.partial.html.twig' %}
  146.     <div
  147.         id=\"saloon-list\"
  148.         class=\"row mb-3\"
  149.         data-recommendations-fill-applied=\"{{ recommendations_fill_applied|default(false) ? 1 : 0 }}\"
  150.         data-recommendations-fill-original-count=\"{{ recommendations_fill_original_count|default(saloons.totalCount|default(0)) }}\"
  151.     >
  152.         {% include 'SaloonList/list.saloons.html.twig' %}
  153.     </div>
  154.     {% if ssr_recommended_profiles is defined and ssr_recommended_profiles is not empty %}
  155.         <h4>Рекоммендуемые</h4>
  156.         <div class=\"row mb-3\">
  157.             {% include 'ProfileList/list.profiles.html.twig' with {
  158.                 profiles: ssr_recommended_profiles,
  159.                 show_total_count: false
  160.             } %}
  161.         </div>
  162.     {% endif %}
  163.     {% include 'SaloonList/_show_more.saloons.html.twig' %}
  164.     {{ porpaginas_render(saloons) }}
  165. {% endblock %}
  166. ""SaloonList/list.html.twig""/app/templates/SaloonList/list.html.twig");
  167.     }
  168. }