var/cache/dev/twig/81/81d1b70ba2cc05b6ec31d2715b80d0c8c98e5e6780260b87e10f2de397eed787.php line 48

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_b9ddd6c5d9a8798e591cfafa833bc8608e9d0a7fae5ac39a5329f30530241c03 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.     }
  26.     protected function doGetParent(array $context)
  27.     {
  28.         // line 1
  29.         return "default_frame.twig";
  30.     }
  31.     protected function doDisplay(array $context, array $blocks = [])
  32.     {
  33.         $macros $this->macros;
  34.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Mypage/login.twig"));
  36.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Mypage/login.twig"));
  38.         $this->parent $this->loadTemplate("default_frame.twig""Mypage/login.twig"1);
  39.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  40.         
  41.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  42.         
  43.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  44.     }
  45.     // line 3
  46.     public function block_main($context, array $blocks = [])
  47.     {
  48.         $macros $this->macros;
  49.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  50.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  51.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  52.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  53.         // line 4
  54.         echo "
  55. <!-- CONTENT -->
  56.     <div class=\"ec-role\">
  57.         <div class=\"ec-pageHeader\">
  58.             <h1>";
  59.         // line 8
  60.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ログイン"), "html"nulltrue);
  61.         echo "</h1>
  62.         </div>
  63.         <div class=\"ec-off2Grid\">
  64.             <div class=\"ec-off2Grid__cell\">
  65.                 <form name=\"login_mypage\" id=\"login_mypage\" method=\"post\" action=\"";
  66.         // line 12
  67.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("mypage_login");
  68.         echo "\">
  69.                     ";
  70.         // line 13
  71.         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.'13$this->source); })()), "session", [], "any"falsefalsefalse13), "flashBag", [], "any"falsefalsefalse13), "has", [=> "eccube.login.target.path"], "method"falsefalsefalse13)) {
  72.             // line 14
  73.             echo "                        ";
  74.             $context['_parent'] = $context;
  75.             $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.'14$this->source); })()), "session", [], "any"falsefalsefalse14), "flashBag", [], "any"falsefalsefalse14), "peek", [=> "eccube.login.target.path"], "method"falsefalsefalse14));
  76.             foreach ($context['_seq'] as $context["_key"] => $context["targetPath"]) {
  77.                 // line 15
  78.                 echo "                            <input type=\"hidden\" name=\"_target_path\" value=\"";
  79.                 echo twig_escape_filter($this->env$context["targetPath"], "html"nulltrue);
  80.                 echo "\" />
  81.                         ";
  82.             }
  83.             $_parent $context['_parent'];
  84.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['targetPath'], $context['_parent'], $context['loop']);
  85.             $context array_intersect_key($context$_parent) + $_parent;
  86.             // line 17
  87.             echo "                    ";
  88.         }
  89.         // line 18
  90.         echo "                    <div class=\"ec-login\">
  91.                         <div class=\"ec-login__icon\">
  92.                             <div class=\"ec-icon\"><img src=\"";
  93.         // line 20
  94.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/user.svg"), "html"nulltrue);
  95.         echo "\" alt=\"\"></div>
  96.                         </div>
  97.                         <div class=\"ec-login__input\">
  98.                             <div class=\"ec-input\">
  99.                                 ";
  100.         // line 24
  101.         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.'24$this->source); })()), "login_email", [], "any"falsefalsefalse24), 'widget', ["attr" => ["style" => "ime-mode: disabled;""placeholder" => "メールアドレス""autofocus" => true]]);
  102.         echo "
  103.                                 ";
  104.         // line 25
  105.         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.'25$this->source); })()), "login_pass", [], "any"falsefalsefalse25), 'widget', ["attr" => ["placeholder" => "パスワード"]]);
  106.         echo "
  107.                             </div>
  108.                             ";
  109.         // line 27
  110.         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.'27$this->source); })()), "option_remember_me", [], "any"falsefalsefalse27)) {
  111.             // line 28
  112.             echo "                            <div class=\"ec-checkbox\">
  113.                                 <label>
  114.                                     ";
  115.             // line 30
  116.             if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_REMEMBERED")) {
  117.                 // line 31
  118.                 echo "                                        <input type=\"hidden\" name=\"login_memory\" value=\"1\">
  119.                                     ";
  120.             } else {
  121.                 // line 33
  122.                 echo "                                        ";
  123.                 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.'33$this->source); })()), "login_memory", [], "any"falsefalsefalse33), 'widget', ["label" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("次回から自動的にログインする")]);
  124.                 echo "
  125.                                     ";
  126.             }
  127.             // line 35
  128.             echo "                                </label>
  129.                             </div>
  130.                             ";
  131.         }
  132.         // line 38
  133.         echo "                            ";
  134.         $context['_parent'] = $context;
  135.         $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.'38$this->source); })()), "session", [], "any"falsefalsefalse38), "flashbag", [], "any"falsefalsefalse38), "get", [=> "password_reset_complete"], "method"falsefalsefalse38));
  136.         foreach ($context['_seq'] as $context["_key"] => $context["reset_complete"]) {
  137.             // line 39
  138.             echo "                                <p>";
  139.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($context["reset_complete"]), "html"nulltrue);
  140.             echo "</p>
  141.                             ";
  142.         }
  143.         $_parent $context['_parent'];
  144.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['reset_complete'], $context['_parent'], $context['loop']);
  145.         $context array_intersect_key($context$_parent) + $_parent;
  146.         // line 41
  147.         echo "                            ";
  148.         if ((isset($context["error"]) || array_key_exists("error"$context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.'41$this->source); })())) {
  149.             // line 42
  150.             echo "                                <p class=\"ec-errorMessage\">";
  151.             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.'42$this->source); })()), "messageKey", [], "any"falsefalsefalse42), 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.'42$this->source); })()), "messageData", [], "any"falsefalsefalse42), "validators"), "html"nulltrue));
  152.             echo "</p>
  153.                             ";
  154.         }
  155.         // line 44
  156.         echo "                        </div>
  157.                         <div class=\"ec-grid2\">
  158.                             <div class=\"ec-grid2__cell\">
  159.                                 <div class=\"ec-login__actions\">
  160.                                     <button type=\"submit\"
  161.                                             class=\"ec-blockBtn--cancel\">";
  162.         // line 49
  163.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ログイン"), "html"nulltrue);
  164.         echo "</button>
  165.                                 </div>
  166.                             </div>
  167.                             <div class=\"ec-grid2__cell\">
  168.                                 <div class=\"ec-login__link\"><a class=\"ec-link\"
  169.                                                                href=\"";
  170.         // line 54
  171.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("forgot");
  172.         echo "\">";
  173.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ログイン情報をお忘れですか?"), "html"nulltrue);
  174.         echo "</a>
  175.                                 </div>
  176.                                 <div class=\"ec-login__link\"><a class=\"ec-link\"
  177.                                                                href=\"";
  178.         // line 57
  179.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("entry");
  180.         echo "\">";
  181.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("新規会員登録"), "html"nulltrue);
  182.         echo "</a>
  183.                                 </div>
  184.                             </div>
  185.                         </div>
  186.                     </div>
  187.                     <input type=\"hidden\" name=\"_csrf_token\" value=\"";
  188.         // line 62
  189.         echo twig_escape_filter($this->env$this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("authenticate"), "html"nulltrue);
  190.         echo "\">
  191.                 </form>
  192.             </div>
  193.         </div>
  194.     </div>
  195. <!-- /CONTENT -->
  196. ";
  197.         
  198.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  199.         
  200.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  201.     }
  202.     public function getTemplateName()
  203.     {
  204.         return "Mypage/login.twig";
  205.     }
  206.     public function isTraitable()
  207.     {
  208.         return false;
  209.     }
  210.     public function getDebugInfo()
  211.     {
  212.         return array (  203 => 62,  193 => 57,  185 => 54,  177 => 49,  170 => 44,  164 => 42,  161 => 41,  152 => 39,  147 => 38,  142 => 35,  136 => 33,  132 => 31,  130 => 30,  126 => 28,  124 => 27,  119 => 25,  115 => 24,  108 => 20,  104 => 18,  101 => 17,  92 => 15,  87 => 14,  85 => 13,  81 => 12,  74 => 8,  68 => 4,  58 => 3,  35 => 1,);
  213.     }
  214.     public function getSourceContext()
  215.     {
  216.         return new Source("{% extends 'default_frame.twig' %}
  217. {% block main %}
  218. <!-- CONTENT -->
  219.     <div class=\"ec-role\">
  220.         <div class=\"ec-pageHeader\">
  221.             <h1>{{ 'ログイン'|trans }}</h1>
  222.         </div>
  223.         <div class=\"ec-off2Grid\">
  224.             <div class=\"ec-off2Grid__cell\">
  225.                 <form name=\"login_mypage\" id=\"login_mypage\" method=\"post\" action=\"{{ url('mypage_login') }}\">
  226.                     {% if app.session.flashBag.has('eccube.login.target.path') %}
  227.                         {% for targetPath in app.session.flashBag.peek('eccube.login.target.path') %}
  228.                             <input type=\"hidden\" name=\"_target_path\" value=\"{{ targetPath }}\" />
  229.                         {% endfor %}
  230.                     {% endif %}
  231.                     <div class=\"ec-login\">
  232.                         <div class=\"ec-login__icon\">
  233.                             <div class=\"ec-icon\"><img src=\"{{ asset('assets/icon/user.svg') }}\" alt=\"\"></div>
  234.                         </div>
  235.                         <div class=\"ec-login__input\">
  236.                             <div class=\"ec-input\">
  237.                                 {{ form_widget(form.login_email, {'attr': {'style' : 'ime-mode: disabled;', 'placeholder' : 'メールアドレス', 'autofocus': true}}) }}
  238.                                 {{ form_widget(form.login_pass,  {'attr': {'placeholder' : 'パスワード' }}) }}
  239.                             </div>
  240.                             {% if BaseInfo.option_remember_me %}
  241.                             <div class=\"ec-checkbox\">
  242.                                 <label>
  243.                                     {% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}
  244.                                         <input type=\"hidden\" name=\"login_memory\" value=\"1\">
  245.                                     {% else %}
  246.                                         {{ form_widget(form.login_memory, { 'label': '次回から自動的にログインする'|trans }) }}
  247.                                     {% endif %}
  248.                                 </label>
  249.                             </div>
  250.                             {% endif %}
  251.                             {% for reset_complete in app.session.flashbag.get('password_reset_complete') %}
  252.                                 <p>{{ reset_complete|trans }}</p>
  253.                             {% endfor %}
  254.                             {% if error %}
  255.                                 <p class=\"ec-errorMessage\">{{ error.messageKey|trans(error.messageData, 'validators')|nl2br }}</p>
  256.                             {% endif %}
  257.                         </div>
  258.                         <div class=\"ec-grid2\">
  259.                             <div class=\"ec-grid2__cell\">
  260.                                 <div class=\"ec-login__actions\">
  261.                                     <button type=\"submit\"
  262.                                             class=\"ec-blockBtn--cancel\">{{ 'ログイン'|trans }}</button>
  263.                                 </div>
  264.                             </div>
  265.                             <div class=\"ec-grid2__cell\">
  266.                                 <div class=\"ec-login__link\"><a class=\"ec-link\"
  267.                                                                href=\"{{ url('forgot') }}\">{{ 'ログイン情報をお忘れですか?'|trans }}</a>
  268.                                 </div>
  269.                                 <div class=\"ec-login__link\"><a class=\"ec-link\"
  270.                                                                href=\"{{ url('entry') }}\">{{ '新規会員登録'|trans }}</a>
  271.                                 </div>
  272.                             </div>
  273.                         </div>
  274.                     </div>
  275.                     <input type=\"hidden\" name=\"_csrf_token\" value=\"{{ csrf_token('authenticate') }}\">
  276.                 </form>
  277.             </div>
  278.         </div>
  279.     </div>
  280. <!-- /CONTENT -->
  281. {% endblock %}""Mypage/login.twig""/home/hiniaratest/test-page.website/public_html/nagae-hanko.test-page.website/app/template/default/Mypage/login.twig");
  282.     }
  283. }