<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* ProfilePreview/page.html.twig */
class __TwigTemplate_c169b2457306e63df82a8554c8176c37 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'metaDescription' => [$this, 'block_metaDescription'],
'navbar' => [$this, 'block_navbar'],
'mainContainer' => [$this, 'block_mainContainer'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "ProfilePreview/grid.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "ProfilePreview/page.html.twig"));
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "ProfilePreview/page.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "ProfilePreview/page.html.twig"));
$this->parent = $this->loadTemplate("ProfilePreview/grid.html.twig", "ProfilePreview/page.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
public function block_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
echo twig_escape_filter($this->env, $this->extensions['App\Twig\SeoExtension']->metaTitle(), "html", null, true);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
}
// line 5
public function block_metaDescription($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metaDescription"));
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metaDescription"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metaDescription"));
// line 6
echo " <meta name=\"description\" content=\"";
echo twig_escape_filter($this->env, $this->extensions['App\Twig\SeoExtension']->metaDescription(), "html", null, true);
echo "\">
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
}
// line 9
public function block_navbar($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "navbar"));
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "navbar"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "navbar"));
// line 10
echo " ";
$this->displayParentBlock("navbar", $context, $blocks);
echo "
";
// line 11
$context["excludeRecommendationProfileIds"] = [twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 11, $this->source); })()), "id", [], "any", false, false, false, 11)];
// line 12
echo " ";
$this->loadTemplate("Recommendations/_profile_recommendations.html.twig", "ProfilePreview/page.html.twig", 12)->display($context);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
}
// line 15
public function block_mainContainer($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "mainContainer"));
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "mainContainer"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "mainContainer"));
// line 16
echo " <div class=\"row\" alt=\"";
((twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 16, $this->source); })()), "seo", [], "any", false, false, false, 16)) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 16, $this->source); })()), "seo", [], "any", false, false, false, 16), "phone", [], "any", false, false, false, 16), "html", null, true))) : (print ("")));
echo "\">
<div class=\"col-3\">
<div id=\"left_column_metric\">
";
// line 19
if (( !twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 19, $this->source); })()), "user", [], "any", false, false, false, 19) || $this->extensions['App\Twig\UserExtension']->isUserCustomer(twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 19, $this->source); })()), "user", [], "any", false, false, false, 19)))) {
// line 20
echo " <div><a class=\"add-remove-favourite\" data-action=\"remove\" href=\"javascript:void(0);\" style=\"display: ";
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.', 20, $this->source); })()))) ? ("block") : ("none"));
echo "\">UNLIKE</a></div>
<div><a class=\"add-remove-favourite\" data-action=\"add\" 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 "\" ";
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.', 21, $this->source); })()), "user", [], "any", false, false, false, 21)) {
echo "href=\"javascript:void(0);\"";
} else {
echo "href=\"javascript:alert('Чтобы сделать что-то зарегистрируйтесь');\"";
}
echo ">LIKE</a></div>
";
}
// line 23
echo " <div class=\"row\">
";
// line 24
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.', 24, $this->source); })()), "isApproved", [], "any", false, false, false, 24)) {
echo " <b style=\"color:green;\">APPROVED</b><br /> ";
}
// line 25
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.', 25, $this->source); })()), "deleted", [], "any", false, false, false, 25)) {
// line 26
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.', 26, $this->source); })()), "isModerationRejected", [], "any", false, false, false, 26)) {
// line 27
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=\"";
((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.', 27, $this->source); })()), "seo", [], "any", false, false, false, 27)) ? (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.', 27, $this->source); })()), "seo", [], "any", false, false, false, 27), "phone", [], "any", false, false, false, 27), "html", null, true))) : (print ("")));
echo "\" width=\"150\">
";
} else {
// line 29
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.', 29, $this->source); })()));
// line 30
echo " ";
if ((isset($context["photo"]) || array_key_exists("photo", $context) ? $context["photo"] : (function () { throw new RuntimeError('Variable "photo" does not exist.', 30, $this->source); })())) {
// line 31
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.', 31, $this->source); })()), "path", [], "any", false, false, false, 31), (((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.', 31, $this->source); })()), "type", [], "any", false, false, false, 31) == "photo")) ? ("profile_media") : ("profile_media_avatar"))), "html", null, true);
echo "\" 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.', 31, $this->source); })()), "seo", [], "any", false, false, false, 31)) ? (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.', 31, $this->source); })()), "seo", [], "any", false, false, false, 31), "phone", [], "any", false, false, false, 31), "html", null, true))) : (print ("")));
echo "\" width=\"150\">
";
}
// line 33
echo " ";
}
// line 34
echo " ";
} else {
// line 35
echo " Фото-заглушка
";
}
// line 37
echo " </div>
";
// line 38
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.', 38, $this->source); })()), "isModerationRejected", [], "any", false, false, false, 38)) && (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.', 38, $this->source); })()), "photos", [], "any", false, false, false, 38)) > 0))) {
// line 39
echo " <div class=\"row\">
";
// line 40
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.', 40, $this->source); })()), "deleted", [], "any", false, false, false, 40)) {
// line 41
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.', 41, $this->source); })()), "photos", [], "any", false, false, false, 41));
foreach ($context['_seq'] as $context["_key"] => $context["photo"]) {
// line 42
echo " <div class=\"col-4\">
<img src=\"";
// line 43
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, 43), "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 46
echo " ";
}
// line 47
echo " </div>
";
}
// line 49
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.', 49, $this->source); })()), "isModerationRejected", [], "any", false, false, false, 49)) && (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.', 49, $this->source); })()), "selfies", [], "any", false, false, false, 49)) > 0))) {
// line 50
echo " <div class=\"row\">
";
// line 51
if ( !twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 51, $this->source); })()), "deleted", [], "any", false, false, false, 51)) {
// line 52
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.', 52, $this->source); })()), "selfies", [], "any", false, false, false, 52));
foreach ($context['_seq'] as $context["_key"] => $context["photo"]) {
// line 53
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["photo"], "main", [], "any", false, false, false, 53) == false)) {
// line 54
echo " <div class=\"col-4\">
<img src=\"";
// line 55
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, 55), "profile_media_selfie"), "html", null, true);
echo "\" alt=\"\" width=\"150\">
</div>
";
}
// line 58
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 59
echo " ";
}
// line 60
echo " </div>
";
}
// line 62
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.', 62, $this->source); })()), "isModerationRejected", [], "any", false, false, false, 62)) && !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.', 62, $this->source); })()), "deleted", [], "any", false, false, false, 62))) {
// line 63
echo " <div class=\"row\">
";
// line 64
$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.', 64, $this->source); })()), "confirmedVideos", [], "any", false, false, false, 64), function ($__video__) use ($context, $macros) { $context["video"] = $__video__; return twig_get_attribute($this->env, $this->source, $context["video"], "previewPath", [], "any", false, false, false, 64); }));
foreach ($context['_seq'] as $context["_key"] => $context["video"]) {
// line 65
echo " <div class=\"col-4\">
<video width=\"100%\" controls poster=\"";
// line 66
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, 66), "profile_media", "fullsize"), "html", null, true);
echo "\">
<source src=\"";
// line 67
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, 67), "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 72
echo " </div>
";
}
// line 74
echo " </div>
</div>
<div class=\"col-9\">
<div id=\"center_column_metric\">
<h5>";
// line 78
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.', 78, $this->source); })()), "name", [], "any", false, false, false, 78)), "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.', 78, $this->source); })()), "html", null, true);
echo "★
";
// line 79
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.', 79, $this->source); })()), "deleted", [], "any", false, false, false, 79)) {
// line 80
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.', 80, $this->source); })()), "isModerationRejected", [], "any", false, false, false, 80)) {
// line 81
echo " <h3>Анкета отклонена модератором</h3>
";
} else {
// line 83
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.', 83, $this->source); })()), "active", [], "any", false, false, false, 83)) {
// line 84
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.', 84, $this->source); })()), "phoneNumber", [], "any", false, false, false, 84), "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.', 84, $this->source); })()), "phoneNumber", [], "any", false, false, false, 84), "html", null, true);
echo "</a></small>
";
}
// line 86
echo " ";
}
// line 87
echo " ";
} else {
// line 88
echo " Заглушка телефона
";
}
// line 90
echo " </h5>
<dl>
<dt>";
// line 92
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Город", [], "messages");
echo "</dt>
<dd>";
// line 93
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.', 93, $this->source); })()), "city", [], "any", false, false, false, 93), "name", [], "any", false, false, false, 93)), "html", null, true);
echo "</dd>
<dt>";
// line 94
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Метро", [], "messages");
echo "</dt>
<dd>
";
// line 96
$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.', 96, $this->source); })()), "stations", [], "any", false, false, false, 96));
$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 97
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.', 97, $this->source); })()), "city", [], "any", false, false, false, 97), "uriIdentity", [], "any", false, false, false, 97), "station" => twig_get_attribute($this->env, $this->source, $context["station"], "uriIdentity", [], "any", false, false, false, 97)]), "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, 97)), "html", null, true);
echo "</a>
";
// line 98
if ( !twig_get_attribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, false, 98)) {
echo ", ";
}
// line 99
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 100
echo " </dd>
<dt>";
// line 101
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Район", [], "messages");
echo "</dt>
<dd>
";
// line 103
$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.', 103, $this->source); })()), "stations", [], "any", false, false, false, 103));
foreach ($context['_seq'] as $context["_key"] => $context["station"]) {
// line 104
echo " ";
$context["stationDistrict"] = twig_get_attribute($this->env, $this->source, $context["station"], "district", [], "any", false, false, false, 104);
// line 105
echo " ";
if ((isset($context["stationDistrict"]) || array_key_exists("stationDistrict", $context) ? $context["stationDistrict"] : (function () { throw new RuntimeError('Variable "stationDistrict" does not exist.', 105, $this->source); })())) {
// line 106
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.', 106, $this->source); })()), "county", [], "any", false, false, false, 106);
// line 107
echo " ";
if ((isset($context["districtCounty"]) || array_key_exists("districtCounty", $context) ? $context["districtCounty"] : (function () { throw new RuntimeError('Variable "districtCounty" does not exist.', 107, $this->source); })())) {
// line 108
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.', 108, $this->source); })()), "city", [], "any", false, false, false, 108), "uriIdentity", [], "any", false, false, false, 108), "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.', 108, $this->source); })()), "uriIdentity", [], "any", false, false, false, 108)]), "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.', 108, $this->source); })()), "name", [], "any", false, false, false, 108)), "html", null, true);
echo "</a>
";
}
// line 110
echo " ";
}
// line 111
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 112
echo " </dd>
";
// line 113
if ( !twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 113, $this->source); })()), "deleted", [], "any", false, false, false, 113)) {
// line 114
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.', 114, $this->source); })()), "isModerationRejected", [], "any", false, false, false, 114)) {
// line 115
echo " <dt><strong>";
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Телефон", [], "messages");
echo "</strong></dt>
<dd><strong>";
// line 116
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.', 116, $this->source); })()), "phoneNumber", [], "any", false, false, false, 116), "html", null, true);
echo "</strong></dd>
";
}
// line 118
echo " ";
} else {
// line 119
echo " Заглушка телефона
";
}
// line 121
echo " <dt>";
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Возраст", [], "messages");
echo "</dt>
<dd>";
// line 122
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.', 122, $this->source); })()), "personParameters", [], "any", false, false, false, 122), "age", [], "any", false, false, false, 122), "html", null, true);
echo "</dd>
<dt>";
// line 123
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Рост", [], "messages");
echo "</dt>
<dd>";
// line 124
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.', 124, $this->source); })()), "personParameters", [], "any", false, false, false, 124), "height", [], "any", false, false, false, 124), "html", null, true);
echo "</dd>
<dt>";
// line 125
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Размер груди", [], "messages");
echo "</dt>
<dd>";
// line 126
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.', 126, $this->source); })()), "personParameters", [], "any", false, false, false, 126), "breastSize", [], "any", false, false, false, 126), "html", null, true);
echo "</dd>
<dt>";
// line 127
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Вес", [], "messages");
echo "</dt>
<dd>";
// line 128
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.', 128, $this->source); })()), "personParameters", [], "any", false, false, false, 128), "weight", [], "any", false, false, false, 128), "html", null, true);
echo "</dd>
<dt>";
// line 129
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Размер одежды", [], "messages");
echo "</dt>
<dd>";
// line 130
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 130, $this->source); })()), "personParameters", [], "any", false, false, false, 130), "clothSize", [], "any", false, false, false, 130), "html", null, true);
echo "</dd>
<dt>";
// line 131
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Телосложение", [], "messages");
echo "</dt>
<dd>";
// line 132
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.', 132, $this->source); })()), "personParameters", [], "any", false, false, false, 132), "bodyType", [], "any", false, false, false, 132))), "html", null, true);
echo "</dd>
<dt>";
// line 133
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Цвет волос", [], "messages");
echo "</dt>
<dd>";
// line 134
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.', 134, $this->source); })()), "personParameters", [], "any", false, false, false, 134), "hairColor", [], "any", false, false, false, 134))), "html", null, true);
echo "</dd>
<dt>";
// line 135
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Интимная стрижка", [], "messages");
echo "</dt>
<dd>";
// line 136
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.', 136, $this->source); })()), "personParameters", [], "any", false, false, false, 136), "privateHaircut", [], "any", false, false, false, 136))), "html", null, true);
echo "</dd>
<dt>";
// line 137
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Национальность", [], "messages");
echo "</dt>
<dd>";
// line 138
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.', 138, $this->source); })()), "personParameters", [], "any", false, false, false, 138), "nationality", [], "any", false, false, false, 138))), "html", null, true);
echo "</dd>
<dt>";
// line 139
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Дата обновления", [], "messages");
echo "</dt>
<dd>";
// line 140
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.', 140, $this->source); })()), "updatedAt", [], "any", false, false, false, 140)), "html", null, true);
echo "</dd>
</dl>
<h6>";
// line 143
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("О себе", [], "messages");
echo "</h6>
<p>";
// line 144
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.', 144, $this->source); })()), "description", [], "any", false, false, false, 144)), "html", null, true);
echo "</p>
<h6>";
// line 146
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Предпочтения", [], "messages");
echo "</h6>
";
// line 147
$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.', 147, $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.', 147, $this->source); })()), "masseur", [], "any", false, false, false, 147) || !twig_in_filter($context["group"], (isset($context["masseurExcludeServiceGroups"]) || array_key_exists("masseurExcludeServiceGroups", $context) ? $context["masseurExcludeServiceGroups"] : (function () { throw new RuntimeError('Variable "masseurExcludeServiceGroups" does not exist.', 147, $this->source); })()))); }));
foreach ($context['_seq'] as $context["group"] => $context["servicesGroup"]) {
// line 148
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 150
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($context["servicesGroup"]);
foreach ($context['_seq'] as $context["_key"] => $context["service"]) {
// line 151
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.', 151, $this->source); })()), "providedService", [$context["service"]], "method", false, false, false, 151);
// line 152
echo " <li class=\"";
if ((isset($context["providedService"]) || array_key_exists("providedService", $context) ? $context["providedService"] : (function () { throw new RuntimeError('Variable "providedService" does not exist.', 152, $this->source); })())) {
echo "text-success";
} else {
echo "text-danger";
}
echo "\">
<a href=\"";
// line 153
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.', 153, $this->source); })()), "city", [], "any", false, false, false, 153), "uriIdentity", [], "any", false, false, false, 153), "service" => twig_get_attribute($this->env, $this->source, $context["service"], "uriIdentity", [], "any", false, false, false, 153)]), "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, 153)), "html", null, true);
echo "</a></li>
";
// line 154
if ((isset($context["providedService"]) || array_key_exists("providedService", $context) ? $context["providedService"] : (function () { throw new RuntimeError('Variable "providedService" does not exist.', 154, $this->source); })())) {
// line 155
echo " ";
if ($this->extensions['Flagception\Bundle\FlagceptionBundle\Twig\ToggleExtension']->isActive("extended_profile_form")) {
// line 156
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.', 156, $this->source); })()), "condition", [], "any", false, false, false, 156)), [], "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.', 156, $this->source); })()), "condition", [], "any", false, false, false, 156) == 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.', 156, $this->source); })()), "extraCharge", [], "any", false, false, false, 156), "html", null, true);
}
// line 157
echo " ";
}
// line 158
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.', 158, $this->source); })()), "comment", [], "any", false, false, false, 158)) {
// line 159
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.', 159, $this->source); })()), "comment", [], "any", false, false, false, 159), "html", null, true);
echo "
";
}
// line 161
echo " ";
}
// line 162
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 163
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 165
echo "
<h6>";
// line 166
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Отзывы", [], "messages");
echo "</h6>
<div id=\"comments\">
";
// line 168
$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.', 168, $this->source); })()), "comments", [], "any", false, false, false, 168));
$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 169
echo " ";
$this->loadTemplate("ProfilePreview/comment.html.twig", "ProfilePreview/page.html.twig", 169)->display($context);
// line 170
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 171
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 173
echo " </div>
<div id=\"commentFormContainer\">
</div>
<div id=\"recaptcha-container\"></div>
";
// line 180
if ($this->extensions['Flagception\Bundle\FlagceptionBundle\Twig\ToggleExtension']->isActive("extended_profile_form")) {
// line 181
echo " <div>
";
// line 182
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.', 182, $this->source); })()), "expressPricing", [], "any", false, false, false, 182)) {
// line 183
echo " <b>Экспресс:</b>
";
// line 184
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.', 184, $this->source); })()), "expressPricing", [], "any", false, false, false, 184), "provided", [], "any", false, false, false, 184)) {
// line 185
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.', 185, $this->source); })()), "expressPricing", [], "any", false, false, false, 185), "price", [], "any", false, false, false, 185), "html", null, true);
echo "
";
} else {
// line 187
echo " Нет
";
}
// line 189
echo " ";
}
// line 190
echo " </div>
";
}
// line 192
echo "
";
// line 193
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.', 193, $this->source); })()), "clientTypes", [], "any", false, false, false, 193)) {
// line 194
echo " <div>
<b>Услуги для:</b>
";
// line 196
$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.', 196, $this->source); })()), "clientTypes", [], "any", false, false, false, 196));
foreach ($context['_seq'] as $context["_key"] => $context["clientType"]) {
// line 197
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 199
echo " </div>
";
}
// line 201
echo "
";
// line 202
if ($this->extensions['Flagception\Bundle\FlagceptionBundle\Twig\ToggleExtension']->isActive("extended_profile_form")) {
// line 203
echo " <div>
";
// line 204
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.', 204, $this->source); })()), "messengers", [], "any", false, false, false, 204)) {
// line 205
echo " <b>Мессенджеры</b><br>
<b>Telegram</b> ";
// line 206
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.', 206, $this->source); })()), "messengers", [], "any", false, false, false, 206), "telegram", [], "any", false, false, false, 206)) ? ("Да") : ("Нет"));
echo "
<b>WhatsApp</b> ";
// line 207
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.', 207, $this->source); })()), "messengers", [], "any", false, false, false, 207), "whatsApp", [], "any", false, false, false, 207)) ? ("Да") : ("Нет"));
echo "
";
}
// line 209
echo " </div>
";
}
// line 211
echo "
";
// line 212
if ($this->extensions['Flagception\Bundle\FlagceptionBundle\Twig\ToggleExtension']->isActive("extended_profile_form")) {
// line 213
echo " <div>
";
// line 214
if (twig_get_attribute($this->env, $this->source, (isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 214, $this->source); })()), "carPricing", [], "any", false, false, false, 214)) {
// line 215
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.', 215, $this->source); })()), "carPricing", [], "any", false, false, false, 215), "provided", [], "any", false, false, false, 215)) ? ("Да") : ("Нет"));
echo "
";
}
// line 217
echo " </div>
";
}
// line 219
echo "
";
// line 220
if ($this->extensions['Flagception\Bundle\FlagceptionBundle\Twig\ToggleExtension']->isActive("extended_profile_form")) {
// line 221
echo " <div>
";
// line 222
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.', 222, $this->source); })()), "personParameters", [], "any", false, false, false, 222), "tattoo", [], "any", false, false, false, 222))) {
// line 223
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.', 223, $this->source); })()), "personParameters", [], "any", false, false, false, 223), "tattoo", [], "any", false, false, false, 223)) ? ("Да") : ("Нет"));
echo "
";
}
// line 225
echo " </div>
<div>
";
// line 227
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.', 227, $this->source); })()), "personParameters", [], "any", false, false, false, 227), "piercing", [], "any", false, false, false, 227))) {
// line 228
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.', 228, $this->source); })()), "personParameters", [], "any", false, false, false, 228), "piercing", [], "any", false, false, false, 228)) ? ("Да") : ("Нет"));
echo "
";
}
// line 230
echo " </div>
";
}
// line 232
echo " <div>
<b>Отвечаю на:</b>
";
// line 234
$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.', 234, $this->source); })()), "phoneCallRestrictions", [], "any", false, false, false, 234), "answeringTo", [], "any", false, false, false, 234));
foreach ($context['_seq'] as $context["_key"] => $context["answeringTo"]) {
// line 235
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 237
echo " </div>
</div>
</div>
";
// line 241
$this->loadTemplate("ProfilePreview/nearest_profiles.html.twig", "ProfilePreview/page.html.twig", 241)->display($context);
// line 242
echo "
<div id=\"recentlyViewedProfiles\"></div>
</div>
<script type=\"text/javascript\">
var onloadCallback = function() {
grecaptcha.render('recaptcha-container', {
'sitekey' : '";
// line 249
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.', 249, $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 254
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 255
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 256
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 257
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 258
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("recently-viewed.js", "js_script"), "html", null, true);
echo "\"></script>
<script type=\"text/javascript\">
document.addEventListener('DOMContentLoaded', function() {
profileRecommendations.addViewedProfile(";
// line 261
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.', 261, $this->source); })()), "id", [], "any", false, false, false, 261), "html", null, true);
echo ");
profileBotHelper.addViewedProfile(";
// line 262
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.', 262, $this->source); })()), "id", [], "any", false, false, false, 262), "html", null, true);
echo ");
//достаем список, пока без учета текущей страницы, для текущего аякс запроса
const recentlyViewedProfiles = recentlyViewed.getViewedProfiles();
recentlyViewed.addViewedProfile(";
// line 265
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.', 265, $this->source); })()), "id", [], "any", false, false, false, 265), "html", null, true);
echo ");
//recently viewed profiles
ajax({
url: '";
// line 269
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 284
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.', 284, $this->source); })()), "id", [], "any", false, false, false, 284)]), "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 301
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.', 301, $this->source); })()), "id", [], "any", false, false, false, 301)]), "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 359
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.', 359, $this->source); })()), "id", [], "any", false, false, false, 359)]), "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.', 359, $this->source); })()), "id", [], "any", false, false, false, 359)]), "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 ( 1050 => 359, 989 => 301, 969 => 284, 951 => 269, 944 => 265, 938 => 262, 934 => 261, 928 => 258, 924 => 257, 920 => 256, 916 => 255, 912 => 254, 904 => 249, 895 => 242, 893 => 241, 887 => 237, 878 => 235, 874 => 234, 870 => 232, 866 => 230, 860 => 228, 858 => 227, 854 => 225, 848 => 223, 846 => 222, 843 => 221, 841 => 220, 838 => 219, 834 => 217, 828 => 215, 826 => 214, 823 => 213, 821 => 212, 818 => 211, 814 => 209, 809 => 207, 805 => 206, 802 => 205, 800 => 204, 797 => 203, 795 => 202, 792 => 201, 788 => 199, 779 => 197, 775 => 196, 771 => 194, 769 => 193, 766 => 192, 762 => 190, 759 => 189, 755 => 187, 749 => 185, 747 => 184, 744 => 183, 742 => 182, 739 => 181, 737 => 180, 728 => 173, 719 => 171, 706 => 170, 703 => 169, 685 => 168, 680 => 166, 677 => 165, 670 => 163, 664 => 162, 661 => 161, 655 => 159, 652 => 158, 649 => 157, 642 => 156, 639 => 155, 637 => 154, 631 => 153, 622 => 152, 619 => 151, 615 => 150, 609 => 148, 605 => 147, 601 => 146, 596 => 144, 592 => 143, 586 => 140, 582 => 139, 578 => 138, 574 => 137, 570 => 136, 566 => 135, 562 => 134, 558 => 133, 554 => 132, 550 => 131, 546 => 130, 542 => 129, 538 => 128, 534 => 127, 530 => 126, 526 => 125, 522 => 124, 518 => 123, 514 => 122, 509 => 121, 505 => 119, 502 => 118, 497 => 116, 492 => 115, 489 => 114, 487 => 113, 484 => 112, 478 => 111, 475 => 110, 467 => 108, 464 => 107, 461 => 106, 458 => 105, 455 => 104, 451 => 103, 446 => 101, 443 => 100, 429 => 99, 425 => 98, 418 => 97, 401 => 96, 396 => 94, 392 => 93, 388 => 92, 384 => 90, 380 => 88, 377 => 87, 374 => 86, 366 => 84, 363 => 83, 359 => 81, 356 => 80, 354 => 79, 348 => 78, 342 => 74, 338 => 72, 327 => 67, 323 => 66, 320 => 65, 316 => 64, 313 => 63, 310 => 62, 306 => 60, 303 => 59, 297 => 58, 291 => 55, 288 => 54, 285 => 53, 280 => 52, 278 => 51, 275 => 50, 272 => 49, 268 => 47, 265 => 46, 256 => 43, 253 => 42, 248 => 41, 246 => 40, 243 => 39, 241 => 38, 238 => 37, 234 => 35, 231 => 34, 228 => 33, 220 => 31, 217 => 30, 214 => 29, 206 => 27, 203 => 26, 200 => 25, 196 => 24, 193 => 23, 182 => 21, 177 => 20, 175 => 19, 168 => 16, 155 => 15, 141 => 12, 139 => 11, 134 => 10, 121 => 9, 105 => 6, 92 => 5, 67 => 3, 38 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'ProfilePreview/grid.html.twig' %}
{% block title %}{{ seo_title() }}{% endblock %}
{% block metaDescription %}
<meta name=\"description\" content=\"{{ seo_description() }}\">
{% endblock %}
{% block navbar %}
{{ parent() }}
{% set excludeRecommendationProfileIds = [profile.id] %}
{% include 'Recommendations/_profile_recommendations.html.twig' %}
{% endblock %}
{% block mainContainer %}
<div class=\"row\" alt=\"{{ profile.seo ? profile.seo.phone : '' }}\">
<div class=\"col-3\">
<div id=\"left_column_metric\">
{% if not app.user or is_user_customer(app.user) %}
<div><a class=\"add-remove-favourite\" data-action=\"remove\" href=\"javascript:void(0);\" style=\"display: {{ is_profile_in_favourites(profile) ? 'block' : 'none' }}\">UNLIKE</a></div>
<div><a class=\"add-remove-favourite\" data-action=\"add\" style=\"display: {{ not is_profile_in_favourites(profile) ? 'block' : 'none' }}\" {% if app.user %}href=\"javascript:void(0);\"{% else %}href=\"javascript:alert('Чтобы сделать что-то зарегистрируйтесь');\"{% endif %}>LIKE</a></div>
{% endif %}
<div class=\"row\">
{% if profile.isApproved %} <b style=\"color:green;\">APPROVED</b><br /> {% endif %}
{% if not profile.deleted %}
{% if profile.isModerationRejected %}
<img src=\"{{ asset('static/img/red-circle.png') }}\" alt=\"{{ profile.seo ? profile.seo.phone : '' }}\" width=\"150\">
{% else %}
{% set photo = profile|avatar %}
{% if photo %}
<img src=\"{{ asset(photo.path, photo.type == 'photo' ? 'profile_media' : 'profile_media_avatar') }}\" alt=\"{{ profile.seo ? profile.seo.phone : '' }}\" width=\"150\">
{% endif %}
{% endif %}
{% else %}
Фото-заглушка
{% endif %}
</div>
{% if false == profile.isModerationRejected and profile.photos|length > 0 %}
<div class=\"row\">
{% if not profile.deleted %}
{% for photo in profile.photos %}
<div class=\"col-4\">
<img src=\"{{ asset(photo.path, 'profile_media') }}\" alt=\"\" width=\"150\">
</div>
{% endfor %}
{% endif %}
</div>
{% endif %}
{% if false == profile.isModerationRejected and profile.selfies|length > 0 %}
<div class=\"row\">
{% if not profile.deleted %}
{% for photo in profile.selfies %}
{% if photo.main == false %}
<div class=\"col-4\">
<img src=\"{{ asset(photo.path, 'profile_media_selfie') }}\" alt=\"\" width=\"150\">
</div>
{% endif %}
{% endfor %}
{% endif %}
</div>
{% endif %}
{% if false == profile.isModerationRejected and not profile.deleted %}
<div class=\"row\">
{% for video in profile.confirmedVideos | filter(video => video.previewPath) %}
<div class=\"col-4\">
<video width=\"100%\" controls poster=\"{{ asset(video.previewPath, 'profile_media', 'fullsize') }}\">
<source src=\"{{ asset(video.path, 'profile_media', 'fullsize') }}\" type=\"video/mp4\">
Your browser does not support the video tag.
</video>
</div>
{% endfor %}
</div>
{% endif %}
</div>
</div>
<div class=\"col-9\">
<div id=\"center_column_metric\">
<h5>{{ profile.name|trans }} {{ rating }}★
{% if not profile.deleted %}
{% if profile.isModerationRejected %}
<h3>Анкета отклонена модератором</h3>
{% else %}
{% if profile.active %}
<small><a href=\"tel:{{ profile.phoneNumber }}\">{{ profile.phoneNumber }}</a></small>
{% endif %}
{% endif %}
{% else %}
Заглушка телефона
{% endif %}
</h5>
<dl>
<dt>{% trans %}Город{% endtrans %}</dt>
<dd>{{ profile.city.name|trans }}</dd>
<dt>{% trans %}Метро{% endtrans %}</dt>
<dd>
{% for station in profile.stations %}
<a href=\"{{ path('profile_list.list_by_station', {'city': profile.city.uriIdentity, 'station': station.uriIdentity}) }}\">{{ station.name|trans }}</a>
{% if not loop.last %}, {% endif %}
{% endfor %}
</dd>
<dt>{% trans %}Район{% endtrans %}</dt>
<dd>
{% for station in profile.stations %}
{% 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>
{% endif %}
{% else %}
Заглушка телефона
{% endif %}
<dt>{% trans %}Возраст{% endtrans %}</dt>
<dd>{{ profile.personParameters.age }}</dd>
<dt>{% trans %}Рост{% endtrans %}</dt>
<dd>{{ profile.personParameters.height }}</dd>
<dt>{% trans %}Размер груди{% endtrans %}</dt>
<dd>{{ profile.personParameters.breastSize }}</dd>
<dt>{% trans %}Вес{% endtrans %}</dt>
<dd>{{ profile.personParameters.weight }}</dd>
<dt>{% trans %}Размер одежды{% endtrans %}</dt>
<dd>{{ profile.personParameters.clothSize }}</dd>
<dt>{% trans %}Телосложение{% endtrans %}</dt>
<dd>{{ profile.personParameters.bodyType|body_type|trans }}</dd>
<dt>{% trans %}Цвет волос{% endtrans %}</dt>
<dd>{{ profile.personParameters.hairColor|hair_color|trans }}</dd>
<dt>{% trans %}Интимная стрижка{% endtrans %}</dt>
<dd>{{ profile.personParameters.privateHaircut|private_haircut|trans }}</dd>
<dt>{% trans %}Национальность{% endtrans %}</dt>
<dd>{{ profile.personParameters.nationality|nationality|trans }}</dd>
<dt>{% trans %}Дата обновления{% endtrans %}</dt>
<dd>{{ profile.updatedAt|date }}</dd>
</dl>
<h6>{% trans %}О себе{% endtrans %}</h6>
<p>{{ profile.description|trans }}</p>
<h6>{% trans %}Предпочтения{% endtrans %}</h6>
{% for group, servicesGroup in services | filter((servicesGroup, group) => not profile.masseur or group not in masseurExcludeServiceGroups) %}
<p><strong>{{ group|service_group|trans({}, 'service_groups') }}</strong></p>
<ul>
{% for service in servicesGroup %}
{% set providedService = profile.providedService(service) %}
<li class=\"{% if providedService %}text-success{% else %}text-danger{% endif %}\">
<a href=\"{{ path('profile_list.list_by_provided_service', {'city': profile.city.uriIdentity, 'service': service.uriIdentity}) }}\">{{ service.name|trans }}</a></li>
{% if providedService %}
{% if feature('extended_profile_form') %}
{{ providedService.condition|provided_service_condition|trans({},'service_conditions') }}{% if providedService.condition == 3 %}, цена:{{ providedService.extraCharge }}{% endif %}
{% endif %}
{% if providedService.comment %}
Комментарий: {{ providedService.comment }}
{% endif %}
{% endif %}
{% endfor %}
</ul>
{% endfor %}
<h6>{% trans %}Отзывы{% endtrans %}</h6>
<div id=\"comments\">
{% for comment in profile.comments %}
{% include 'ProfilePreview/comment.html.twig' %}
{% else %}
<p>{% trans %}Отзывов нет{% endtrans %}</p>
{% endfor %}
</div>
<div id=\"commentFormContainer\">
</div>
<div id=\"recaptcha-container\"></div>
{% if feature('extended_profile_form') %}
<div>
{% if profile.expressPricing %}
<b>Экспресс:</b>
{% if profile.expressPricing.provided %}
Да, стоимость{{ profile.expressPricing.price }}
{% else %}
Нет
{% endif %}
{% endif %}
</div>
{% endif %}
{% if profile.clientTypes %}
<div>
<b>Услуги для:</b>
{% for clientType in profile.clientTypes %}
{{ clientType|client_type|trans({}, 'client_types') }}<br>
{% endfor %}
</div>
{% endif %}
{% if feature('extended_profile_form') %}
<div>
{% if profile.messengers %}
<b>Мессенджеры</b><br>
<b>Telegram</b> {{ profile.messengers.telegram ? 'Да' : 'Нет' }}
<b>WhatsApp</b> {{ profile.messengers.whatsApp ? 'Да' : 'Нет' }}
{% endif %}
</div>
{% endif %}
{% if feature('extended_profile_form') %}
<div>
{% if profile.carPricing %}
<b>В машине:</b> {{ profile.carPricing.provided ? 'Да' : 'Нет' }}
{% endif %}
</div>
{% endif %}
{% if feature('extended_profile_form') %}
<div>
{% if profile.personParameters.tattoo is not null %}
<b>Тату:</b> {{ profile.personParameters.tattoo ? 'Да' : 'Нет' }}
{% endif %}
</div>
<div>
{% if profile.personParameters.piercing is not null %}
<b>Пирсинг:</b> {{ profile.personParameters.piercing ? 'Да' : 'Нет' }}
{% endif %}
</div>
{% endif %}
<div>
<b>Отвечаю на:</b>
{% for answeringTo in profile.phoneCallRestrictions.answeringTo %}
{{ answeringTo|answering_to|trans({}, 'phone_call_restrictions') }}<br>
{% endfor %}
</div>
</div>
</div>
{% include 'ProfilePreview/nearest_profiles.html.twig' %}
<div id=\"recentlyViewedProfiles\"></div>
</div>
<script type=\"text/javascript\">
var onloadCallback = function() {
grecaptcha.render('recaptcha-container', {
'sitekey' : '{{ ewz_recaptcha_site_key }}'
});
};
</script>
<script src=\"https://www.google.com/recaptcha/api.js?onload=onloadCallback&render=explicit\" async defer></script>
<script src=\"{{ asset('ajax.js', 'js_script') }}\"></script>
<script src=\"{{ asset('local-storage.js', 'js_script') }}\"></script>
<script src=\"{{ asset('recommendations.js', 'js_script') }}\"></script>
<script src=\"{{ asset('bot-helper.js', 'js_script') }}\"></script>
<script src=\"{{ asset('recently-viewed.js', 'js_script') }}\"></script>
<script type=\"text/javascript\">
document.addEventListener('DOMContentLoaded', function() {
profileRecommendations.addViewedProfile({{ profile.id }});
profileBotHelper.addViewedProfile({{ profile.id }});
//достаем список, пока без учета текущей страницы, для текущего аякс запроса
const recentlyViewedProfiles = recentlyViewed.getViewedProfiles();
recentlyViewed.addViewedProfile({{ profile.id }});
//recently viewed profiles
ajax({
url: '{{ path('recent_profiles.recently_viewed.list') }}',
data: {
recently_viewed_profiles: recentlyViewedProfiles,
},
callback: function(response) {
if(!response)
return;
// console.log(response);
document.querySelector('#recentlyViewedProfiles').innerHTML = response;
},
dataType: 'json',
responseType: 'text/html',
});
ajax({
url: '{{ path('profile.comment.comment_form', {profile: profile.id}) }}',
callback: function(response) {
// console.log(response);
if('' !== response) {
document.querySelector('#commentFormContainer').innerHTML = response;
setCommentFormListeners();
}
},
dataType: 'json',
responseType: 'text/html',
});
function setCommentFormListeners() {
const formName = 'comment_form';
document.querySelector('#send_comment').addEventListener('click', function() {
ajax({
url: '{{ path('profile.comment.create', {profile: profile.id}) }}',
method: '',
data: {
'g-recaptcha-response': grecaptcha.getResponse(),
'entity_id': document.querySelector(`#\${formName}_entity_id`).value,
'mark': document.querySelector(`input[name=\"\${formName}[mark]\"]:checked`).value,
'text': document.querySelector(`#\${formName}_text`).value,
},
callback: function(response) {
if(response) {
if(response.success) {
//document.querySelector(`#{formName}`).style.display = 'none';
//document.querySelector('#send_comment').style.display = 'none';
document.querySelector(`form[name=\"\${formName}\"]`).reset();
grecaptcha.reset();
let template =
'<div>' +
(response.comment.nickname ?
'<span class=\"author\">' +
'<img src=\"#avatar\" alt=\"shift\" width=\"25\">' +
'<span class=\"name\">#nickname</span>' +
'</span>' : '') +
'<span class=\"date\">#createdAt</span>' +
'<span>#text</span>' +
'</div>'
;
response.comment.createdAt = new Date(response.comment.createdAt * 1000);
for(let k in response.comment) {
template = template.replace('#'+k, response.comment[k]);
}
document.querySelector('#comments').innerHTML += template;
// console.log(template);
// document.querySelector('#comments').innerHTML += response.html;
} else {
alert(response.error);
}
}
},
dataType: 'json',
responseType: 'json',
});
});
}
//LIKE/UNLIKE
document.querySelector('#left_column_metric').addEventListener('click', function(e) {
if(false == e.target.classList.contains('add-remove-favourite'))
return;
addRemoveFavourite(e.target.dataset['action'] == 'add');
});
let addRemoveFavourite = function(add) {
let btn = document.querySelector('.add-remove-favourite[data-action=\"' + (add ? 'add' : 'remove') + '\"]');
let reverseBtn = document.querySelector('.add-remove-favourite[data-action=\"' + (!add ? 'add' : 'remove') + '\"]');
btn.style.display = 'none';
ajax({
url: add ? '{{ path('account.favourites.add', {profile: profile.id}) }}' : '{{ path('account.favourites.remove', {profile: profile.id}) }}',
callback: function(response) {
if(response) {
if(response.success) {
reverseBtn.style.display = 'block';
} else {
btn.style.display = 'block';
alert(response.error);
}
}
},
dataType: 'json',
responseType: 'json',
});
};
//LIKE/UNLIKE end
});
</script>
{% endblock %}
", "ProfilePreview/page.html.twig", "/app/templates/ProfilePreview/page.html.twig");
}
}