var/cache/dev/twig/67/6771a3ea0b0e82c9d27bdf42c2218aa6d0a023ed958e40512524394f09d67b8d.php line 53

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_e20698a390552366c6c95d323e70e6ed6e362e6d5412c3de58520f3b5008e075 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 22
  31.         return "default_frame.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Mypage/login.twig"));
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Mypage/login.twig"));
  40.         // line 24
  41.         $context["body_class"] = "mypage";
  42.         // line 22
  43.         $this->parent $this->loadTemplate("default_frame.twig""Mypage/login.twig"22);
  44.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  45.         
  46.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  47.         
  48.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  49.     }
  50.     // line 26
  51.     public function block_main($context, array $blocks = [])
  52.     {
  53.         $macros $this->macros;
  54.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  55.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  56.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  57.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  58.         // line 27
  59.         echo "<div class=\"login_box login\">
  60.     <h2>ログイン</h2>
  61.     <div class=\"container-fluid\">
  62.         <form name=\"login_mypage\" id=\"login_mypage\" method=\"post\" action=\"";
  63.         // line 30
  64.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("mypage_login");
  65.         echo "\">
  66.             ";
  67.         // line 31
  68.         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.'31$this->source); })()), "session", [], "any"falsefalsetrue31), "flashBag", [], "any"falsefalsetrue31), "has", [=> "eccube.login.target.path"], "method"falsefalsetrue31)) {
  69.             // line 32
  70.             echo "                ";
  71.             $context['_parent'] = $context;
  72.             $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.'32$this->source); })()), "session", [], "any"falsefalsetrue32), "flashBag", [], "any"falsefalsetrue32), "get", [=> "eccube.login.target.path"], "method"falsefalsetrue32));
  73.             foreach ($context['_seq'] as $context["_key"] => $context["targetPath"]) {
  74.                 // line 33
  75.                 echo "                    <input type=\"hidden\" name=\"_target_path\" value=\"";
  76.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed($context["targetPath"], 33$this->source), "html"nulltrue);
  77.                 echo "\" />
  78.                 ";
  79.             }
  80.             $_parent $context['_parent'];
  81.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['targetPath'], $context['_parent'], $context['loop']);
  82.             $context array_intersect_key($context$_parent) + $_parent;
  83.             // line 35
  84.             echo "            ";
  85.         }
  86.         // line 36
  87.         echo "            <div id=\"login_box\" class=\"row\">
  88.                 <div id=\"mypage_login_wrap\">
  89.                     <div id=\"mypage_login_box\" class=\"column\">
  90.                         <div id=\"mypage_login_box__body\" class=\"column_inner clearfix\">
  91.                             <div id=\"mypage_login_box__login_email\" class=\"form-group\">
  92.                                 ";
  93.         // line 42
  94.         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.'42$this->source); })()), "login_email", [], "any"falsefalsetrue42), 42$this->source), 'widget', ["attr" => ["style" => "ime-mode: disabled;""placeholder" => "ログインID/メールアドレス""autofocus" => true]]);
  95.         echo "
  96.                 <p class=\"kome\" style=\"width: 85%; margin:0 auto;\">登録済の方はメールアドレスでログインしてください。</p>
  97.                             </div>
  98.                             <div id=\"mypage_login_box__login_pass\" class=\"form-group\">
  99.                                 ";
  100.         // line 46
  101.         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.'46$this->source); })()), "login_pass", [], "any"falsefalsetrue46), 46$this->source), 'widget', ["attr" => ["placeholder" => "パスワード"]]);
  102.         echo "
  103.                                 ";
  104.         // line 47
  105.         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.'47$this->source); })()), "option_remember_me", [], "any"falsefalsetrue47)) {
  106.             // line 48
  107.             echo "                                    ";
  108.             if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_REMEMBERED")) {
  109.                 // line 49
  110.                 echo "                                        <input id=\"mypage_login_box__login_memory\" type=\"hidden\" name=\"login_memory\" value=\"1\">
  111.                                     ";
  112.             } else {
  113.                 // line 51
  114.                 echo "                                        ";
  115.                 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_memory", [], "any"falsefalsetrue51), 51$this->source), 'widget', ["label" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("次回から自動的にログインする")]);
  116.                 echo "
  117.                                     ";
  118.             }
  119.             // line 53
  120.             echo "                                ";
  121.         }
  122.         // line 54
  123.         echo "                            </div>
  124.                             <div class=\"extra-form form-group\">
  125.                                 ";
  126.         // line 56
  127.         $context['_parent'] = $context;
  128.         $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.'56$this->source); })()), "getIterator", [], "any"falsefalsetrue56));
  129.         foreach ($context['_seq'] as $context["_key"] => $context["f"]) {
  130.             // line 57
  131.             echo "                                    ";
  132.             if (preg_match("[^plg*]"twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["f"], "vars", [], "any"falsefalsetrue57), "name", [], "any"falsefalsetrue57))) {
  133.                 // line 58
  134.                 echo "                                        ";
  135.                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed($context["f"], 58$this->source), 'label');
  136.                 echo "
  137.                                         ";
  138.                 // line 59
  139.                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed($context["f"], 59$this->source), 'widget');
  140.                 echo "
  141.                                         ";
  142.                 // line 60
  143.                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed($context["f"], 60$this->source), 'errors');
  144.                 echo "
  145.                                     ";
  146.             }
  147.             // line 62
  148.             echo "                                ";
  149.         }
  150.         $_parent $context['_parent'];
  151.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['f'], $context['_parent'], $context['loop']);
  152.         $context array_intersect_key($context$_parent) + $_parent;
  153.         // line 63
  154.         echo "                            </div>
  155.                             ";
  156.         // line 64
  157.         if ((isset($context["error"]) || array_key_exists("error"$context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.'64$this->source); })())) {
  158.             // line 65
  159.             echo "                            <div id=\"mypage_login_box__error_message\" class=\"form-group\">
  160.                                 <span class=\"text-danger\">";
  161.             // line 66
  162.             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));
  163.             echo "</span>
  164.                             </div>
  165.                             ";
  166.         }
  167.         // line 69
  168.         echo "<div class=\"browicon\">
  169. <p><span class=\"tit_browser\">○対応ブラウザ</span>
  170.     <span><span class=\"icon-edge\">Microsoft Edge</span><span class=\"icon-safari\">Safari</span><span class=\"icon-chrome\">Google Chrome</span><span class=\"icon-firefox\">Firefox</span></span></p>
  171. <p><span class=\"tit_browser\"><span>×ご利用に</span><span>なれません</span></span>
  172.     <span><span class=\"icon-IE\">Internet Explorer</span></span></p>
  173. </div>
  174.                             <div id=\"mypage_login__login_button\" class=\"btn_area\">
  175. <button type=\"submit\" class=\"def_button3 unibtn\">ログイン</button>
  176. <a class=\"forgot\" href=\"";
  177.         // line 77
  178.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("forgot");
  179.         echo "\"><span>ログインIDがわからない、</span><span>パスワードを忘れた場合はこちら</span></a>
  180.                             </div>
  181.                         </div>
  182.                     </div>
  183.                 </div><!-- /.col -->
  184.             </div><!-- /.row -->
  185.             <input type=\"hidden\" name=\"_csrf_token\" value=\"";
  186.         // line 83
  187.         echo twig_escape_filter($this->env$this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("authenticate"), "html"nulltrue);
  188.         echo "\">
  189.         </form>
  190.     </div>
  191. </div>
  192. ";
  193.         
  194.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  195.         
  196.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  197.     }
  198.     public function getTemplateName()
  199.     {
  200.         return "Mypage/login.twig";
  201.     }
  202.     public function isTraitable()
  203.     {
  204.         return false;
  205.     }
  206.     public function getDebugInfo()
  207.     {
  208.         return array (  202 => 83,  193 => 77,  183 => 69,  177 => 66,  174 => 65,  172 => 64,  169 => 63,  163 => 62,  158 => 60,  154 => 59,  149 => 58,  146 => 57,  142 => 56,  138 => 54,  135 => 53,  129 => 51,  125 => 49,  122 => 48,  120 => 47,  116 => 46,  109 => 42,  101 => 36,  98 => 35,  89 => 33,  84 => 32,  82 => 31,  78 => 30,  73 => 27,  63 => 26,  52 => 22,  50 => 24,  37 => 22,);
  209.     }
  210.     public function getSourceContext()
  211.     {
  212.         return new Source("{#
  213. This file is part of EC-CUBE
  214. Copyright(c) 2000-2015 LOCKON CO.,LTD. All Rights Reserved.
  215. http://www.lockon.co.jp/
  216. This program is free software; you can redistribute it and/or
  217. modify it under the terms of the GNU General Public License
  218. as published by the Free Software Foundation; either version 2
  219. of the License, or (at your option) any later version.
  220. This program is distributed in the hope that it will be useful,
  221. but WITHOUT ANY WARRANTY; without even the implied warranty of
  222. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  223. GNU General Public License for more details.
  224. You should have received a copy of the GNU General Public License
  225. along with this program; if not, write to the Free Software
  226. Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
  227. #}
  228. {% extends 'default_frame.twig' %}
  229. {% set body_class = 'mypage' %}
  230. {% block main %}
  231. <div class=\"login_box login\">
  232.     <h2>ログイン</h2>
  233.     <div class=\"container-fluid\">
  234.         <form name=\"login_mypage\" id=\"login_mypage\" method=\"post\" action=\"{{ url('mypage_login') }}\">
  235.             {% if app.session.flashBag.has('eccube.login.target.path') %}
  236.                 {% for targetPath in app.session.flashBag.get('eccube.login.target.path') %}
  237.                     <input type=\"hidden\" name=\"_target_path\" value=\"{{ targetPath }}\" />
  238.                 {% endfor %}
  239.             {% endif %}
  240.             <div id=\"login_box\" class=\"row\">
  241.                 <div id=\"mypage_login_wrap\">
  242.                     <div id=\"mypage_login_box\" class=\"column\">
  243.                         <div id=\"mypage_login_box__body\" class=\"column_inner clearfix\">
  244.                             <div id=\"mypage_login_box__login_email\" class=\"form-group\">
  245.                                 {{ form_widget(form.login_email, {'attr': {'style' : 'ime-mode: disabled;', 'placeholder' : 'ログインID/メールアドレス', 'autofocus': true}}) }}
  246.                 <p class=\"kome\" style=\"width: 85%; margin:0 auto;\">登録済の方はメールアドレスでログインしてください。</p>
  247.                             </div>
  248.                             <div id=\"mypage_login_box__login_pass\" class=\"form-group\">
  249.                                 {{ form_widget(form.login_pass,  {'attr': {'placeholder' : 'パスワード' }}) }}
  250.                                 {% if BaseInfo.option_remember_me %}
  251.                                     {% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}
  252.                                         <input id=\"mypage_login_box__login_memory\" type=\"hidden\" name=\"login_memory\" value=\"1\">
  253.                                     {% else %}
  254.                                         {{ form_widget(form.login_memory, { 'label': '次回から自動的にログインする'|trans }) }}
  255.                                     {% endif %}
  256.                                 {% endif %}
  257.                             </div>
  258.                             <div class=\"extra-form form-group\">
  259.                                 {% for f in form.getIterator %}
  260.                                     {% if f.vars.name matches '[^plg*]' %}
  261.                                         {{ form_label(f) }}
  262.                                         {{ form_widget(f) }}
  263.                                         {{ form_errors(f) }}
  264.                                     {% endif %}
  265.                                 {% endfor %}
  266.                             </div>
  267.                             {% if error %}
  268.                             <div id=\"mypage_login_box__error_message\" class=\"form-group\">
  269.                                 <span class=\"text-danger\">{{ error.messageKey|trans(error.messageData, 'validators')|nl2br }}</span>
  270.                             </div>
  271.                             {% endif %}
  272. <div class=\"browicon\">
  273. <p><span class=\"tit_browser\">○対応ブラウザ</span>
  274.     <span><span class=\"icon-edge\">Microsoft Edge</span><span class=\"icon-safari\">Safari</span><span class=\"icon-chrome\">Google Chrome</span><span class=\"icon-firefox\">Firefox</span></span></p>
  275. <p><span class=\"tit_browser\"><span>×ご利用に</span><span>なれません</span></span>
  276.     <span><span class=\"icon-IE\">Internet Explorer</span></span></p>
  277. </div>
  278.                             <div id=\"mypage_login__login_button\" class=\"btn_area\">
  279. <button type=\"submit\" class=\"def_button3 unibtn\">ログイン</button>
  280. <a class=\"forgot\" href=\"{{ url('forgot') }}\"><span>ログインIDがわからない、</span><span>パスワードを忘れた場合はこちら</span></a>
  281.                             </div>
  282.                         </div>
  283.                     </div>
  284.                 </div><!-- /.col -->
  285.             </div><!-- /.row -->
  286.             <input type=\"hidden\" name=\"_csrf_token\" value=\"{{ csrf_token('authenticate') }}\">
  287.         </form>
  288.     </div>
  289. </div>
  290. {% endblock %}""Mypage/login.twig""/home/nmtokyolad01/tokyoladies-onlinestore.com/public_html/app/template/unishop/Mypage/login.twig");
  291.     }
  292.     
  293.     public function checkSecurity()
  294.     {
  295.         static $tags = array("set" => 24"if" => 31"for" => 32);
  296.         static $filters = array("escape" => 33"trans" => 51"nl2br" => 66);
  297.         static $functions = array("url" => 30"form_widget" => 42"is_granted" => 48"form_label" => 58"form_errors" => 60"csrf_token" => 83);
  298.         try {
  299.             $this->sandbox->checkSecurity(
  300.                 ['set''if''for'],
  301.                 ['escape''trans''nl2br'],
  302.                 ['url''form_widget''is_granted''form_label''form_errors''csrf_token']
  303.             );
  304.         } catch (SecurityError $e) {
  305.             $e->setSourceContext($this->source);
  306.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  307.                 $e->setTemplateLine($tags[$e->getTagName()]);
  308.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  309.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  310.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  311.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  312.             }
  313.             throw $e;
  314.         }
  315.     }
  316. }