<?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'],
'navbar' => [$this, 'block_navbar'],
'mainContainer' => [$this, 'block_mainContainer'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "ProfilePreview/grid.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "ProfilePreview/page.html.twig"));
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "ProfilePreview/page.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "ProfilePreview/page.html.twig"));
$this->parent = $this->loadTemplate("ProfilePreview/grid.html.twig", "ProfilePreview/page.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
public function block_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
echo twig_escape_filter($this->env, $this->extensions['App\Twig\SeoExtension']->metaTitle(), "html", null, true);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
}
// line 5
public function block_metaDescription($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metaDescription"));
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metaDescription"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metaDescription"));
// line 6
echo " <meta name=\"description\" content=\"";
echo twig_escape_filter($this->env, $this->extensions['App\Twig\SeoExtension']->metaDescription(), "html", null, true);
echo "\">
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
}
// line 9
public function block_navbar($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "navbar"));
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "navbar"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "navbar"));
// line 10
echo " ";
$this->displayParentBlock("navbar", $context, $blocks);
echo "
";
// line 11
$context["excludeRecommendationProfileIds"] = [twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 11, $this->source); })()), "id", [], "any", false, false, false, 11)];
// line 12
echo " ";
$this->loadTemplate("Recommendations/_profile_recommendations.html.twig", "ProfilePreview/page.html.twig", 12)->display($context);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
}
// line 15
public function block_mainContainer($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "mainContainer"));
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "mainContainer"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "mainContainer"));
// line 16
echo " <div class=\"row\" alt=\"";
((twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 16, $this->source); })()), "seo", [], "any", false, false, false, 16)) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 16, $this->source); })()), "seo", [], "any", false, false, false, 16), "phone", [], "any", false, false, false, 16), "html", null, true))) : (print ("")));
echo "\">
<div class=\"col-3\">
<div id=\"left_column_metric\">
";
// line 19
if (( !twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 19, $this->source); })()), "user", [], "any", false, false, false, 19) || $this->extensions['App\Twig\UserExtension']->isUserCustomer(twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 19, $this->source); })()), "user", [], "any", false, false, false, 19)))) {
// line 20
echo " <div><a class=\"add-remove-favourite\" data-action=\"remove\" href=\"javascript:void(0);\"
style=\"display: ";
// line 21
echo (($this->extensions['App\Twig\UserExtension']->isProfileInFavourites((isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 21, $this->source); })()))) ? ("block") : ("none"));
echo "\">UNLIKE</a></div>
<div><a class=\"add-remove-favourite\" data-action=\"add\"
style=\"display: ";
// line 23
echo (( !$this->extensions['App\Twig\UserExtension']->isProfileInFavourites((isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 23, $this->source); })()))) ? ("block") : ("none"));
echo "\"
";
// line 24
if (twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 24, $this->source); })()), "user", [], "any", false, false, false, 24)) {
echo "href=\"javascript:void(0);\"
";
} else {
// line 25
echo "href=\"javascript:alert('Чтобы сделать что-то зарегистрируйтесь');\"";
}
echo ">LIKE</a>
</div>
";
}
// line 28
echo " <div class=\"row\">
";
// line 29
if (twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 29, $this->source); })()), "isApproved", [], "any", false, false, false, 29)) {
echo " <b style=\"color:green;\">APPROVED</b><br/> ";
}
// line 30
echo " ";
if ( !twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 30, $this->source); })()), "deleted", [], "any", false, false, false, 30)) {
// line 31
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 31, $this->source); })()), "isModerationRejected", [], "any", false, false, false, 31)) {
// line 32
echo " <img src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("static/img/red-circle.png"), "html", null, true);
echo "\"
alt=\"";
// line 33
((twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 33, $this->source); })()), "seo", [], "any", false, false, false, 33)) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 33, $this->source); })()), "seo", [], "any", false, false, false, 33), "phone", [], "any", false, false, false, 33), "html", null, true))) : (print ("")));
echo "\" width=\"150\">
";
} else {
// line 35
echo " ";
$context["photo"] = $this->extensions['App\Twig\ProfileAvatarExtension']->profileAvatar((isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 35, $this->source); })()));
// line 36
echo " ";
if ((isset($context["photo"]) || array_key_exists("photo", $context) ? $context["photo"] : (function () { throw new RuntimeError('Variable "photo" does not exist.', 36, $this->source); })())) {
// line 37
echo " <img src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(twig_get_attribute($this->env, $this->source, (isset($context["photo"]) || array_key_exists("photo", $context) ? $context["photo"] : (function () { throw new RuntimeError('Variable "photo" does not exist.', 37, $this->source); })()), "path", [], "any", false, false, false, 37), (((twig_get_attribute($this->env, $this->source, (isset($context["photo"]) || array_key_exists("photo", $context) ? $context["photo"] : (function () { throw new RuntimeError('Variable "photo" does not exist.', 37, $this->source); })()), "type", [], "any", false, false, false, 37) == "photo")) ? ("profile_media") : ("profile_media_avatar"))), "html", null, true);
echo "\"
alt=\"";
// line 38
((twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 38, $this->source); })()), "seo", [], "any", false, false, false, 38)) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 38, $this->source); })()), "seo", [], "any", false, false, false, 38), "phone", [], "any", false, false, false, 38), "html", null, true))) : (print ("")));
echo "\" width=\"150\">
";
}
// line 40
echo " ";
}
// line 41
echo " ";
} else {
// line 42
echo " Фото-заглушка
";
}
// line 44
echo " </div>
";
// line 45
if (((false == twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 45, $this->source); })()), "isModerationRejected", [], "any", false, false, false, 45)) && (twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 45, $this->source); })()), "photos", [], "any", false, false, false, 45)) > 0))) {
// line 46
echo " <div class=\"row\">
";
// line 47
if ( !twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 47, $this->source); })()), "deleted", [], "any", false, false, false, 47)) {
// line 48
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 48, $this->source); })()), "photos", [], "any", false, false, false, 48));
foreach ($context['_seq'] as $context["_key"] => $context["photo"]) {
// line 49
echo " <div class=\"col-4\">
<img src=\"";
// line 50
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(twig_get_attribute($this->env, $this->source, $context["photo"], "path", [], "any", false, false, false, 50), "profile_media"), "html", null, true);
echo "\" alt=\"\" width=\"150\">
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['photo'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 53
echo " ";
}
// line 54
echo " </div>
";
}
// line 56
echo " ";
if (((false == twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 56, $this->source); })()), "isModerationRejected", [], "any", false, false, false, 56)) && (twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 56, $this->source); })()), "selfies", [], "any", false, false, false, 56)) > 0))) {
// line 57
echo " <div class=\"row\">
";
// line 58
if ( !twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 58, $this->source); })()), "deleted", [], "any", false, false, false, 58)) {
// line 59
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 59, $this->source); })()), "selfies", [], "any", false, false, false, 59));
foreach ($context['_seq'] as $context["_key"] => $context["photo"]) {
// line 60
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["photo"], "main", [], "any", false, false, false, 60) == false)) {
// line 61
echo " <div class=\"col-4\">
<img src=\"";
// line 62
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(twig_get_attribute($this->env, $this->source, $context["photo"], "path", [], "any", false, false, false, 62), "profile_media_selfie"), "html", null, true);
echo "\" alt=\"\" width=\"150\">
</div>
";
}
// line 65
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['photo'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 66
echo " ";
}
// line 67
echo " </div>
";
}
// line 69
echo " ";
if (((false == twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 69, $this->source); })()), "isModerationRejected", [], "any", false, false, false, 69)) && !twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 69, $this->source); })()), "deleted", [], "any", false, false, false, 69))) {
// line 70
echo " <div class=\"row\">
";
// line 71
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_array_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 71, $this->source); })()), "confirmedVideos", [], "any", false, false, false, 71), function ($__video__) use ($context, $macros) { $context["video"] = $__video__; return twig_get_attribute($this->env, $this->source, $context["video"], "previewPath", [], "any", false, false, false, 71); }));
foreach ($context['_seq'] as $context["_key"] => $context["video"]) {
// line 72
echo " <div class=\"col-4\">
<video width=\"100%\" controls
poster=\"";
// line 74
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(twig_get_attribute($this->env, $this->source, $context["video"], "previewPath", [], "any", false, false, false, 74), "profile_media", "fullsize"), "html", null, true);
echo "\">
<source src=\"";
// line 75
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(twig_get_attribute($this->env, $this->source, $context["video"], "path", [], "any", false, false, false, 75), "profile_media", "fullsize"), "html", null, true);
echo "\" type=\"video/mp4\">
Your browser does not support the video tag.
</video>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['video'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 80
echo " </div>
";
}
// line 82
echo " </div>
</div>
<div class=\"col-9\">
<div id=\"center_column_metric\">
<h5>";
// line 86
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 86, $this->source); })()), "name", [], "any", false, false, false, 86)), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, (isset($context["rating"]) || array_key_exists("rating", $context) ? $context["rating"] : (function () { throw new RuntimeError('Variable "rating" does not exist.', 86, $this->source); })()), "html", null, true);
echo "★
";
// line 87
if ( !twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 87, $this->source); })()), "deleted", [], "any", false, false, false, 87)) {
// line 88
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 88, $this->source); })()), "isModerationRejected", [], "any", false, false, false, 88)) {
// line 89
echo " <h3>Анкета отклонена модератором</h3>
";
} else {
// line 91
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 91, $this->source); })()), "active", [], "any", false, false, false, 91)) {
// line 92
echo " <small><a href=\"tel:";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 92, $this->source); })()), "phoneNumber", [], "any", false, false, false, 92), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 92, $this->source); })()), "phoneNumber", [], "any", false, false, false, 92), "html", null, true);
echo "</a></small>
";
}
// line 94
echo " ";
}
// line 95
echo " ";
} else {
// line 96
echo " Заглушка телефона
";
}
// line 98
echo " </h5>
<dl>
<dt>";
// line 100
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Город", [], "messages");
echo "</dt>
<dd>";
// line 101
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 101, $this->source); })()), "city", [], "any", false, false, false, 101), "name", [], "any", false, false, false, 101)), "html", null, true);
echo "</dd>
";
// line 102
if ((isset($context["profile_saloon"]) || array_key_exists("profile_saloon", $context) ? $context["profile_saloon"] : (function () { throw new RuntimeError('Variable "profile_saloon" does not exist.', 102, $this->source); })())) {
// line 103
echo " <dt>";
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Салон", [], "messages");
echo "</dt>
<dd>
<a href=\"";
// line 105
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("saloon_preview.page", ["city" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["profile_saloon"]) || array_key_exists("profile_saloon", $context) ? $context["profile_saloon"] : (function () { throw new RuntimeError('Variable "profile_saloon" does not exist.', 105, $this->source); })()), "city", [], "any", false, false, false, 105), "uriIdentity", [], "any", false, false, false, 105), "saloon" => twig_get_attribute($this->env, $this->source, (isset($context["profile_saloon"]) || array_key_exists("profile_saloon", $context) ? $context["profile_saloon"] : (function () { throw new RuntimeError('Variable "profile_saloon" does not exist.', 105, $this->source); })()), "uriIdentity", [], "any", false, false, false, 105)]), "html", null, true);
echo "\">
";
// line 106
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env, $this->source, (isset($context["profile_saloon"]) || array_key_exists("profile_saloon", $context) ? $context["profile_saloon"] : (function () { throw new RuntimeError('Variable "profile_saloon" does not exist.', 106, $this->source); })()), "name", [], "any", false, false, false, 106)), "html", null, true);
echo "
</a>
</dd>
";
}
// line 110
echo " <dt>";
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Метро", [], "messages");
echo "</dt>
<dd>
";
// line 112
$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.', 112, $this->source); })()), "stationsSortedByPrimary", [], "any", false, false, false, 112));
$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 113
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.', 113, $this->source); })()), "city", [], "any", false, false, false, 113), "uriIdentity", [], "any", false, false, false, 113), "station" => twig_get_attribute($this->env, $this->source, $context["station"], "uriIdentity", [], "any", false, false, false, 113)]), "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, 113)), "html", null, true);
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["loop"], "first", [], "any", false, false, false, 113)) {
echo "*";
}
echo "</a>
";
// line 114
if ( !twig_get_attribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, false, 114)) {
echo ", ";
}
// line 115
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 116
echo " </dd>
<dt>";
// line 117
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Район", [], "messages");
echo "</dt>
<dd>
";
// line 119
$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.', 119, $this->source); })()), "stationsSortedByPrimary", [], "any", false, false, false, 119));
foreach ($context['_seq'] as $context["_key"] => $context["station"]) {
// line 120
echo " ";
$context["stationDistrict"] = twig_get_attribute($this->env, $this->source, $context["station"], "district", [], "any", false, false, false, 120);
// line 121
echo " ";
if ((isset($context["stationDistrict"]) || array_key_exists("stationDistrict", $context) ? $context["stationDistrict"] : (function () { throw new RuntimeError('Variable "stationDistrict" does not exist.', 121, $this->source); })())) {
// line 122
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.', 122, $this->source); })()), "county", [], "any", false, false, false, 122);
// line 123
echo " ";
if ((isset($context["districtCounty"]) || array_key_exists("districtCounty", $context) ? $context["districtCounty"] : (function () { throw new RuntimeError('Variable "districtCounty" does not exist.', 123, $this->source); })())) {
// line 124
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.', 124, $this->source); })()), "city", [], "any", false, false, false, 124), "uriIdentity", [], "any", false, false, false, 124), "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.', 124, $this->source); })()), "uriIdentity", [], "any", false, false, false, 124)]), "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.', 124, $this->source); })()), "name", [], "any", false, false, false, 124)), "html", null, true);
echo "</a>
";
}
// line 126
echo " ";
}
// line 127
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 128
echo " </dd>
";
// line 129
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.', 129, $this->source); })()), "deleted", [], "any", false, false, false, 129)) {
// line 130
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.', 130, $this->source); })()), "isModerationRejected", [], "any", false, false, false, 130)) {
// line 131
echo " <dt><strong>";
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Телефон", [], "messages");
echo "</strong></dt>
<dd><strong>";
// line 132
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.', 132, $this->source); })()), "phoneNumber", [], "any", false, false, false, 132), "html", null, true);
echo "</strong></dd>
";
// line 133
if (((($this->extensions['Flagception\Bundle\FlagceptionBundle\Twig\ToggleExtension']->isActive("extended_profile_form") && twig_get_attribute($this->env, $this->source, // line 134
(isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 134, $this->source); })()), "messengers", [], "any", false, false, false, 134)) && twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 135
(isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 135, $this->source); })()), "messengers", [], "any", false, false, false, 135), "hasTelegram", [], "any", false, false, false, 135)) && !twig_test_empty(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 136
(isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 136, $this->source); })()), "messengers", [], "any", false, false, false, 136), "telegramUsername", [], "any", false, false, false, 136)))) {
// line 137
echo " <dt>
<strong>";
// line 138
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.', 138, $this->source); })()), "messengers", [], "any", false, false, false, 138), "hasTelegram", [], "any", false, false, false, 138), "html", null, true);
echo "
</dt>
<dd><a href=\"https://t.me/";
// line 140
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.', 140, $this->source); })()), "messengers", [], "any", false, false, false, 140), "telegramUsername", [], "any", false, false, false, 140), "html", null, true);
echo "\"
target=\"_blank\" rel=\"nofollow noopener\">
@";
// line 142
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 142, $this->source); })()), "messengers", [], "any", false, false, false, 142), "telegramUsername", [], "any", false, false, false, 142), "html", null, true);
echo "
</a></dd>
";
}
// line 145
echo " ";
if (((($this->extensions['Flagception\Bundle\FlagceptionBundle\Twig\ToggleExtension']->isActive("extra_category_with_max") && twig_get_attribute($this->env, $this->source, // line 146
(isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 146, $this->source); })()), "messengers", [], "any", false, false, false, 146)) && twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 147
(isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 147, $this->source); })()), "messengers", [], "any", false, false, false, 147), "hasMax", [], "any", false, false, false, 147)) && !twig_test_empty(twig_get_attribute($this->env, $this->source, 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), "maxUrl", [], "any", false, false, false, 148)))) {
// line 149
echo " <dt>
<strong>MAX</strong>
</dt>
<dd><a href=\"";
// line 152
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), "maxUrl", [], "any", false, false, false, 152), "html", null, true);
echo "\"
target=\"_blank\" rel=\"nofollow noopener\">MAX</a></dd>
";
}
// line 155
echo " ";
}
// line 156
echo " ";
} else {
// line 157
echo " Заглушка телефона
";
}
// line 159
echo " ";
if ($this->extensions['Flagception\Bundle\FlagceptionBundle\Twig\ToggleExtension']->isActive("extra_category_without_prepayment")) {
// line 160
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.', 160, $this->source); })()), "prepayment", [], "any", false, false, false, 160)) {
// line 161
echo " <dt>Оплата</dt>
<dd>
Предоплата ";
// line 163
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.', 163, $this->source); })()), "prepaymentAmount", [], "any", false, false, false, 163), "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.', 163, $this->source); })()), "prepaymentComment", [], "any", false, false, false, 163)) {
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.', 163, $this->source); })()), "prepaymentComment", [], "any", false, false, false, 163), "html", null, true);
}
// line 164
echo " </dd>
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 165
(isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 165, $this->source); })()), "prepayment", [], "any", false, false, false, 165) === false)) {
// line 166
echo " <dt>Оплата</dt>
<dd>Без предоплаты</dd>
";
}
// line 169
echo " ";
}
// line 170
echo " <dt>";
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Возраст", [], "messages");
echo "</dt>
<dd>";
// line 171
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.', 171, $this->source); })()), "personParameters", [], "any", false, false, false, 171), "age", [], "any", false, false, false, 171), "html", null, true);
echo "</dd>
<dt>";
// line 172
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Рост", [], "messages");
echo "</dt>
<dd>";
// line 173
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.', 173, $this->source); })()), "personParameters", [], "any", false, false, false, 173), "height", [], "any", false, false, false, 173), "html", null, true);
echo "</dd>
<dt>";
// line 174
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), "breastSize", [], "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), "weight", [], "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), "clothSize", [], "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, $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.', 181, $this->source); })()), "personParameters", [], "any", false, false, false, 181), "bodyType", [], "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, $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.', 183, $this->source); })()), "personParameters", [], "any", false, false, false, 183), "hairColor", [], "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']->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.', 185, $this->source); })()), "personParameters", [], "any", false, false, false, 185), "privateHaircut", [], "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']->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.', 187, $this->source); })()), "personParameters", [], "any", false, false, false, 187), "nationality", [], "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, 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.', 189, $this->source); })()), "updatedAt", [], "any", false, false, false, 189)), "html", null, true);
echo "</dd>
</dl>
<h6>";
// line 192
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("О себе", [], "messages");
echo "</h6>
<p>";
// line 193
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.', 193, $this->source); })()), "description", [], "any", false, false, false, 193)), "html", null, true);
echo "</p>
";
// line 195
$this->loadTemplate("ProfilePreview/_saloon.html.twig", "ProfilePreview/page.html.twig", 195)->display(twig_array_merge($context, ["saloon" => (isset($context["profile_saloon"]) || array_key_exists("profile_saloon", $context) ? $context["profile_saloon"] : (function () { throw new RuntimeError('Variable "profile_saloon" does not exist.', 195, $this->source); })())]));
// line 196
echo "
<h6>";
// line 197
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Предпочтения", [], "messages");
echo "</h6>
";
// line 198
$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.', 198, $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.', 198, $this->source); })()), "masseur", [], "any", false, false, false, 198) || !twig_in_filter($context["group"], (isset($context["masseurExcludeServiceGroups"]) || array_key_exists("masseurExcludeServiceGroups", $context) ? $context["masseurExcludeServiceGroups"] : (function () { throw new RuntimeError('Variable "masseurExcludeServiceGroups" does not exist.', 198, $this->source); })()))); }));
foreach ($context['_seq'] as $context["group"] => $context["servicesGroup"]) {
// line 199
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 201
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($context["servicesGroup"]);
foreach ($context['_seq'] as $context["_key"] => $context["service"]) {
// line 202
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.', 202, $this->source); })()), "providedService", [$context["service"]], "method", false, false, false, 202);
// line 203
echo " <li class=\"";
if ((isset($context["providedService"]) || array_key_exists("providedService", $context) ? $context["providedService"] : (function () { throw new RuntimeError('Variable "providedService" does not exist.', 203, $this->source); })())) {
echo "text-success";
} else {
echo "text-danger";
}
echo "\">
<a href=\"";
// line 204
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.', 204, $this->source); })()), "city", [], "any", false, false, false, 204), "uriIdentity", [], "any", false, false, false, 204), "service" => twig_get_attribute($this->env, $this->source, $context["service"], "uriIdentity", [], "any", false, false, false, 204)]), "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, 204)), "html", null, true);
echo "</a>
</li>
";
// line 206
if ((isset($context["providedService"]) || array_key_exists("providedService", $context) ? $context["providedService"] : (function () { throw new RuntimeError('Variable "providedService" does not exist.', 206, $this->source); })())) {
// line 207
echo " ";
if ($this->extensions['Flagception\Bundle\FlagceptionBundle\Twig\ToggleExtension']->isActive("extended_profile_form")) {
// line 208
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.', 208, $this->source); })()), "condition", [], "any", false, false, false, 208)), [], "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.', 208, $this->source); })()), "condition", [], "any", false, false, false, 208) == 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.', 208, $this->source); })()), "extraCharge", [], "any", false, false, false, 208), "html", null, true);
}
// line 209
echo " ";
}
// line 210
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.', 210, $this->source); })()), "comment", [], "any", false, false, false, 210)) {
// line 211
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.', 211, $this->source); })()), "comment", [], "any", false, false, false, 211), "html", null, true);
echo "
";
}
// line 213
echo " ";
}
// line 214
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 215
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 217
echo "
<h6>";
// line 218
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Отзывы", [], "messages");
echo "</h6>
<div id=\"comments\">
";
// line 220
$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.', 220, $this->source); })()), "comments", [], "any", false, false, false, 220));
$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 221
echo " ";
$this->loadTemplate("ProfilePreview/comment.html.twig", "ProfilePreview/page.html.twig", 221)->display($context);
// line 222
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 223
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 225
echo " </div>
<div id=\"commentFormContainer\">
</div>
<div id=\"recaptcha-container\"></div>
";
// line 232
if ($this->extensions['Flagception\Bundle\FlagceptionBundle\Twig\ToggleExtension']->isActive("extended_profile_form")) {
// line 233
echo " <div>
";
// line 234
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.', 234, $this->source); })()), "expressPricing", [], "any", false, false, false, 234)) {
// line 235
echo " <b>Экспресс:</b>
";
// line 236
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.', 236, $this->source); })()), "expressPricing", [], "any", false, false, false, 236), "provided", [], "any", false, false, false, 236)) {
// line 237
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.', 237, $this->source); })()), "expressPricing", [], "any", false, false, false, 237), "price", [], "any", false, false, false, 237), "html", null, true);
echo "
";
} else {
// line 239
echo " Нет
";
}
// line 241
echo " ";
}
// line 242
echo " </div>
";
}
// line 244
echo "
";
// line 245
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.', 245, $this->source); })()), "clientTypes", [], "any", false, false, false, 245)) {
// line 246
echo " <div>
<b>Услуги для:</b>
";
// line 248
$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.', 248, $this->source); })()), "clientTypes", [], "any", false, false, false, 248));
foreach ($context['_seq'] as $context["_key"] => $context["clientType"]) {
// line 249
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 251
echo " </div>
";
}
// line 253
echo "
";
// line 254
if ($this->extensions['Flagception\Bundle\FlagceptionBundle\Twig\ToggleExtension']->isActive("extended_profile_form")) {
// line 255
echo " <div>
";
// line 256
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.', 256, $this->source); })()), "messengers", [], "any", false, false, false, 256)) {
// line 257
echo " <b>Мессенджеры</b><br>
<b>Telegram</b> ";
// line 258
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.', 258, $this->source); })()), "messengers", [], "any", false, false, false, 258), "telegram", [], "any", false, false, false, 258)) ? ("Да") : ("Нет"));
echo "
<b>WhatsApp</b> ";
// line 259
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.', 259, $this->source); })()), "messengers", [], "any", false, false, false, 259), "whatsApp", [], "any", false, false, false, 259)) ? ("Да") : ("Нет"));
echo "
";
// line 260
if ($this->extensions['Flagception\Bundle\FlagceptionBundle\Twig\ToggleExtension']->isActive("extra_category_with_max")) {
// line 261
echo " <b>MAX</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.', 261, $this->source); })()), "messengers", [], "any", false, false, false, 261), "max", [], "any", false, false, false, 261)) ? ("Да") : ("Нет"));
echo "
";
}
// line 263
echo " ";
}
// line 264
echo " </div>
";
}
// line 266
echo "
";
// line 267
if ($this->extensions['Flagception\Bundle\FlagceptionBundle\Twig\ToggleExtension']->isActive("extended_profile_form")) {
// line 268
echo " <div>
";
// line 269
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.', 269, $this->source); })()), "carPricing", [], "any", false, false, false, 269)) {
// line 270
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.', 270, $this->source); })()), "carPricing", [], "any", false, false, false, 270), "provided", [], "any", false, false, false, 270)) ? ("Да") : ("Нет"));
echo "
";
}
// line 272
echo " </div>
";
}
// line 274
echo "
";
// line 275
if ($this->extensions['Flagception\Bundle\FlagceptionBundle\Twig\ToggleExtension']->isActive("extended_profile_form")) {
// line 276
echo " <div>
";
// line 277
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.', 277, $this->source); })()), "personParameters", [], "any", false, false, false, 277), "tattoo", [], "any", false, false, false, 277))) {
// line 278
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.', 278, $this->source); })()), "personParameters", [], "any", false, false, false, 278), "tattoo", [], "any", false, false, false, 278)) ? ("Да") : ("Нет"));
echo "
";
}
// line 280
echo " </div>
<div>
";
// line 282
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.', 282, $this->source); })()), "personParameters", [], "any", false, false, false, 282), "piercing", [], "any", false, false, false, 282))) {
// line 283
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.', 283, $this->source); })()), "personParameters", [], "any", false, false, false, 283), "piercing", [], "any", false, false, false, 283)) ? ("Да") : ("Нет"));
echo "
";
}
// line 285
echo " </div>
";
}
// line 287
echo " <div>
<b>Отвечаю на:</b>
";
// line 289
$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.', 289, $this->source); })()), "phoneCallRestrictions", [], "any", false, false, false, 289), "answeringTo", [], "any", false, false, false, 289));
foreach ($context['_seq'] as $context["_key"] => $context["answeringTo"]) {
// line 290
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 292
echo " </div>
</div>
</div>
";
// line 296
$this->loadTemplate("ProfilePreview/nearest_profiles.html.twig", "ProfilePreview/page.html.twig", 296)->display($context);
// line 297
echo "
<div id=\"recentlyViewedProfiles\"></div>
</div>
<script type=\"text/javascript\">
var onloadCallback = function () {
grecaptcha.render('recaptcha-container', {
'sitekey': '";
// line 304
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.', 304, $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 309
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 310
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 311
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 312
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 313
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 317
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("profile_ctr.increase_views");
echo "',
data: {
profile: ";
// line 319
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.', 319, $this->source); })()), "id", [], "any", false, false, false, 319), "html", null, true);
echo ",
},
callback: function () {},
dataType: 'json',
responseType: 'json',
});
profileRecommendations.addViewedProfile(";
// line 326
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.', 326, $this->source); })()), "id", [], "any", false, false, false, 326), "html", null, true);
echo ");
profileBotHelper.addViewedProfile(";
// line 327
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.', 327, $this->source); })()), "id", [], "any", false, false, false, 327), "html", null, true);
echo ");
//достаем список, пока без учета текущей страницы, для текущего аякс запроса
const recentlyViewedProfiles = recentlyViewed.getViewedProfiles();
recentlyViewed.addViewedProfile(";
// line 330
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.', 330, $this->source); })()), "id", [], "any", false, false, false, 330), "html", null, true);
echo ");
//recently viewed profiles
ajax({
url: '";
// line 334
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 349
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.', 349, $this->source); })()), "id", [], "any", false, false, false, 349)]), "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 366
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.', 366, $this->source); })()), "id", [], "any", false, false, false, 366)]), "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 424
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.', 424, $this->source); })()), "id", [], "any", false, false, false, 424)]), "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.', 424, $this->source); })()), "id", [], "any", false, false, false, 424)]), "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 ( 1193 => 424, 1132 => 366, 1112 => 349, 1094 => 334, 1087 => 330, 1081 => 327, 1077 => 326, 1067 => 319, 1062 => 317, 1055 => 313, 1051 => 312, 1047 => 311, 1043 => 310, 1039 => 309, 1031 => 304, 1022 => 297, 1020 => 296, 1014 => 292, 1005 => 290, 1001 => 289, 997 => 287, 993 => 285, 987 => 283, 985 => 282, 981 => 280, 975 => 278, 973 => 277, 970 => 276, 968 => 275, 965 => 274, 961 => 272, 955 => 270, 953 => 269, 950 => 268, 948 => 267, 945 => 266, 941 => 264, 938 => 263, 932 => 261, 930 => 260, 926 => 259, 922 => 258, 919 => 257, 917 => 256, 914 => 255, 912 => 254, 909 => 253, 905 => 251, 896 => 249, 892 => 248, 888 => 246, 886 => 245, 883 => 244, 879 => 242, 876 => 241, 872 => 239, 866 => 237, 864 => 236, 861 => 235, 859 => 234, 856 => 233, 854 => 232, 845 => 225, 836 => 223, 823 => 222, 820 => 221, 802 => 220, 797 => 218, 794 => 217, 787 => 215, 781 => 214, 778 => 213, 772 => 211, 769 => 210, 766 => 209, 759 => 208, 756 => 207, 754 => 206, 747 => 204, 738 => 203, 735 => 202, 731 => 201, 725 => 199, 721 => 198, 717 => 197, 714 => 196, 712 => 195, 707 => 193, 703 => 192, 697 => 189, 693 => 188, 689 => 187, 685 => 186, 681 => 185, 677 => 184, 673 => 183, 669 => 182, 665 => 181, 661 => 180, 657 => 179, 653 => 178, 649 => 177, 645 => 176, 641 => 175, 637 => 174, 633 => 173, 629 => 172, 625 => 171, 620 => 170, 617 => 169, 612 => 166, 610 => 165, 607 => 164, 601 => 163, 597 => 161, 594 => 160, 591 => 159, 587 => 157, 584 => 156, 581 => 155, 575 => 152, 570 => 149, 568 => 148, 567 => 147, 566 => 146, 564 => 145, 558 => 142, 553 => 140, 546 => 138, 543 => 137, 541 => 136, 540 => 135, 539 => 134, 538 => 133, 534 => 132, 529 => 131, 526 => 130, 524 => 129, 521 => 128, 515 => 127, 512 => 126, 504 => 124, 501 => 123, 498 => 122, 495 => 121, 492 => 120, 488 => 119, 483 => 117, 480 => 116, 466 => 115, 462 => 114, 451 => 113, 434 => 112, 428 => 110, 421 => 106, 417 => 105, 411 => 103, 409 => 102, 405 => 101, 401 => 100, 397 => 98, 393 => 96, 390 => 95, 387 => 94, 379 => 92, 376 => 91, 372 => 89, 369 => 88, 367 => 87, 361 => 86, 355 => 82, 351 => 80, 340 => 75, 336 => 74, 332 => 72, 328 => 71, 325 => 70, 322 => 69, 318 => 67, 315 => 66, 309 => 65, 303 => 62, 300 => 61, 297 => 60, 292 => 59, 290 => 58, 287 => 57, 284 => 56, 280 => 54, 277 => 53, 268 => 50, 265 => 49, 260 => 48, 258 => 47, 255 => 46, 253 => 45, 250 => 44, 246 => 42, 243 => 41, 240 => 40, 235 => 38, 230 => 37, 227 => 36, 224 => 35, 219 => 33, 214 => 32, 211 => 31, 208 => 30, 204 => 29, 201 => 28, 194 => 25, 189 => 24, 185 => 23, 180 => 21, 177 => 20, 175 => 19, 168 => 16, 155 => 15, 141 => 12, 139 => 11, 134 => 10, 121 => 9, 105 => 6, 92 => 5, 67 => 3, 38 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'ProfilePreview/grid.html.twig' %}
{% block title %}{{ seo_title() }}{% endblock %}
{% block metaDescription %}
<meta name=\"description\" content=\"{{ seo_description() }}\">
{% endblock %}
{% block navbar %}
{{ parent() }}
{% set excludeRecommendationProfileIds = [profile.id] %}
{% include 'Recommendations/_profile_recommendations.html.twig' %}
{% endblock %}
{% block mainContainer %}
<div class=\"row\" alt=\"{{ profile.seo ? profile.seo.phone : '' }}\">
<div class=\"col-3\">
<div id=\"left_column_metric\">
{% if not app.user or is_user_customer(app.user) %}
<div><a class=\"add-remove-favourite\" data-action=\"remove\" href=\"javascript:void(0);\"
style=\"display: {{ is_profile_in_favourites(profile) ? 'block' : 'none' }}\">UNLIKE</a></div>
<div><a class=\"add-remove-favourite\" data-action=\"add\"
style=\"display: {{ not is_profile_in_favourites(profile) ? 'block' : 'none' }}\"
{% if app.user %}href=\"javascript:void(0);\"
{% else %}href=\"javascript:alert('Чтобы сделать что-то зарегистрируйтесь');\"{% endif %}>LIKE</a>
</div>
{% endif %}
<div class=\"row\">
{% if profile.isApproved %} <b style=\"color:green;\">APPROVED</b><br/> {% endif %}
{% if not profile.deleted %}
{% if profile.isModerationRejected %}
<img src=\"{{ asset('static/img/red-circle.png') }}\"
alt=\"{{ profile.seo ? profile.seo.phone : '' }}\" width=\"150\">
{% else %}
{% set photo = profile|avatar %}
{% if photo %}
<img src=\"{{ asset(photo.path, photo.type == 'photo' ? 'profile_media' : 'profile_media_avatar') }}\"
alt=\"{{ profile.seo ? profile.seo.phone : '' }}\" width=\"150\">
{% endif %}
{% endif %}
{% else %}
Фото-заглушка
{% endif %}
</div>
{% if false == profile.isModerationRejected and profile.photos|length > 0 %}
<div class=\"row\">
{% if not profile.deleted %}
{% for photo in profile.photos %}
<div class=\"col-4\">
<img src=\"{{ asset(photo.path, 'profile_media') }}\" alt=\"\" width=\"150\">
</div>
{% endfor %}
{% endif %}
</div>
{% endif %}
{% if false == profile.isModerationRejected and profile.selfies|length > 0 %}
<div class=\"row\">
{% if not profile.deleted %}
{% for photo in profile.selfies %}
{% if photo.main == false %}
<div class=\"col-4\">
<img src=\"{{ asset(photo.path, 'profile_media_selfie') }}\" alt=\"\" width=\"150\">
</div>
{% endif %}
{% endfor %}
{% endif %}
</div>
{% endif %}
{% if false == profile.isModerationRejected and not profile.deleted %}
<div class=\"row\">
{% for video in profile.confirmedVideos | filter(video => video.previewPath) %}
<div class=\"col-4\">
<video width=\"100%\" controls
poster=\"{{ asset(video.previewPath, 'profile_media', 'fullsize') }}\">
<source src=\"{{ asset(video.path, 'profile_media', 'fullsize') }}\" type=\"video/mp4\">
Your browser does not support the video tag.
</video>
</div>
{% endfor %}
</div>
{% endif %}
</div>
</div>
<div class=\"col-9\">
<div id=\"center_column_metric\">
<h5>{{ profile.name|trans }} {{ rating }}★
{% if not profile.deleted %}
{% if profile.isModerationRejected %}
<h3>Анкета отклонена модератором</h3>
{% else %}
{% if profile.active %}
<small><a href=\"tel:{{ profile.phoneNumber }}\">{{ profile.phoneNumber }}</a></small>
{% endif %}
{% endif %}
{% else %}
Заглушка телефона
{% endif %}
</h5>
<dl>
<dt>{% trans %}Город{% endtrans %}</dt>
<dd>{{ profile.city.name|trans }}</dd>
{% if profile_saloon %}
<dt>{% trans %}Салон{% endtrans %}</dt>
<dd>
<a href=\"{{ path('saloon_preview.page', {'city': profile_saloon.city.uriIdentity, 'saloon': profile_saloon.uriIdentity}) }}\">
{{ profile_saloon.name|trans }}
</a>
</dd>
{% endif %}
<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 %}
{% if feature('extra_category_with_max')
and profile.messengers
and profile.messengers.hasMax
and profile.messengers.maxUrl is not empty %}
<dt>
<strong>MAX</strong>
</dt>
<dd><a href=\"{{ profile.messengers.maxUrl }}\"
target=\"_blank\" rel=\"nofollow noopener\">MAX</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>
{% include 'ProfilePreview/_saloon.html.twig' with { saloon: profile_saloon } %}
<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 ? 'Да' : 'Нет' }}
{% if feature('extra_category_with_max') %}
<b>MAX</b> {{ profile.messengers.max ? 'Да' : 'Нет' }}
{% endif %}
{% endif %}
</div>
{% endif %}
{% if feature('extended_profile_form') %}
<div>
{% if profile.carPricing %}
<b>В машине:</b> {{ profile.carPricing.provided ? 'Да' : 'Нет' }}
{% endif %}
</div>
{% endif %}
{% if feature('extended_profile_form') %}
<div>
{% if profile.personParameters.tattoo is not null %}
<b>Тату:</b> {{ profile.personParameters.tattoo ? 'Да' : 'Нет' }}
{% endif %}
</div>
<div>
{% if profile.personParameters.piercing is not null %}
<b>Пирсинг:</b> {{ profile.personParameters.piercing ? 'Да' : 'Нет' }}
{% endif %}
</div>
{% endif %}
<div>
<b>Отвечаю на:</b>
{% for answeringTo in profile.phoneCallRestrictions.answeringTo %}
{{ answeringTo|answering_to|trans({}, 'phone_call_restrictions') }}<br>
{% endfor %}
</div>
</div>
</div>
{% include 'ProfilePreview/nearest_profiles.html.twig' %}
<div id=\"recentlyViewedProfiles\"></div>
</div>
<script type=\"text/javascript\">
var onloadCallback = function () {
grecaptcha.render('recaptcha-container', {
'sitekey': '{{ ewz_recaptcha_site_key }}'
});
};
</script>
<script src=\"https://www.google.com/recaptcha/api.js?onload=onloadCallback&render=explicit\" async defer></script>
<script src=\"{{ asset('ajax.js', 'js_script') }}\"></script>
<script src=\"{{ asset('local-storage.js', 'js_script') }}\"></script>
<script src=\"{{ asset('recommendations.js', 'js_script') }}\"></script>
<script src=\"{{ asset('bot-helper.js', 'js_script') }}\"></script>
<script src=\"{{ asset('recently-viewed.js', 'js_script') }}\"></script>
<script type=\"text/javascript\">
document.addEventListener('DOMContentLoaded', function () {
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");
}
}