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