var/cache/dev/twig/66/66eb16acd0e55d97332c017860cb3b2e.php line 51

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_84071e406ea7942d204dcae57a3cb7c8 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 11
  29.         return "default_frame.twig";
  30.     }
  31.     protected function doDisplay(array $context, array $blocks = [])
  32.     {
  33.         $macros $this->macros;
  34.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Mypage/login.twig"));
  36.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Mypage/login.twig"));
  38.         // line 13
  39.         $context["body_class"] = "mypage";
  40.         // line 11
  41.         $this->parent $this->loadTemplate("default_frame.twig""Mypage/login.twig"11);
  42.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  43.         
  44.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  45.         
  46.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  47.     }
  48.     // line 15
  49.     public function block_main($context, array $blocks = [])
  50.     {
  51.         $macros $this->macros;
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  53.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  55.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  56.         // line 16
  57.         echo "    <h1 class=\"page-heading\">ログイン</h1>
  58.     <div class=\"container-fluid\">
  59.         <form name=\"login_mypage\" id=\"login_mypage\" method=\"post\" action=\"";
  60.         // line 18
  61.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("mypage_login");
  62.         echo "\">
  63.             ";
  64.         // line 20
  65.         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.'20$this->source); })()), "session", [], "any"falsefalsefalse20), "flashBag", [], "any"falsefalsefalse20), "has", [=> "eccube.login.target.path"], "method"falsefalsefalse20)) {
  66.             // line 21
  67.             echo "                ";
  68.             $context['_parent'] = $context;
  69.             $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.'21$this->source); })()), "session", [], "any"falsefalsefalse21), "flashBag", [], "any"falsefalsefalse21), "peek", [=> "eccube.login.target.path"], "method"falsefalsefalse21));
  70.             foreach ($context['_seq'] as $context["_key"] => $context["targetPath"]) {
  71.                 // line 22
  72.                 echo "                    <input type=\"hidden\" name=\"_target_path\" value=\"";
  73.                 echo twig_escape_filter($this->env$context["targetPath"], "html"nulltrue);
  74.                 echo "\" />
  75.                 ";
  76.             }
  77.             $_parent $context['_parent'];
  78.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['targetPath'], $context['_parent'], $context['loop']);
  79.             $context array_intersect_key($context$_parent) + $_parent;
  80.             // line 24
  81.             echo "            ";
  82.         }
  83.         // line 25
  84.         echo "            <div id=\"login_box\" class=\"row\">
  85.                 <div id=\"mypage_login_wrap\" class=\"col-sm-8 col-sm-offset-2\">
  86.                     <div id=\"mypage_login_box\" class=\"column\">
  87.                         <div id=\"mypage_login_box__body\" class=\"column_inner clearfix\">
  88.                             <div class=\"icon\"><svg class=\"cb cb-user-circle\"><use xlink:href=\"#cb-user-circle\" /></svg></div>
  89.                             <div id=\"mypage_login_box__login_email\" class=\"form-group\">
  90.                                 ";
  91.         // line 31
  92.         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.'31$this->source); })()), "login_email", [], "any"falsefalsefalse31), 'widget', ["attr" => ["style" => "ime-mode: disabled;""placeholder" => "メールアドレス""autofocus" => true]]);
  93.         echo "
  94.                             </div>
  95.                             <div id=\"mypage_login_box__login_pass\" class=\"form-group\">
  96.                                 ";
  97.         // line 34
  98.         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.'34$this->source); })()), "login_pass", [], "any"falsefalsefalse34), 'widget', ["attr" => ["placeholder" => "パスワード"]]);
  99.         echo "
  100.                                 ";
  101.         // line 35
  102.         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.'35$this->source); })()), "option_remember_me", [], "any"falsefalsefalse35)) {
  103.             // line 36
  104.             echo "                                    ";
  105.             if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_REMEMBERED")) {
  106.                 // line 37
  107.                 echo "                                        <input id=\"mypage_login_box__login_memory\" type=\"hidden\" name=\"login_memory\" value=\"1\">
  108.                                     ";
  109.             } else {
  110.                 // line 39
  111.                 echo "                                        ";
  112.                 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.'39$this->source); })()), "login_memory", [], "any"falsefalsefalse39), 'widget', ["label" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("次回から自動的にログインする")]);
  113.                 echo "
  114.                                     ";
  115.             }
  116.             // line 41
  117.             echo "                                ";
  118.         }
  119.         // line 42
  120.         echo "                            </div>
  121.                             <div class=\"extra-form form-group\">
  122.                                 ";
  123.         // line 44
  124.         $context['_parent'] = $context;
  125.         $context['_seq'] = twig_ensure_traversable(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.'44$this->source); })()), "getIterator", [], "any"falsefalsefalse44));
  126.         foreach ($context['_seq'] as $context["_key"] => $context["f"]) {
  127.             // line 45
  128.             echo "                                    ";
  129.             if (preg_match("[^plg*]"twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["f"], "vars", [], "any"falsefalsefalse45), "name", [], "any"falsefalsefalse45))) {
  130.                 // line 46
  131.                 echo "                                        ";
  132.                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($context["f"], 'label');
  133.                 echo "
  134.                                         ";
  135.                 // line 47
  136.                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($context["f"], 'widget');
  137.                 echo "
  138.                                         ";
  139.                 // line 48
  140.                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($context["f"], 'errors');
  141.                 echo "
  142.                                     ";
  143.             }
  144.             // line 50
  145.             echo "                                ";
  146.         }
  147.         $_parent $context['_parent'];
  148.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['f'], $context['_parent'], $context['loop']);
  149.         $context array_intersect_key($context$_parent) + $_parent;
  150.         // line 51
  151.         echo "                            </div>
  152.                             ";
  153.         // line 52
  154.         if ((isset($context["error"]) || array_key_exists("error"$context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.'52$this->source); })())) {
  155.             // line 53
  156.             echo "                                <div id=\"mypage_login_box__error_message\" class=\"form-group\">
  157.                                     <span class=\"text-danger\">";
  158.             // line 54
  159.             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.'54$this->source); })()), "messageKey", [], "any"falsefalsefalse54), 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.'54$this->source); })()), "messageData", [], "any"falsefalsefalse54), "validators"), "html"nulltrue));
  160.             echo "</span>
  161.                                 </div>
  162.                             ";
  163.         }
  164.         // line 57
  165.         echo "                            <div id=\"mypage_login__login_button\" class=\"btn_area\">
  166.                                 <p><button type=\"submit\" class=\"btn btn-info btn-block btn-lg\">ログイン</button></p>
  167.                                 <ul id=\"mypage_login__login_menu\" >
  168.                                     <li><a href=\"";
  169.         // line 60
  170.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("forgot");
  171.         echo "\">ログイン情報をお忘れですか?</a></li>
  172.                                     <li><a href=\"";
  173.         // line 61
  174.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("entry");
  175.         echo "\">新規会員登録</a></li>
  176.                                 </ul>
  177.                             </div>
  178.                         </div>
  179.                     </div>
  180.                 </div>
  181.             </div>
  182.             <input type=\"hidden\" name=\"_csrf_token\" value=\"";
  183.         // line 68
  184.         echo twig_escape_filter($this->env$this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("authenticate"), "html"nulltrue);
  185.         echo "\">
  186.         </form>
  187.     </div>
  188. ";
  189.         
  190.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  191.         
  192.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  193.     }
  194.     public function getTemplateName()
  195.     {
  196.         return "Mypage/login.twig";
  197.     }
  198.     public function isTraitable()
  199.     {
  200.         return false;
  201.     }
  202.     public function getDebugInfo()
  203.     {
  204.         return array (  199 => 68,  189 => 61,  185 => 60,  180 => 57,  174 => 54,  171 => 53,  169 => 52,  166 => 51,  160 => 50,  155 => 48,  151 => 47,  146 => 46,  143 => 45,  139 => 44,  135 => 42,  132 => 41,  126 => 39,  122 => 37,  119 => 36,  117 => 35,  113 => 34,  107 => 31,  99 => 25,  96 => 24,  87 => 22,  82 => 21,  80 => 20,  75 => 18,  71 => 16,  61 => 15,  50 => 11,  48 => 13,  35 => 11,);
  205.     }
  206.     public function getSourceContext()
  207.     {
  208.         return new Source("{#
  209. This file is part of EC-CUBE
  210. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  211. http://www.ec-cube.co.jp/
  212. For the full copyright and license information, please view the LICENSE
  213. file that was distributed with this source code.
  214. #}
  215. {% extends 'default_frame.twig' %}
  216. {% set body_class = 'mypage' %}
  217. {% block main %}
  218.     <h1 class=\"page-heading\">ログイン</h1>
  219.     <div class=\"container-fluid\">
  220.         <form name=\"login_mypage\" id=\"login_mypage\" method=\"post\" action=\"{{ url('mypage_login') }}\">
  221.             {% if app.session.flashBag.has('eccube.login.target.path') %}
  222.                 {% for targetPath in app.session.flashBag.peek('eccube.login.target.path') %}
  223.                     <input type=\"hidden\" name=\"_target_path\" value=\"{{ targetPath }}\" />
  224.                 {% endfor %}
  225.             {% endif %}
  226.             <div id=\"login_box\" class=\"row\">
  227.                 <div id=\"mypage_login_wrap\" class=\"col-sm-8 col-sm-offset-2\">
  228.                     <div id=\"mypage_login_box\" class=\"column\">
  229.                         <div id=\"mypage_login_box__body\" class=\"column_inner clearfix\">
  230.                             <div class=\"icon\"><svg class=\"cb cb-user-circle\"><use xlink:href=\"#cb-user-circle\" /></svg></div>
  231.                             <div id=\"mypage_login_box__login_email\" class=\"form-group\">
  232.                                 {{ form_widget(form.login_email, {'attr': {'style' : 'ime-mode: disabled;', 'placeholder' : 'メールアドレス', 'autofocus': true}}) }}
  233.                             </div>
  234.                             <div id=\"mypage_login_box__login_pass\" class=\"form-group\">
  235.                                 {{ form_widget(form.login_pass,  {'attr': {'placeholder' : 'パスワード' }}) }}
  236.                                 {% if BaseInfo.option_remember_me %}
  237.                                     {% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}
  238.                                         <input id=\"mypage_login_box__login_memory\" type=\"hidden\" name=\"login_memory\" value=\"1\">
  239.                                     {% else %}
  240.                                         {{ form_widget(form.login_memory, { 'label': '次回から自動的にログインする'|trans }) }}
  241.                                     {% endif %}
  242.                                 {% endif %}
  243.                             </div>
  244.                             <div class=\"extra-form form-group\">
  245.                                 {% for f in form.getIterator %}
  246.                                     {% if f.vars.name matches '[^plg*]' %}
  247.                                         {{ form_label(f) }}
  248.                                         {{ form_widget(f) }}
  249.                                         {{ form_errors(f) }}
  250.                                     {% endif %}
  251.                                 {% endfor %}
  252.                             </div>
  253.                             {% if error %}
  254.                                 <div id=\"mypage_login_box__error_message\" class=\"form-group\">
  255.                                     <span class=\"text-danger\">{{ error.messageKey|trans(error.messageData, 'validators')|nl2br }}</span>
  256.                                 </div>
  257.                             {% endif %}
  258.                             <div id=\"mypage_login__login_button\" class=\"btn_area\">
  259.                                 <p><button type=\"submit\" class=\"btn btn-info btn-block btn-lg\">ログイン</button></p>
  260.                                 <ul id=\"mypage_login__login_menu\" >
  261.                                     <li><a href=\"{{ url('forgot') }}\">ログイン情報をお忘れですか?</a></li>
  262.                                     <li><a href=\"{{ url('entry') }}\">新規会員登録</a></li>
  263.                                 </ul>
  264.                             </div>
  265.                         </div>
  266.                     </div>
  267.                 </div>
  268.             </div>
  269.             <input type=\"hidden\" name=\"_csrf_token\" value=\"{{ csrf_token('authenticate') }}\">
  270.         </form>
  271.     </div>
  272. {% endblock %}
  273. ""Mypage/login.twig""/home/xs022445/unotame.com/public_html/liquor-sato/app/template/default/Mypage/login.twig");
  274.     }
  275. }