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