var/cache/dev/twig/27/27d6fe8ffe60b13389d6a189d1bf0ea322fef94fc886f83e29b9804bf733cacd.php line 48

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. /* CoreBundle:Account:login.html.twig */
  14. class __TwigTemplate_22bbf6dc766fa9a5903041961d7c24663d45e656968b6d934a2fb9fd1890b4a2 extends \Twig\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.     }
  26.     protected function doGetParent(array $context)
  27.     {
  28.         // line 1
  29.         return "pageTemplateDefault.html.twig";
  30.     }
  31.     protected function doDisplay(array $context, array $blocks = [])
  32.     {
  33.         $macros $this->macros;
  34.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""CoreBundle:Account:login.html.twig"));
  36.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""CoreBundle:Account:login.html.twig"));
  38.         $this->parent $this->loadTemplate("pageTemplateDefault.html.twig""CoreBundle:Account:login.html.twig"1);
  39.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  40.         
  41.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  42.         
  43.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  44.     }
  45.     // line 2
  46.     public function block_content($context, array $blocks = [])
  47.     {
  48.         $macros $this->macros;
  49.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  50.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  51.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  52.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  53.         // line 3
  54.         echo "    <div class=\"background\">
  55.         <div class=\"main-content flex-col offset-top\">
  56.             <div class=\"col xs-12\">
  57.                 ";
  58.         // line 6
  59.         if ((isset($context["error"]) || array_key_exists("error"$context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.'6$this->source); })())) {
  60.             // line 7
  61.             echo "                    <div class=\"message-wrapper\">
  62.                         <div class=\"message error\">
  63.                             ";
  64.             // line 9
  65.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("account.login.error"), "html"nulltrue);
  66.             echo "
  67.                         </div>
  68.                     </div>
  69.                 ";
  70.         }
  71.         // line 13
  72.         echo "            </div>
  73.             <div class=\"col xs-12 m-6\">
  74.                 <div class=\"customer-account-card login-container\">
  75.                     <div class=\"card-head\">
  76.                         <h2>";
  77.         // line 17
  78.         echo twig_escape_filter($this->env$this->extensions['CoreBundle\Twig\Extension\AppExtension']->replaceTradeMarkIcon($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(((isset($context["bundleName"]) || array_key_exists("bundleName"$context) ? $context["bundleName"] : (function () { throw new RuntimeError('Variable "bundleName" does not exist.'17$this->source); })()) . ".customerRegistration.registeredCustomer.headline"))), "html"nulltrue);
  79.         echo "</h2>
  80.                     </div>
  81.                     ";
  82.         // line 19
  83.         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"falsefalsefalse19)) {
  84.             // line 20
  85.             echo "                        <p>test</p>
  86.                         ";
  87.             // line 21
  88.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse21), "secret", [], "any"falsefalsefalse21), "html"nulltrue);
  89.             echo "
  90.                     ";
  91.         }
  92.         // line 23
  93.         echo "
  94.                     <div class=\"card-content\">
  95.                         <div class=\"card-content-text\">
  96.                             ";
  97.         // line 26
  98.         if (((isset($context["reset"]) || array_key_exists("reset"$context)) && (isset($context["reset"]) || array_key_exists("reset"$context) ? $context["reset"] : (function () { throw new RuntimeError('Variable "reset" does not exist.'26$this->source); })()))) {
  99.             // line 27
  100.             echo "                                ";
  101.             echo twig_escape_filter($this->env$this->extensions['CoreBundle\Twig\Extension\AppExtension']->replaceTradeMarkIcon($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(((isset($context["bundleName"]) || array_key_exists("bundleName"$context) ? $context["bundleName"] : (function () { throw new RuntimeError('Variable "bundleName" does not exist.'27$this->source); })()) . ".customerRegistration.passwordResetPage.mailSendText"))), "html"nulltrue);
  102.             echo "
  103.                             ";
  104.         } elseif ((        // line 28
  105. (isset($context["success"]) || array_key_exists("success"$context)) && (isset($context["success"]) || array_key_exists("success"$context) ? $context["success"] : (function () { throw new RuntimeError('Variable "success" does not exist.'28$this->source); })()))) {
  106.             // line 29
  107.             echo "                                ";
  108.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("passwordResetSuccessfully"), "html"nulltrue);
  109.             echo "
  110.                             ";
  111.         } else {
  112.             // line 31
  113.             echo "                                ";
  114.             echo twig_escape_filter($this->env$this->extensions['CoreBundle\Twig\Extension\AppExtension']->replaceTradeMarkIcon($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(((isset($context["bundleName"]) || array_key_exists("bundleName"$context) ? $context["bundleName"] : (function () { throw new RuntimeError('Variable "bundleName" does not exist.'31$this->source); })()) . ".customerRegistration.registeredCustomer.contentText"))), "html"nulltrue);
  115.             echo "
  116.                             ";
  117.         }
  118.         // line 33
  119.         echo "                        </div>
  120.                         <div class=\"card-content-form\">
  121.                             ";
  122.         // line 35
  123.         echo $this->extensions['Pimcore\Twig\Extension\DocumentTagExtension']->renderTag($context"input""LoginFormText");
  124.         echo "
  125.                             ";
  126.         // line 36
  127.         echo         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'36$this->source); })()), 'form_start');
  128.         echo "
  129.                             <div class=\"form-field\">
  130.                                 ";
  131.         // line 38
  132.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'38$this->source); })()), "_username", [], "any"falsefalsefalse38), 'label');
  133.         echo "
  134.                                 ";
  135.         // line 39
  136.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'39$this->source); })()), "_username", [], "any"falsefalsefalse39), 'widget');
  137.         echo "
  138.                             </div>
  139.                             <div class=\"form-field\">
  140.                                 ";
  141.         // line 42
  142.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'42$this->source); })()), "_password", [], "any"falsefalsefalse42), 'label');
  143.         echo "
  144.                                 ";
  145.         // line 43
  146.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'43$this->source); })()), "_password", [], "any"falsefalsefalse43), 'widget');
  147.         echo "
  148.                             </div>
  149.                             <div class=\"button-row\">
  150.                                 <div class=\"button-wrapper\">
  151.                                     ";
  152.         // line 47
  153.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'47$this->source); })()), "submit", [], "any"falsefalsefalse47), 'row', ["label" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("login")]);
  154.         echo "
  155.                                 </div>
  156.                                 <div class=\"link-wrapper\">
  157.                                     <a href=\"";
  158.         // line 50
  159.         echo twig_escape_filter($this->env$this->env->getFunction('pimcore_url')->getCallable()([], "requestPasswordReset"), "html"nulltrue);
  160.         echo "\">
  161.                                         ";
  162.         // line 51
  163.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(((isset($context["bundleName"]) || array_key_exists("bundleName"$context) ? $context["bundleName"] : (function () { throw new RuntimeError('Variable "bundleName" does not exist.'51$this->source); })()) . ".customerRegistration.password.reset.link")), "html"nulltrue);
  164.         echo "
  165.                                     </a>
  166.                                 </div>
  167.                             </div>
  168.                             ";
  169.         // line 55
  170.         echo         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'55$this->source); })()), 'form_end');
  171.         echo "
  172.                         </div>
  173.                     </div>
  174.                 </div>
  175.             </div>
  176.             <div class=\"col xs-12 m-6\">
  177.                 <div class=\"customer-account-card register-container\">
  178.                     <div class=\"card-head\">
  179.                         <h2>
  180.                             ";
  181.         // line 64
  182.         echo twig_escape_filter($this->env$this->extensions['CoreBundle\Twig\Extension\AppExtension']->replaceTradeMarkIcon($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(((isset($context["bundleName"]) || array_key_exists("bundleName"$context) ? $context["bundleName"] : (function () { throw new RuntimeError('Variable "bundleName" does not exist.'64$this->source); })()) . ".customerRegistration.newCustomer.headline"))), "html"nulltrue);
  183.         echo "
  184.                         </h2>
  185.                     </div>
  186.                     <div class=\"card-content\">
  187.                         <div class=\"card-content-text\">
  188.                             ";
  189.         // line 69
  190.         echo twig_escape_filter($this->env$this->extensions['CoreBundle\Twig\Extension\AppExtension']->replaceTradeMarkIcon($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(((isset($context["bundleName"]) || array_key_exists("bundleName"$context) ? $context["bundleName"] : (function () { throw new RuntimeError('Variable "bundleName" does not exist.'69$this->source); })()) . ".customerRegistration.newCustomer.contentText"))), "html"nulltrue);
  191.         echo "
  192.                         </div>
  193.                         <a class=\"button btn-default\" href=\"";
  194.         // line 71
  195.         echo twig_escape_filter($this->env$this->env->getFunction('pimcore_url')->getCallable()([], "register"), "html"nulltrue);
  196.         echo "\">
  197.                             ";
  198.         // line 72
  199.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(((isset($context["bundleName"]) || array_key_exists("bundleName"$context) ? $context["bundleName"] : (function () { throw new RuntimeError('Variable "bundleName" does not exist.'72$this->source); })()) . ".customerRegistration.register")), "html"nulltrue);
  200.         echo "
  201.                         </a>
  202.                     </div>
  203.                 </div>
  204.             </div>
  205.         </div>
  206.     </div>
  207. ";
  208.         
  209.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  210.         
  211.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  212.     }
  213.     public function getTemplateName()
  214.     {
  215.         return "CoreBundle:Account:login.html.twig";
  216.     }
  217.     public function isTraitable()
  218.     {
  219.         return false;
  220.     }
  221.     public function getDebugInfo()
  222.     {
  223.         return array (  213 => 72,  209 => 71,  204 => 69,  196 => 64,  184 => 55,  177 => 51,  173 => 50,  167 => 47,  160 => 43,  156 => 42,  150 => 39,  146 => 38,  141 => 36,  137 => 35,  133 => 33,  127 => 31,  121 => 29,  119 => 28,  114 => 27,  112 => 26,  107 => 23,  102 => 21,  99 => 20,  97 => 19,  92 => 17,  86 => 13,  79 => 9,  75 => 7,  73 => 6,  68 => 3,  58 => 2,  35 => 1,);
  224.     }
  225.     public function getSourceContext()
  226.     {
  227.         return new Source("{% extends 'pageTemplateDefault.html.twig' %}
  228. {% block content %}
  229.     <div class=\"background\">
  230.         <div class=\"main-content flex-col offset-top\">
  231.             <div class=\"col xs-12\">
  232.                 {% if error %}
  233.                     <div class=\"message-wrapper\">
  234.                         <div class=\"message error\">
  235.                             {{ \"account.login.error\"|trans }}
  236.                         </div>
  237.                     </div>
  238.                 {% endif %}
  239.             </div>
  240.             <div class=\"col xs-12 m-6\">
  241.                 <div class=\"customer-account-card login-container\">
  242.                     <div class=\"card-head\">
  243.                         <h2>{{ ((bundleName ~'.customerRegistration.registeredCustomer.headline') |trans) |trademark }}</h2>
  244.                     </div>
  245.                     {% if app.user %}
  246.                         <p>test</p>
  247.                         {{ app.user.secret }}
  248.                     {% endif %}
  249.                     <div class=\"card-content\">
  250.                         <div class=\"card-content-text\">
  251.                             {% if reset is defined and reset %}
  252.                                 {{ ((bundleName ~'.customerRegistration.passwordResetPage.mailSendText') |trans) |trademark }}
  253.                             {% elseif success is defined and success %}
  254.                                 {{ 'passwordResetSuccessfully' |trans }}
  255.                             {% else %}
  256.                                 {{ ((bundleName ~'.customerRegistration.registeredCustomer.contentText') |trans) |trademark }}
  257.                             {% endif %}
  258.                         </div>
  259.                         <div class=\"card-content-form\">
  260.                             {{ pimcore_input(\"LoginFormText\") }}
  261.                             {{ form_start(form) }}
  262.                             <div class=\"form-field\">
  263.                                 {{ form_label(form._username) }}
  264.                                 {{ form_widget(form._username) }}
  265.                             </div>
  266.                             <div class=\"form-field\">
  267.                                 {{ form_label(form._password) }}
  268.                                 {{ form_widget(form._password) }}
  269.                             </div>
  270.                             <div class=\"button-row\">
  271.                                 <div class=\"button-wrapper\">
  272.                                     {{ form_row(form.submit, { 'label': 'login' |trans }) }}
  273.                                 </div>
  274.                                 <div class=\"link-wrapper\">
  275.                                     <a href=\"{{ pimcore_url({},\"requestPasswordReset\") }}\">
  276.                                         {{ (bundleName~'.customerRegistration.password.reset.link') |trans }}
  277.                                     </a>
  278.                                 </div>
  279.                             </div>
  280.                             {{ form_end(form) }}
  281.                         </div>
  282.                     </div>
  283.                 </div>
  284.             </div>
  285.             <div class=\"col xs-12 m-6\">
  286.                 <div class=\"customer-account-card register-container\">
  287.                     <div class=\"card-head\">
  288.                         <h2>
  289.                             {{ ((bundleName ~'.customerRegistration.newCustomer.headline') |trans) |trademark }}
  290.                         </h2>
  291.                     </div>
  292.                     <div class=\"card-content\">
  293.                         <div class=\"card-content-text\">
  294.                             {{ ((bundleName ~'.customerRegistration.newCustomer.contentText') |trans) |trademark }}
  295.                         </div>
  296.                         <a class=\"button btn-default\" href=\"{{ pimcore_url({},\"register\") }}\">
  297.                             {{ ((bundleName ~'.customerRegistration.register') |trans) }}
  298.                         </a>
  299.                     </div>
  300.                 </div>
  301.             </div>
  302.         </div>
  303.     </div>
  304. {% endblock %}
  305. ""CoreBundle:Account:login.html.twig""/var/www/share/test.develey/src/CoreBundle/Resources/views/Account/login.html.twig");
  306.     }
  307. }