var/cache/dev/twig/93/932ea54bd90fb4dd0d0b88a5ed5af734283bf1fe0918171b9d4739f6a8a9d801.php line 52

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* Slivki/mobile/beauty/master.html.twig */
  14. class __TwigTemplate_c13816213aaa951d44c7441c3a25d91883785c7cde0930cfe3ec29c7497edfdd extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'messenger' => [$this'block_messenger'],
  24.             'styles' => [$this'block_styles'],
  25.             'content' => [$this'block_content'],
  26.             'popup' => [$this'block_popup'],
  27.             'javascripts' => [$this'block_javascripts'],
  28.         ];
  29.     }
  30.     protected function doGetParent(array $context)
  31.     {
  32.         // line 1
  33.         return "Slivki/mobile/base.html.twig";
  34.     }
  35.     protected function doDisplay(array $context, array $blocks = [])
  36.     {
  37.         $macros $this->macros;
  38.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  39.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Slivki/mobile/beauty/master.html.twig"));
  40.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  41.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Slivki/mobile/beauty/master.html.twig"));
  42.         $this->parent $this->loadTemplate("Slivki/mobile/base.html.twig""Slivki/mobile/beauty/master.html.twig"1);
  43.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  44.         
  45.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  46.         
  47.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  48.     }
  49.     // line 2
  50.     public function block_messenger($context, array $blocks = [])
  51.     {
  52.         $macros $this->macros;
  53.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  54.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""messenger"));
  55.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  56.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""messenger"));
  57.         
  58.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  59.         
  60.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  61.     }
  62.     // line 4
  63.     public function block_styles($context, array $blocks = [])
  64.     {
  65.         $macros $this->macros;
  66.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  67.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""styles"));
  68.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  69.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""styles"));
  70.         // line 5
  71.         echo "    ";
  72.         $this->displayParentBlock("styles"$context$blocks);
  73.         echo "
  74.     <link rel=\"stylesheet\" href=\"https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css\">
  75. ";
  76.         
  77.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  78.         
  79.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  80.     }
  81.     // line 9
  82.     public function block_content($context, array $blocks = [])
  83.     {
  84.         $macros $this->macros;
  85.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  86.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  87.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  88.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  89.         // line 10
  90.         echo "
  91.     <div class=\"master-page container sf-font\">
  92.         <div class=\"d-flex\">
  93.             <div class=\"back-button align-self-center\" onclick=\"history.back();\">
  94.                 <img src=\"/images/back-white.svg\" style=\"filter: invert(1);\">
  95.             </div>
  96.             <div class=\"tittle-page-master\">";
  97.         // line 16
  98.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse16), "html"nulltrue);
  99.         echo " ";
  100.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse16), "html"nulltrue);
  101.         echo "</div>
  102.         </div>
  103.         <div class=\"tags-container-page mb-2\">
  104.             ";
  105.         // line 19
  106.         $context['_parent'] = $context;
  107.         $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"falsefalsefalse19));
  108.         foreach ($context['_seq'] as $context["_key"] => $context["tag"]) {
  109.             // line 20
  110.             echo "                <div class=\"beauty-masters-item-employment-capsules\">
  111.                     <div class=\"beauty-masters-item-employment-capsule\">
  112.                         <div class=\"beauty-masters-item-employment\">";
  113.             // line 22
  114.             echo twig_escape_filter($this->env$context["tag"], "html"nulltrue);
  115.             echo "</div>
  116.                     </div>
  117.                 </div>
  118.             ";
  119.         }
  120.         $_parent $context['_parent'];
  121.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['tag'], $context['_parent'], $context['loop']);
  122.         $context array_intersect_key($context$_parent) + $_parent;
  123.         // line 26
  124.         echo "        </div>
  125.         <div class=\"avatar-block-master\" style=\"background-image: url('";
  126.         // line 27
  127.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse27), "html"nulltrue);
  128.         echo "')\"></div>
  129.         <div class=\"name-master-page mt-2 mb-1\">";
  130.         // line 28
  131.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse28), "html"nulltrue);
  132.         echo " ";
  133.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse28), "html"nulltrue);
  134.         echo "</div>
  135.         <div class=\"description-master-page mb-3\">";
  136.         // line 29
  137.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse29), "html"nulltrue);
  138.         echo "</div>
  139.         <div class=\"address-block-master-page\">
  140.             ";
  141.         // line 31
  142.         $context["uniqueNames"] = [];
  143.         // line 32
  144.         echo "            ";
  145.         $context['_parent'] = $context;
  146.         $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"falsefalsefalse32));
  147.         foreach ($context['_seq'] as $context["_key"] => $context["address"]) {
  148.             // line 33
  149.             echo "                ";
  150.             if (!twig_in_filter(twig_get_attribute($this->env$this->source$context["address"], "name", [], "any"falsefalsefalse33), (isset($context["uniqueNames"]) || array_key_exists("uniqueNames"$context) ? $context["uniqueNames"] : (function () { throw new RuntimeError('Variable "uniqueNames" does not exist.'33$this->source); })()))) {
  151.                 // line 34
  152.                 echo "                    ";
  153.                 $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); })()), [=> twig_get_attribute($this->env$this->source$context["address"], "name", [], "any"falsefalsefalse34)]);
  154.                 // line 35
  155.                 echo "                    <div class=\"address-item\">
  156.                         <div class=\"address-item-line\">";
  157.                 // line 36
  158.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["address"], "getName", [], "method"falsefalsefalse36), "html"nulltrue);
  159.                 echo "</div>
  160.                     </div>
  161.                 ";
  162.             }
  163.             // line 39
  164.             echo "            ";
  165.         }
  166.         $_parent $context['_parent'];
  167.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['address'], $context['_parent'], $context['loop']);
  168.         $context array_intersect_key($context$_parent) + $_parent;
  169.         // line 40
  170.         echo "        </div>
  171.         <div id=\"tittlePhotoExamplesMaster\" class=\"name-master-page mt-3 mb-1 d-none\">Фото работ</div>
  172.         <div id=\"workExampleExamplePage\" class=\"work-examples-master-page\">
  173.             ";
  174.         // line 43
  175.         $this->loadTemplate("Slivki/works-examples/examples_of_works_gallery.html.twig""Slivki/mobile/beauty/master.html.twig"43)->display($context);
  176.         // line 44
  177.         echo "        </div>
  178.         <div class=\"name-master-page mt-4 mb-0\">Акции мастера</div>
  179.         <div class=\"offers-master-block d-flex row\">
  180.             ";
  181.         // line 47
  182.         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"falsefalsefalse47);
  183.         echo "
  184.         </div>
  185.     </div>
  186. ";
  187.         
  188.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  189.         
  190.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  191.     }
  192.     // line 52
  193.     public function block_popup($context, array $blocks = [])
  194.     {
  195.         $macros $this->macros;
  196.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  197.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""popup"));
  198.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  199.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""popup"));
  200.         // line 53
  201.         echo "    ";
  202.         $this->displayParentBlock("popup"$context$blocks);
  203.         echo "
  204. ";
  205.         
  206.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  207.         
  208.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  209.     }
  210.     // line 55
  211.     public function block_javascripts($context, array $blocks = [])
  212.     {
  213.         $macros $this->macros;
  214.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  215.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  216.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  217.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  218.         // line 56
  219.         echo "    ";
  220.         $this->displayParentBlock("javascripts"$context$blocks);
  221.         echo "
  222.     <script type=\"module\" src=\"/js/work_examples/work_examples.js?v=";
  223.         // line 57
  224.         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"nulltrue);
  225.         echo "\"></script>
  226. ";
  227.         
  228.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  229.         
  230.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  231.     }
  232.     public function getTemplateName()
  233.     {
  234.         return "Slivki/mobile/beauty/master.html.twig";
  235.     }
  236.     public function isTraitable()
  237.     {
  238.         return false;
  239.     }
  240.     public function getDebugInfo()
  241.     {
  242.         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,);
  243.     }
  244.     public function getSourceContext()
  245.     {
  246.         return new Source("{% extends 'Slivki/mobile/base.html.twig' %}
  247. {% block messenger %}{% endblock %}
  248. {% block styles %}
  249.     {{ parent() }}
  250.     <link rel=\"stylesheet\" href=\"https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css\">
  251. {% endblock %}
  252. {% block content %}
  253.     <div class=\"master-page container sf-font\">
  254.         <div class=\"d-flex\">
  255.             <div class=\"back-button align-self-center\" onclick=\"history.back();\">
  256.                 <img src=\"/images/back-white.svg\" style=\"filter: invert(1);\">
  257.             </div>
  258.             <div class=\"tittle-page-master\">{{ master.getFirstName() }} {{ master.getLastName() }}</div>
  259.         </div>
  260.         <div class=\"tags-container-page mb-2\">
  261.             {% for tag in master.getTags() %}
  262.                 <div class=\"beauty-masters-item-employment-capsules\">
  263.                     <div class=\"beauty-masters-item-employment-capsule\">
  264.                         <div class=\"beauty-masters-item-employment\">{{ tag }}</div>
  265.                     </div>
  266.                 </div>
  267.             {% endfor %}
  268.         </div>
  269.         <div class=\"avatar-block-master\" style=\"background-image: url('{{ master.getImageUrl() }}')\"></div>
  270.         <div class=\"name-master-page mt-2 mb-1\">{{ master.getFirstName() }} {{ master.getLastName() }}</div>
  271.         <div class=\"description-master-page mb-3\">{{ master.getDescription() }}</div>
  272.         <div class=\"address-block-master-page\">
  273.             {% set uniqueNames = [] %}
  274.             {% for address in master.getLocations() %}
  275.                 {% if address.name not in uniqueNames %}
  276.                     {% set uniqueNames = uniqueNames|merge([address.name]) %}
  277.                     <div class=\"address-item\">
  278.                         <div class=\"address-item-line\">{{ address.getName() }}</div>
  279.                     </div>
  280.                 {% endif %}
  281.             {% endfor %}
  282.         </div>
  283.         <div id=\"tittlePhotoExamplesMaster\" class=\"name-master-page mt-3 mb-1 d-none\">Фото работ</div>
  284.         <div id=\"workExampleExamplePage\" class=\"work-examples-master-page\">
  285.             {% include 'Slivki/works-examples/examples_of_works_gallery.html.twig' %}
  286.         </div>
  287.         <div class=\"name-master-page mt-4 mb-0\">Акции мастера</div>
  288.         <div class=\"offers-master-block d-flex row\">
  289.             {{ offers.categoryBoxHtml|raw }}
  290.         </div>
  291.     </div>
  292. {% endblock %}
  293. {% block popup %}
  294.     {{ parent() }}
  295. {% endblock %}
  296. {% block javascripts %}
  297.     {{ parent() }}
  298.     <script type=\"module\" src=\"/js/work_examples/work_examples.js?v={{ work_examples_js_version }}\"></script>
  299. {% endblock %}""Slivki/mobile/beauty/master.html.twig""/mnt/data/virtwww/slivki/templates/Slivki/mobile/beauty/master.html.twig");
  300.     }
  301. }