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