<?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;
/* ProfilePreview/page.html.twig */
class __TwigTemplate_c169b2457306e63df82a8554c8176c37 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'metaDescription' => [$this, 'block_metaDescription'],
'navbar' => [$this, 'block_navbar'],
'mainContainer' => [$this, 'block_mainContainer'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "ProfilePreview/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", "ProfilePreview/page.html.twig"));
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "ProfilePreview/page.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "ProfilePreview/page.html.twig"));
$this->parent = $this->loadTemplate("ProfilePreview/grid.html.twig", "ProfilePreview/page.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 3
public function block_title($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", "title"));
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
echo twig_escape_filter($this->env, $this->extensions['App\Twig\SeoExtension']->metaTitle(), "html", null, true);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
}
// line 5
public function block_metaDescription($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", "metaDescription"));
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metaDescription"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metaDescription"));
// line 6
echo " <meta name=\"description\" content=\"";
echo twig_escape_filter($this->env, $this->extensions['App\Twig\SeoExtension']->metaDescription(), "html", null, true);
echo "\">
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
}
// line 9
public function block_navbar($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", "navbar"));
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "navbar"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "navbar"));
// line 10
echo " ";
$this->displayParentBlock("navbar", $context, $blocks);
echo "
";
// line 11
$context["excludeRecommendationProfileIds"] = [twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 11, $this->source); })()), "id", [], "any", false, false, false, 11)];
// line 12
echo " ";
$this->loadTemplate("Recommendations/_profile_recommendations.html.twig", "ProfilePreview/page.html.twig", 12)->display($context);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
}
// line 15
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 16
echo " <div class=\"row\" alt=\"";
((twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 16, $this->source); })()), "seo", [], "any", false, false, false, 16)) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 16, $this->source); })()), "seo", [], "any", false, false, false, 16), "phone", [], "any", false, false, false, 16), "html", null, true))) : (print ("")));
echo "\">
<div class=\"col-3\">
<div id=\"left_column_metric\">
";
// line 19
if (( !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.', 19, $this->source); })()), "user", [], "any", false, false, false, 19) || $this->extensions['App\Twig\UserExtension']->isUserCustomer(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.', 19, $this->source); })()), "user", [], "any", false, false, false, 19)))) {
// line 20
echo " <div><a class=\"add-remove-favourite\" data-action=\"remove\" href=\"javascript:void(0);\"
style=\"display: ";
// line 21
echo (($this->extensions['App\Twig\UserExtension']->isProfileInFavourites((isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 21, $this->source); })()))) ? ("block") : ("none"));
echo "\">UNLIKE</a></div>
<div><a class=\"add-remove-favourite\" data-action=\"add\"
style=\"display: ";
// line 23
echo (( !$this->extensions['App\Twig\UserExtension']->isProfileInFavourites((isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 23, $this->source); })()))) ? ("block") : ("none"));
echo "\"
";
// line 24
if (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.', 24, $this->source); })()), "user", [], "any", false, false, false, 24)) {
echo "href=\"javascript:void(0);\"
";
} else {
// line 25
echo "href=\"javascript:alert('Чтобы сделать что-то зарегистрируйтесь');\"";
}
echo ">LIKE</a>
</div>
";
}
// line 28
echo " <div class=\"row\">
";
// line 29
if (twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 29, $this->source); })()), "isApproved", [], "any", false, false, false, 29)) {
echo " <b style=\"color:green;\">APPROVED</b><br/> ";
}
// line 30
echo " ";
if ( !twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 30, $this->source); })()), "deleted", [], "any", false, false, false, 30)) {
// line 31
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 31, $this->source); })()), "isModerationRejected", [], "any", false, false, false, 31)) {
// line 32
echo " <img src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("static/img/red-circle.png"), "html", null, true);
echo "\"
alt=\"";
// line 33
((twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 33, $this->source); })()), "seo", [], "any", false, false, false, 33)) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 33, $this->source); })()), "seo", [], "any", false, false, false, 33), "phone", [], "any", false, false, false, 33), "html", null, true))) : (print ("")));
echo "\" width=\"150\">
";
} else {
// line 35
echo " ";
$context["photo"] = $this->extensions['App\Twig\ProfileAvatarExtension']->profileAvatar((isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 35, $this->source); })()));
// line 36
echo " ";
if ((isset($context["photo"]) || array_key_exists("photo", $context) ? $context["photo"] : (function () { throw new RuntimeError('Variable "photo" does not exist.', 36, $this->source); })())) {
// line 37
echo " <img src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(twig_get_attribute($this->env, $this->source, (isset($context["photo"]) || array_key_exists("photo", $context) ? $context["photo"] : (function () { throw new RuntimeError('Variable "photo" does not exist.', 37, $this->source); })()), "path", [], "any", false, false, false, 37), (((twig_get_attribute($this->env, $this->source, (isset($context["photo"]) || array_key_exists("photo", $context) ? $context["photo"] : (function () { throw new RuntimeError('Variable "photo" does not exist.', 37, $this->source); })()), "type", [], "any", false, false, false, 37) == "photo")) ? ("profile_media") : ("profile_media_avatar"))), "html", null, true);
echo "\"
alt=\"";
// line 38
((twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 38, $this->source); })()), "seo", [], "any", false, false, false, 38)) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 38, $this->source); })()), "seo", [], "any", false, false, false, 38), "phone", [], "any", false, false, false, 38), "html", null, true))) : (print ("")));
echo "\" width=\"150\">
";
}
// line 40
echo " ";
}
// line 41
echo " ";
} else {
// line 42
echo " Фото-заглушка
";
}
// line 44
echo " </div>
";
// line 45
if (((false == twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 45, $this->source); })()), "isModerationRejected", [], "any", false, false, false, 45)) && (twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 45, $this->source); })()), "photos", [], "any", false, false, false, 45)) > 0))) {
// line 46
echo " <div class=\"row\">
";
// line 47
if ( !twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 47, $this->source); })()), "deleted", [], "any", false, false, false, 47)) {
// line 48
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 48, $this->source); })()), "photos", [], "any", false, false, false, 48));
foreach ($context['_seq'] as $context["_key"] => $context["photo"]) {
// line 49
echo " <div class=\"col-4\">
<img src=\"";
// line 50
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(twig_get_attribute($this->env, $this->source, $context["photo"], "path", [], "any", false, false, false, 50), "profile_media"), "html", null, true);
echo "\" alt=\"\" width=\"150\">
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['photo'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 53
echo " ";
}
// line 54
echo " </div>
";
}
// line 56
echo " ";
if (((false == twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 56, $this->source); })()), "isModerationRejected", [], "any", false, false, false, 56)) && (twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 56, $this->source); })()), "selfies", [], "any", false, false, false, 56)) > 0))) {
// line 57
echo " <div class=\"row\">
";
// line 58
if ( !twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 58, $this->source); })()), "deleted", [], "any", false, false, false, 58)) {
// line 59
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 59, $this->source); })()), "selfies", [], "any", false, false, false, 59));
foreach ($context['_seq'] as $context["_key"] => $context["photo"]) {
// line 60
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["photo"], "main", [], "any", false, false, false, 60) == false)) {
// line 61
echo " <div class=\"col-4\">
<img src=\"";
// line 62
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(twig_get_attribute($this->env, $this->source, $context["photo"], "path", [], "any", false, false, false, 62), "profile_media_selfie"), "html", null, true);
echo "\" alt=\"\" width=\"150\">
</div>
";
}
// line 65
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['photo'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 66
echo " ";
}
// line 67
echo " </div>
";
}
// line 69
echo " ";
if (((false == twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 69, $this->source); })()), "isModerationRejected", [], "any", false, false, false, 69)) && !twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 69, $this->source); })()), "deleted", [], "any", false, false, false, 69))) {
// line 70
echo " <div class=\"row\">
";
// line 71
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_array_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 71, $this->source); })()), "confirmedVideos", [], "any", false, false, false, 71), function ($__video__) use ($context, $macros) { $context["video"] = $__video__; return twig_get_attribute($this->env, $this->source, $context["video"], "previewPath", [], "any", false, false, false, 71); }));
foreach ($context['_seq'] as $context["_key"] => $context["video"]) {
// line 72
echo " <div class=\"col-4\">
<video width=\"100%\" controls
poster=\"";
// line 74
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(twig_get_attribute($this->env, $this->source, $context["video"], "previewPath", [], "any", false, false, false, 74), "profile_media", "fullsize"), "html", null, true);
echo "\">
<source src=\"";
// line 75
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(twig_get_attribute($this->env, $this->source, $context["video"], "path", [], "any", false, false, false, 75), "profile_media", "fullsize"), "html", null, true);
echo "\" type=\"video/mp4\">
Your browser does not support the video tag.
</video>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['video'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 80
echo " </div>
";
}
// line 82
echo " </div>
</div>
<div class=\"col-9\">
<div id=\"center_column_metric\">
<h5>";
// line 86
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 86, $this->source); })()), "name", [], "any", false, false, false, 86)), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, (isset($context["rating"]) || array_key_exists("rating", $context) ? $context["rating"] : (function () { throw new RuntimeError('Variable "rating" does not exist.', 86, $this->source); })()), "html", null, true);
echo "★
";
// line 87
if ( !twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 87, $this->source); })()), "deleted", [], "any", false, false, false, 87)) {
// line 88
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 88, $this->source); })()), "isModerationRejected", [], "any", false, false, false, 88)) {
// line 89
echo " <h3>Анкета отклонена модератором</h3>
";
} else {
// line 91
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 91, $this->source); })()), "active", [], "any", false, false, false, 91)) {
// line 92
echo " <small><a href=\"tel:";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 92, $this->source); })()), "phoneNumber", [], "any", false, false, false, 92), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 92, $this->source); })()), "phoneNumber", [], "any", false, false, false, 92), "html", null, true);
echo "</a></small>
";
}
// line 94
echo " ";
}
// line 95
echo " ";
} else {
// line 96
echo " Заглушка телефона
";
}
// line 98
echo " </h5>
<dl>
<dt>";
// line 100
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Город", [], "messages");
echo "</dt>
<dd>";
// line 101
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 101, $this->source); })()), "city", [], "any", false, false, false, 101), "name", [], "any", false, false, false, 101)), "html", null, true);
echo "</dd>
<dt>";
// line 102
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Метро", [], "messages");
echo "</dt>
<dd>
";
// line 104
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 104, $this->source); })()), "stationsSortedByPrimary", [], "any", false, false, false, 104));
$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 105
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, twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 105, $this->source); })()), "city", [], "any", false, false, false, 105), "uriIdentity", [], "any", false, false, false, 105), "station" => twig_get_attribute($this->env, $this->source, $context["station"], "uriIdentity", [], "any", false, false, false, 105)]), "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, 105)), "html", null, true);
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["loop"], "first", [], "any", false, false, false, 105)) {
echo "*";
}
echo "</a>
";
// line 106
if ( !twig_get_attribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, false, 106)) {
echo ", ";
}
// line 107
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 108
echo " </dd>
<dt>";
// line 109
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Район", [], "messages");
echo "</dt>
<dd>
";
// line 111
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 111, $this->source); })()), "stationsSortedByPrimary", [], "any", false, false, false, 111));
foreach ($context['_seq'] as $context["_key"] => $context["station"]) {
// line 112
echo " ";
$context["stationDistrict"] = twig_get_attribute($this->env, $this->source, $context["station"], "district", [], "any", false, false, false, 112);
// line 113
echo " ";
if ((isset($context["stationDistrict"]) || array_key_exists("stationDistrict", $context) ? $context["stationDistrict"] : (function () { throw new RuntimeError('Variable "stationDistrict" does not exist.', 113, $this->source); })())) {
// line 114
echo " ";
$context["districtCounty"] = twig_get_attribute($this->env, $this->source, (isset($context["stationDistrict"]) || array_key_exists("stationDistrict", $context) ? $context["stationDistrict"] : (function () { throw new RuntimeError('Variable "stationDistrict" does not exist.', 114, $this->source); })()), "county", [], "any", false, false, false, 114);
// line 115
echo " ";
if ((isset($context["districtCounty"]) || array_key_exists("districtCounty", $context) ? $context["districtCounty"] : (function () { throw new RuntimeError('Variable "districtCounty" does not exist.', 115, $this->source); })())) {
// line 116
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("profile_list.list_by_county", ["city" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 116, $this->source); })()), "city", [], "any", false, false, false, 116), "uriIdentity", [], "any", false, false, false, 116), "county" => twig_get_attribute($this->env, $this->source, (isset($context["districtCounty"]) || array_key_exists("districtCounty", $context) ? $context["districtCounty"] : (function () { throw new RuntimeError('Variable "districtCounty" does not exist.', 116, $this->source); })()), "uriIdentity", [], "any", false, false, false, 116)]), "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, (isset($context["districtCounty"]) || array_key_exists("districtCounty", $context) ? $context["districtCounty"] : (function () { throw new RuntimeError('Variable "districtCounty" does not exist.', 116, $this->source); })()), "name", [], "any", false, false, false, 116)), "html", null, true);
echo "</a>
";
}
// line 118
echo " ";
}
// line 119
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['station'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 120
echo " </dd>
";
// line 121
if ( !twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 121, $this->source); })()), "deleted", [], "any", false, false, false, 121)) {
// line 122
echo " ";
if ( !twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 122, $this->source); })()), "isModerationRejected", [], "any", false, false, false, 122)) {
// line 123
echo " <dt><strong>";
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Телефон", [], "messages");
echo "</strong></dt>
<dd><strong>";
// line 124
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 124, $this->source); })()), "phoneNumber", [], "any", false, false, false, 124), "html", null, true);
echo "</strong></dd>
";
// line 125
if (((($this->extensions['Flagception\Bundle\FlagceptionBundle\Twig\ToggleExtension']->isActive("extended_profile_form") && twig_get_attribute($this->env, $this->source, // line 126
(isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 126, $this->source); })()), "messengers", [], "any", false, false, false, 126)) && twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 127
(isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 127, $this->source); })()), "messengers", [], "any", false, false, false, 127), "hasTelegram", [], "any", false, false, false, 127)) && !twig_test_empty(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 128
(isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 128, $this->source); })()), "messengers", [], "any", false, false, false, 128), "telegramUsername", [], "any", false, false, false, 128)))) {
// line 129
echo " <dt>
<strong>";
// line 130
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Телеграм", [], "messages");
echo "</strong> ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 130, $this->source); })()), "messengers", [], "any", false, false, false, 130), "hasTelegram", [], "any", false, false, false, 130), "html", null, true);
echo "
</dt>
<dd><a href=\"https://t.me/";
// line 132
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 132, $this->source); })()), "messengers", [], "any", false, false, false, 132), "telegramUsername", [], "any", false, false, false, 132), "html", null, true);
echo "\"
target=\"_blank\" rel=\"nofollow noopener\">
@";
// line 134
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 134, $this->source); })()), "messengers", [], "any", false, false, false, 134), "telegramUsername", [], "any", false, false, false, 134), "html", null, true);
echo "
</a></dd>
";
}
// line 137
echo " ";
}
// line 138
echo " ";
} else {
// line 139
echo " Заглушка телефона
";
}
// line 141
echo " <dt>";
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Возраст", [], "messages");
echo "</dt>
<dd>";
// line 142
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 142, $this->source); })()), "personParameters", [], "any", false, false, false, 142), "age", [], "any", false, false, false, 142), "html", null, true);
echo "</dd>
<dt>";
// line 143
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Рост", [], "messages");
echo "</dt>
<dd>";
// line 144
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 144, $this->source); })()), "personParameters", [], "any", false, false, false, 144), "height", [], "any", false, false, false, 144), "html", null, true);
echo "</dd>
<dt>";
// line 145
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Размер груди", [], "messages");
echo "</dt>
<dd>";
// line 146
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 146, $this->source); })()), "personParameters", [], "any", false, false, false, 146), "breastSize", [], "any", false, false, false, 146), "html", null, true);
echo "</dd>
<dt>";
// line 147
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Вес", [], "messages");
echo "</dt>
<dd>";
// line 148
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 148, $this->source); })()), "personParameters", [], "any", false, false, false, 148), "weight", [], "any", false, false, false, 148), "html", null, true);
echo "</dd>
<dt>";
// line 149
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Размер одежды", [], "messages");
echo "</dt>
<dd>";
// line 150
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 150, $this->source); })()), "personParameters", [], "any", false, false, false, 150), "clothSize", [], "any", false, false, false, 150), "html", null, true);
echo "</dd>
<dt>";
// line 151
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Телосложение", [], "messages");
echo "</dt>
<dd>";
// line 152
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->extensions['App\Twig\PersonParametersExtension']->bodyTypeLabel(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 152, $this->source); })()), "personParameters", [], "any", false, false, false, 152), "bodyType", [], "any", false, false, false, 152))), "html", null, true);
echo "</dd>
<dt>";
// line 153
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Цвет волос", [], "messages");
echo "</dt>
<dd>";
// line 154
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->extensions['App\Twig\PersonParametersExtension']->hairColorLabel(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 154, $this->source); })()), "personParameters", [], "any", false, false, false, 154), "hairColor", [], "any", false, false, false, 154))), "html", null, true);
echo "</dd>
<dt>";
// line 155
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Интимная стрижка", [], "messages");
echo "</dt>
<dd>";
// line 156
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->extensions['App\Twig\PersonParametersExtension']->privateHaircutLabel(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 156, $this->source); })()), "personParameters", [], "any", false, false, false, 156), "privateHaircut", [], "any", false, false, false, 156))), "html", null, true);
echo "</dd>
<dt>";
// line 157
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Национальность", [], "messages");
echo "</dt>
<dd>";
// line 158
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->extensions['App\Twig\PersonParametersExtension']->nationalityLabel(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 158, $this->source); })()), "personParameters", [], "any", false, false, false, 158), "nationality", [], "any", false, false, false, 158))), "html", null, true);
echo "</dd>
<dt>";
// line 159
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Дата обновления", [], "messages");
echo "</dt>
<dd>";
// line 160
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 160, $this->source); })()), "updatedAt", [], "any", false, false, false, 160)), "html", null, true);
echo "</dd>
</dl>
<h6>";
// line 163
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("О себе", [], "messages");
echo "</h6>
<p>";
// line 164
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 164, $this->source); })()), "description", [], "any", false, false, false, 164)), "html", null, true);
echo "</p>
<h6>";
// line 166
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Предпочтения", [], "messages");
echo "</h6>
";
// line 167
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_array_filter($this->env, (isset($context["services"]) || array_key_exists("services", $context) ? $context["services"] : (function () { throw new RuntimeError('Variable "services" does not exist.', 167, $this->source); })()), function ($__servicesGroup__, $__group__) use ($context, $macros) { $context["servicesGroup"] = $__servicesGroup__; $context["group"] = $__group__; return ( !twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 167, $this->source); })()), "masseur", [], "any", false, false, false, 167) || !twig_in_filter($context["group"], (isset($context["masseurExcludeServiceGroups"]) || array_key_exists("masseurExcludeServiceGroups", $context) ? $context["masseurExcludeServiceGroups"] : (function () { throw new RuntimeError('Variable "masseurExcludeServiceGroups" does not exist.', 167, $this->source); })()))); }));
foreach ($context['_seq'] as $context["group"] => $context["servicesGroup"]) {
// line 168
echo " <p><strong>";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->extensions['App\Twig\ServicesExtension']->serviceGroupLabel($context["group"]), [], "service_groups"), "html", null, true);
echo "</strong></p>
<ul>
";
// line 170
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($context["servicesGroup"]);
foreach ($context['_seq'] as $context["_key"] => $context["service"]) {
// line 171
echo " ";
$context["providedService"] = twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 171, $this->source); })()), "providedService", [$context["service"]], "method", false, false, false, 171);
// line 172
echo " <li class=\"";
if ((isset($context["providedService"]) || array_key_exists("providedService", $context) ? $context["providedService"] : (function () { throw new RuntimeError('Variable "providedService" does not exist.', 172, $this->source); })())) {
echo "text-success";
} else {
echo "text-danger";
}
echo "\">
<a href=\"";
// line 173
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("profile_list.list_by_provided_service", ["city" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 173, $this->source); })()), "city", [], "any", false, false, false, 173), "uriIdentity", [], "any", false, false, false, 173), "service" => twig_get_attribute($this->env, $this->source, $context["service"], "uriIdentity", [], "any", false, false, false, 173)]), "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["service"], "name", [], "any", false, false, false, 173)), "html", null, true);
echo "</a>
</li>
";
// line 175
if ((isset($context["providedService"]) || array_key_exists("providedService", $context) ? $context["providedService"] : (function () { throw new RuntimeError('Variable "providedService" does not exist.', 175, $this->source); })())) {
// line 176
echo " ";
if ($this->extensions['Flagception\Bundle\FlagceptionBundle\Twig\ToggleExtension']->isActive("extended_profile_form")) {
// line 177
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->extensions['App\Twig\ServicesExtension']->providedServiceCondition(twig_get_attribute($this->env, $this->source, (isset($context["providedService"]) || array_key_exists("providedService", $context) ? $context["providedService"] : (function () { throw new RuntimeError('Variable "providedService" does not exist.', 177, $this->source); })()), "condition", [], "any", false, false, false, 177)), [], "service_conditions"), "html", null, true);
if ((twig_get_attribute($this->env, $this->source, (isset($context["providedService"]) || array_key_exists("providedService", $context) ? $context["providedService"] : (function () { throw new RuntimeError('Variable "providedService" does not exist.', 177, $this->source); })()), "condition", [], "any", false, false, false, 177) == 3)) {
echo ", цена:";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["providedService"]) || array_key_exists("providedService", $context) ? $context["providedService"] : (function () { throw new RuntimeError('Variable "providedService" does not exist.', 177, $this->source); })()), "extraCharge", [], "any", false, false, false, 177), "html", null, true);
}
// line 178
echo " ";
}
// line 179
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["providedService"]) || array_key_exists("providedService", $context) ? $context["providedService"] : (function () { throw new RuntimeError('Variable "providedService" does not exist.', 179, $this->source); })()), "comment", [], "any", false, false, false, 179)) {
// line 180
echo " Комментарий: ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["providedService"]) || array_key_exists("providedService", $context) ? $context["providedService"] : (function () { throw new RuntimeError('Variable "providedService" does not exist.', 180, $this->source); })()), "comment", [], "any", false, false, false, 180), "html", null, true);
echo "
";
}
// line 182
echo " ";
}
// line 183
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['service'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 184
echo " </ul>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['group'], $context['servicesGroup'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 186
echo "
<h6>";
// line 187
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Отзывы", [], "messages");
echo "</h6>
<div id=\"comments\">
";
// line 189
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 189, $this->source); })()), "comments", [], "any", false, false, false, 189));
$context['_iterated'] = false;
$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["comment"]) {
// line 190
echo " ";
$this->loadTemplate("ProfilePreview/comment.html.twig", "ProfilePreview/page.html.twig", 190)->display($context);
// line 191
echo " ";
$context['_iterated'] = true;
++$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'];
}
}
if (!$context['_iterated']) {
// line 192
echo " <p>";
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Отзывов нет", [], "messages");
echo "</p>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['comment'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 194
echo " </div>
<div id=\"commentFormContainer\">
</div>
<div id=\"recaptcha-container\"></div>
";
// line 201
if ($this->extensions['Flagception\Bundle\FlagceptionBundle\Twig\ToggleExtension']->isActive("extended_profile_form")) {
// line 202
echo " <div>
";
// line 203
if (twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 203, $this->source); })()), "expressPricing", [], "any", false, false, false, 203)) {
// line 204
echo " <b>Экспресс:</b>
";
// line 205
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 205, $this->source); })()), "expressPricing", [], "any", false, false, false, 205), "provided", [], "any", false, false, false, 205)) {
// line 206
echo " Да, стоимость";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 206, $this->source); })()), "expressPricing", [], "any", false, false, false, 206), "price", [], "any", false, false, false, 206), "html", null, true);
echo "
";
} else {
// line 208
echo " Нет
";
}
// line 210
echo " ";
}
// line 211
echo " </div>
";
}
// line 213
echo "
";
// line 214
if (twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 214, $this->source); })()), "clientTypes", [], "any", false, false, false, 214)) {
// line 215
echo " <div>
<b>Услуги для:</b>
";
// line 217
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 217, $this->source); })()), "clientTypes", [], "any", false, false, false, 217));
foreach ($context['_seq'] as $context["_key"] => $context["clientType"]) {
// line 218
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->extensions['App\Twig\ClientTypeExtension']->clientType($context["clientType"]), [], "client_types"), "html", null, true);
echo "<br>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['clientType'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 220
echo " </div>
";
}
// line 222
echo "
";
// line 223
if ($this->extensions['Flagception\Bundle\FlagceptionBundle\Twig\ToggleExtension']->isActive("extended_profile_form")) {
// line 224
echo " <div>
";
// line 225
if (twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 225, $this->source); })()), "messengers", [], "any", false, false, false, 225)) {
// line 226
echo " <b>Мессенджеры</b><br>
<b>Telegram</b> ";
// line 227
echo ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 227, $this->source); })()), "messengers", [], "any", false, false, false, 227), "telegram", [], "any", false, false, false, 227)) ? ("Да") : ("Нет"));
echo "
<b>WhatsApp</b> ";
// line 228
echo ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 228, $this->source); })()), "messengers", [], "any", false, false, false, 228), "whatsApp", [], "any", false, false, false, 228)) ? ("Да") : ("Нет"));
echo "
";
}
// line 230
echo " </div>
";
}
// line 232
echo "
";
// line 233
if ($this->extensions['Flagception\Bundle\FlagceptionBundle\Twig\ToggleExtension']->isActive("extended_profile_form")) {
// line 234
echo " <div>
";
// line 235
if (twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 235, $this->source); })()), "carPricing", [], "any", false, false, false, 235)) {
// line 236
echo " <b>В машине:</b> ";
echo ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 236, $this->source); })()), "carPricing", [], "any", false, false, false, 236), "provided", [], "any", false, false, false, 236)) ? ("Да") : ("Нет"));
echo "
";
}
// line 238
echo " </div>
";
}
// line 240
echo "
";
// line 241
if ($this->extensions['Flagception\Bundle\FlagceptionBundle\Twig\ToggleExtension']->isActive("extended_profile_form")) {
// line 242
echo " <div>
";
// line 243
if ( !(null === twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 243, $this->source); })()), "personParameters", [], "any", false, false, false, 243), "tattoo", [], "any", false, false, false, 243))) {
// line 244
echo " <b>Тату:</b> ";
echo ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 244, $this->source); })()), "personParameters", [], "any", false, false, false, 244), "tattoo", [], "any", false, false, false, 244)) ? ("Да") : ("Нет"));
echo "
";
}
// line 246
echo " </div>
<div>
";
// line 248
if ( !(null === twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 248, $this->source); })()), "personParameters", [], "any", false, false, false, 248), "piercing", [], "any", false, false, false, 248))) {
// line 249
echo " <b>Пирсинг:</b> ";
echo ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 249, $this->source); })()), "personParameters", [], "any", false, false, false, 249), "piercing", [], "any", false, false, false, 249)) ? ("Да") : ("Нет"));
echo "
";
}
// line 251
echo " </div>
";
}
// line 253
echo " <div>
<b>Отвечаю на:</b>
";
// line 255
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 255, $this->source); })()), "phoneCallRestrictions", [], "any", false, false, false, 255), "answeringTo", [], "any", false, false, false, 255));
foreach ($context['_seq'] as $context["_key"] => $context["answeringTo"]) {
// line 256
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->extensions['App\Twig\PhoneCallExtension']->answeringTo($context["answeringTo"]), [], "phone_call_restrictions"), "html", null, true);
echo "<br>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['answeringTo'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 258
echo " </div>
</div>
</div>
";
// line 262
$this->loadTemplate("ProfilePreview/nearest_profiles.html.twig", "ProfilePreview/page.html.twig", 262)->display($context);
// line 263
echo "
<div id=\"recentlyViewedProfiles\"></div>
</div>
<script type=\"text/javascript\">
var onloadCallback = function () {
grecaptcha.render('recaptcha-container', {
'sitekey': '";
// line 270
echo twig_escape_filter($this->env, (isset($context["ewz_recaptcha_site_key"]) || array_key_exists("ewz_recaptcha_site_key", $context) ? $context["ewz_recaptcha_site_key"] : (function () { throw new RuntimeError('Variable "ewz_recaptcha_site_key" does not exist.', 270, $this->source); })()), "html", null, true);
echo "'
});
};
</script>
<script src=\"https://www.google.com/recaptcha/api.js?onload=onloadCallback&render=explicit\" async defer></script>
<script src=\"";
// line 275
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("ajax.js", "js_script"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 276
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("local-storage.js", "js_script"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 277
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("recommendations.js", "js_script"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 278
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bot-helper.js", "js_script"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 279
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("recently-viewed.js", "js_script"), "html", null, true);
echo "\"></script>
<script type=\"text/javascript\">
document.addEventListener('DOMContentLoaded', function () {
profileRecommendations.addViewedProfile(";
// line 282
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 282, $this->source); })()), "id", [], "any", false, false, false, 282), "html", null, true);
echo ");
profileBotHelper.addViewedProfile(";
// line 283
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 283, $this->source); })()), "id", [], "any", false, false, false, 283), "html", null, true);
echo ");
//достаем список, пока без учета текущей страницы, для текущего аякс запроса
const recentlyViewedProfiles = recentlyViewed.getViewedProfiles();
recentlyViewed.addViewedProfile(";
// line 286
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 286, $this->source); })()), "id", [], "any", false, false, false, 286), "html", null, true);
echo ");
//recently viewed profiles
ajax({
url: '";
// line 290
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("recent_profiles.recently_viewed.list");
echo "',
data: {
recently_viewed_profiles: recentlyViewedProfiles,
},
callback: function (response) {
if (!response)
return;
// console.log(response);
document.querySelector('#recentlyViewedProfiles').innerHTML = response;
},
dataType: 'json',
responseType: 'text/html',
});
ajax({
url: '";
// line 305
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("profile.comment.comment_form", ["profile" => twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 305, $this->source); })()), "id", [], "any", false, false, false, 305)]), "html", null, true);
echo "',
callback: function (response) {
// console.log(response);
if ('' !== response) {
document.querySelector('#commentFormContainer').innerHTML = response;
setCommentFormListeners();
}
},
dataType: 'json',
responseType: 'text/html',
});
function setCommentFormListeners() {
const formName = 'comment_form';
document.querySelector('#send_comment').addEventListener('click', function () {
ajax({
url: '";
// line 322
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("profile.comment.create", ["profile" => twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 322, $this->source); })()), "id", [], "any", false, false, false, 322)]), "html", null, true);
echo "',
method: '',
data: {
'g-recaptcha-response': grecaptcha.getResponse(),
'entity_id': document.querySelector(`#\${formName}_entity_id`).value,
'mark': document.querySelector(`input[name=\"\${formName}[mark]\"]:checked`).value,
'text': document.querySelector(`#\${formName}_text`).value,
},
callback: function (response) {
if (response) {
if (response.success) {
//document.querySelector(`#{formName}`).style.display = 'none';
//document.querySelector('#send_comment').style.display = 'none';
document.querySelector(`form[name=\"\${formName}\"]`).reset();
grecaptcha.reset();
let template =
'<div>' +
(response.comment.nickname ?
'<span class=\"author\">' +
'<img src=\"#avatar\" alt=\"shift\" width=\"25\">' +
'<span class=\"name\">#nickname</span>' +
'</span>' : '') +
'<span class=\"date\">#createdAt</span>' +
'<span>#text</span>' +
'</div>'
;
response.comment.createdAt = new Date(response.comment.createdAt * 1000);
for (let k in response.comment) {
template = template.replace('#' + k, response.comment[k]);
}
document.querySelector('#comments').innerHTML += template;
// console.log(template);
// document.querySelector('#comments').innerHTML += response.html;
} else {
alert(response.error);
}
}
},
dataType: 'json',
responseType: 'json',
});
});
}
//LIKE/UNLIKE
document.querySelector('#left_column_metric').addEventListener('click', function (e) {
if (false == e.target.classList.contains('add-remove-favourite'))
return;
addRemoveFavourite(e.target.dataset['action'] == 'add');
});
let addRemoveFavourite = function (add) {
let btn = document.querySelector('.add-remove-favourite[data-action=\"' + (add ? 'add' : 'remove') + '\"]');
let reverseBtn = document.querySelector('.add-remove-favourite[data-action=\"' + (!add ? 'add' : 'remove') + '\"]');
btn.style.display = 'none';
ajax({
url: add ? '";
// line 380
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("account.favourites.add", ["profile" => twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 380, $this->source); })()), "id", [], "any", false, false, false, 380)]), "html", null, true);
echo "' : '";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("account.favourites.remove", ["profile" => twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 380, $this->source); })()), "id", [], "any", false, false, false, 380)]), "html", null, true);
echo "',
callback: function (response) {
if (response) {
if (response.success) {
reverseBtn.style.display = 'block';
} else {
btn.style.display = 'block';
alert(response.error);
}
}
},
dataType: 'json',
responseType: 'json',
});
};
//LIKE/UNLIKE end
});
</script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "ProfilePreview/page.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 1096 => 380, 1035 => 322, 1015 => 305, 997 => 290, 990 => 286, 984 => 283, 980 => 282, 974 => 279, 970 => 278, 966 => 277, 962 => 276, 958 => 275, 950 => 270, 941 => 263, 939 => 262, 933 => 258, 924 => 256, 920 => 255, 916 => 253, 912 => 251, 906 => 249, 904 => 248, 900 => 246, 894 => 244, 892 => 243, 889 => 242, 887 => 241, 884 => 240, 880 => 238, 874 => 236, 872 => 235, 869 => 234, 867 => 233, 864 => 232, 860 => 230, 855 => 228, 851 => 227, 848 => 226, 846 => 225, 843 => 224, 841 => 223, 838 => 222, 834 => 220, 825 => 218, 821 => 217, 817 => 215, 815 => 214, 812 => 213, 808 => 211, 805 => 210, 801 => 208, 795 => 206, 793 => 205, 790 => 204, 788 => 203, 785 => 202, 783 => 201, 774 => 194, 765 => 192, 752 => 191, 749 => 190, 731 => 189, 726 => 187, 723 => 186, 716 => 184, 710 => 183, 707 => 182, 701 => 180, 698 => 179, 695 => 178, 688 => 177, 685 => 176, 683 => 175, 676 => 173, 667 => 172, 664 => 171, 660 => 170, 654 => 168, 650 => 167, 646 => 166, 641 => 164, 637 => 163, 631 => 160, 627 => 159, 623 => 158, 619 => 157, 615 => 156, 611 => 155, 607 => 154, 603 => 153, 599 => 152, 595 => 151, 591 => 150, 587 => 149, 583 => 148, 579 => 147, 575 => 146, 571 => 145, 567 => 144, 563 => 143, 559 => 142, 554 => 141, 550 => 139, 547 => 138, 544 => 137, 538 => 134, 533 => 132, 526 => 130, 523 => 129, 521 => 128, 520 => 127, 519 => 126, 518 => 125, 514 => 124, 509 => 123, 506 => 122, 504 => 121, 501 => 120, 495 => 119, 492 => 118, 484 => 116, 481 => 115, 478 => 114, 475 => 113, 472 => 112, 468 => 111, 463 => 109, 460 => 108, 446 => 107, 442 => 106, 431 => 105, 414 => 104, 409 => 102, 405 => 101, 401 => 100, 397 => 98, 393 => 96, 390 => 95, 387 => 94, 379 => 92, 376 => 91, 372 => 89, 369 => 88, 367 => 87, 361 => 86, 355 => 82, 351 => 80, 340 => 75, 336 => 74, 332 => 72, 328 => 71, 325 => 70, 322 => 69, 318 => 67, 315 => 66, 309 => 65, 303 => 62, 300 => 61, 297 => 60, 292 => 59, 290 => 58, 287 => 57, 284 => 56, 280 => 54, 277 => 53, 268 => 50, 265 => 49, 260 => 48, 258 => 47, 255 => 46, 253 => 45, 250 => 44, 246 => 42, 243 => 41, 240 => 40, 235 => 38, 230 => 37, 227 => 36, 224 => 35, 219 => 33, 214 => 32, 211 => 31, 208 => 30, 204 => 29, 201 => 28, 194 => 25, 189 => 24, 185 => 23, 180 => 21, 177 => 20, 175 => 19, 168 => 16, 155 => 15, 141 => 12, 139 => 11, 134 => 10, 121 => 9, 105 => 6, 92 => 5, 67 => 3, 38 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'ProfilePreview/grid.html.twig' %}
{% block title %}{{ seo_title() }}{% endblock %}
{% block metaDescription %}
<meta name=\"description\" content=\"{{ seo_description() }}\">
{% endblock %}
{% block navbar %}
{{ parent() }}
{% set excludeRecommendationProfileIds = [profile.id] %}
{% include 'Recommendations/_profile_recommendations.html.twig' %}
{% endblock %}
{% block mainContainer %}
<div class=\"row\" alt=\"{{ profile.seo ? profile.seo.phone : '' }}\">
<div class=\"col-3\">
<div id=\"left_column_metric\">
{% if not app.user or is_user_customer(app.user) %}
<div><a class=\"add-remove-favourite\" data-action=\"remove\" href=\"javascript:void(0);\"
style=\"display: {{ is_profile_in_favourites(profile) ? 'block' : 'none' }}\">UNLIKE</a></div>
<div><a class=\"add-remove-favourite\" data-action=\"add\"
style=\"display: {{ not is_profile_in_favourites(profile) ? 'block' : 'none' }}\"
{% if app.user %}href=\"javascript:void(0);\"
{% else %}href=\"javascript:alert('Чтобы сделать что-то зарегистрируйтесь');\"{% endif %}>LIKE</a>
</div>
{% endif %}
<div class=\"row\">
{% if profile.isApproved %} <b style=\"color:green;\">APPROVED</b><br/> {% endif %}
{% if not profile.deleted %}
{% if profile.isModerationRejected %}
<img src=\"{{ asset('static/img/red-circle.png') }}\"
alt=\"{{ profile.seo ? profile.seo.phone : '' }}\" width=\"150\">
{% else %}
{% set photo = profile|avatar %}
{% if photo %}
<img src=\"{{ asset(photo.path, photo.type == 'photo' ? 'profile_media' : 'profile_media_avatar') }}\"
alt=\"{{ profile.seo ? profile.seo.phone : '' }}\" width=\"150\">
{% endif %}
{% endif %}
{% else %}
Фото-заглушка
{% endif %}
</div>
{% if false == profile.isModerationRejected and profile.photos|length > 0 %}
<div class=\"row\">
{% if not profile.deleted %}
{% for photo in profile.photos %}
<div class=\"col-4\">
<img src=\"{{ asset(photo.path, 'profile_media') }}\" alt=\"\" width=\"150\">
</div>
{% endfor %}
{% endif %}
</div>
{% endif %}
{% if false == profile.isModerationRejected and profile.selfies|length > 0 %}
<div class=\"row\">
{% if not profile.deleted %}
{% for photo in profile.selfies %}
{% if photo.main == false %}
<div class=\"col-4\">
<img src=\"{{ asset(photo.path, 'profile_media_selfie') }}\" alt=\"\" width=\"150\">
</div>
{% endif %}
{% endfor %}
{% endif %}
</div>
{% endif %}
{% if false == profile.isModerationRejected and not profile.deleted %}
<div class=\"row\">
{% for video in profile.confirmedVideos | filter(video => video.previewPath) %}
<div class=\"col-4\">
<video width=\"100%\" controls
poster=\"{{ asset(video.previewPath, 'profile_media', 'fullsize') }}\">
<source src=\"{{ asset(video.path, 'profile_media', 'fullsize') }}\" type=\"video/mp4\">
Your browser does not support the video tag.
</video>
</div>
{% endfor %}
</div>
{% endif %}
</div>
</div>
<div class=\"col-9\">
<div id=\"center_column_metric\">
<h5>{{ profile.name|trans }} {{ rating }}★
{% if not profile.deleted %}
{% if profile.isModerationRejected %}
<h3>Анкета отклонена модератором</h3>
{% else %}
{% if profile.active %}
<small><a href=\"tel:{{ profile.phoneNumber }}\">{{ profile.phoneNumber }}</a></small>
{% endif %}
{% endif %}
{% else %}
Заглушка телефона
{% endif %}
</h5>
<dl>
<dt>{% trans %}Город{% endtrans %}</dt>
<dd>{{ profile.city.name|trans }}</dd>
<dt>{% trans %}Метро{% endtrans %}</dt>
<dd>
{% for station in profile.stationsSortedByPrimary %}
<a href=\"{{ path('profile_list.list_by_station', {'city': profile.city.uriIdentity, 'station': station.uriIdentity}) }}\">{{ station.name|trans }} {% if loop.first %}*{% endif %}</a>
{% if not loop.last %}, {% endif %}
{% endfor %}
</dd>
<dt>{% trans %}Район{% endtrans %}</dt>
<dd>
{% for station in profile.stationsSortedByPrimary %}
{% set stationDistrict = station.district %}
{% if stationDistrict %}
{% set districtCounty = stationDistrict.county %}
{% if districtCounty %}
<a href=\"{{ path('profile_list.list_by_county', {'city': profile.city.uriIdentity, 'county': districtCounty.uriIdentity}) }}\">{{ districtCounty.name|trans }}</a>
{% endif %}
{% endif %}
{% endfor %}
</dd>
{% if not profile.deleted %}
{% if not profile.isModerationRejected %}
<dt><strong>{% trans %}Телефон{% endtrans %}</strong></dt>
<dd><strong>{{ profile.phoneNumber }}</strong></dd>
{% if feature('extended_profile_form')
and profile.messengers
and profile.messengers.hasTelegram
and profile.messengers.telegramUsername is not empty %}
<dt>
<strong>{% trans %}Телеграм{% endtrans %}</strong> {{ profile.messengers.hasTelegram }}
</dt>
<dd><a href=\"https://t.me/{{ profile.messengers.telegramUsername }}\"
target=\"_blank\" rel=\"nofollow noopener\">
@{{ profile.messengers.telegramUsername }}
</a></dd>
{% endif %}
{% endif %}
{% else %}
Заглушка телефона
{% endif %}
<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.breastSize }}</dd>
<dt>{% trans %}Вес{% endtrans %}</dt>
<dd>{{ profile.personParameters.weight }}</dd>
<dt>{% trans %}Размер одежды{% endtrans %}</dt>
<dd>{{ profile.personParameters.clothSize }}</dd>
<dt>{% trans %}Телосложение{% endtrans %}</dt>
<dd>{{ profile.personParameters.bodyType|body_type|trans }}</dd>
<dt>{% trans %}Цвет волос{% endtrans %}</dt>
<dd>{{ profile.personParameters.hairColor|hair_color|trans }}</dd>
<dt>{% trans %}Интимная стрижка{% endtrans %}</dt>
<dd>{{ profile.personParameters.privateHaircut|private_haircut|trans }}</dd>
<dt>{% trans %}Национальность{% endtrans %}</dt>
<dd>{{ profile.personParameters.nationality|nationality|trans }}</dd>
<dt>{% trans %}Дата обновления{% endtrans %}</dt>
<dd>{{ profile.updatedAt|date }}</dd>
</dl>
<h6>{% trans %}О себе{% endtrans %}</h6>
<p>{{ profile.description|trans }}</p>
<h6>{% trans %}Предпочтения{% endtrans %}</h6>
{% for group, servicesGroup in services | filter((servicesGroup, group) => not profile.masseur or group not in masseurExcludeServiceGroups) %}
<p><strong>{{ group|service_group|trans({}, 'service_groups') }}</strong></p>
<ul>
{% for service in servicesGroup %}
{% set providedService = profile.providedService(service) %}
<li class=\"{% if providedService %}text-success{% else %}text-danger{% endif %}\">
<a href=\"{{ path('profile_list.list_by_provided_service', {'city': profile.city.uriIdentity, 'service': service.uriIdentity}) }}\">{{ service.name|trans }}</a>
</li>
{% if providedService %}
{% if feature('extended_profile_form') %}
{{ providedService.condition|provided_service_condition|trans({},'service_conditions') }}{% if providedService.condition == 3 %}, цена:{{ providedService.extraCharge }}{% endif %}
{% endif %}
{% if providedService.comment %}
Комментарий: {{ providedService.comment }}
{% endif %}
{% endif %}
{% endfor %}
</ul>
{% endfor %}
<h6>{% trans %}Отзывы{% endtrans %}</h6>
<div id=\"comments\">
{% for comment in profile.comments %}
{% include 'ProfilePreview/comment.html.twig' %}
{% else %}
<p>{% trans %}Отзывов нет{% endtrans %}</p>
{% endfor %}
</div>
<div id=\"commentFormContainer\">
</div>
<div id=\"recaptcha-container\"></div>
{% if feature('extended_profile_form') %}
<div>
{% if profile.expressPricing %}
<b>Экспресс:</b>
{% if profile.expressPricing.provided %}
Да, стоимость{{ profile.expressPricing.price }}
{% else %}
Нет
{% endif %}
{% endif %}
</div>
{% endif %}
{% if profile.clientTypes %}
<div>
<b>Услуги для:</b>
{% for clientType in profile.clientTypes %}
{{ clientType|client_type|trans({}, 'client_types') }}<br>
{% endfor %}
</div>
{% endif %}
{% if feature('extended_profile_form') %}
<div>
{% if profile.messengers %}
<b>Мессенджеры</b><br>
<b>Telegram</b> {{ profile.messengers.telegram ? 'Да' : 'Нет' }}
<b>WhatsApp</b> {{ profile.messengers.whatsApp ? 'Да' : 'Нет' }}
{% endif %}
</div>
{% endif %}
{% if feature('extended_profile_form') %}
<div>
{% if profile.carPricing %}
<b>В машине:</b> {{ profile.carPricing.provided ? 'Да' : 'Нет' }}
{% endif %}
</div>
{% endif %}
{% if feature('extended_profile_form') %}
<div>
{% if profile.personParameters.tattoo is not null %}
<b>Тату:</b> {{ profile.personParameters.tattoo ? 'Да' : 'Нет' }}
{% endif %}
</div>
<div>
{% if profile.personParameters.piercing is not null %}
<b>Пирсинг:</b> {{ profile.personParameters.piercing ? 'Да' : 'Нет' }}
{% endif %}
</div>
{% endif %}
<div>
<b>Отвечаю на:</b>
{% for answeringTo in profile.phoneCallRestrictions.answeringTo %}
{{ answeringTo|answering_to|trans({}, 'phone_call_restrictions') }}<br>
{% endfor %}
</div>
</div>
</div>
{% include 'ProfilePreview/nearest_profiles.html.twig' %}
<div id=\"recentlyViewedProfiles\"></div>
</div>
<script type=\"text/javascript\">
var onloadCallback = function () {
grecaptcha.render('recaptcha-container', {
'sitekey': '{{ ewz_recaptcha_site_key }}'
});
};
</script>
<script src=\"https://www.google.com/recaptcha/api.js?onload=onloadCallback&render=explicit\" async defer></script>
<script src=\"{{ asset('ajax.js', 'js_script') }}\"></script>
<script src=\"{{ asset('local-storage.js', 'js_script') }}\"></script>
<script src=\"{{ asset('recommendations.js', 'js_script') }}\"></script>
<script src=\"{{ asset('bot-helper.js', 'js_script') }}\"></script>
<script src=\"{{ asset('recently-viewed.js', 'js_script') }}\"></script>
<script type=\"text/javascript\">
document.addEventListener('DOMContentLoaded', function () {
profileRecommendations.addViewedProfile({{ profile.id }});
profileBotHelper.addViewedProfile({{ profile.id }});
//достаем список, пока без учета текущей страницы, для текущего аякс запроса
const recentlyViewedProfiles = recentlyViewed.getViewedProfiles();
recentlyViewed.addViewedProfile({{ profile.id }});
//recently viewed profiles
ajax({
url: '{{ path('recent_profiles.recently_viewed.list') }}',
data: {
recently_viewed_profiles: recentlyViewedProfiles,
},
callback: function (response) {
if (!response)
return;
// console.log(response);
document.querySelector('#recentlyViewedProfiles').innerHTML = response;
},
dataType: 'json',
responseType: 'text/html',
});
ajax({
url: '{{ path('profile.comment.comment_form', {profile: profile.id}) }}',
callback: function (response) {
// console.log(response);
if ('' !== response) {
document.querySelector('#commentFormContainer').innerHTML = response;
setCommentFormListeners();
}
},
dataType: 'json',
responseType: 'text/html',
});
function setCommentFormListeners() {
const formName = 'comment_form';
document.querySelector('#send_comment').addEventListener('click', function () {
ajax({
url: '{{ path('profile.comment.create', {profile: profile.id}) }}',
method: '',
data: {
'g-recaptcha-response': grecaptcha.getResponse(),
'entity_id': document.querySelector(`#\${formName}_entity_id`).value,
'mark': document.querySelector(`input[name=\"\${formName}[mark]\"]:checked`).value,
'text': document.querySelector(`#\${formName}_text`).value,
},
callback: function (response) {
if (response) {
if (response.success) {
//document.querySelector(`#{formName}`).style.display = 'none';
//document.querySelector('#send_comment').style.display = 'none';
document.querySelector(`form[name=\"\${formName}\"]`).reset();
grecaptcha.reset();
let template =
'<div>' +
(response.comment.nickname ?
'<span class=\"author\">' +
'<img src=\"#avatar\" alt=\"shift\" width=\"25\">' +
'<span class=\"name\">#nickname</span>' +
'</span>' : '') +
'<span class=\"date\">#createdAt</span>' +
'<span>#text</span>' +
'</div>'
;
response.comment.createdAt = new Date(response.comment.createdAt * 1000);
for (let k in response.comment) {
template = template.replace('#' + k, response.comment[k]);
}
document.querySelector('#comments').innerHTML += template;
// console.log(template);
// document.querySelector('#comments').innerHTML += response.html;
} else {
alert(response.error);
}
}
},
dataType: 'json',
responseType: 'json',
});
});
}
//LIKE/UNLIKE
document.querySelector('#left_column_metric').addEventListener('click', function (e) {
if (false == e.target.classList.contains('add-remove-favourite'))
return;
addRemoveFavourite(e.target.dataset['action'] == 'add');
});
let addRemoveFavourite = function (add) {
let btn = document.querySelector('.add-remove-favourite[data-action=\"' + (add ? 'add' : 'remove') + '\"]');
let reverseBtn = document.querySelector('.add-remove-favourite[data-action=\"' + (!add ? 'add' : 'remove') + '\"]');
btn.style.display = 'none';
ajax({
url: add ? '{{ path('account.favourites.add', {profile: profile.id}) }}' : '{{ path('account.favourites.remove', {profile: profile.id}) }}',
callback: function (response) {
if (response) {
if (response.success) {
reverseBtn.style.display = 'block';
} else {
btn.style.display = 'block';
alert(response.error);
}
}
},
dataType: 'json',
responseType: 'json',
});
};
//LIKE/UNLIKE end
});
</script>
{% endblock %}", "ProfilePreview/page.html.twig", "/app/templates/ProfilePreview/page.html.twig");
}
}