var/cache/dev/twig/b4/b40022ef1f6c0bbbebffa51d7e6a1ff2.php line 41

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. /* Mypage/login.twig */
  14. class __TwigTemplate_7c528346be013cbc82554e45b561bdb3 extends \Eccube\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.             'stylesheet' => [$this'block_stylesheet'],
  24.             'main' => [$this'block_main'],
  25.         ];
  26.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  27.         $this->checkSecurity();
  28.     }
  29.     protected function doGetParent(array $context)
  30.     {
  31.         // line 11
  32.         return "default_frame.twig";
  33.     }
  34.     protected function doDisplay(array $context, array $blocks = [])
  35.     {
  36.         $macros $this->macros;
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  38.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Mypage/login.twig"));
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  40.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Mypage/login.twig"));
  41.         // line 13
  42.         $context["body_class"] = "mypage";
  43.         // line 11
  44.         $this->parent $this->loadTemplate("default_frame.twig""Mypage/login.twig"11);
  45.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  46.         
  47.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  48.         
  49.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  50.     }
  51.     // line 16
  52.     public function block_stylesheet($context, array $blocks = [])
  53.     {
  54.         $macros $this->macros;
  55.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  56.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  57.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  58.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  59.         // line 17
  60.         echo "    <style>
  61. </style>
  62. ";
  63.         
  64.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  65.         
  66.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  67.     }
  68.     // line 22
  69.     public function block_main($context, array $blocks = [])
  70.     {
  71.         $macros $this->macros;
  72.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  73.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  74.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  75.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  76.         // line 23
  77.         echo "    <div class=\"ec-role\">
  78.         <div class=\"ec-pageHeader\">
  79.             <h1 class=\"km_pagetitle\">";
  80.         // line 25
  81.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("common.login"), "html"nulltrue);
  82.         echo "</h1>
  83.         </div>
  84.         <div class=\"ec-off2Grid\">
  85.             <div class=\"ec-off2Grid__cell\">
  86.                 <form name=\"login_mypage\" id=\"login_mypage\" method=\"post\" action=\"";
  87.         // line 29
  88.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("mypage_login");
  89.         echo "\">
  90.                     ";
  91.         // line 30
  92.         if (twig_get_attribute($this->env$this->sourcetwig_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.'30$this->source); })()), "session", [], "any"falsefalsetrue30), "flashBag", [], "any"falsefalsetrue30), "has", [=> "eccube.login.target.path"], "method"falsefalsetrue30)) {
  93.             // line 31
  94.             echo "                        ";
  95.             $context['_parent'] = $context;
  96.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->sourcetwig_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.'31$this->source); })()), "session", [], "any"falsefalsetrue31), "flashBag", [], "any"falsefalsetrue31), "peek", [=> "eccube.login.target.path"], "method"falsefalsetrue31));
  97.             foreach ($context['_seq'] as $context["_key"] => $context["targetPath"]) {
  98.                 // line 32
  99.                 echo "                            <input type=\"hidden\" name=\"_target_path\" value=\"";
  100.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed($context["targetPath"], 32$this->source), "html"nulltrue);
  101.                 echo "\" />
  102.                         ";
  103.             }
  104.             $_parent $context['_parent'];
  105.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['targetPath'], $context['_parent'], $context['loop']);
  106.             $context array_intersect_key($context$_parent) + $_parent;
  107.             // line 34
  108.             echo "                    ";
  109.         }
  110.         // line 35
  111.         echo "                    <div class=\"ec-login\">
  112.                         <div class=\"ec-login__icon\">
  113.                             <div class=\"ec-icon\"><img src=\"";
  114.         // line 37
  115.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/user.svg"), "html"nulltrue);
  116.         echo "\" alt=\"\"></div>
  117.                         </div>
  118.                         <div class=\"ec-login__input\">
  119.                             <div class=\"ec-input\">
  120.                                 ";
  121.         // line 41
  122.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.'41$this->source); })()), "login_email", [], "any"falsefalsetrue41), 41$this->source), 'widget', ["attr" => ["style" => "ime-mode: disabled;""placeholder" => "common.mail_address""autofocus" => true]]);
  123.         echo "
  124.                                 ";
  125.         // line 42
  126.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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); })()), "login_pass", [], "any"falsefalsetrue42), 42$this->source), 'widget', ["attr" => ["placeholder" => "common.password"]]);
  127.         echo "
  128.                             </div>
  129.                             ";
  130.         // line 44
  131.         if (twig_get_attribute($this->env$this->source, (isset($context["BaseInfo"]) || array_key_exists("BaseInfo"$context) ? $context["BaseInfo"] : (function () { throw new RuntimeError('Variable "BaseInfo" does not exist.'44$this->source); })()), "option_remember_me", [], "any"falsefalsetrue44)) {
  132.             // line 45
  133.             echo "                            <div class=\"ec-checkbox\">
  134.                                 <label>
  135.                                     ";
  136.             // line 47
  137.             if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_REMEMBERED")) {
  138.                 // line 48
  139.                 echo "                                        <input type=\"hidden\" name=\"login_memory\" value=\"1\">
  140.                                     ";
  141.             } else {
  142.                 // line 50
  143.                 echo "                                        ";
  144.                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.'50$this->source); })()), "login_memory", [], "any"falsefalsetrue50), 50$this->source), 'widget', ["label" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("common.remember_me")]);
  145.                 echo "
  146.                                     ";
  147.             }
  148.             // line 52
  149.             echo "                                </label>
  150.                             </div>
  151.                             ";
  152.         }
  153.         // line 55
  154.         echo "                            ";
  155.         $context['_parent'] = $context;
  156.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->sourcetwig_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.'55$this->source); })()), "session", [], "any"falsefalsetrue55), "flashbag", [], "any"falsefalsetrue55), "get", [=> "password_reset_complete"], "method"falsefalsetrue55));
  157.         foreach ($context['_seq'] as $context["_key"] => $context["reset_complete"]) {
  158.             // line 56
  159.             echo "                                <p>";
  160.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->sandbox->ensureToStringAllowed($context["reset_complete"], 56$this->source)), "html"nulltrue);
  161.             echo "</p>
  162.                             ";
  163.         }
  164.         $_parent $context['_parent'];
  165.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['reset_complete'], $context['_parent'], $context['loop']);
  166.         $context array_intersect_key($context$_parent) + $_parent;
  167.         // line 58
  168.         echo "                            ";
  169.         if ((isset($context["error"]) || array_key_exists("error"$context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.'58$this->source); })())) {
  170.             // line 59
  171.             echo "                                <p class=\"ec-errorMessage\">";
  172.             echo twig_nl2br(twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["error"]) || array_key_exists("error"$context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.'59$this->source); })()), "messageKey", [], "any"falsefalsetrue59), 59$this->source), $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["error"]) || array_key_exists("error"$context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.'59$this->source); })()), "messageData", [], "any"falsefalsetrue59), 59$this->source), "validators"), "html"nulltrue));
  173.             echo "</p>
  174.                             ";
  175.         }
  176.         // line 61
  177.         echo "                        </div>
  178.                         <div class=\"ec-grid2\">
  179.                             <div class=\"ec-grid2__cell\">
  180.                                 <div class=\"ec-login__actions\">
  181.                                     <button type=\"submit\"
  182.                                             class=\"ec-blockBtn--cancel\">";
  183.         // line 66
  184.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("common.login"), "html"nulltrue);
  185.         echo "</button>
  186.                                 </div>
  187.                             </div>
  188.                             <div class=\"ec-grid2__cell\">
  189.                                 <div class=\"ec-login__link\"><a class=\"ec-link\"
  190.                                                                href=\"";
  191.         // line 71
  192.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("forgot");
  193.         echo "\">";
  194.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("common.forgot_login"), "html"nulltrue);
  195.         echo "</a>
  196.                                 </div>
  197.                                 <div class=\"ec-login__link\"><a class=\"ec-link\"
  198.                                                                href=\"";
  199.         // line 74
  200.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("entry");
  201.         echo "\">";
  202.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("common.signup"), "html"nulltrue);
  203.         echo "</a>
  204.                                 </div>
  205.                             </div>
  206.                         </div>
  207.                     </div>
  208.                     <input type=\"hidden\" name=\"_csrf_token\" value=\"";
  209.         // line 79
  210.         echo twig_escape_filter($this->env$this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("authenticate"), "html"nulltrue);
  211.         echo "\">
  212.                 </form>
  213.             </div>
  214.         </div>
  215.     </div>
  216. ";
  217.         
  218.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  219.         
  220.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  221.     }
  222.     public function getTemplateName()
  223.     {
  224.         return "Mypage/login.twig";
  225.     }
  226.     public function isTraitable()
  227.     {
  228.         return false;
  229.     }
  230.     public function getDebugInfo()
  231.     {
  232.         return array (  230 => 79,  220 => 74,  212 => 71,  204 => 66,  197 => 61,  191 => 59,  188 => 58,  179 => 56,  174 => 55,  169 => 52,  163 => 50,  159 => 48,  157 => 47,  153 => 45,  151 => 44,  146 => 42,  142 => 41,  135 => 37,  131 => 35,  128 => 34,  119 => 32,  114 => 31,  112 => 30,  108 => 29,  101 => 25,  97 => 23,  87 => 22,  74 => 17,  64 => 16,  53 => 11,  51 => 13,  38 => 11,);
  233.     }
  234.     public function getSourceContext()
  235.     {
  236.         return new Source("{#
  237. This file is part of EC-CUBE
  238. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  239. http://www.ec-cube.co.jp/
  240. For the full copyright and license information, please view the LICENSE
  241. file that was distributed with this source code.
  242. #}
  243. {% extends 'default_frame.twig' %}
  244. {% set body_class = 'mypage' %}
  245. {% block stylesheet %}
  246.     <style>
  247. </style>
  248. {% endblock %}
  249. {% block main %}
  250.     <div class=\"ec-role\">
  251.         <div class=\"ec-pageHeader\">
  252.             <h1 class=\"km_pagetitle\">{{ 'common.login'|trans }}</h1>
  253.         </div>
  254.         <div class=\"ec-off2Grid\">
  255.             <div class=\"ec-off2Grid__cell\">
  256.                 <form name=\"login_mypage\" id=\"login_mypage\" method=\"post\" action=\"{{ url('mypage_login') }}\">
  257.                     {% if app.session.flashBag.has('eccube.login.target.path') %}
  258.                         {% for targetPath in app.session.flashBag.peek('eccube.login.target.path') %}
  259.                             <input type=\"hidden\" name=\"_target_path\" value=\"{{ targetPath }}\" />
  260.                         {% endfor %}
  261.                     {% endif %}
  262.                     <div class=\"ec-login\">
  263.                         <div class=\"ec-login__icon\">
  264.                             <div class=\"ec-icon\"><img src=\"{{ asset('assets/icon/user.svg') }}\" alt=\"\"></div>
  265.                         </div>
  266.                         <div class=\"ec-login__input\">
  267.                             <div class=\"ec-input\">
  268.                                 {{ form_widget(form.login_email, {'attr': {'style' : 'ime-mode: disabled;', 'placeholder' : 'common.mail_address', 'autofocus': true}}) }}
  269.                                 {{ form_widget(form.login_pass,  {'attr': {'placeholder' : 'common.password' }}) }}
  270.                             </div>
  271.                             {% if BaseInfo.option_remember_me %}
  272.                             <div class=\"ec-checkbox\">
  273.                                 <label>
  274.                                     {% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}
  275.                                         <input type=\"hidden\" name=\"login_memory\" value=\"1\">
  276.                                     {% else %}
  277.                                         {{ form_widget(form.login_memory, { 'label': 'common.remember_me'|trans }) }}
  278.                                     {% endif %}
  279.                                 </label>
  280.                             </div>
  281.                             {% endif %}
  282.                             {% for reset_complete in app.session.flashbag.get('password_reset_complete') %}
  283.                                 <p>{{ reset_complete|trans }}</p>
  284.                             {% endfor %}
  285.                             {% if error %}
  286.                                 <p class=\"ec-errorMessage\">{{ error.messageKey|trans(error.messageData, 'validators')|nl2br }}</p>
  287.                             {% endif %}
  288.                         </div>
  289.                         <div class=\"ec-grid2\">
  290.                             <div class=\"ec-grid2__cell\">
  291.                                 <div class=\"ec-login__actions\">
  292.                                     <button type=\"submit\"
  293.                                             class=\"ec-blockBtn--cancel\">{{ 'common.login'|trans }}</button>
  294.                                 </div>
  295.                             </div>
  296.                             <div class=\"ec-grid2__cell\">
  297.                                 <div class=\"ec-login__link\"><a class=\"ec-link\"
  298.                                                                href=\"{{ url('forgot') }}\">{{ 'common.forgot_login'|trans }}</a>
  299.                                 </div>
  300.                                 <div class=\"ec-login__link\"><a class=\"ec-link\"
  301.                                                                href=\"{{ url('entry') }}\">{{ 'common.signup'|trans }}</a>
  302.                                 </div>
  303.                             </div>
  304.                         </div>
  305.                     </div>
  306.                     <input type=\"hidden\" name=\"_csrf_token\" value=\"{{ csrf_token('authenticate') }}\">
  307.                 </form>
  308.             </div>
  309.         </div>
  310.     </div>
  311. {% endblock %}
  312. ""Mypage/login.twig""/var/www/html/app/template/default/Mypage/login.twig");
  313.     }
  314.     
  315.     public function checkSecurity()
  316.     {
  317.         static $tags = array("set" => 13"if" => 30"for" => 31);
  318.         static $filters = array("escape" => 25"trans" => 25"nl2br" => 59);
  319.         static $functions = array("url" => 29"asset" => 37"form_widget" => 41"is_granted" => 47"csrf_token" => 79);
  320.         try {
  321.             $this->sandbox->checkSecurity(
  322.                 ['set''if''for'],
  323.                 ['escape''trans''nl2br'],
  324.                 ['url''asset''form_widget''is_granted''csrf_token'],
  325.                 $this->source
  326.             );
  327.         } catch (SecurityError $e) {
  328.             $e->setSourceContext($this->source);
  329.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  330.                 $e->setTemplateLine($tags[$e->getTagName()]);
  331.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  332.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  333.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  334.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  335.             }
  336.             throw $e;
  337.         }
  338.     }
  339. }