var/cache/dev/twig/b4/b40022ef1f6c0bbbebffa51d7e6a1ff2.php line 41

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