var/cache/dev/twig/38/38616dd562d17f66eb0ce54ca8e67029.php line 52

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