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