<?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_02c692a9d9a255ad8898b14b594b5511 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'],
'canonical' => [$this, 'block_canonical'],
'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"));
// line 3
$context["soft_deleted_410"] = ($this->extensions['Flagception\Bundle\FlagceptionBundle\Twig\ToggleExtension']->isActive("410_soft_delete") && 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.', 3, $this->source); })()), "deleted", [], "any", false, false, false, 3));
// line 1
$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 5
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"));
// line 6
echo " ";
if ((isset($context["soft_deleted_410"]) || array_key_exists("soft_deleted_410", $context) ? $context["soft_deleted_410"] : (function () { throw new RuntimeError('Variable "soft_deleted_410" does not exist.', 6, $this->source); })())) {
// line 7
echo " Анкета ";
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.', 7, $this->source); })()), "name", [], "any", false, false, false, 7)), "html", null, true);
echo ", ID ";
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.', 7, $this->source); })()), "id", [], "any", false, false, false, 7), "html", null, true);
echo " снята с публикации - | Похожие предложения.
";
} else {
// line 9
echo " ";
echo twig_escape_filter($this->env, $this->extensions['App\Twig\SeoExtension']->metaTitle(), "html", null, true);
echo "
";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
}
// line 13
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 14
echo " ";
if ((isset($context["soft_deleted_410"]) || array_key_exists("soft_deleted_410", $context) ? $context["soft_deleted_410"] : (function () { throw new RuntimeError('Variable "soft_deleted_410" does not exist.', 14, $this->source); })())) {
// line 15
echo " <meta name=\"description\" content=\"";
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.', 15, $this->source); })()), "name", [], "any", false, false, false, 15)), "html", null, true);
echo ", ID ";
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.', 15, $this->source); })()), "id", [], "any", false, false, false, 15), "html", null, true);
echo " сейчас не работает и недоступна в результатах поиска. Взгляните на похожие анкеты, которые мы подобрали специально для Вас.\">
";
} else {
// line 17
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 21
public function block_canonical($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", "canonical"));
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "canonical"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "canonical"));
// line 22
echo " ";
if ((isset($context["soft_deleted_410"]) || array_key_exists("soft_deleted_410", $context) ? $context["soft_deleted_410"] : (function () { throw new RuntimeError('Variable "soft_deleted_410" does not exist.', 22, $this->source); })())) {
// line 23
echo " <link rel=\"canonical\" href=\"";
echo twig_escape_filter($this->env, $this->extensions['App\Twig\SeoExtension']->cityProfilesCanonicalUrl(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.', 23, $this->source); })()), "city", [], "any", false, false, false, 23), (isset($context["actual_main_domain"]) || array_key_exists("actual_main_domain", $context) ? $context["actual_main_domain"] : (function () { throw new RuntimeError('Variable "actual_main_domain" does not exist.', 23, $this->source); })())), "html", null, true);
echo "\">
";
} else {
// line 25
echo " ";
$this->displayParentBlock("canonical", $context, $blocks);
echo "
";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
}
// line 29
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 30
echo " ";
$this->displayParentBlock("navbar", $context, $blocks);
echo "
";
// line 31
if ( !(isset($context["soft_deleted_410"]) || array_key_exists("soft_deleted_410", $context) ? $context["soft_deleted_410"] : (function () { throw new RuntimeError('Variable "soft_deleted_410" does not exist.', 31, $this->source); })())) {
// line 32
echo " ";
$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.', 32, $this->source); })()), "id", [], "any", false, false, false, 32)];
// line 33
echo " ";
$this->loadTemplate("Recommendations/_profile_recommendations.html.twig", "ProfilePreview/page.html.twig", 33)->display($context);
// line 34
echo " ";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
}
// line 37
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 38
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.', 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 "\">
<div class=\"col-3\">
<div id=\"left_column_metric\">
";
// line 41
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.', 41, $this->source); })()), "user", [], "any", false, false, false, 41) || $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.', 41, $this->source); })()), "user", [], "any", false, false, false, 41)))) {
// line 42
echo " <div><a class=\"add-remove-favourite\" data-action=\"remove\" href=\"javascript:void(0);\"
style=\"display: ";
// line 43
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.', 43, $this->source); })()))) ? ("block") : ("none"));
echo "\">UNLIKE</a></div>
<div><a class=\"add-remove-favourite\" data-action=\"add\"
style=\"display: ";
// line 45
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.', 45, $this->source); })()))) ? ("block") : ("none"));
echo "\"
";
// line 46
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.', 46, $this->source); })()), "user", [], "any", false, false, false, 46)) {
echo "href=\"javascript:void(0);\"
";
} else {
// line 47
echo "href=\"javascript:alert('Чтобы сделать что-то зарегистрируйтесь');\"";
}
echo ">LIKE</a>
</div>
";
}
// line 50
echo " <div class=\"row\">
";
// line 51
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.', 51, $this->source); })()), "isApproved", [], "any", false, false, false, 51)) {
echo " <b style=\"color:green;\">APPROVED</b><br/> ";
}
// line 52
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.', 52, $this->source); })()), "deleted", [], "any", false, false, false, 52)) {
// line 53
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.', 53, $this->source); })()), "isModerationRejected", [], "any", false, false, false, 53)) {
// line 54
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 55
((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.', 55, $this->source); })()), "seo", [], "any", false, false, false, 55)) ? (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.', 55, $this->source); })()), "seo", [], "any", false, false, false, 55), "phone", [], "any", false, false, false, 55), "html", null, true))) : (print ("")));
echo "\" width=\"150\">
";
} else {
// line 57
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.', 57, $this->source); })()));
// line 58
echo " ";
if ((isset($context["photo"]) || array_key_exists("photo", $context) ? $context["photo"] : (function () { throw new RuntimeError('Variable "photo" does not exist.', 58, $this->source); })())) {
// line 59
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.', 59, $this->source); })()), "path", [], "any", false, false, false, 59), (((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.', 59, $this->source); })()), "type", [], "any", false, false, false, 59) == "photo")) ? ("profile_media") : ("profile_media_avatar"))), "html", null, true);
echo "\"
alt=\"";
// line 60
((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.', 60, $this->source); })()), "seo", [], "any", false, false, false, 60)) ? (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.', 60, $this->source); })()), "seo", [], "any", false, false, false, 60), "phone", [], "any", false, false, false, 60), "html", null, true))) : (print ("")));
echo "\" width=\"150\">
";
}
// line 62
echo " ";
}
// line 63
echo " ";
} else {
// line 64
echo " Фото-заглушка
";
}
// line 66
echo " </div>
";
// line 67
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.', 67, $this->source); })()), "isModerationRejected", [], "any", false, false, false, 67)) && (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.', 67, $this->source); })()), "photos", [], "any", false, false, false, 67)) > 0))) {
// line 68
echo " <div class=\"row\">
";
// line 69
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.', 69, $this->source); })()), "deleted", [], "any", false, false, false, 69)) {
// line 70
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.', 70, $this->source); })()), "photos", [], "any", false, false, false, 70));
foreach ($context['_seq'] as $context["_key"] => $context["photo"]) {
// line 71
echo " <div class=\"col-4\">
<img src=\"";
// line 72
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, 72), "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 75
echo " ";
}
// line 76
echo " </div>
";
}
// line 78
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.', 78, $this->source); })()), "isModerationRejected", [], "any", false, false, false, 78)) && (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.', 78, $this->source); })()), "selfies", [], "any", false, false, false, 78)) > 0))) {
// line 79
echo " <div class=\"row\">
";
// line 80
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.', 80, $this->source); })()), "deleted", [], "any", false, false, false, 80)) {
// line 81
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.', 81, $this->source); })()), "selfies", [], "any", false, false, false, 81));
foreach ($context['_seq'] as $context["_key"] => $context["photo"]) {
// line 82
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["photo"], "main", [], "any", false, false, false, 82) == false)) {
// line 83
echo " <div class=\"col-4\">
<img src=\"";
// line 84
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, 84), "profile_media_selfie"), "html", null, true);
echo "\" alt=\"\" width=\"150\">
</div>
";
}
// line 87
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 88
echo " ";
}
// line 89
echo " </div>
";
}
// line 91
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.', 91, $this->source); })()), "isModerationRejected", [], "any", false, false, false, 91)) && !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); })()), "deleted", [], "any", false, false, false, 91))) {
// line 92
echo " <div class=\"row\">
";
// line 93
$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.', 93, $this->source); })()), "confirmedVideos", [], "any", false, false, false, 93), function ($__video__) use ($context, $macros) { $context["video"] = $__video__; return twig_get_attribute($this->env, $this->source, $context["video"], "previewPath", [], "any", false, false, false, 93); }));
foreach ($context['_seq'] as $context["_key"] => $context["video"]) {
// line 94
echo " <div class=\"col-4\">
<video width=\"100%\" controls
poster=\"";
// line 96
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, 96), "profile_media", "fullsize"), "html", null, true);
echo "\">
<source src=\"";
// line 97
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, 97), "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 102
echo " </div>
";
}
// line 104
echo " </div>
</div>
<div class=\"col-9\">
<div id=\"center_column_metric\">
<h5>";
// line 108
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.', 108, $this->source); })()), "name", [], "any", false, false, false, 108)), "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.', 108, $this->source); })()), "html", null, true);
echo "★
";
// line 109
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.', 109, $this->source); })()), "deleted", [], "any", false, false, false, 109)) {
// line 110
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.', 110, $this->source); })()), "isModerationRejected", [], "any", false, false, false, 110)) {
// line 111
echo " <h3>Анкета отклонена модератором</h3>
";
} else {
// line 113
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.', 113, $this->source); })()), "active", [], "any", false, false, false, 113)) {
// line 114
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.', 114, $this->source); })()), "phoneNumber", [], "any", false, false, false, 114), "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.', 114, $this->source); })()), "phoneNumber", [], "any", false, false, false, 114), "html", null, true);
echo "</a></small>
";
}
// line 116
echo " ";
}
// line 117
echo " ";
} else {
// line 118
echo " Заглушка телефона
";
}
// line 120
echo " </h5>
<dl>
<dt>";
// line 122
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Город", [], "messages");
echo "</dt>
<dd>";
// line 123
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.', 123, $this->source); })()), "city", [], "any", false, false, false, 123), "name", [], "any", false, false, false, 123)), "html", null, true);
echo "</dd>
<dt>";
// line 124
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Метро", [], "messages");
echo "</dt>
<dd>
";
// line 126
$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.', 126, $this->source); })()), "stationsSortedByPrimary", [], "any", false, false, false, 126));
$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 127
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.', 127, $this->source); })()), "city", [], "any", false, false, false, 127), "uriIdentity", [], "any", false, false, false, 127), "station" => twig_get_attribute($this->env, $this->source, $context["station"], "uriIdentity", [], "any", false, false, false, 127)]), "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, 127)), "html", null, true);
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["loop"], "first", [], "any", false, false, false, 127)) {
echo "*";
}
echo "</a>
";
// line 128
if ( !twig_get_attribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, false, 128)) {
echo ", ";
}
// line 129
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 130
echo " </dd>
<dt>";
// line 131
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Район", [], "messages");
echo "</dt>
<dd>
";
// line 133
$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.', 133, $this->source); })()), "stationsSortedByPrimary", [], "any", false, false, false, 133));
foreach ($context['_seq'] as $context["_key"] => $context["station"]) {
// line 134
echo " ";
$context["stationDistrict"] = twig_get_attribute($this->env, $this->source, $context["station"], "district", [], "any", false, false, false, 134);
// line 135
echo " ";
if ((isset($context["stationDistrict"]) || array_key_exists("stationDistrict", $context) ? $context["stationDistrict"] : (function () { throw new RuntimeError('Variable "stationDistrict" does not exist.', 135, $this->source); })())) {
// line 136
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.', 136, $this->source); })()), "county", [], "any", false, false, false, 136);
// line 137
echo " ";
if ((isset($context["districtCounty"]) || array_key_exists("districtCounty", $context) ? $context["districtCounty"] : (function () { throw new RuntimeError('Variable "districtCounty" does not exist.', 137, $this->source); })())) {
// line 138
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.', 138, $this->source); })()), "city", [], "any", false, false, false, 138), "uriIdentity", [], "any", false, false, false, 138), "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.', 138, $this->source); })()), "uriIdentity", [], "any", false, false, false, 138)]), "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.', 138, $this->source); })()), "name", [], "any", false, false, false, 138)), "html", null, true);
echo "</a>
";
}
// line 140
echo " ";
}
// line 141
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 142
echo " </dd>
";
// line 143
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.', 143, $this->source); })()), "deleted", [], "any", false, false, false, 143)) {
// line 144
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.', 144, $this->source); })()), "isModerationRejected", [], "any", false, false, false, 144)) {
// line 145
echo " <dt><strong>";
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Телефон", [], "messages");
echo "</strong></dt>
<dd><strong>";
// line 146
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.', 146, $this->source); })()), "phoneNumber", [], "any", false, false, false, 146), "html", null, true);
echo "</strong></dd>
";
// line 147
if (((($this->extensions['Flagception\Bundle\FlagceptionBundle\Twig\ToggleExtension']->isActive("extended_profile_form") && twig_get_attribute($this->env, $this->source, // line 148
(isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 148, $this->source); })()), "messengers", [], "any", false, false, false, 148)) && twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 149
(isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 149, $this->source); })()), "messengers", [], "any", false, false, false, 149), "hasTelegram", [], "any", false, false, false, 149)) && !twig_test_empty(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 150
(isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 150, $this->source); })()), "messengers", [], "any", false, false, false, 150), "telegramUsername", [], "any", false, false, false, 150)))) {
// line 151
echo " <dt>
<strong>";
// line 152
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.', 152, $this->source); })()), "messengers", [], "any", false, false, false, 152), "hasTelegram", [], "any", false, false, false, 152), "html", null, true);
echo "
</dt>
<dd><a href=\"https://t.me/";
// line 154
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.', 154, $this->source); })()), "messengers", [], "any", false, false, false, 154), "telegramUsername", [], "any", false, false, false, 154), "html", null, true);
echo "\"
target=\"_blank\" rel=\"nofollow noopener\">
@";
// line 156
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.', 156, $this->source); })()), "messengers", [], "any", false, false, false, 156), "telegramUsername", [], "any", false, false, false, 156), "html", null, true);
echo "
</a></dd>
";
}
// line 159
echo " ";
}
// line 160
echo " ";
} else {
// line 161
echo " Заглушка телефона
";
}
// line 163
echo " ";
if ($this->extensions['Flagception\Bundle\FlagceptionBundle\Twig\ToggleExtension']->isActive("extra_category_without_prepayment")) {
// line 164
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.', 164, $this->source); })()), "prepayment", [], "any", false, false, false, 164)) {
// line 165
echo " <dt>Оплата</dt>
<dd>
Предоплата ";
// line 167
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.', 167, $this->source); })()), "prepaymentAmount", [], "any", false, false, false, 167), "html", null, true);
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.', 167, $this->source); })()), "prepaymentComment", [], "any", false, false, false, 167)) {
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.', 167, $this->source); })()), "prepaymentComment", [], "any", false, false, false, 167), "html", null, true);
}
// line 168
echo " </dd>
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 169
(isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 169, $this->source); })()), "prepayment", [], "any", false, false, false, 169) === false)) {
// line 170
echo " <dt>Оплата</dt>
<dd>Без предоплаты</dd>
";
}
// line 173
echo " ";
}
// line 174
echo " <dt>";
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Возраст", [], "messages");
echo "</dt>
<dd>";
// line 175
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.', 175, $this->source); })()), "personParameters", [], "any", false, false, false, 175), "age", [], "any", false, false, false, 175), "html", null, true);
echo "</dd>
<dt>";
// line 176
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Рост", [], "messages");
echo "</dt>
<dd>";
// line 177
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.', 177, $this->source); })()), "personParameters", [], "any", false, false, false, 177), "height", [], "any", false, false, false, 177), "html", null, true);
echo "</dd>
<dt>";
// line 178
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Размер груди", [], "messages");
echo "</dt>
<dd>";
// line 179
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.', 179, $this->source); })()), "personParameters", [], "any", false, false, false, 179), "breastSize", [], "any", false, false, false, 179), "html", null, true);
echo "</dd>
<dt>";
// line 180
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Вес", [], "messages");
echo "</dt>
<dd>";
// line 181
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.', 181, $this->source); })()), "personParameters", [], "any", false, false, false, 181), "weight", [], "any", false, false, false, 181), "html", null, true);
echo "</dd>
<dt>";
// line 182
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Размер одежды", [], "messages");
echo "</dt>
<dd>";
// line 183
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.', 183, $this->source); })()), "personParameters", [], "any", false, false, false, 183), "clothSize", [], "any", false, false, false, 183), "html", null, true);
echo "</dd>
<dt>";
// line 184
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Телосложение", [], "messages");
echo "</dt>
<dd>";
// line 185
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.', 185, $this->source); })()), "personParameters", [], "any", false, false, false, 185), "bodyType", [], "any", false, false, false, 185))), "html", null, true);
echo "</dd>
<dt>";
// line 186
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Цвет волос", [], "messages");
echo "</dt>
<dd>";
// line 187
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.', 187, $this->source); })()), "personParameters", [], "any", false, false, false, 187), "hairColor", [], "any", false, false, false, 187))), "html", null, true);
echo "</dd>
<dt>";
// line 188
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Интимная стрижка", [], "messages");
echo "</dt>
<dd>";
// line 189
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.', 189, $this->source); })()), "personParameters", [], "any", false, false, false, 189), "privateHaircut", [], "any", false, false, false, 189))), "html", null, true);
echo "</dd>
<dt>";
// line 190
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Национальность", [], "messages");
echo "</dt>
<dd>";
// line 191
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.', 191, $this->source); })()), "personParameters", [], "any", false, false, false, 191), "nationality", [], "any", false, false, false, 191))), "html", null, true);
echo "</dd>
<dt>";
// line 192
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Дата обновления", [], "messages");
echo "</dt>
<dd>";
// line 193
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.', 193, $this->source); })()), "updatedAt", [], "any", false, false, false, 193)), "html", null, true);
echo "</dd>
</dl>
<h6>";
// line 196
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("О себе", [], "messages");
echo "</h6>
<p>";
// line 197
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.', 197, $this->source); })()), "description", [], "any", false, false, false, 197)), "html", null, true);
echo "</p>
<h6>";
// line 199
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Предпочтения", [], "messages");
echo "</h6>
";
// line 200
$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.', 200, $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.', 200, $this->source); })()), "masseur", [], "any", false, false, false, 200) || !twig_in_filter($context["group"], (isset($context["masseurExcludeServiceGroups"]) || array_key_exists("masseurExcludeServiceGroups", $context) ? $context["masseurExcludeServiceGroups"] : (function () { throw new RuntimeError('Variable "masseurExcludeServiceGroups" does not exist.', 200, $this->source); })()))); }));
foreach ($context['_seq'] as $context["group"] => $context["servicesGroup"]) {
// line 201
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 203
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($context["servicesGroup"]);
foreach ($context['_seq'] as $context["_key"] => $context["service"]) {
// line 204
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.', 204, $this->source); })()), "providedService", [$context["service"]], "method", false, false, false, 204);
// line 205
echo " <li class=\"";
if ((isset($context["providedService"]) || array_key_exists("providedService", $context) ? $context["providedService"] : (function () { throw new RuntimeError('Variable "providedService" does not exist.', 205, $this->source); })())) {
echo "text-success";
} else {
echo "text-danger";
}
echo "\">
<a href=\"";
// line 206
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.', 206, $this->source); })()), "city", [], "any", false, false, false, 206), "uriIdentity", [], "any", false, false, false, 206), "service" => twig_get_attribute($this->env, $this->source, $context["service"], "uriIdentity", [], "any", false, false, false, 206)]), "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, 206)), "html", null, true);
echo "</a>
</li>
";
// line 208
if ((isset($context["providedService"]) || array_key_exists("providedService", $context) ? $context["providedService"] : (function () { throw new RuntimeError('Variable "providedService" does not exist.', 208, $this->source); })())) {
// line 209
echo " ";
if ($this->extensions['Flagception\Bundle\FlagceptionBundle\Twig\ToggleExtension']->isActive("extended_profile_form")) {
// line 210
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.', 210, $this->source); })()), "condition", [], "any", false, false, false, 210)), [], "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.', 210, $this->source); })()), "condition", [], "any", false, false, false, 210) == 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.', 210, $this->source); })()), "extraCharge", [], "any", false, false, false, 210), "html", null, true);
}
// line 211
echo " ";
}
// line 212
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.', 212, $this->source); })()), "comment", [], "any", false, false, false, 212)) {
// line 213
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.', 213, $this->source); })()), "comment", [], "any", false, false, false, 213), "html", null, true);
echo "
";
}
// line 215
echo " ";
}
// line 216
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 217
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 219
echo "
<h6>";
// line 220
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Отзывы", [], "messages");
echo "</h6>
<div id=\"comments\">
";
// line 222
$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.', 222, $this->source); })()), "comments", [], "any", false, false, false, 222));
$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 223
echo " ";
$this->loadTemplate("ProfilePreview/comment.html.twig", "ProfilePreview/page.html.twig", 223)->display($context);
// line 224
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 225
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 227
echo " </div>
<div id=\"commentFormContainer\">
</div>
<div id=\"recaptcha-container\"></div>
";
// line 234
if ($this->extensions['Flagception\Bundle\FlagceptionBundle\Twig\ToggleExtension']->isActive("extended_profile_form")) {
// line 235
echo " <div>
";
// line 236
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.', 236, $this->source); })()), "expressPricing", [], "any", false, false, false, 236)) {
// line 237
echo " <b>Экспресс:</b>
";
// line 238
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.', 238, $this->source); })()), "expressPricing", [], "any", false, false, false, 238), "provided", [], "any", false, false, false, 238)) {
// line 239
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.', 239, $this->source); })()), "expressPricing", [], "any", false, false, false, 239), "price", [], "any", false, false, false, 239), "html", null, true);
echo "
";
} else {
// line 241
echo " Нет
";
}
// line 243
echo " ";
}
// line 244
echo " </div>
";
}
// line 246
echo "
";
// line 247
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.', 247, $this->source); })()), "clientTypes", [], "any", false, false, false, 247)) {
// line 248
echo " <div>
<b>Услуги для:</b>
";
// line 250
$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.', 250, $this->source); })()), "clientTypes", [], "any", false, false, false, 250));
foreach ($context['_seq'] as $context["_key"] => $context["clientType"]) {
// line 251
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 253
echo " </div>
";
}
// line 255
echo "
";
// line 256
if ($this->extensions['Flagception\Bundle\FlagceptionBundle\Twig\ToggleExtension']->isActive("extended_profile_form")) {
// line 257
echo " <div>
";
// line 258
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.', 258, $this->source); })()), "messengers", [], "any", false, false, false, 258)) {
// line 259
echo " <b>Мессенджеры</b><br>
<b>Telegram</b> ";
// line 260
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.', 260, $this->source); })()), "messengers", [], "any", false, false, false, 260), "telegram", [], "any", false, false, false, 260)) ? ("Да") : ("Нет"));
echo "
<b>WhatsApp</b> ";
// line 261
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.', 261, $this->source); })()), "messengers", [], "any", false, false, false, 261), "whatsApp", [], "any", false, false, false, 261)) ? ("Да") : ("Нет"));
echo "
";
}
// line 263
echo " </div>
";
}
// line 265
echo "
";
// line 266
if ($this->extensions['Flagception\Bundle\FlagceptionBundle\Twig\ToggleExtension']->isActive("extended_profile_form")) {
// line 267
echo " <div>
";
// line 268
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.', 268, $this->source); })()), "carPricing", [], "any", false, false, false, 268)) {
// line 269
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.', 269, $this->source); })()), "carPricing", [], "any", false, false, false, 269), "provided", [], "any", false, false, false, 269)) ? ("Да") : ("Нет"));
echo "
";
}
// line 271
echo " </div>
";
}
// line 273
echo "
";
// line 274
if ($this->extensions['Flagception\Bundle\FlagceptionBundle\Twig\ToggleExtension']->isActive("extended_profile_form")) {
// line 275
echo " <div>
";
// line 276
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.', 276, $this->source); })()), "personParameters", [], "any", false, false, false, 276), "tattoo", [], "any", false, false, false, 276))) {
// line 277
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.', 277, $this->source); })()), "personParameters", [], "any", false, false, false, 277), "tattoo", [], "any", false, false, false, 277)) ? ("Да") : ("Нет"));
echo "
";
}
// line 279
echo " </div>
<div>
";
// line 281
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.', 281, $this->source); })()), "personParameters", [], "any", false, false, false, 281), "piercing", [], "any", false, false, false, 281))) {
// line 282
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.', 282, $this->source); })()), "personParameters", [], "any", false, false, false, 282), "piercing", [], "any", false, false, false, 282)) ? ("Да") : ("Нет"));
echo "
";
}
// line 284
echo " </div>
";
}
// line 286
echo " <div>
<b>Отвечаю на:</b>
";
// line 288
$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.', 288, $this->source); })()), "phoneCallRestrictions", [], "any", false, false, false, 288), "answeringTo", [], "any", false, false, false, 288));
foreach ($context['_seq'] as $context["_key"] => $context["answeringTo"]) {
// line 289
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 291
echo " </div>
</div>
</div>
";
// line 295
if ((isset($context["soft_deleted_410"]) || array_key_exists("soft_deleted_410", $context) ? $context["soft_deleted_410"] : (function () { throw new RuntimeError('Variable "soft_deleted_410" does not exist.', 295, $this->source); })())) {
// line 296
echo " <div class=\"col-12\">
<div class=\"alert alert-secondary\">
<strong>Анкета снята с публикации</strong><br>
Анкета сейчас не работает и недоступна в результатах поиска.
</div>
";
// line 302
$this->loadTemplate("ProfilePreview/nearest_profiles.html.twig", "ProfilePreview/page.html.twig", 302)->display(twig_array_merge($context, ["title" => "Проститутки рядом"]));
// line 303
echo "
<h2>Рекомендации для вас</h2>
";
// line 305
$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.', 305, $this->source); })()), "id", [], "any", false, false, false, 305)];
// line 306
echo " ";
$this->loadTemplate("Recommendations/_profile_recommendations.html.twig", "ProfilePreview/page.html.twig", 306)->display($context);
// line 307
echo " </div>
";
} else {
// line 309
echo " ";
$this->loadTemplate("ProfilePreview/nearest_profiles.html.twig", "ProfilePreview/page.html.twig", 309)->display($context);
// line 310
echo " ";
}
// line 311
echo "
<div id=\"recentlyViewedProfiles\"></div>
</div>
<script type=\"text/javascript\">
var onloadCallback = function () {
grecaptcha.render('recaptcha-container', {
'sitekey': '";
// line 318
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.', 318, $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 323
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 324
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 325
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 326
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 327
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 () {
ajax({
url: '";
// line 331
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("profile_ctr.increase_views");
echo "',
data: {
profile: ";
// line 333
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.', 333, $this->source); })()), "id", [], "any", false, false, false, 333), "html", null, true);
echo ",
},
callback: function () {},
dataType: 'json',
responseType: 'json',
});
profileRecommendations.addViewedProfile(";
// line 340
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.', 340, $this->source); })()), "id", [], "any", false, false, false, 340), "html", null, true);
echo ");
profileBotHelper.addViewedProfile(";
// line 341
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.', 341, $this->source); })()), "id", [], "any", false, false, false, 341), "html", null, true);
echo ");
//достаем список, пока без учета текущей страницы, для текущего аякс запроса
const recentlyViewedProfiles = recentlyViewed.getViewedProfiles();
recentlyViewed.addViewedProfile(";
// line 344
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.', 344, $this->source); })()), "id", [], "any", false, false, false, 344), "html", null, true);
echo ");
//recently viewed profiles
ajax({
url: '";
// line 348
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 363
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.', 363, $this->source); })()), "id", [], "any", false, false, false, 363)]), "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 380
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.', 380, $this->source); })()), "id", [], "any", false, false, false, 380)]), "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 438
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.', 438, $this->source); })()), "id", [], "any", false, false, false, 438)]), "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.', 438, $this->source); })()), "id", [], "any", false, false, false, 438)]), "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 ( 1247 => 438, 1186 => 380, 1166 => 363, 1148 => 348, 1141 => 344, 1135 => 341, 1131 => 340, 1121 => 333, 1116 => 331, 1109 => 327, 1105 => 326, 1101 => 325, 1097 => 324, 1093 => 323, 1085 => 318, 1076 => 311, 1073 => 310, 1070 => 309, 1066 => 307, 1063 => 306, 1061 => 305, 1057 => 303, 1055 => 302, 1047 => 296, 1045 => 295, 1039 => 291, 1030 => 289, 1026 => 288, 1022 => 286, 1018 => 284, 1012 => 282, 1010 => 281, 1006 => 279, 1000 => 277, 998 => 276, 995 => 275, 993 => 274, 990 => 273, 986 => 271, 980 => 269, 978 => 268, 975 => 267, 973 => 266, 970 => 265, 966 => 263, 961 => 261, 957 => 260, 954 => 259, 952 => 258, 949 => 257, 947 => 256, 944 => 255, 940 => 253, 931 => 251, 927 => 250, 923 => 248, 921 => 247, 918 => 246, 914 => 244, 911 => 243, 907 => 241, 901 => 239, 899 => 238, 896 => 237, 894 => 236, 891 => 235, 889 => 234, 880 => 227, 871 => 225, 858 => 224, 855 => 223, 837 => 222, 832 => 220, 829 => 219, 822 => 217, 816 => 216, 813 => 215, 807 => 213, 804 => 212, 801 => 211, 794 => 210, 791 => 209, 789 => 208, 782 => 206, 773 => 205, 770 => 204, 766 => 203, 760 => 201, 756 => 200, 752 => 199, 747 => 197, 743 => 196, 737 => 193, 733 => 192, 729 => 191, 725 => 190, 721 => 189, 717 => 188, 713 => 187, 709 => 186, 705 => 185, 701 => 184, 697 => 183, 693 => 182, 689 => 181, 685 => 180, 681 => 179, 677 => 178, 673 => 177, 669 => 176, 665 => 175, 660 => 174, 657 => 173, 652 => 170, 650 => 169, 647 => 168, 641 => 167, 637 => 165, 634 => 164, 631 => 163, 627 => 161, 624 => 160, 621 => 159, 615 => 156, 610 => 154, 603 => 152, 600 => 151, 598 => 150, 597 => 149, 596 => 148, 595 => 147, 591 => 146, 586 => 145, 583 => 144, 581 => 143, 578 => 142, 572 => 141, 569 => 140, 561 => 138, 558 => 137, 555 => 136, 552 => 135, 549 => 134, 545 => 133, 540 => 131, 537 => 130, 523 => 129, 519 => 128, 508 => 127, 491 => 126, 486 => 124, 482 => 123, 478 => 122, 474 => 120, 470 => 118, 467 => 117, 464 => 116, 456 => 114, 453 => 113, 449 => 111, 446 => 110, 444 => 109, 438 => 108, 432 => 104, 428 => 102, 417 => 97, 413 => 96, 409 => 94, 405 => 93, 402 => 92, 399 => 91, 395 => 89, 392 => 88, 386 => 87, 380 => 84, 377 => 83, 374 => 82, 369 => 81, 367 => 80, 364 => 79, 361 => 78, 357 => 76, 354 => 75, 345 => 72, 342 => 71, 337 => 70, 335 => 69, 332 => 68, 330 => 67, 327 => 66, 323 => 64, 320 => 63, 317 => 62, 312 => 60, 307 => 59, 304 => 58, 301 => 57, 296 => 55, 291 => 54, 288 => 53, 285 => 52, 281 => 51, 278 => 50, 271 => 47, 266 => 46, 262 => 45, 257 => 43, 254 => 42, 252 => 41, 245 => 38, 232 => 37, 218 => 34, 215 => 33, 212 => 32, 210 => 31, 205 => 30, 192 => 29, 175 => 25, 169 => 23, 166 => 22, 153 => 21, 136 => 17, 128 => 15, 125 => 14, 112 => 13, 95 => 9, 87 => 7, 84 => 6, 71 => 5, 57 => 1, 55 => 3, 39 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'ProfilePreview/grid.html.twig' %}
{% set soft_deleted_410 = feature('410_soft_delete') and profile.deleted %}
{% block title %}
{% if soft_deleted_410 %}
Анкета {{ profile.name|trans }}, ID {{ profile.id }} снята с публикации - | Похожие предложения.
{% else %}
{{ seo_title() }}
{% endif %}
{% endblock %}
{% block metaDescription %}
{% if soft_deleted_410 %}
<meta name=\"description\" content=\"{{ profile.name|trans }}, ID {{ profile.id }} сейчас не работает и недоступна в результатах поиска. Взгляните на похожие анкеты, которые мы подобрали специально для Вас.\">
{% else %}
<meta name=\"description\" content=\"{{ seo_description() }}\">
{% endif %}
{% endblock %}
{% block canonical %}
{% if soft_deleted_410 %}
<link rel=\"canonical\" href=\"{{ city_profiles_canonical_url(profile.city, actual_main_domain) }}\">
{% else %}
{{ parent() }}
{% endif %}
{% endblock %}
{% block navbar %}
{{ parent() }}
{% if not soft_deleted_410 %}
{% set excludeRecommendationProfileIds = [profile.id] %}
{% include 'Recommendations/_profile_recommendations.html.twig' %}
{% endif %}
{% 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 %}
{% if feature('extra_category_without_prepayment') %}
{% if profile.prepayment %}
<dt>Оплата</dt>
<dd>
Предоплата {{ profile.prepaymentAmount }}{% if profile.prepaymentComment %}. {{ profile.prepaymentComment }}{% endif %}
</dd>
{% elseif profile.prepayment is same as(false) %}
<dt>Оплата</dt>
<dd>Без предоплаты</dd>
{% endif %}
{% 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>
{% if soft_deleted_410 %}
<div class=\"col-12\">
<div class=\"alert alert-secondary\">
<strong>Анкета снята с публикации</strong><br>
Анкета сейчас не работает и недоступна в результатах поиска.
</div>
{% include 'ProfilePreview/nearest_profiles.html.twig' with {'title': 'Проститутки рядом'} %}
<h2>Рекомендации для вас</h2>
{% set excludeRecommendationProfileIds = [profile.id] %}
{% include 'Recommendations/_profile_recommendations.html.twig' %}
</div>
{% else %}
{% include 'ProfilePreview/nearest_profiles.html.twig' %}
{% endif %}
<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 () {
ajax({
url: '{{ path('profile_ctr.increase_views') }}',
data: {
profile: {{ profile.id }},
},
callback: function () {},
dataType: 'json',
responseType: 'json',
});
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");
}
}