var/cache/dev/twig/4e/4ec9a926a08882624cf16c70982c7ff7.php line 51

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_afadde211c9bc4ff062fa3d7fd8f7581 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.     }
  26.     protected function doGetParent(array $context)
  27.     {
  28.         // line 11
  29.         return "default_frame.twig";
  30.     }
  31.     protected function doDisplay(array $context, array $blocks = [])
  32.     {
  33.         $macros $this->macros;
  34.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Mypage/login.twig"));
  36.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Mypage/login.twig"));
  38.         // line 13
  39.         $context["body_class"] = "mypage";
  40.         // line 11
  41.         $this->parent $this->loadTemplate("default_frame.twig""Mypage/login.twig"11);
  42.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  43.         
  44.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  45.         
  46.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  47.     }
  48.     // line 15
  49.     public function block_main($context, array $blocks = [])
  50.     {
  51.         $macros $this->macros;
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  53.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  55.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  56.         // line 16
  57.         echo "    <div class=\"ec-role\">
  58.         <div class=\"ec-off2Grid\">
  59.             <div class=\"ec-off2Grid__cell\">
  60.                 <form name=\"login_mypage\" id=\"login_mypage\" method=\"post\" action=\"";
  61.         // line 19
  62.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("mypage_login");
  63.         echo "\">
  64.                     ";
  65.         // line 20
  66.         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.'20$this->source); })()), "session", [], "any"falsefalsefalse20), "flashBag", [], "any"falsefalsefalse20), "has", [=> "eccube.login.target.path"], "method"falsefalsefalse20)) {
  67.             // line 21
  68.             echo "                        ";
  69.             $context['_parent'] = $context;
  70.             $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.'21$this->source); })()), "session", [], "any"falsefalsefalse21), "flashBag", [], "any"falsefalsefalse21), "peek", [=> "eccube.login.target.path"], "method"falsefalsefalse21));
  71.             foreach ($context['_seq'] as $context["_key"] => $context["targetPath"]) {
  72.                 // line 22
  73.                 echo "                            <input type=\"hidden\" name=\"_target_path\" value=\"";
  74.                 echo twig_escape_filter($this->env$context["targetPath"], "html"nulltrue);
  75.                 echo "\" />
  76.                         ";
  77.             }
  78.             $_parent $context['_parent'];
  79.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['targetPath'], $context['_parent'], $context['loop']);
  80.             $context array_intersect_key($context$_parent) + $_parent;
  81.             // line 24
  82.             echo "                    ";
  83.         }
  84.         // line 25
  85.         echo "                    <div class=\"ec-login\">
  86.                         <div class=\"ec-login__icon\">
  87.                             <div class=\"ec-icon\"><img src=\"";
  88.         // line 27
  89.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/user.svg"), "html"nulltrue);
  90.         echo "\" alt=\"\"></div>
  91.                         </div>
  92.                         <div class=\"ec-login__input\">
  93.                             <div class=\"ec-input\">
  94.                                 <div class=\"ec-input__unit\">
  95.                                     ";
  96.         // line 32
  97.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(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.'32$this->source); })()), "login_email", [], "any"falsefalsefalse32), 'widget', ["attr" => ["style" => "ime-mode: disabled;""autofocus" => true]]);
  98.         echo "
  99.                                     <label for=\"login_email\" class=\"ec-input__placeholder\">メールアドレス</label>
  100.                                 </div>
  101.                                 <div class=\"ec-input__unit\">
  102.                                     ";
  103.         // line 36
  104.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(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"falsefalsefalse36), 'widget', ["attr" => ["autocomplete" => "new-password"]]);
  105.         echo "
  106.                                     <label for=\"login_pass\" class=\"ec-input__placeholder\">パスワード</label>
  107.                                 </div>
  108.                             </div>
  109.                             ";
  110.         // line 40
  111.         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"falsefalsefalse40)) {
  112.             // line 41
  113.             echo "                            <div class=\"ec-checkbox ec-acceptance\">
  114.                                 <div class=\"ec-acceptance__unit\">
  115.                                     ";
  116.             // line 43
  117.             if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_REMEMBERED")) {
  118.                 // line 44
  119.                 echo "                                        <input type=\"hidden\" name=\"login_memory\" value=\"1\">
  120.                                     ";
  121.             } else {
  122.                 // line 46
  123.                 echo "                                        ";
  124.                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(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.'46$this->source); })()), "login_memory", [], "any"falsefalsefalse46), 'widget', ["label" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("次回から自動的にログインする")]);
  125.                 echo "
  126.                                     ";
  127.             }
  128.             // line 48
  129.             echo "                                </div>
  130.                             </div>
  131.                             ";
  132.         }
  133.         // line 51
  134.         echo "                            ";
  135.         $context['_parent'] = $context;
  136.         $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.'51$this->source); })()), "session", [], "any"falsefalsefalse51), "flashbag", [], "any"falsefalsefalse51), "get", [=> "password_reset_complete"], "method"falsefalsefalse51));
  137.         foreach ($context['_seq'] as $context["_key"] => $context["reset_complete"]) {
  138.             // line 52
  139.             echo "                                <p>";
  140.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($context["reset_complete"]), "html"nulltrue);
  141.             echo "</p>
  142.                             ";
  143.         }
  144.         $_parent $context['_parent'];
  145.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['reset_complete'], $context['_parent'], $context['loop']);
  146.         $context array_intersect_key($context$_parent) + $_parent;
  147.         // line 54
  148.         echo "                            ";
  149.         if ((isset($context["error"]) || array_key_exists("error"$context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.'54$this->source); })())) {
  150.             // line 55
  151.             echo "                                <p class=\"ec-errorMessage\">";
  152.             echo twig_nl2br(twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(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.'55$this->source); })()), "messageKey", [], "any"falsefalsefalse55), 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.'55$this->source); })()), "messageData", [], "any"falsefalsefalse55), "validators"), "html"nulltrue));
  153.             echo "</p>
  154.                             ";
  155.         }
  156.         // line 57
  157.         echo "                        </div>
  158.                         <div class=\"ec-off3Grid\">
  159.                             <div class=\"ec-off3Grid__cell\">
  160.                                 <div class=\"ec-login__actions\">
  161.                                     <button type=\"submit\" class=\"ec-blockBtn--login\">";
  162.         // line 61
  163.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ログイン"), "html"nulltrue);
  164.         echo "</button>
  165.                                     <span class=\"ec-login__text\">または</span>
  166.                                     <a class=\"ec-blockBtn--entry\" href=\"";
  167.         // line 63
  168.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("entry");
  169.         echo "\">";
  170.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("会員登録"), "html"nulltrue);
  171.         echo "</a>
  172.                                 </div>
  173.                             </div>
  174.                         </div>
  175.                         <div class=\"ec-login__link\">
  176.                             <a class=\"ec-link\" href=\"";
  177.         // line 68
  178.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("forgot");
  179.         echo "\">";
  180.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ログイン情報をお忘れですか?"), "html"nulltrue);
  181.         echo "</a>
  182.                         </div>
  183.                     </div>
  184.                     <input type=\"hidden\" name=\"_csrf_token\" value=\"";
  185.         // line 71
  186.         echo twig_escape_filter($this->env$this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("authenticate"), "html"nulltrue);
  187.         echo "\">
  188.                 </form>
  189.             </div>
  190.         </div>
  191.     </div>
  192. ";
  193.         
  194.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  195.         
  196.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  197.     }
  198.     public function getTemplateName()
  199.     {
  200.         return "Mypage/login.twig";
  201.     }
  202.     public function isTraitable()
  203.     {
  204.         return false;
  205.     }
  206.     public function getDebugInfo()
  207.     {
  208.         return array (  200 => 71,  192 => 68,  182 => 63,  177 => 61,  171 => 57,  165 => 55,  162 => 54,  153 => 52,  148 => 51,  143 => 48,  137 => 46,  133 => 44,  131 => 43,  127 => 41,  125 => 40,  118 => 36,  111 => 32,  103 => 27,  99 => 25,  96 => 24,  87 => 22,  82 => 21,  80 => 20,  76 => 19,  71 => 16,  61 => 15,  50 => 11,  48 => 13,  35 => 11,);
  209.     }
  210.     public function getSourceContext()
  211.     {
  212.         return new Source("{#
  213. This file is part of EC-CUBE
  214. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  215. http://www.ec-cube.co.jp/
  216. For the full copyright and license information, please view the LICENSE
  217. file that was distributed with this source code.
  218. #}
  219. {% extends 'default_frame.twig' %}
  220. {% set body_class = 'mypage' %}
  221. {% block main %}
  222.     <div class=\"ec-role\">
  223.         <div class=\"ec-off2Grid\">
  224.             <div class=\"ec-off2Grid__cell\">
  225.                 <form name=\"login_mypage\" id=\"login_mypage\" method=\"post\" action=\"{{ url('mypage_login') }}\">
  226.                     {% if app.session.flashBag.has('eccube.login.target.path') %}
  227.                         {% for targetPath in app.session.flashBag.peek('eccube.login.target.path') %}
  228.                             <input type=\"hidden\" name=\"_target_path\" value=\"{{ targetPath }}\" />
  229.                         {% endfor %}
  230.                     {% endif %}
  231.                     <div class=\"ec-login\">
  232.                         <div class=\"ec-login__icon\">
  233.                             <div class=\"ec-icon\"><img src=\"{{ asset('assets/icon/user.svg') }}\" alt=\"\"></div>
  234.                         </div>
  235.                         <div class=\"ec-login__input\">
  236.                             <div class=\"ec-input\">
  237.                                 <div class=\"ec-input__unit\">
  238.                                     {{ form_widget(form.login_email, {'attr': {'style': 'ime-mode: disabled;', 'autofocus': true}}) }}
  239.                                     <label for=\"login_email\" class=\"ec-input__placeholder\">メールアドレス</label>
  240.                                 </div>
  241.                                 <div class=\"ec-input__unit\">
  242.                                     {{ form_widget(form.login_pass, {'attr': {'autocomplete': 'new-password'}}) }}
  243.                                     <label for=\"login_pass\" class=\"ec-input__placeholder\">パスワード</label>
  244.                                 </div>
  245.                             </div>
  246.                             {% if BaseInfo.option_remember_me %}
  247.                             <div class=\"ec-checkbox ec-acceptance\">
  248.                                 <div class=\"ec-acceptance__unit\">
  249.                                     {% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}
  250.                                         <input type=\"hidden\" name=\"login_memory\" value=\"1\">
  251.                                     {% else %}
  252.                                         {{ form_widget(form.login_memory, { 'label': '次回から自動的にログインする'|trans }) }}
  253.                                     {% endif %}
  254.                                 </div>
  255.                             </div>
  256.                             {% endif %}
  257.                             {% for reset_complete in app.session.flashbag.get('password_reset_complete') %}
  258.                                 <p>{{ reset_complete|trans }}</p>
  259.                             {% endfor %}
  260.                             {% if error %}
  261.                                 <p class=\"ec-errorMessage\">{{ error.messageKey|trans(error.messageData, 'validators')|nl2br }}</p>
  262.                             {% endif %}
  263.                         </div>
  264.                         <div class=\"ec-off3Grid\">
  265.                             <div class=\"ec-off3Grid__cell\">
  266.                                 <div class=\"ec-login__actions\">
  267.                                     <button type=\"submit\" class=\"ec-blockBtn--login\">{{ 'ログイン'|trans }}</button>
  268.                                     <span class=\"ec-login__text\">または</span>
  269.                                     <a class=\"ec-blockBtn--entry\" href=\"{{ url('entry') }}\">{{ '会員登録'|trans }}</a>
  270.                                 </div>
  271.                             </div>
  272.                         </div>
  273.                         <div class=\"ec-login__link\">
  274.                             <a class=\"ec-link\" href=\"{{ url('forgot') }}\">{{ 'ログイン情報をお忘れですか?'|trans }}</a>
  275.                         </div>
  276.                     </div>
  277.                     <input type=\"hidden\" name=\"_csrf_token\" value=\"{{ csrf_token('authenticate') }}\">
  278.                 </form>
  279.             </div>
  280.         </div>
  281.     </div>
  282. {% endblock %}""Mypage/login.twig""/home/xs362797/pin-dev.net/public_html/magamar/app/template/magamar/Mypage/login.twig");
  283.     }
  284. }