<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* Gallery/list.html.twig */
class __TwigTemplate_1e731d36884bce3fc8d8e0383eb70974 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'mainContainer' => [$this, 'block_mainContainer'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "grid.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Gallery/list.html.twig"));
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Gallery/list.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Gallery/list.html.twig"));
// line 3
$context["city"] = twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 3), "get", ["city"], "method", false, false, false, 3);
// line 1
$this->parent = $this->loadTemplate("grid.html.twig", "Gallery/list.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 5
public function block_mainContainer($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "mainContainer"));
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "mainContainer"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "mainContainer"));
// line 6
echo " <h1>";
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", false, false, false, 6)), "genitive")], "messages");
echo "</h1>
";
// line 8
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); })()));
echo "
<div class=\"row mb-3\">
";
// line 11
$context['_parent'] = $context;
$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); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["profile"]) {
// line 12
echo " <div class=\"col-4\">
<div class=\"card\">
<img class=\"card-img-top\" src=\"";
// line 14
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["profile"], "photos", [], "any", false, false, false, 14), 0, [], "array", false, false, false, 14), "path", [], "any", false, false, false, 14), "html", null, true);
echo "\" alt=\"\">
<div class=\"card-body\">
<h5 class=\"card-title\"><a href=\"";
// line 16
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", false, false, false, 16), "profile" => twig_get_attribute($this->env, $this->source, $context["profile"], "uriIdentity", [], "any", false, false, false, 16)]), "html", null, true);
echo "\" title=\"\">";
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", false, false, false, 16)), "html", null, true);
echo "</a></h5>
<h6 class=\"card-subtitle mb-2\"><a href=\"tel:";
// line 17
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["profile"], "phoneNumber", [], "any", false, false, false, 17), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["profile"], "phoneNumber", [], "any", false, false, false, 17), "html", null, true);
echo "</a></h6>
";
// line 18
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["profile"], "stations", [], "any", false, false, false, 18));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["station"]) {
// line 19
echo " <a href=\"";
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", false, false, false, 19), "station" => twig_get_attribute($this->env, $this->source, $context["station"], "uriIdentity", [], "any", false, false, false, 19)]), "html", null, true);
echo "\">";
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", false, false, false, 19)), "html", null, true);
echo "</a>
";
// line 20
if ( !twig_get_attribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, false, 20)) {
echo ", ";
}
// line 21
echo " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['station'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 22
echo " <dl class=\"small\">
<dt>";
// line 23
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Возраст", [], "messages");
echo "</dt>
<dd>";
// line 24
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["profile"], "personParameters", [], "any", false, false, false, 24), "age", [], "any", false, false, false, 24), "html", null, true);
echo "</dd>
<dt>";
// line 25
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Рост", [], "messages");
echo "</dt>
<dd>";
// line 26
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["profile"], "personParameters", [], "any", false, false, false, 26), "height", [], "any", false, false, false, 26), "html", null, true);
echo "</dd>
<dt>";
// line 27
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Вес", [], "messages");
echo "</dt>
<dd>";
// line 28
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["profile"], "personParameters", [], "any", false, false, false, 28), "weight", [], "any", false, false, false, 28), "html", null, true);
echo "</dd>
<dt>";
// line 29
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Грудь", [], "messages");
echo "</dt>
<dd>";
// line 30
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["profile"], "personParameters", [], "any", false, false, false, 30), "breastSize", [], "any", false, false, false, 30), "html", null, true);
echo "</dd>
</dl>
<dl class=\"small\">
<dt>";
// line 33
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Час", [], "messages");
echo "</dt>
<dd>";
// line 34
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["profile"], "apartmentsPricing", [], "any", false, false, false, 34), "oneHourPrice", [], "any", false, false, false, 34), "html", null, true);
echo " руб</dd>
<dt>";
// line 35
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("2 часа", [], "messages");
echo "</dt>
<dd>";
// line 36
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["profile"], "apartmentsPricing", [], "any", false, false, false, 36), "twoHoursPrice", [], "any", false, false, false, 36), "html", null, true);
echo " руб</dd>
<dt>";
// line 37
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Ночь", [], "messages");
echo "</dt>
<dd>";
// line 38
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["profile"], "apartmentsPricing", [], "any", false, false, false, 38), "nightPrice", [], "any", false, false, false, 38), "html", null, true);
echo " руб</dd>
</dl>
<p class=\"small\">
";
// line 41
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["profile"], "apartmentsPricing", [], "any", false, false, false, 41), "isProvided", [], "any", false, false, false, 41)) {
// line 42
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("апартаменты"), "html", null, true);
echo "
";
}
// line 44
echo " ";
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["profile"], "takeOutPricing", [], "any", false, false, false, 44), "isProvided", [], "any", false, false, false, 44)) {
// line 45
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("выезд"), "html", null, true);
echo "
";
}
// line 47
echo " </p>
<p class=\"card-text text-muted small\">";
// line 48
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", false, false, false, 48)), "html", null, true);
echo "</p>
</div>
</div>
</div>
";
// line 53
if (((twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 53) % 4) == 0)) {
echo "</div><div class=\"row mb-3\">";
}
// line 54
echo " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['profile'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 55
echo " </div>
";
// line 57
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); })()));
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "Gallery/list.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% extends 'grid.html.twig' %}
{% set city = app.request.get('city') %}
{% block mainContainer %}
<h1>{% trans with {'%ofCity%': city.name|trans|geo_name('genitive')} %}Проститутки %ofCity%, шлюхи и путаны{% endtrans %}</h1>
{{ porpaginas_render(profiles) }}
<div class=\"row mb-3\">
{% for profile in profiles %}
<div class=\"col-4\">
<div class=\"card\">
<img class=\"card-img-top\" src=\"{{ profile.photos[0].path }}\" alt=\"\">
<div class=\"card-body\">
<h5 class=\"card-title\"><a href=\"{{ path('profile_preview.page', {'city': city.uriIdentity, 'profile': profile.uriIdentity}) }}\" title=\"\">{{ profile.name|trans }}</a></h5>
<h6 class=\"card-subtitle mb-2\"><a href=\"tel:{{ profile.phoneNumber }}\">{{ profile.phoneNumber }}</a></h6>
{% for station in profile.stations %}
<a href=\"{{ path('profile_list.list_by_station', {'city': city.uriIdentity, 'station': station.uriIdentity}) }}\">{{ station.name|trans }}</a>
{% if not loop.last %}, {% endif %}
{% endfor %}
<dl class=\"small\">
<dt>{% trans %}Возраст{% endtrans %}</dt>
<dd>{{ profile.personParameters.age }}</dd>
<dt>{% trans %}Рост{% endtrans %}</dt>
<dd>{{ profile.personParameters.height }}</dd>
<dt>{% trans %}Вес{% endtrans %}</dt>
<dd>{{ profile.personParameters.weight }}</dd>
<dt>{% trans %}Грудь{% endtrans %}</dt>
<dd>{{ profile.personParameters.breastSize }}</dd>
</dl>
<dl class=\"small\">
<dt>{% trans %}Час{% endtrans %}</dt>
<dd>{{ profile.apartmentsPricing.oneHourPrice }} руб</dd>
<dt>{% trans %}2 часа{% endtrans %}</dt>
<dd>{{ profile.apartmentsPricing.twoHoursPrice }} руб</dd>
<dt>{% trans %}Ночь{% endtrans %}</dt>
<dd>{{ profile.apartmentsPricing.nightPrice }} руб</dd>
</dl>
<p class=\"small\">
{% if profile.apartmentsPricing.isProvided %}
{{ 'апартаменты'|trans }}
{% endif %}
{% if profile.takeOutPricing.isProvided %}
{{ 'выезд'|trans }}
{% endif %}
</p>
<p class=\"card-text text-muted small\">{{ profile.description|trans }}</p>
</div>
</div>
</div>
{% if loop.index % 4 == 0 %}</div><div class=\"row mb-3\">{% endif %}
{% endfor %}
</div>
{{ porpaginas_render(profiles) }}
{% endblock %}
", "Gallery/list.html.twig", "/app/templates/Gallery/list.html.twig");
}
}