var/cache/dev/twig/97/978ba29c54b9d3bdb0471be1003d5713.php line 40

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_df7497f8ac94c0b239e719dcb7bc6479 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=\"ec-role\" id=\"slidewindow\">
  60.         <div class=\"ec-pageHeader\">
  61.             <h1 class=\"mainttl\">";
  62.         // line 18
  63.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ログイン"), "html"nulltrue);
  64.         echo "</h1>
  65.         </div>
  66.         <div id=\"undercolumn\">
  67.             <div id=\"undercolumn_login\">
  68.                 <form name=\"login_mypage\" id=\"login_mypage\" method=\"post\" action=\"";
  69.         // line 23
  70.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("mypage_login");
  71.         echo "\">
  72.                     ";
  73.         // line 24
  74.         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)) {
  75.             // line 25
  76.             echo "                        ";
  77.             $context['_parent'] = $context;
  78.             $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));
  79.             foreach ($context['_seq'] as $context["_key"] => $context["targetPath"]) {
  80.                 // line 26
  81.                 echo "                            <input type=\"hidden\" name=\"_target_path\" value=\"";
  82.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed($context["targetPath"], 26$this->source), "html"nulltrue);
  83.                 echo "\" />
  84.                         ";
  85.             }
  86.             $_parent $context['_parent'];
  87.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['targetPath'], $context['_parent'], $context['loop']);
  88.             $context array_intersect_key($context$_parent) + $_parent;
  89.             // line 28
  90.             echo "                    ";
  91.         }
  92.         // line 29
  93.         echo "
  94.                     <div class=\"login_area\">
  95.                         <h3 class=\"subtitle\">会員登録がお済みのお客様</h3>
  96.                         <p class=\"inputtext\">会員の方は、登録時に入力されたメールアドレスとパスワードでログインしてください。</p>
  97.                         <div class=\"ec-login inputbox\">
  98.                             <div class=\"ec-login__input\">
  99.                                 <div class=\"ec-input\">
  100.                                     <dl class=\"formlist flex\">
  101.                                         <dt>メールアドレス&nbsp;:</dt>
  102.                                         <dd>";
  103.         // line 39
  104.         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.'39$this->source); })()), "login_email", [], "any"falsefalsetrue39), 39$this->source), 'widget', ["attr" => ["style" => "ime-mode: disabled;""placeholder" => "メールアドレス""autofocus" => true]]);
  105.         echo "</dd>
  106.                                     </dl>
  107.                                     <dl class=\"formlist flex\">
  108.                                         <dt>パスワード&nbsp;:</dt>
  109.                                         <dd>";
  110.         // line 43
  111.         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.'43$this->source); })()), "login_pass", [], "any"falsefalsetrue43), 43$this->source), 'widget', ["attr" => ["placeholder" => "パスワード"]]);
  112.         echo "</dd>
  113.                                     </dl>
  114.                                 </div>
  115.                                 ";
  116.         // line 46
  117.         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.'46$this->source); })()), "option_remember_me", [], "any"falsefalsetrue46)) {
  118.             // line 47
  119.             echo "                                <div class=\"ec-checkbox\">
  120.                                     <label>
  121.                                         ";
  122.             // line 49
  123.             if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_REMEMBERED")) {
  124.                 // line 50
  125.                 echo "                                            <input type=\"hidden\" name=\"login_memory\" value=\"1\">
  126.                                         ";
  127.             } else {
  128.                 // line 52
  129.                 echo "                                            ";
  130.                 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.'52$this->source); })()), "login_memory", [], "any"falsefalsetrue52), 52$this->source), 'widget', ["label" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("次回から自動的にログインする")]);
  131.                 echo "
  132.                                         ";
  133.             }
  134.             // line 54
  135.             echo "                                    </label>
  136.                                 </div>
  137.                                 ";
  138.         }
  139.         // line 57
  140.         echo "                                ";
  141.         $context['_parent'] = $context;
  142.         $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.'57$this->source); })()), "session", [], "any"falsefalsetrue57), "flashbag", [], "any"falsefalsetrue57), "get", [=> "password_reset_complete"], "method"falsefalsetrue57));
  143.         foreach ($context['_seq'] as $context["_key"] => $context["reset_complete"]) {
  144.             // line 58
  145.             echo "                                    <p>";
  146.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->sandbox->ensureToStringAllowed($context["reset_complete"], 58$this->source)), "html"nulltrue);
  147.             echo "</p>
  148.                                 ";
  149.         }
  150.         $_parent $context['_parent'];
  151.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['reset_complete'], $context['_parent'], $context['loop']);
  152.         $context array_intersect_key($context$_parent) + $_parent;
  153.         // line 60
  154.         echo "                                ";
  155.         if ((isset($context["error"]) || array_key_exists("error"$context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.'60$this->source); })())) {
  156.             // line 61
  157.             echo "                                    <p class=\"ec-errorMessage\">";
  158.             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.'61$this->source); })()), "messageKey", [], "any"falsefalsetrue61), 61$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.'61$this->source); })()), "messageData", [], "any"falsefalsetrue61), 61$this->source), "validators"), "html"nulltrue));
  159.             echo "</p>
  160.                                 ";
  161.         }
  162.         // line 63
  163.         echo "                            </div>
  164.                             <div class=\"btn_area\">
  165.                                 <div class=\"ec-login__actions\">
  166.                                     <button type=\"submit\"
  167.                                             class=\"ec-blockBtn--cancel green-btn\">";
  168.         // line 67
  169.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ログイン"), "html"nulltrue);
  170.         echo "</button>
  171.                                 </div>
  172.                                 <div class=\"ec-login__link\"><a class=\"ec-link\"
  173.                                                             href=\"";
  174.         // line 70
  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>
  181.                         </div>
  182.                     </div>
  183.                     <input type=\"hidden\" name=\"_csrf_token\" value=\"";
  184.         // line 75
  185.         echo twig_escape_filter($this->env$this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("authenticate"), "html"nulltrue);
  186.         echo "\">
  187.                     <div class=\"login_area\">
  188.                         <h3 class=\"subtitle\">まだ会員登録されていないお客様</h3>
  189.                         <p class=\"inputtext\">会員登録をすると便利なMyページをご利用いただけます。<br />
  190.                             また、ログインするだけで、毎回お名前や住所などを入力することなくスムーズにお買い物をお楽しみいただけます。
  191.                         </p>
  192.                         <div class=\"inputbox\">
  193.                             <div class=\"ec-login__link btn-area one-btn\"><a class=\"ec-link wg-btn\" href=\"";
  194.         // line 84
  195.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("entry");
  196.         echo "\">会員登録をする</a></div>
  197.                         </div>
  198.                     </div>
  199.                 </form>
  200.             </div>
  201.         </div>
  202.     </div>
  203. ";
  204.         
  205.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  206.         
  207.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  208.     }
  209.     public function getTemplateName()
  210.     {
  211.         return "Mypage/login.twig";
  212.     }
  213.     public function isTraitable()
  214.     {
  215.         return false;
  216.     }
  217.     public function getDebugInfo()
  218.     {
  219.         return array (  213 => 84,  201 => 75,  191 => 70,  185 => 67,  179 => 63,  173 => 61,  170 => 60,  161 => 58,  156 => 57,  151 => 54,  145 => 52,  141 => 50,  139 => 49,  135 => 47,  133 => 46,  127 => 43,  120 => 39,  108 => 29,  105 => 28,  96 => 26,  91 => 25,  89 => 24,  85 => 23,  77 => 18,  73 => 16,  63 => 15,  52 => 11,  50 => 13,  37 => 11,);
  220.     }
  221.     public function getSourceContext()
  222.     {
  223.         return new Source("{#
  224. This file is part of EC-CUBE
  225. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  226. http://www.ec-cube.co.jp/
  227. For the full copyright and license information, please view the LICENSE
  228. file that was distributed with this source code.
  229. #}
  230. {% extends 'default_frame.twig' %}
  231. {% set body_class = 'mypage' %}
  232. {% block main %}
  233.     <div class=\"ec-role\" id=\"slidewindow\">
  234.         <div class=\"ec-pageHeader\">
  235.             <h1 class=\"mainttl\">{{ 'ログイン'|trans }}</h1>
  236.         </div>
  237.         <div id=\"undercolumn\">
  238.             <div id=\"undercolumn_login\">
  239.                 <form name=\"login_mypage\" id=\"login_mypage\" method=\"post\" action=\"{{ url('mypage_login') }}\">
  240.                     {% if app.session.flashBag.has('eccube.login.target.path') %}
  241.                         {% for targetPath in app.session.flashBag.peek('eccube.login.target.path') %}
  242.                             <input type=\"hidden\" name=\"_target_path\" value=\"{{ targetPath }}\" />
  243.                         {% endfor %}
  244.                     {% endif %}
  245.                     <div class=\"login_area\">
  246.                         <h3 class=\"subtitle\">会員登録がお済みのお客様</h3>
  247.                         <p class=\"inputtext\">会員の方は、登録時に入力されたメールアドレスとパスワードでログインしてください。</p>
  248.                         <div class=\"ec-login inputbox\">
  249.                             <div class=\"ec-login__input\">
  250.                                 <div class=\"ec-input\">
  251.                                     <dl class=\"formlist flex\">
  252.                                         <dt>メールアドレス&nbsp;:</dt>
  253.                                         <dd>{{ form_widget(form.login_email, {'attr': {'style' : 'ime-mode: disabled;', 'placeholder' : 'メールアドレス', 'autofocus': true}}) }}</dd>
  254.                                     </dl>
  255.                                     <dl class=\"formlist flex\">
  256.                                         <dt>パスワード&nbsp;:</dt>
  257.                                         <dd>{{ form_widget(form.login_pass,  {'attr': {'placeholder' : 'パスワード' }}) }}</dd>
  258.                                     </dl>
  259.                                 </div>
  260.                                 {% if BaseInfo.option_remember_me %}
  261.                                 <div class=\"ec-checkbox\">
  262.                                     <label>
  263.                                         {% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}
  264.                                             <input type=\"hidden\" name=\"login_memory\" value=\"1\">
  265.                                         {% else %}
  266.                                             {{ form_widget(form.login_memory, { 'label': '次回から自動的にログインする'|trans }) }}
  267.                                         {% endif %}
  268.                                     </label>
  269.                                 </div>
  270.                                 {% endif %}
  271.                                 {% for reset_complete in app.session.flashbag.get('password_reset_complete') %}
  272.                                     <p>{{ reset_complete|trans }}</p>
  273.                                 {% endfor %}
  274.                                 {% if error %}
  275.                                     <p class=\"ec-errorMessage\">{{ error.messageKey|trans(error.messageData, 'validators')|nl2br }}</p>
  276.                                 {% endif %}
  277.                             </div>
  278.                             <div class=\"btn_area\">
  279.                                 <div class=\"ec-login__actions\">
  280.                                     <button type=\"submit\"
  281.                                             class=\"ec-blockBtn--cancel green-btn\">{{ 'ログイン'|trans }}</button>
  282.                                 </div>
  283.                                 <div class=\"ec-login__link\"><a class=\"ec-link\"
  284.                                                             href=\"{{ url('forgot') }}\">{{ 'ログイン情報をお忘れですか?'|trans }}</a>
  285.                                 </div>
  286.                             </div>
  287.                         </div>
  288.                     </div>
  289.                     <input type=\"hidden\" name=\"_csrf_token\" value=\"{{ csrf_token('authenticate') }}\">
  290.                     <div class=\"login_area\">
  291.                         <h3 class=\"subtitle\">まだ会員登録されていないお客様</h3>
  292.                         <p class=\"inputtext\">会員登録をすると便利なMyページをご利用いただけます。<br />
  293.                             また、ログインするだけで、毎回お名前や住所などを入力することなくスムーズにお買い物をお楽しみいただけます。
  294.                         </p>
  295.                         <div class=\"inputbox\">
  296.                             <div class=\"ec-login__link btn-area one-btn\"><a class=\"ec-link wg-btn\" href=\"{{ url('entry') }}\">会員登録をする</a></div>
  297.                         </div>
  298.                     </div>
  299.                 </form>
  300.             </div>
  301.         </div>
  302.     </div>
  303. {% endblock %}
  304. ""Mypage/login.twig""/home/higashiyamashobo/www/higashiyamashobo.jpn.org/ec-cube/app/template/default/Mypage/login.twig");
  305.     }
  306.     
  307.     public function checkSecurity()
  308.     {
  309.         static $tags = array("set" => 13"if" => 24"for" => 25);
  310.         static $filters = array("escape" => 18"trans" => 18"nl2br" => 61);
  311.         static $functions = array("url" => 23"form_widget" => 39"is_granted" => 49"csrf_token" => 75);
  312.         try {
  313.             $this->sandbox->checkSecurity(
  314.                 ['set''if''for'],
  315.                 ['escape''trans''nl2br'],
  316.                 ['url''form_widget''is_granted''csrf_token']
  317.             );
  318.         } catch (SecurityError $e) {
  319.             $e->setSourceContext($this->source);
  320.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  321.                 $e->setTemplateLine($tags[$e->getTagName()]);
  322.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  323.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  324.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  325.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  326.             }
  327.             throw $e;
  328.         }
  329.     }
  330. }