<?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;
/* Slivki/mobile/beauty/master.html.twig */
class __TwigTemplate_c13816213aaa951d44c7441c3a25d91883785c7cde0930cfe3ec29c7497edfdd extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'messenger' => [$this, 'block_messenger'],
'styles' => [$this, 'block_styles'],
'content' => [$this, 'block_content'],
'popup' => [$this, 'block_popup'],
'javascripts' => [$this, 'block_javascripts'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "Slivki/mobile/base.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Slivki/mobile/beauty/master.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Slivki/mobile/beauty/master.html.twig"));
$this->parent = $this->loadTemplate("Slivki/mobile/base.html.twig", "Slivki/mobile/beauty/master.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 2
public function block_messenger($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "messenger"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "messenger"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 4
public function block_styles($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "styles"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "styles"));
// line 5
echo " ";
$this->displayParentBlock("styles", $context, $blocks);
echo "
<link rel=\"stylesheet\" href=\"https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css\">
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 9
public function block_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 10
echo "
<div class=\"master-page container sf-font\">
<div class=\"d-flex\">
<div class=\"back-button align-self-center\" onclick=\"history.back();\">
<img src=\"/images/back-white.svg\" style=\"filter: invert(1);\">
</div>
<div class=\"tittle-page-master\">";
// line 16
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["master"]) || array_key_exists("master", $context) ? $context["master"] : (function () { throw new RuntimeError('Variable "master" does not exist.', 16, $this->source); })()), "getFirstName", [], "method", false, false, false, 16), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["master"]) || array_key_exists("master", $context) ? $context["master"] : (function () { throw new RuntimeError('Variable "master" does not exist.', 16, $this->source); })()), "getLastName", [], "method", false, false, false, 16), "html", null, true);
echo "</div>
</div>
<div class=\"tags-container-page mb-2\">
";
// line 19
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["master"]) || array_key_exists("master", $context) ? $context["master"] : (function () { throw new RuntimeError('Variable "master" does not exist.', 19, $this->source); })()), "getTags", [], "method", false, false, false, 19));
foreach ($context['_seq'] as $context["_key"] => $context["tag"]) {
// line 20
echo " <div class=\"beauty-masters-item-employment-capsules\">
<div class=\"beauty-masters-item-employment-capsule\">
<div class=\"beauty-masters-item-employment\">";
// line 22
echo twig_escape_filter($this->env, $context["tag"], "html", null, true);
echo "</div>
</div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['tag'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 26
echo " </div>
<div class=\"avatar-block-master\" style=\"background-image: url('";
// line 27
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["master"]) || array_key_exists("master", $context) ? $context["master"] : (function () { throw new RuntimeError('Variable "master" does not exist.', 27, $this->source); })()), "getImageUrl", [], "method", false, false, false, 27), "html", null, true);
echo "')\"></div>
<div class=\"name-master-page mt-2 mb-1\">";
// line 28
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["master"]) || array_key_exists("master", $context) ? $context["master"] : (function () { throw new RuntimeError('Variable "master" does not exist.', 28, $this->source); })()), "getFirstName", [], "method", false, false, false, 28), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["master"]) || array_key_exists("master", $context) ? $context["master"] : (function () { throw new RuntimeError('Variable "master" does not exist.', 28, $this->source); })()), "getLastName", [], "method", false, false, false, 28), "html", null, true);
echo "</div>
<div class=\"description-master-page mb-3\">";
// line 29
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["master"]) || array_key_exists("master", $context) ? $context["master"] : (function () { throw new RuntimeError('Variable "master" does not exist.', 29, $this->source); })()), "getDescription", [], "method", false, false, false, 29), "html", null, true);
echo "</div>
<div class=\"address-block-master-page\">
";
// line 31
$context["uniqueNames"] = [];
// line 32
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["master"]) || array_key_exists("master", $context) ? $context["master"] : (function () { throw new RuntimeError('Variable "master" does not exist.', 32, $this->source); })()), "getLocations", [], "method", false, false, false, 32));
foreach ($context['_seq'] as $context["_key"] => $context["address"]) {
// line 33
echo " ";
if (!twig_in_filter(twig_get_attribute($this->env, $this->source, $context["address"], "name", [], "any", false, false, false, 33), (isset($context["uniqueNames"]) || array_key_exists("uniqueNames", $context) ? $context["uniqueNames"] : (function () { throw new RuntimeError('Variable "uniqueNames" does not exist.', 33, $this->source); })()))) {
// line 34
echo " ";
$context["uniqueNames"] = twig_array_merge((isset($context["uniqueNames"]) || array_key_exists("uniqueNames", $context) ? $context["uniqueNames"] : (function () { throw new RuntimeError('Variable "uniqueNames" does not exist.', 34, $this->source); })()), [0 => twig_get_attribute($this->env, $this->source, $context["address"], "name", [], "any", false, false, false, 34)]);
// line 35
echo " <div class=\"address-item\">
<div class=\"address-item-line\">";
// line 36
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["address"], "getName", [], "method", false, false, false, 36), "html", null, true);
echo "</div>
</div>
";
}
// line 39
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['address'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 40
echo " </div>
<div id=\"tittlePhotoExamplesMaster\" class=\"name-master-page mt-3 mb-1 d-none\">Фото работ</div>
<div id=\"workExampleExamplePage\" class=\"work-examples-master-page\">
";
// line 43
$this->loadTemplate("Slivki/works-examples/examples_of_works_gallery.html.twig", "Slivki/mobile/beauty/master.html.twig", 43)->display($context);
// line 44
echo " </div>
<div class=\"name-master-page mt-4 mb-0\">Акции мастера</div>
<div class=\"offers-master-block d-flex row\">
";
// line 47
echo twig_get_attribute($this->env, $this->source, (isset($context["offers"]) || array_key_exists("offers", $context) ? $context["offers"] : (function () { throw new RuntimeError('Variable "offers" does not exist.', 47, $this->source); })()), "categoryBoxHtml", [], "any", false, false, false, 47);
echo "
</div>
</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 52
public function block_popup($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "popup"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "popup"));
// line 53
echo " ";
$this->displayParentBlock("popup", $context, $blocks);
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 55
public function block_javascripts($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 56
echo " ";
$this->displayParentBlock("javascripts", $context, $blocks);
echo "
<script type=\"module\" src=\"/js/work_examples/work_examples.js?v=";
// line 57
echo twig_escape_filter($this->env, (isset($context["work_examples_js_version"]) || array_key_exists("work_examples_js_version", $context) ? $context["work_examples_js_version"] : (function () { throw new RuntimeError('Variable "work_examples_js_version" does not exist.', 57, $this->source); })()), "html", null, true);
echo "\"></script>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "Slivki/mobile/beauty/master.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 258 => 57, 253 => 56, 243 => 55, 230 => 53, 220 => 52, 206 => 47, 201 => 44, 199 => 43, 194 => 40, 188 => 39, 182 => 36, 179 => 35, 176 => 34, 173 => 33, 168 => 32, 166 => 31, 161 => 29, 155 => 28, 151 => 27, 148 => 26, 138 => 22, 134 => 20, 130 => 19, 122 => 16, 114 => 10, 104 => 9, 90 => 5, 80 => 4, 62 => 2, 39 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'Slivki/mobile/base.html.twig' %}
{% block messenger %}{% endblock %}
{% block styles %}
{{ parent() }}
<link rel=\"stylesheet\" href=\"https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css\">
{% endblock %}
{% block content %}
<div class=\"master-page container sf-font\">
<div class=\"d-flex\">
<div class=\"back-button align-self-center\" onclick=\"history.back();\">
<img src=\"/images/back-white.svg\" style=\"filter: invert(1);\">
</div>
<div class=\"tittle-page-master\">{{ master.getFirstName() }} {{ master.getLastName() }}</div>
</div>
<div class=\"tags-container-page mb-2\">
{% for tag in master.getTags() %}
<div class=\"beauty-masters-item-employment-capsules\">
<div class=\"beauty-masters-item-employment-capsule\">
<div class=\"beauty-masters-item-employment\">{{ tag }}</div>
</div>
</div>
{% endfor %}
</div>
<div class=\"avatar-block-master\" style=\"background-image: url('{{ master.getImageUrl() }}')\"></div>
<div class=\"name-master-page mt-2 mb-1\">{{ master.getFirstName() }} {{ master.getLastName() }}</div>
<div class=\"description-master-page mb-3\">{{ master.getDescription() }}</div>
<div class=\"address-block-master-page\">
{% set uniqueNames = [] %}
{% for address in master.getLocations() %}
{% if address.name not in uniqueNames %}
{% set uniqueNames = uniqueNames|merge([address.name]) %}
<div class=\"address-item\">
<div class=\"address-item-line\">{{ address.getName() }}</div>
</div>
{% endif %}
{% endfor %}
</div>
<div id=\"tittlePhotoExamplesMaster\" class=\"name-master-page mt-3 mb-1 d-none\">Фото работ</div>
<div id=\"workExampleExamplePage\" class=\"work-examples-master-page\">
{% include 'Slivki/works-examples/examples_of_works_gallery.html.twig' %}
</div>
<div class=\"name-master-page mt-4 mb-0\">Акции мастера</div>
<div class=\"offers-master-block d-flex row\">
{{ offers.categoryBoxHtml|raw }}
</div>
</div>
{% endblock %}
{% block popup %}
{{ parent() }}
{% endblock %}
{% block javascripts %}
{{ parent() }}
<script type=\"module\" src=\"/js/work_examples/work_examples.js?v={{ work_examples_js_version }}\"></script>
{% endblock %}", "Slivki/mobile/beauty/master.html.twig", "/mnt/data/virtwww/slivki/templates/Slivki/mobile/beauty/master.html.twig");
}
}