var/cache/review/twig/ae/aec3444debd06f0db7dbcdb4fbdc75cb.php line 67

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. /* Gallery/list.html.twig */
  14. class __TwigTemplate_1e731d36884bce3fc8d8e0383eb70974 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""Gallery/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""Gallery/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""Gallery/list.html.twig"));
  40.         // line 3
  41.         $context["city"] = twig_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), "get", ["city"], "method"falsefalsefalse3);
  42.         // line 1
  43.         $this->parent $this->loadTemplate("grid.html.twig""Gallery/list.html.twig"1);
  44.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  45.         
  46.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  47.         
  48.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  49.         
  50.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  51.     }
  52.     // line 5
  53.     public function block_mainContainer($context, array $blocks = [])
  54.     {
  55.         $macros $this->macros;
  56.         $__internal_b91a4435ea3baf1e2b6bfda56133dace $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  57.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""mainContainer"));
  58.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  59.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""mainContainer"));
  60.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  61.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""mainContainer"));
  62.         // line 6
  63.         echo "    <h1>";
  64.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Проститутки %ofCity%, шлюхи и путаны", ["%ofCity%" => $this->extensions['BigIdea\Bundle\GeographicalNamesInflectionBundle\Twig\GeographicalNamesInflectionTwigExtension']->geoNameInflection($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env$this->source, (isset($context["city"]) || array_key_exists("city"$context) ? $context["city"] : (function () { throw new RuntimeError('Variable "city" does not exist.'6$this->source); })()), "name", [], "any"falsefalsefalse6)), "genitive")], "messages");
  65.         echo "</h1>
  66.     ";
  67.         // line 8
  68.         echo $this->extensions['Porpaginas\Twig\PorpaginasExtension']->renderPagination($this->env, (isset($context["profiles"]) || array_key_exists("profiles"$context) ? $context["profiles"] : (function () { throw new RuntimeError('Variable "profiles" does not exist.'8$this->source); })()));
  69.         echo "
  70.     <div class=\"row mb-3\">
  71.     ";
  72.         // line 11
  73.         $context['_parent'] = $context;
  74.         $context['_seq'] = twig_ensure_traversable((isset($context["profiles"]) || array_key_exists("profiles"$context) ? $context["profiles"] : (function () { throw new RuntimeError('Variable "profiles" does not exist.'11$this->source); })()));
  75.         $context['loop'] = [
  76.           'parent' => $context['_parent'],
  77.           'index0' => 0,
  78.           'index'  => 1,
  79.           'first'  => true,
  80.         ];
  81.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  82.             $length count($context['_seq']);
  83.             $context['loop']['revindex0'] = $length 1;
  84.             $context['loop']['revindex'] = $length;
  85.             $context['loop']['length'] = $length;
  86.             $context['loop']['last'] = === $length;
  87.         }
  88.         foreach ($context['_seq'] as $context["_key"] => $context["profile"]) {
  89.             // line 12
  90.             echo "        <div class=\"col-4\">
  91.             <div class=\"card\">
  92.                 <img class=\"card-img-top\" src=\"";
  93.             // line 14
  94.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["profile"], "photos", [], "any"falsefalsefalse14), 0, [], "array"falsefalsefalse14), "path", [], "any"falsefalsefalse14), "html"nulltrue);
  95.             echo "\" alt=\"\">
  96.                 <div class=\"card-body\">
  97.                     <h5 class=\"card-title\"><a href=\"";
  98.             // line 16
  99.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("profile_preview.page", ["city" => twig_get_attribute($this->env$this->source, (isset($context["city"]) || array_key_exists("city"$context) ? $context["city"] : (function () { throw new RuntimeError('Variable "city" does not exist.'16$this->source); })()), "uriIdentity", [], "any"falsefalsefalse16), "profile" => twig_get_attribute($this->env$this->source$context["profile"], "uriIdentity", [], "any"falsefalsefalse16)]), "html"nulltrue);
  100.             echo "\" title=\"\">";
  101.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env$this->source$context["profile"], "name", [], "any"falsefalsefalse16)), "html"nulltrue);
  102.             echo "</a></h5>
  103.                     <h6 class=\"card-subtitle mb-2\"><a href=\"tel:";
  104.             // line 17
  105.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["profile"], "phoneNumber", [], "any"falsefalsefalse17), "html"nulltrue);
  106.             echo "\">";
  107.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["profile"], "phoneNumber", [], "any"falsefalsefalse17), "html"nulltrue);
  108.             echo "</a></h6>
  109.                     ";
  110.             // line 18
  111.             $context['_parent'] = $context;
  112.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["profile"], "stations", [], "any"falsefalsefalse18));
  113.             $context['loop'] = [
  114.               'parent' => $context['_parent'],
  115.               'index0' => 0,
  116.               'index'  => 1,
  117.               'first'  => true,
  118.             ];
  119.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  120.                 $length count($context['_seq']);
  121.                 $context['loop']['revindex0'] = $length 1;
  122.                 $context['loop']['revindex'] = $length;
  123.                 $context['loop']['length'] = $length;
  124.                 $context['loop']['last'] = === $length;
  125.             }
  126.             foreach ($context['_seq'] as $context["_key"] => $context["station"]) {
  127.                 // line 19
  128.                 echo "                        <a href=\"";
  129.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("profile_list.list_by_station", ["city" => twig_get_attribute($this->env$this->source, (isset($context["city"]) || array_key_exists("city"$context) ? $context["city"] : (function () { throw new RuntimeError('Variable "city" does not exist.'19$this->source); })()), "uriIdentity", [], "any"falsefalsefalse19), "station" => twig_get_attribute($this->env$this->source$context["station"], "uriIdentity", [], "any"falsefalsefalse19)]), "html"nulltrue);
  130.                 echo "\">";
  131.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env$this->source$context["station"], "name", [], "any"falsefalsefalse19)), "html"nulltrue);
  132.                 echo "</a>
  133.                         ";
  134.                 // line 20
  135.                 if ( !twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsefalse20)) {
  136.                     echo ", ";
  137.                 }
  138.                 // line 21
  139.                 echo "                    ";
  140.                 ++$context['loop']['index0'];
  141.                 ++$context['loop']['index'];
  142.                 $context['loop']['first'] = false;
  143.                 if (isset($context['loop']['length'])) {
  144.                     --$context['loop']['revindex0'];
  145.                     --$context['loop']['revindex'];
  146.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  147.                 }
  148.             }
  149.             $_parent $context['_parent'];
  150.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['station'], $context['_parent'], $context['loop']);
  151.             $context array_intersect_key($context$_parent) + $_parent;
  152.             // line 22
  153.             echo "                    <dl class=\"small\">
  154.                         <dt>";
  155.             // line 23
  156.             echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Возраст", [], "messages");
  157.             echo "</dt>
  158.                         <dd>";
  159.             // line 24
  160.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["profile"], "personParameters", [], "any"falsefalsefalse24), "age", [], "any"falsefalsefalse24), "html"nulltrue);
  161.             echo "</dd>
  162.                         <dt>";
  163.             // line 25
  164.             echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Рост", [], "messages");
  165.             echo "</dt>
  166.                         <dd>";
  167.             // line 26
  168.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["profile"], "personParameters", [], "any"falsefalsefalse26), "height", [], "any"falsefalsefalse26), "html"nulltrue);
  169.             echo "</dd>
  170.                         <dt>";
  171.             // line 27
  172.             echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Вес", [], "messages");
  173.             echo "</dt>
  174.                         <dd>";
  175.             // line 28
  176.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["profile"], "personParameters", [], "any"falsefalsefalse28), "weight", [], "any"falsefalsefalse28), "html"nulltrue);
  177.             echo "</dd>
  178.                         <dt>";
  179.             // line 29
  180.             echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Грудь", [], "messages");
  181.             echo "</dt>
  182.                         <dd>";
  183.             // line 30
  184.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["profile"], "personParameters", [], "any"falsefalsefalse30), "breastSize", [], "any"falsefalsefalse30), "html"nulltrue);
  185.             echo "</dd>
  186.                     </dl>
  187.                     <dl class=\"small\">
  188.                         <dt>";
  189.             // line 33
  190.             echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Час", [], "messages");
  191.             echo "</dt>
  192.                         <dd>";
  193.             // line 34
  194.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["profile"], "apartmentsPricing", [], "any"falsefalsefalse34), "oneHourPrice", [], "any"falsefalsefalse34), "html"nulltrue);
  195.             echo " руб</dd>
  196.                         <dt>";
  197.             // line 35
  198.             echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("2 часа", [], "messages");
  199.             echo "</dt>
  200.                         <dd>";
  201.             // line 36
  202.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["profile"], "apartmentsPricing", [], "any"falsefalsefalse36), "twoHoursPrice", [], "any"falsefalsefalse36), "html"nulltrue);
  203.             echo " руб</dd>
  204.                         <dt>";
  205.             // line 37
  206.             echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Ночь", [], "messages");
  207.             echo "</dt>
  208.                         <dd>";
  209.             // line 38
  210.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["profile"], "apartmentsPricing", [], "any"falsefalsefalse38), "nightPrice", [], "any"falsefalsefalse38), "html"nulltrue);
  211.             echo " руб</dd>
  212.                     </dl>
  213.                     <p class=\"small\">
  214.                         ";
  215.             // line 41
  216.             if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["profile"], "apartmentsPricing", [], "any"falsefalsefalse41), "isProvided", [], "any"falsefalsefalse41)) {
  217.                 // line 42
  218.                 echo "                            ";
  219.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("апартаменты"), "html"nulltrue);
  220.                 echo "
  221.                         ";
  222.             }
  223.             // line 44
  224.             echo "                        ";
  225.             if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["profile"], "takeOutPricing", [], "any"falsefalsefalse44), "isProvided", [], "any"falsefalsefalse44)) {
  226.                 // line 45
  227.                 echo "                            ";
  228.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("выезд"), "html"nulltrue);
  229.                 echo "
  230.                         ";
  231.             }
  232.             // line 47
  233.             echo "                    </p>
  234.                     <p class=\"card-text text-muted small\">";
  235.             // line 48
  236.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env$this->source$context["profile"], "description", [], "any"falsefalsefalse48)), "html"nulltrue);
  237.             echo "</p>
  238.                 </div>
  239.             </div>
  240.         </div>
  241.         ";
  242.             // line 53
  243.             if (((twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse53) % 4) == 0)) {
  244.                 echo "</div><div class=\"row mb-3\">";
  245.             }
  246.             // line 54
  247.             echo "    ";
  248.             ++$context['loop']['index0'];
  249.             ++$context['loop']['index'];
  250.             $context['loop']['first'] = false;
  251.             if (isset($context['loop']['length'])) {
  252.                 --$context['loop']['revindex0'];
  253.                 --$context['loop']['revindex'];
  254.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  255.             }
  256.         }
  257.         $_parent $context['_parent'];
  258.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['profile'], $context['_parent'], $context['loop']);
  259.         $context array_intersect_key($context$_parent) + $_parent;
  260.         // line 55
  261.         echo "    </div>
  262.     ";
  263.         // line 57
  264.         echo $this->extensions['Porpaginas\Twig\PorpaginasExtension']->renderPagination($this->env, (isset($context["profiles"]) || array_key_exists("profiles"$context) ? $context["profiles"] : (function () { throw new RuntimeError('Variable "profiles" does not exist.'57$this->source); })()));
  265.         echo "
  266. ";
  267.         
  268.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  269.         
  270.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  271.         
  272.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  273.     }
  274.     /**
  275.      * @codeCoverageIgnore
  276.      */
  277.     public function getTemplateName()
  278.     {
  279.         return "Gallery/list.html.twig";
  280.     }
  281.     /**
  282.      * @codeCoverageIgnore
  283.      */
  284.     public function isTraitable()
  285.     {
  286.         return false;
  287.     }
  288.     /**
  289.      * @codeCoverageIgnore
  290.      */
  291.     public function getDebugInfo()
  292.     {
  293.         return array (  285 => 57,  281 => 55,  267 => 54,  263 => 53,  255 => 48,  252 => 47,  246 => 45,  243 => 44,  237 => 42,  235 => 41,  229 => 38,  225 => 37,  221 => 36,  217 => 35,  213 => 34,  209 => 33,  203 => 30,  199 => 29,  195 => 28,  191 => 27,  187 => 26,  183 => 25,  179 => 24,  175 => 23,  172 => 22,  158 => 21,  154 => 20,  147 => 19,  130 => 18,  124 => 17,  118 => 16,  113 => 14,  109 => 12,  92 => 11,  86 => 8,  80 => 6,  67 => 5,  53 => 1,  51 => 3,  35 => 1,);
  294.     }
  295.     public function getSourceContext()
  296.     {
  297.         return new Source("{% extends 'grid.html.twig' %}
  298. {% set city = app.request.get('city') %}
  299. {% block mainContainer %}
  300.     <h1>{% trans with {'%ofCity%': city.name|trans|geo_name('genitive')} %}Проститутки %ofCity%, шлюхи и путаны{% endtrans %}</h1>
  301.     {{ porpaginas_render(profiles) }}
  302.     <div class=\"row mb-3\">
  303.     {% for profile in profiles %}
  304.         <div class=\"col-4\">
  305.             <div class=\"card\">
  306.                 <img class=\"card-img-top\" src=\"{{ profile.photos[0].path }}\" alt=\"\">
  307.                 <div class=\"card-body\">
  308.                     <h5 class=\"card-title\"><a href=\"{{ path('profile_preview.page', {'city': city.uriIdentity, 'profile': profile.uriIdentity}) }}\" title=\"\">{{ profile.name|trans }}</a></h5>
  309.                     <h6 class=\"card-subtitle mb-2\"><a href=\"tel:{{ profile.phoneNumber }}\">{{ profile.phoneNumber }}</a></h6>
  310.                     {% for station in profile.stations %}
  311.                         <a href=\"{{ path('profile_list.list_by_station', {'city': city.uriIdentity, 'station': station.uriIdentity}) }}\">{{ station.name|trans }}</a>
  312.                         {% if not loop.last %}, {% endif %}
  313.                     {% endfor %}
  314.                     <dl class=\"small\">
  315.                         <dt>{% trans %}Возраст{% endtrans %}</dt>
  316.                         <dd>{{ profile.personParameters.age }}</dd>
  317.                         <dt>{% trans %}Рост{% endtrans %}</dt>
  318.                         <dd>{{ profile.personParameters.height }}</dd>
  319.                         <dt>{% trans %}Вес{% endtrans %}</dt>
  320.                         <dd>{{ profile.personParameters.weight }}</dd>
  321.                         <dt>{% trans %}Грудь{% endtrans %}</dt>
  322.                         <dd>{{ profile.personParameters.breastSize }}</dd>
  323.                     </dl>
  324.                     <dl class=\"small\">
  325.                         <dt>{% trans %}Час{% endtrans %}</dt>
  326.                         <dd>{{ profile.apartmentsPricing.oneHourPrice }} руб</dd>
  327.                         <dt>{% trans %}2 часа{% endtrans %}</dt>
  328.                         <dd>{{ profile.apartmentsPricing.twoHoursPrice }} руб</dd>
  329.                         <dt>{% trans %}Ночь{% endtrans %}</dt>
  330.                         <dd>{{ profile.apartmentsPricing.nightPrice }} руб</dd>
  331.                     </dl>
  332.                     <p class=\"small\">
  333.                         {% if profile.apartmentsPricing.isProvided %}
  334.                             {{ 'апартаменты'|trans }}
  335.                         {% endif %}
  336.                         {% if profile.takeOutPricing.isProvided %}
  337.                             {{ 'выезд'|trans }}
  338.                         {% endif %}
  339.                     </p>
  340.                     <p class=\"card-text text-muted small\">{{ profile.description|trans }}</p>
  341.                 </div>
  342.             </div>
  343.         </div>
  344.         {% if loop.index % 4 == 0 %}</div><div class=\"row mb-3\">{% endif %}
  345.     {% endfor %}
  346.     </div>
  347.     {{ porpaginas_render(profiles) }}
  348. {% endblock %}
  349. ""Gallery/list.html.twig""/app/templates/Gallery/list.html.twig");
  350.     }
  351. }