var/cache/dev/twig/81/81eb0e45243e8476179f0cc4b6629174.php line 53

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. /* account/register.html.twig */
  14. class __TwigTemplate_d01087913e6fc65fd0b71a1130048e3f 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.             'content' => [$this'block_content'],
  24.         ];
  25.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  26.         $this->checkSecurity();
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 1
  31.         return "layouts/layout.html.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""account/register.html.twig"));
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""account/register.html.twig"));
  40.         // line 2
  41.         $this->env->getRuntime("Symfony\\Component\\Form\\FormRenderer")->setTheme((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'2$this->source); })()), [=> "bootstrap_4_layout.html.twig"], true);
  42.         // line 1
  43.         $this->parent $this->loadTemplate("layouts/layout.html.twig""account/register.html.twig"1);
  44.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  45.         
  46.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  47.         
  48.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  49.     }
  50.     // line 5
  51.     public function block_content($context, array $blocks = [])
  52.     {
  53.         $macros $this->macros;
  54.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  55.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  56.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  57.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  58.         // line 6
  59.         echo "
  60.     <div class=\"container\">
  61.         <div class=\"mb-5 d-flex justify-content-center\">
  62.             <div class=\"col-12 col-md-6\">
  63.             ";
  64.         // line 14
  65.         if ((isset($context["errors"]) || array_key_exists("errors"$context) ? $context["errors"] : (function () { throw new RuntimeError('Variable "errors" does not exist.'14$this->source); })())) {
  66.             // line 15
  67.             echo "                ";
  68.             $context['_parent'] = $context;
  69.             $context['_seq'] = twig_ensure_traversable((isset($context["errors"]) || array_key_exists("errors"$context) ? $context["errors"] : (function () { throw new RuntimeError('Variable "errors" does not exist.'15$this->source); })()));
  70.             foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
  71.                 // line 16
  72.                 echo "                    <div class=\"alert alert-danger\">
  73.                         ";
  74.                 // line 17
  75.                 echo $this->sandbox->ensureToStringAllowed($context["error"], 17$this->source);
  76.                 echo "
  77.                     </div>
  78.                 ";
  79.             }
  80.             $_parent $context['_parent'];
  81.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
  82.             $context array_intersect_key($context$_parent) + $_parent;
  83.             // line 20
  84.             echo "            ";
  85.         }
  86.         // line 21
  87.         echo "
  88.             <h1 class=\"display-3 mb-3 font-weight-normal\">";
  89.         // line 22
  90.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("general.register"), "html"nulltrue);
  91.         echo "</h1>
  92.             ";
  93.         // line 24
  94.         echo         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock($this->sandbox->ensureToStringAllowed((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'24$this->source); })()), 24$this->source), 'form');
  95.         echo "
  96.             </div>
  97.         </div>
  98.     </div>
  99. ";
  100.         
  101.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  102.         
  103.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  104.     }
  105.     public function getTemplateName()
  106.     {
  107.         return "account/register.html.twig";
  108.     }
  109.     public function isTraitable()
  110.     {
  111.         return false;
  112.     }
  113.     public function getDebugInfo()
  114.     {
  115.         return array (  113 => 24,  108 => 22,  105 => 21,  102 => 20,  93 => 17,  90 => 16,  85 => 15,  83 => 14,  73 => 6,  63 => 5,  52 => 1,  50 => 2,  37 => 1,);
  116.     }
  117.     public function getSourceContext()
  118.     {
  119.         return new Source("{% extends 'layouts/layout.html.twig' %}
  120. {% form_theme form 'bootstrap_4_layout.html.twig' %}
  121. {% block content %}
  122.     <div class=\"container\">
  123.         <div class=\"mb-5 d-flex justify-content-center\">
  124.             <div class=\"col-12 col-md-6\">
  125.             {% if errors %}
  126.                 {% for error in errors %}
  127.                     <div class=\"alert alert-danger\">
  128.                         {{ error | raw }}
  129.                     </div>
  130.                 {% endfor %}
  131.             {% endif %}
  132.             <h1 class=\"display-3 mb-3 font-weight-normal\">{{ 'general.register' | trans }}</h1>
  133.             {{ form(form) }}
  134.             </div>
  135.         </div>
  136.     </div>
  137. {% endblock %}""account/register.html.twig""/var/www/www-data/data/www/pimcore.dev2.nowmedia.ru/templates/account/register.html.twig");
  138.     }
  139.     
  140.     public function checkSecurity()
  141.     {
  142.         static $tags = array("form_theme" => 2"if" => 14"for" => 15);
  143.         static $filters = array("raw" => 17"escape" => 22"trans" => 22);
  144.         static $functions = array("form" => 24);
  145.         try {
  146.             $this->sandbox->checkSecurity(
  147.                 ['form_theme''if''for'],
  148.                 ['raw''escape''trans'],
  149.                 ['form']
  150.             );
  151.         } catch (SecurityError $e) {
  152.             $e->setSourceContext($this->source);
  153.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  154.                 $e->setTemplateLine($tags[$e->getTagName()]);
  155.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  156.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  157.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  158.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  159.             }
  160.             throw $e;
  161.         }
  162.     }
  163. }