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