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