var/cache/dev/twig/50/504f4c24e0c679158bc9aa1bd45cb3bbec5e9522fc883a2d0a2c3cf51aef9732.php line 16

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_f82b8d16ca76c92be8a311e05523e63ba6e3cfa613f821133b019845d4030b57 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_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 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_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  47.         
  48.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  49.     }
  50.     // line 15
  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 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.                     <div class=\"ec-login__input\">
  101.                         <div class=\"ec-input\">
  102.                             ";
  103.         // line 34
  104.         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.'34$this->source); })()), "login_email", [], "any"falsefalsetrue34), 34$this->source), 'widget', ["attr" => ["style" => "ime-mode: disabled;""placeholder" => "メールアドレス""autofocus" => true]]);
  105.         echo "
  106.                             ";
  107.         // line 35
  108.         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_pass", [], "any"falsefalsetrue35), 35$this->source), 'widget', ["attr" => ["placeholder" => "パスワード"]]);
  109.         echo "
  110.                         </div>
  111.                         ";
  112.         // line 37
  113.         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.'37$this->source); })()), "option_remember_me", [], "any"falsefalsetrue37)) {
  114.             // line 38
  115.             echo "                        <div class=\"ec-checkbox\">
  116.                             <label>
  117.                                 ";
  118.             // line 40
  119.             if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_REMEMBERED")) {
  120.                 // line 41
  121.                 echo "                                <input type=\"hidden\" name=\"login_memory\" value=\"1\">
  122.                                 ";
  123.             } else {
  124.                 // line 43
  125.                 echo "                                ";
  126.                 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.'43$this->source); })()), "login_memory", [], "any"falsefalsetrue43), 43$this->source), 'widget', ["label" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("次回から自動的にログインする")]);
  127.                 echo "
  128.                                 ";
  129.             }
  130.             // line 45
  131.             echo "                            </label>
  132.                         </div>
  133.                         ";
  134.         }
  135.         // line 48
  136.         echo "                        ";
  137.         $context['_parent'] = $context;
  138.         $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"falsefalsetrue48), "flashbag", [], "any"falsefalsetrue48), "get", [=> "password_reset_complete"], "method"falsefalsetrue48));
  139.         foreach ($context['_seq'] as $context["_key"] => $context["reset_complete"]) {
  140.             // line 49
  141.             echo "                        <p>";
  142.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->sandbox->ensureToStringAllowed($context["reset_complete"], 49$this->source)), "html"nulltrue);
  143.             echo "</p>
  144.                         ";
  145.         }
  146.         $_parent $context['_parent'];
  147.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['reset_complete'], $context['_parent'], $context['loop']);
  148.         $context array_intersect_key($context$_parent) + $_parent;
  149.         // line 51
  150.         echo "                        ";
  151.         if ((isset($context["error"]) || array_key_exists("error"$context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.'51$this->source); })())) {
  152.             // line 52
  153.             echo "                        <p class=\"ec-errorMessage\">";
  154.             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.'52$this->source); })()), "messageKey", [], "any"falsefalsetrue52), 52$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.'52$this->source); })()), "messageData", [], "any"falsefalsetrue52), 52$this->source), "validators"), "html"nulltrue));
  155.             echo "</p>
  156.                         ";
  157.         }
  158.         // line 54
  159.         echo "                    </div>
  160.                     <div class=\"ec-grid2\">
  161.                         <div class=\"ec-grid2__cell\">
  162.                             <div class=\"ec-login__actions\">
  163.                                 <button type=\"submit\"
  164.                                     class=\"ec-blockBtn--cancel\">";
  165.         // line 59
  166.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ログイン"), "html"nulltrue);
  167.         echo "</button>
  168.                             </div>
  169.                         </div>
  170.                         <div class=\"ec-grid2__cell\">
  171.                             ";
  172.         // line 64
  173.         if (false) {
  174.             // line 65
  175.             echo "                            <div class=\"ec-login__link\"><a class=\"ec-link\"
  176.                                     href=\"";
  177.             // line 66
  178.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("forgot");
  179.             echo "\">";
  180.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ログイン情報をお忘れですか?"), "html"nulltrue);
  181.             echo "</a>
  182.                             </div>
  183.                             ";
  184.         }
  185.         // line 69
  186.         echo "
  187.                             ";
  188.         // line 70
  189.         if (false) {
  190.             // line 71
  191.             echo "                            <div class=\"ec-login__link\"><a class=\"ec-link\"
  192.                                     href=\"";
  193.             // line 72
  194.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("entry");
  195.             echo "\">";
  196.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("新規会員登録"), "html"nulltrue);
  197.             echo "</a>
  198.                             </div>
  199.                             ";
  200.         }
  201.         // line 75
  202.         echo "
  203.                         </div>
  204.                     </div>
  205.                 </div>
  206.                 <input type=\"hidden\" name=\"_csrf_token\" value=\"";
  207.         // line 79
  208.         echo twig_escape_filter($this->env$this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("authenticate"), "html"nulltrue);
  209.         echo "\">
  210.             </form>
  211.         </div>
  212.     </div>
  213. </div>
  214. ";
  215.         
  216.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  217.         
  218.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  219.     }
  220.     public function getTemplateName()
  221.     {
  222.         return "Mypage/login.twig";
  223.     }
  224.     public function isTraitable()
  225.     {
  226.         return false;
  227.     }
  228.     public function getDebugInfo()
  229.     {
  230.         return array (  223 => 79,  217 => 75,  209 => 72,  206 => 71,  204 => 70,  201 => 69,  193 => 66,  190 => 65,  188 => 64,  180 => 59,  173 => 54,  167 => 52,  164 => 51,  155 => 49,  150 => 48,  145 => 45,  139 => 43,  135 => 41,  133 => 40,  129 => 38,  127 => 37,  122 => 35,  118 => 34,  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,);
  231.     }
  232.     public function getSourceContext()
  233.     {
  234.         return new Source("{#
  235. This file is part of EC-CUBE
  236. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  237. http://www.ec-cube.co.jp/
  238. For the full copyright and license information, please view the LICENSE
  239. file that was distributed with this source code.
  240. #}
  241. {% extends 'default_frame.twig' %}
  242. {% set body_class = 'mypage' %}
  243. {% block main %}
  244. <div class=\"ec-role\">
  245.     <div class=\"ec-pageHeader\">
  246.         <h1>{{ 'ログイン'|trans }}</h1>
  247.     </div>
  248.     <div class=\"ec-off2Grid\">
  249.         <div class=\"ec-off2Grid__cell\">
  250.             <form name=\"login_mypage\" id=\"login_mypage\" method=\"post\" action=\"{{ url('mypage_login') }}\">
  251.                 {% if app.session.flashBag.has('eccube.login.target.path') %}
  252.                 {% for targetPath in app.session.flashBag.peek('eccube.login.target.path') %}
  253.                 <input type=\"hidden\" name=\"_target_path\" value=\"{{ targetPath }}\" />
  254.                 {% endfor %}
  255.                 {% endif %}
  256.                 <div class=\"ec-login\">
  257.                     <div class=\"ec-login__icon\">
  258.                         <div class=\"ec-icon\"><img src=\"{{ asset('assets/icon/user.svg') }}\" alt></div>
  259.                     </div>
  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.                     </div>
  283.                     <div class=\"ec-grid2\">
  284.                         <div class=\"ec-grid2__cell\">
  285.                             <div class=\"ec-login__actions\">
  286.                                 <button type=\"submit\"
  287.                                     class=\"ec-blockBtn--cancel\">{{ 'ログイン'|trans }}</button>
  288.                             </div>
  289.                         </div>
  290.                         <div class=\"ec-grid2__cell\">
  291.                             {% if false %}
  292.                             <div class=\"ec-login__link\"><a class=\"ec-link\"
  293.                                     href=\"{{ url('forgot') }}\">{{ 'ログイン情報をお忘れですか?'|trans }}</a>
  294.                             </div>
  295.                             {% endif %}
  296.                             {% if false %}
  297.                             <div class=\"ec-login__link\"><a class=\"ec-link\"
  298.                                     href=\"{{ url('entry') }}\">{{ '新規会員登録'|trans }}</a>
  299.                             </div>
  300.                             {% endif %}
  301.                         </div>
  302.                     </div>
  303.                 </div>
  304.                 <input type=\"hidden\" name=\"_csrf_token\" value=\"{{ csrf_token('authenticate') }}\">
  305.             </form>
  306.         </div>
  307.     </div>
  308. </div>
  309. {% endblock %}
  310. ""Mypage/login.twig""/home/rfzhmmpx/public_html/bhw.world/wholesale-tohsho/sample2/src/Eccube/Resource/template/default/Mypage/login.twig");
  311.     }
  312.     
  313.     public function checkSecurity()
  314.     {
  315.         static $tags = array("set" => 13"if" => 23"for" => 24);
  316.         static $filters = array("escape" => 18"trans" => 18"nl2br" => 52);
  317.         static $functions = array("url" => 22"asset" => 30"form_widget" => 34"is_granted" => 40"csrf_token" => 79);
  318.         try {
  319.             $this->sandbox->checkSecurity(
  320.                 ['set''if''for'],
  321.                 ['escape''trans''nl2br'],
  322.                 ['url''asset''form_widget''is_granted''csrf_token']
  323.             );
  324.         } catch (SecurityError $e) {
  325.             $e->setSourceContext($this->source);
  326.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  327.                 $e->setTemplateLine($tags[$e->getTagName()]);
  328.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  329.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  330.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  331.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  332.             }
  333.             throw $e;
  334.         }
  335.     }
  336. }