var/cache/dev/twig/4f/4f39e665da5ef19991e8c98003e9f278.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_06d0d0a677214bb112143018db6c87c9 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 1
  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 3
  41.         $context["body_id"] = "mypage";
  42.         // line 1
  43.         $this->parent $this->loadTemplate("default_frame.twig""Mypage/login.twig"1);
  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 5
  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 6
  59.         echo "<div class=\"main_ttl_wrap\">
  60.     <h2 class=\"main_ttl\">ログイン</h2>
  61. </div>
  62. <div>
  63.     <form name=\"login_mypage\" id=\"login_mypage\" method=\"post\" action=\"";
  64.         // line 10
  65.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("mypage_login");
  66.         echo "\">
  67.         ";
  68.         // line 11
  69.         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.'11$this->source); })()), "session", [], "any"falsefalsetrue11), "flashBag", [], "any"falsefalsetrue11), "has", [=> "eccube.login.target.path"], "method"falsefalsetrue11)) {
  70.             // line 12
  71.             echo "            ";
  72.             $context['_parent'] = $context;
  73.             $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.'12$this->source); })()), "session", [], "any"falsefalsetrue12), "flashBag", [], "any"falsefalsetrue12), "peek", [=> "eccube.login.target.path"], "method"falsefalsetrue12));
  74.             foreach ($context['_seq'] as $context["_key"] => $context["targetPath"]) {
  75.                 // line 13
  76.                 echo "                <input type=\"hidden\" name=\"_target_path\" value=\"";
  77.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed($context["targetPath"], 13$this->source), "html"nulltrue);
  78.                 echo "\" />
  79.             ";
  80.             }
  81.             $_parent $context['_parent'];
  82.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['targetPath'], $context['_parent'], $context['loop']);
  83.             $context array_intersect_key($context$_parent) + $_parent;
  84.             // line 15
  85.             echo "        ";
  86.         }
  87.         // line 16
  88.         echo "        <div class=\"ec-login\">
  89.             <div class=\"ec-login__icon\">
  90.                 <div class=\"ec-icon\"><img src=\"";
  91.         // line 18
  92.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/user.svg"), "html"nulltrue);
  93.         echo "\" alt=\"\"></div>
  94.             </div>
  95.             <div class=\"ec-login__input\">
  96.                 <div class=\"ec-input\">
  97.                     ";
  98.         // line 22
  99.         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.'22$this->source); })()), "login_email", [], "any"falsefalsetrue22), 22$this->source), 'widget', ["attr" => ["style" => "ime-mode: disabled;""placeholder" => "メールアドレス""autofocus" => true]]);
  100.         echo "
  101.                     ";
  102.         // line 23
  103.         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.'23$this->source); })()), "login_pass", [], "any"falsefalsetrue23), 23$this->source), 'widget', ["attr" => ["placeholder" => "パスワード"]]);
  104.         echo "
  105.                 </div>
  106.                 ";
  107.         // line 25
  108.         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.'25$this->source); })()), "option_remember_me", [], "any"falsefalsetrue25)) {
  109.             // line 26
  110.             echo "                <div class=\"ec-checkbox\">
  111.                     <label>
  112.                         ";
  113.             // line 28
  114.             if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_REMEMBERED")) {
  115.                 // line 29
  116.                 echo "                            <input type=\"hidden\" name=\"login_memory\" value=\"1\">
  117.                         ";
  118.             } else {
  119.                 // line 31
  120.                 echo "                            ";
  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.'31$this->source); })()), "login_memory", [], "any"falsefalsetrue31), 31$this->source), 'widget', ["label" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("次回から自動的にログインする")]);
  122.                 echo "
  123.                         ";
  124.             }
  125.             // line 33
  126.             echo "                    </label>
  127.                 </div>
  128.                 ";
  129.         }
  130.         // line 36
  131.         echo "                ";
  132.         $context['_parent'] = $context;
  133.         $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.'36$this->source); })()), "session", [], "any"falsefalsetrue36), "flashbag", [], "any"falsefalsetrue36), "get", [=> "password_reset_complete"], "method"falsefalsetrue36));
  134.         foreach ($context['_seq'] as $context["_key"] => $context["reset_complete"]) {
  135.             // line 37
  136.             echo "                    <p>";
  137.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->sandbox->ensureToStringAllowed($context["reset_complete"], 37$this->source)), "html"nulltrue);
  138.             echo "</p>
  139.                 ";
  140.         }
  141.         $_parent $context['_parent'];
  142.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['reset_complete'], $context['_parent'], $context['loop']);
  143.         $context array_intersect_key($context$_parent) + $_parent;
  144.         // line 39
  145.         echo "                ";
  146.         if ((isset($context["error"]) || array_key_exists("error"$context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.'39$this->source); })())) {
  147.             // line 40
  148.             echo "                    <p class=\"ec-errorMessage\">";
  149.             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.'40$this->source); })()), "messageKey", [], "any"falsefalsetrue40), 40$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.'40$this->source); })()), "messageData", [], "any"falsefalsetrue40), 40$this->source), "validators"), "html"nulltrue));
  150.             echo "</p>
  151.                 ";
  152.         }
  153.         // line 42
  154.         echo "            </div>
  155.             <div class=\"ec-grid2\">
  156.                 <div class=\"ec-grid2__cell\">
  157.                     <div class=\"ec-login__actions\">
  158.                         <button type=\"submit\"
  159.                                 class=\"action_btn btn no_arrow\">";
  160.         // line 47
  161.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ログイン"), "html"nulltrue);
  162.         echo "</button>
  163.                     </div>
  164.                 </div>
  165.                 <div class=\"ec-grid2__cell\">
  166.                     <div class=\"ec-login__link\"><a class=\"ec-link\"
  167.                                                    href=\"";
  168.         // line 52
  169.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("forgot");
  170.         echo "\">";
  171.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ログイン情報をお忘れですか?"), "html"nulltrue);
  172.         echo "</a>
  173.                     </div>
  174.                     <div class=\"ec-login__link\"><a class=\"ec-link\"
  175.                                                    href=\"";
  176.         // line 55
  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.                 </div>
  183.             </div>
  184.         </div>
  185.         <input type=\"hidden\" name=\"_csrf_token\" value=\"";
  186.         // line 60
  187.         echo twig_escape_filter($this->env$this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("authenticate"), "html"nulltrue);
  188.         echo "\">
  189.     </form>
  190. </div>
  191. ";
  192.         
  193.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  194.         
  195.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  196.     }
  197.     public function getTemplateName()
  198.     {
  199.         return "Mypage/login.twig";
  200.     }
  201.     public function isTraitable()
  202.     {
  203.         return false;
  204.     }
  205.     public function getDebugInfo()
  206.     {
  207.         return array (  201 => 60,  191 => 55,  183 => 52,  175 => 47,  168 => 42,  162 => 40,  159 => 39,  150 => 37,  145 => 36,  140 => 33,  134 => 31,  130 => 29,  128 => 28,  124 => 26,  122 => 25,  117 => 23,  113 => 22,  106 => 18,  102 => 16,  99 => 15,  90 => 13,  85 => 12,  83 => 11,  79 => 10,  73 => 6,  63 => 5,  52 => 1,  50 => 3,  37 => 1,);
  208.     }
  209.     public function getSourceContext()
  210.     {
  211.         return new Source("{% extends 'default_frame.twig' %}
  212. {% set body_id = 'mypage' %}
  213. {% block main %}
  214. <div class=\"main_ttl_wrap\">
  215.     <h2 class=\"main_ttl\">ログイン</h2>
  216. </div>
  217. <div>
  218.     <form name=\"login_mypage\" id=\"login_mypage\" method=\"post\" action=\"{{ url('mypage_login') }}\">
  219.         {% if app.session.flashBag.has('eccube.login.target.path') %}
  220.             {% for targetPath in app.session.flashBag.peek('eccube.login.target.path') %}
  221.                 <input type=\"hidden\" name=\"_target_path\" value=\"{{ targetPath }}\" />
  222.             {% endfor %}
  223.         {% endif %}
  224.         <div class=\"ec-login\">
  225.             <div class=\"ec-login__icon\">
  226.                 <div class=\"ec-icon\"><img src=\"{{ asset('assets/icon/user.svg') }}\" alt=\"\"></div>
  227.             </div>
  228.             <div class=\"ec-login__input\">
  229.                 <div class=\"ec-input\">
  230.                     {{ form_widget(form.login_email, {'attr': {'style' : 'ime-mode: disabled;', 'placeholder' : 'メールアドレス', 'autofocus': true}}) }}
  231.                     {{ form_widget(form.login_pass,  {'attr': {'placeholder' : 'パスワード' }}) }}
  232.                 </div>
  233.                 {% if BaseInfo.option_remember_me %}
  234.                 <div class=\"ec-checkbox\">
  235.                     <label>
  236.                         {% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}
  237.                             <input type=\"hidden\" name=\"login_memory\" value=\"1\">
  238.                         {% else %}
  239.                             {{ form_widget(form.login_memory, { 'label': '次回から自動的にログインする'|trans }) }}
  240.                         {% endif %}
  241.                     </label>
  242.                 </div>
  243.                 {% endif %}
  244.                 {% for reset_complete in app.session.flashbag.get('password_reset_complete') %}
  245.                     <p>{{ reset_complete|trans }}</p>
  246.                 {% endfor %}
  247.                 {% if error %}
  248.                     <p class=\"ec-errorMessage\">{{ error.messageKey|trans(error.messageData, 'validators')|nl2br }}</p>
  249.                 {% endif %}
  250.             </div>
  251.             <div class=\"ec-grid2\">
  252.                 <div class=\"ec-grid2__cell\">
  253.                     <div class=\"ec-login__actions\">
  254.                         <button type=\"submit\"
  255.                                 class=\"action_btn btn no_arrow\">{{ 'ログイン'|trans }}</button>
  256.                     </div>
  257.                 </div>
  258.                 <div class=\"ec-grid2__cell\">
  259.                     <div class=\"ec-login__link\"><a class=\"ec-link\"
  260.                                                    href=\"{{ url('forgot') }}\">{{ 'ログイン情報をお忘れですか?'|trans }}</a>
  261.                     </div>
  262.                     <div class=\"ec-login__link\"><a class=\"ec-link\"
  263.                                                    href=\"{{ url('entry') }}\">{{ '新規会員登録'|trans }}</a>
  264.                     </div>
  265.                 </div>
  266.             </div>
  267.         </div>
  268.         <input type=\"hidden\" name=\"_csrf_token\" value=\"{{ csrf_token('authenticate') }}\">
  269.     </form>
  270. </div>
  271. {% endblock %}
  272. ""Mypage/login.twig""/home/hr67ekh16/u-arts-mirror.jp/public_html/app/template/uarts/Mypage/login.twig");
  273.     }
  274.     
  275.     public function checkSecurity()
  276.     {
  277.         static $tags = array("set" => 3"if" => 11"for" => 12);
  278.         static $filters = array("escape" => 13"trans" => 31"nl2br" => 40);
  279.         static $functions = array("url" => 10"asset" => 18"form_widget" => 22"is_granted" => 28"csrf_token" => 60);
  280.         try {
  281.             $this->sandbox->checkSecurity(
  282.                 ['set''if''for'],
  283.                 ['escape''trans''nl2br'],
  284.                 ['url''asset''form_widget''is_granted''csrf_token']
  285.             );
  286.         } catch (SecurityError $e) {
  287.             $e->setSourceContext($this->source);
  288.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  289.                 $e->setTemplateLine($tags[$e->getTagName()]);
  290.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  291.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  292.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  293.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  294.             }
  295.             throw $e;
  296.         }
  297.     }
  298. }