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 "<section class=\"p-lower-mv\">
  60.   <div class=\"inner\">
  61.     <h2 class=\"p-lower-mv-title\"><span>ログイン</span></h2>
  62.     <div class=\"under bread_wrap\">
  63.       <ol itemscope itemtype=\"https://schema.org/BreadcrumbList\">
  64.         <li itemprop=\"itemListElement\" itemscope itemtype=\"https://schema.org/ListItem\">
  65.           <a itemprop=\"item\" href=\"";
  66.         // line 22
  67.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  68.         echo "\">
  69.             <span class=\"freight-neo-pro\" itemprop=\"name\">TOP</span>
  70.           </a>
  71.           <meta itemprop=\"position\" content=\"1\" />
  72.         </li>
  73.         <li itemprop=\"itemListElement\" itemscope itemtype=\"https://schema.org/ListItem\">
  74.           <a itemprop=\"item\" href=\"";
  75.         // line 28
  76.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("mypage_login");
  77.         echo "\">
  78.             <span class=\"freight-neo-pro\" itemprop=\"name\">ログイン</span>
  79.           </a>
  80.           <meta itemprop=\"position\" content=\"2\" />
  81.         </li>
  82.       </ol>
  83.     </div>
  84.     <!-- /.bread_wrap -->
  85.   </div>
  86. </section>
  87. <section class=\"login\">
  88.   <div class=\"inner\">
  89.     <div class=\"login-form\">
  90.       <form name=\"login_mypage\" id=\"login_mypage\" method=\"post\" action=\"";
  91.         // line 42
  92.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("mypage_login");
  93.         echo "\">
  94.         ";
  95.         // line 43
  96.         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.'43$this->source); })()), "session", [], "any"falsefalsetrue43), "flashBag", [], "any"falsefalsetrue43), "has", [=> "eccube.login.target.path"], "method"falsefalsetrue43)) {
  97.             // line 44
  98.             echo "        ";
  99.             $context['_parent'] = $context;
  100.             $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.'44$this->source); })()), "session", [], "any"falsefalsetrue44), "flashBag", [], "any"falsefalsetrue44), "peek", [=> "eccube.login.target.path"], "method"falsefalsetrue44));
  101.             foreach ($context['_seq'] as $context["_key"] => $context["targetPath"]) {
  102.                 // line 45
  103.                 echo "        <input type=\"hidden\" name=\"_target_path\" value=\"";
  104.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed($context["targetPath"], 45$this->source), "html"nulltrue);
  105.                 echo "\" />
  106.         ";
  107.             }
  108.             $_parent $context['_parent'];
  109.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['targetPath'], $context['_parent'], $context['loop']);
  110.             $context array_intersect_key($context$_parent) + $_parent;
  111.             // line 47
  112.             echo "        ";
  113.         }
  114.         // line 48
  115.         echo "        <div class=\"login-box\">
  116.           <!-- <div class=\"ec-login__icon\">
  117.             <div class=\"ec-icon\"><img src=\"";
  118.         // line 50
  119.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/user.svg"), "html"nulltrue);
  120.         echo "\" alt=\"\"></div>
  121.           </div> -->
  122.           <div class=\"login-input\">
  123.             ";
  124.         // line 53
  125.         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.'53$this->source); })()), "login_email", [], "any"falsefalsetrue53), 53$this->source), 'widget', ["attr" => ["style" => "ime-mode: disabled;""placeholder" => "メールアドレス""autofocus" => true]]);
  126.         echo "
  127.             ";
  128.         // line 54
  129.         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.'54$this->source); })()), "login_pass", [], "any"falsefalsetrue54), 54$this->source), 'widget', ["attr" => ["placeholder" => "パスワード"]]);
  130.         echo "
  131.           </div>
  132.           ";
  133.         // line 56
  134.         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.'56$this->source); })()), "option_remember_me", [], "any"falsefalsetrue56)) {
  135.             // line 57
  136.             echo "          <div class=\"login-checkbox\">
  137.             <label>
  138.               ";
  139.             // line 59
  140.             if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_REMEMBERED")) {
  141.                 // line 60
  142.                 echo "              <input type=\"hidden\" name=\"login_memory\" value=\"1\">
  143.               ";
  144.             } else {
  145.                 // line 62
  146.                 echo "              ";
  147.                 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.'62$this->source); })()), "login_memory", [], "any"falsefalsetrue62), 62$this->source), 'widget', ["label" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("次回から自動的にログインする")]);
  148.                 echo "
  149.               ";
  150.             }
  151.             // line 64
  152.             echo "            </label>
  153.           </div>
  154.           ";
  155.         }
  156.         // line 67
  157.         echo "          ";
  158.         $context['_parent'] = $context;
  159.         $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.'67$this->source); })()), "session", [], "any"falsefalsetrue67), "flashbag", [], "any"falsefalsetrue67), "get", [=> "password_reset_complete"], "method"falsefalsetrue67));
  160.         foreach ($context['_seq'] as $context["_key"] => $context["reset_complete"]) {
  161.             // line 68
  162.             echo "          <p class=\"login-message\">";
  163.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->sandbox->ensureToStringAllowed($context["reset_complete"], 68$this->source)), "html"nulltrue);
  164.             echo "</p>
  165.           ";
  166.         }
  167.         $_parent $context['_parent'];
  168.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['reset_complete'], $context['_parent'], $context['loop']);
  169.         $context array_intersect_key($context$_parent) + $_parent;
  170.         // line 70
  171.         echo "          ";
  172.         if ((isset($context["error"]) || array_key_exists("error"$context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.'70$this->source); })())) {
  173.             // line 71
  174.             echo "          <p class=\"ec-errorMessage\">";
  175.             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.'71$this->source); })()), "messageKey", [], "any"falsefalsetrue71), 71$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.'71$this->source); })()), "messageData", [], "any"falsefalsetrue71), 71$this->source), "validators"), "html"nulltrue));
  176.             echo "</p>
  177.           ";
  178.         }
  179.         // line 73
  180.         echo "          <div class=\"login-bottom-wrap\">
  181.             <div class=\"p-button green form\">
  182.               <button type=\"submit\">";
  183.         // line 75
  184.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ログイン"), "html"nulltrue);
  185.         echo "</button>
  186.             </div>
  187.             <div class=\"login-help\">
  188.               <div class=\"login-help-link\">
  189.                 <a class=\"ec-link\" href=\"";
  190.         // line 79
  191.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("forgot");
  192.         echo "\">";
  193.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("パスワードをお忘れの方"), "html"nulltrue);
  194.         echo "</a>
  195.               </div>
  196.               <div class=\"login-help-link\">
  197.                 <a class=\"ec-link\" href=\"";
  198.         // line 82
  199.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("entry");
  200.         echo "\">";
  201.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("新規会員登録"), "html"nulltrue);
  202.         echo "</a>
  203.               </div>
  204.             </div>
  205.           </div>
  206.         </div>
  207.         <input type=\"hidden\" name=\"_csrf_token\" value=\"";
  208.         // line 87
  209.         echo twig_escape_filter($this->env$this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("authenticate"), "html"nulltrue);
  210.         echo "\">
  211.       </form>
  212.     </div>
  213.   </div>
  214. </section>
  215. ";
  216.         
  217.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  218.         
  219.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  220.     }
  221.     public function getTemplateName()
  222.     {
  223.         return "Mypage/login.twig";
  224.     }
  225.     public function isTraitable()
  226.     {
  227.         return false;
  228.     }
  229.     public function getDebugInfo()
  230.     {
  231.         return array (  224 => 87,  214 => 82,  206 => 79,  199 => 75,  195 => 73,  189 => 71,  186 => 70,  177 => 68,  172 => 67,  167 => 64,  161 => 62,  157 => 60,  155 => 59,  151 => 57,  149 => 56,  144 => 54,  140 => 53,  134 => 50,  130 => 48,  127 => 47,  118 => 45,  113 => 44,  111 => 43,  107 => 42,  90 => 28,  81 => 22,  73 => 16,  63 => 15,  52 => 11,  50 => 13,  37 => 11,);
  232.     }
  233.     public function getSourceContext()
  234.     {
  235.         return new Source("{#
  236. This file is part of EC-CUBE
  237. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  238. http://www.ec-cube.co.jp/
  239. For the full copyright and license information, please view the LICENSE
  240. file that was distributed with this source code.
  241. #}
  242. {% extends 'default_frame.twig' %}
  243. {% set body_class = 'mypage' %}
  244. {% block main %}
  245. <section class=\"p-lower-mv\">
  246.   <div class=\"inner\">
  247.     <h2 class=\"p-lower-mv-title\"><span>ログイン</span></h2>
  248.     <div class=\"under bread_wrap\">
  249.       <ol itemscope itemtype=\"https://schema.org/BreadcrumbList\">
  250.         <li itemprop=\"itemListElement\" itemscope itemtype=\"https://schema.org/ListItem\">
  251.           <a itemprop=\"item\" href=\"{{ url('homepage') }}\">
  252.             <span class=\"freight-neo-pro\" itemprop=\"name\">TOP</span>
  253.           </a>
  254.           <meta itemprop=\"position\" content=\"1\" />
  255.         </li>
  256.         <li itemprop=\"itemListElement\" itemscope itemtype=\"https://schema.org/ListItem\">
  257.           <a itemprop=\"item\" href=\"{{ url('mypage_login') }}\">
  258.             <span class=\"freight-neo-pro\" itemprop=\"name\">ログイン</span>
  259.           </a>
  260.           <meta itemprop=\"position\" content=\"2\" />
  261.         </li>
  262.       </ol>
  263.     </div>
  264.     <!-- /.bread_wrap -->
  265.   </div>
  266. </section>
  267. <section class=\"login\">
  268.   <div class=\"inner\">
  269.     <div class=\"login-form\">
  270.       <form name=\"login_mypage\" id=\"login_mypage\" method=\"post\" action=\"{{ url('mypage_login') }}\">
  271.         {% if app.session.flashBag.has('eccube.login.target.path') %}
  272.         {% for targetPath in app.session.flashBag.peek('eccube.login.target.path') %}
  273.         <input type=\"hidden\" name=\"_target_path\" value=\"{{ targetPath }}\" />
  274.         {% endfor %}
  275.         {% endif %}
  276.         <div class=\"login-box\">
  277.           <!-- <div class=\"ec-login__icon\">
  278.             <div class=\"ec-icon\"><img src=\"{{ asset('assets/icon/user.svg') }}\" alt=\"\"></div>
  279.           </div> -->
  280.           <div class=\"login-input\">
  281.             {{ form_widget(form.login_email, {'attr': {'style' : 'ime-mode: disabled;', 'placeholder' : 'メールアドレス', 'autofocus': true}}) }}
  282.             {{ form_widget(form.login_pass,  {'attr': {'placeholder' : 'パスワード' }}) }}
  283.           </div>
  284.           {% if BaseInfo.option_remember_me %}
  285.           <div class=\"login-checkbox\">
  286.             <label>
  287.               {% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}
  288.               <input type=\"hidden\" name=\"login_memory\" value=\"1\">
  289.               {% else %}
  290.               {{ form_widget(form.login_memory, { 'label': '次回から自動的にログインする'|trans }) }}
  291.               {% endif %}
  292.             </label>
  293.           </div>
  294.           {% endif %}
  295.           {% for reset_complete in app.session.flashbag.get('password_reset_complete') %}
  296.           <p class=\"login-message\">{{ reset_complete|trans }}</p>
  297.           {% endfor %}
  298.           {% if error %}
  299.           <p class=\"ec-errorMessage\">{{ error.messageKey|trans(error.messageData, 'validators')|nl2br }}</p>
  300.           {% endif %}
  301.           <div class=\"login-bottom-wrap\">
  302.             <div class=\"p-button green form\">
  303.               <button type=\"submit\">{{ 'ログイン'|trans }}</button>
  304.             </div>
  305.             <div class=\"login-help\">
  306.               <div class=\"login-help-link\">
  307.                 <a class=\"ec-link\" href=\"{{ url('forgot') }}\">{{ 'パスワードをお忘れの方'|trans }}</a>
  308.               </div>
  309.               <div class=\"login-help-link\">
  310.                 <a class=\"ec-link\" href=\"{{ url('entry') }}\">{{ '新規会員登録'|trans }}</a>
  311.               </div>
  312.             </div>
  313.           </div>
  314.         </div>
  315.         <input type=\"hidden\" name=\"_csrf_token\" value=\"{{ csrf_token('authenticate') }}\">
  316.       </form>
  317.     </div>
  318.   </div>
  319. </section>
  320. {% endblock %}""Mypage/login.twig""/home/hirota-s.com/public_html/app/template/default/Mypage/login.twig");
  321.     }
  322.     
  323.     public function checkSecurity()
  324.     {
  325.         static $tags = array("set" => 13"if" => 43"for" => 44);
  326.         static $filters = array("escape" => 45"trans" => 62"nl2br" => 71);
  327.         static $functions = array("url" => 22"asset" => 50"form_widget" => 53"is_granted" => 59"csrf_token" => 87);
  328.         try {
  329.             $this->sandbox->checkSecurity(
  330.                 ['set''if''for'],
  331.                 ['escape''trans''nl2br'],
  332.                 ['url''asset''form_widget''is_granted''csrf_token']
  333.             );
  334.         } catch (SecurityError $e) {
  335.             $e->setSourceContext($this->source);
  336.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  337.                 $e->setTemplateLine($tags[$e->getTagName()]);
  338.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  339.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  340.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  341.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  342.             }
  343.             throw $e;
  344.         }
  345.     }
  346. }