var/cache/dev/twig/14/148378c307b4233918a29992f8206ebf.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. /* Shopping/login.twig */
  14. class __TwigTemplate_22c9485a63f0b4cc666d078ee74695e2 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""Shopping/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""Shopping/login.twig"));
  38.         // line 13
  39.         $context["body_class"] = "cart_page";
  40.         // line 11
  41.         $this->parent $this->loadTemplate("default_frame.twig""Shopping/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 "
  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>
  66.     <div class=\"ec-role\">
  67.         <div class=\"ec-off2Grid\">
  68.             <div class=\"ec-off2Grid__cell\">
  69.                 <form name=\"shopping_login\" id=\"shopping_login\" method=\"post\" action=\"";
  70.         // line 26
  71.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("mypage_login");
  72.         echo "\">
  73.                     <input type=\"hidden\" name=\"_target_path\" value=\"";
  74.         // line 27
  75.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("shopping");
  76.         echo "\" />
  77.                     <input type=\"hidden\" name=\"_failure_path\" value=\"";
  78.         // line 28
  79.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("shopping_login");
  80.         echo "\" />
  81.                     <input type=\"hidden\" name=\"_csrf_token\" value=\"";
  82.         // line 29
  83.         echo twig_escape_filter($this->env$this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("authenticate"), "html"nulltrue);
  84.         echo "\">
  85.                     <div class=\"ec-login\">
  86.                         <div class=\"ec-login__icon\">
  87.                             <div class=\"ec-icon\"><img src=\"";
  88.         // line 32
  89.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/user.svg"), "html"nulltrue);
  90.         echo "\" alt=\"\"></div>
  91.                         </div>
  92.                         <div class=\"ec-login__input\">
  93.                             <div class=\"ec-input\">
  94.                                 ";
  95.         // line 36
  96.         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_email", [], "any"falsefalsefalse36), 'widget', ["attr" => ["style" => "ime-mode: disabled;""placeholder" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("メールアドレス"), "autofocus" => true]]);
  97.         echo "
  98.                                 ";
  99.         // line 37
  100.         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.'37$this->source); })()), "login_pass", [], "any"falsefalsefalse37), 'widget', ["attr" => ["placeholder" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("パスワード")]]);
  101.         echo "
  102.                             </div>
  103.                             ";
  104.         // line 39
  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.'39$this->source); })()), "option_remember_me", [], "any"falsefalsefalse39)) {
  106.             // line 40
  107.             echo "                            <div class=\"ec-checkbox\">
  108.                                 <label>
  109.                                     ";
  110.             // line 42
  111.             if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_REMEMBERED")) {
  112.                 // line 43
  113.                 echo "                                        <input type=\"hidden\" name=\"login_memory\" value=\"1\">
  114.                                     ";
  115.             } else {
  116.                 // line 45
  117.                 echo "                                        ";
  118.                 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.'45$this->source); })()), "login_memory", [], "any"falsefalsefalse45), 'widget', ["label" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("次回から自動的にログインする")]);
  119.                 echo "
  120.                                     ";
  121.             }
  122.             // line 47
  123.             echo "                                </label>
  124.                             </div>
  125.                             ";
  126.         }
  127.         // line 50
  128.         echo "                        </div>
  129.                         ";
  130.         // line 51
  131.         if ((isset($context["error"]) || array_key_exists("error"$context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.'51$this->source); })())) {
  132.             // line 52
  133.             echo "                            <p class=\"ec-errorMessage\">";
  134.             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.'52$this->source); })()), "messageKey", [], "any"falsefalsefalse52), 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"falsefalsefalse52), "validators"), "html"nulltrue));
  135.             echo "</p>
  136.                         ";
  137.         }
  138.         // line 54
  139.         echo "                        <div class=\"ec-grid2\">
  140.                             <div class=\"ec-grid2__cell\">
  141.                                 <div class=\"ec-login__actions\">
  142.                                     <button type=\"submit\" class=\"ec-blockBtn--cancel\">";
  143.         // line 57
  144.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ログイン"), "html"nulltrue);
  145.         echo "</button>
  146.                                 </div>
  147.                             </div>
  148.                             <div class=\"ec-grid2__cell\">
  149.                                 <div class=\"ec-login__link\"><a class=\"ec-link\" href=\"";
  150.         // line 61
  151.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("forgot");
  152.         echo "\">";
  153.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ログイン情報をお忘れですか?"), "html"nulltrue);
  154.         echo "</a>
  155.                                 </div>
  156.                                 <div class=\"ec-login__link\"><a class=\"ec-link\" href=\"";
  157.         // line 63
  158.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("entry");
  159.         echo "\">";
  160.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("新規会員登録"), "html"nulltrue);
  161.         echo "</a>
  162.                                 </div>
  163.                             </div>
  164.                         </div>
  165.                     </div>
  166.                 </form>
  167.             </div>
  168.         </div>
  169.     </div>
  170. ";
  171.         
  172.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  173.         
  174.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  175.     }
  176.     public function getTemplateName()
  177.     {
  178.         return "Shopping/login.twig";
  179.     }
  180.     public function isTraitable()
  181.     {
  182.         return false;
  183.     }
  184.     public function getDebugInfo()
  185.     {
  186.         return array (  173 => 63,  166 => 61,  159 => 57,  154 => 54,  148 => 52,  146 => 51,  143 => 50,  138 => 47,  132 => 45,  128 => 43,  126 => 42,  122 => 40,  120 => 39,  115 => 37,  111 => 36,  104 => 32,  98 => 29,  94 => 28,  90 => 27,  86 => 26,  76 => 19,  71 => 16,  61 => 15,  50 => 11,  48 => 13,  35 => 11,);
  187.     }
  188.     public function getSourceContext()
  189.     {
  190.         return new Source("{#
  191. This file is part of EC-CUBE
  192. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  193. http://www.ec-cube.co.jp/
  194. For the full copyright and license information, please view the LICENSE
  195. file that was distributed with this source code.
  196. #}
  197. {% extends 'default_frame.twig' %}
  198. {% set body_class = 'cart_page' %}
  199. {% block main %}
  200.     <div class=\"ec-role\">
  201.         <div class=\"ec-pageHeader\">
  202.             <h1>{{ 'ログイン'|trans }}</h1>
  203.         </div>
  204.     </div>
  205.     <div class=\"ec-role\">
  206.         <div class=\"ec-off2Grid\">
  207.             <div class=\"ec-off2Grid__cell\">
  208.                 <form name=\"shopping_login\" id=\"shopping_login\" method=\"post\" action=\"{{ url('mypage_login') }}\">
  209.                     <input type=\"hidden\" name=\"_target_path\" value=\"{{ url('shopping') }}\" />
  210.                     <input type=\"hidden\" name=\"_failure_path\" value=\"{{ url('shopping_login') }}\" />
  211.                     <input type=\"hidden\" name=\"_csrf_token\" value=\"{{ csrf_token('authenticate') }}\">
  212.                     <div class=\"ec-login\">
  213.                         <div class=\"ec-login__icon\">
  214.                             <div class=\"ec-icon\"><img src=\"{{ asset('assets/icon/user.svg') }}\" alt=\"\"></div>
  215.                         </div>
  216.                         <div class=\"ec-login__input\">
  217.                             <div class=\"ec-input\">
  218.                                 {{ form_widget(form.login_email, { attr: { 'style' : 'ime-mode: disabled;', placeholder: 'メールアドレス'|trans, 'autofocus': true }}) }}
  219.                                 {{ form_widget(form.login_pass, { attr: { placeholder: 'パスワード'|trans }}) }}
  220.                             </div>
  221.                             {% if BaseInfo.option_remember_me %}
  222.                             <div class=\"ec-checkbox\">
  223.                                 <label>
  224.                                     {% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}
  225.                                         <input type=\"hidden\" name=\"login_memory\" value=\"1\">
  226.                                     {% else %}
  227.                                         {{ form_widget(form.login_memory, { 'label': '次回から自動的にログインする'|trans }) }}
  228.                                     {% endif %}
  229.                                 </label>
  230.                             </div>
  231.                             {% endif %}
  232.                         </div>
  233.                         {% if error %}
  234.                             <p class=\"ec-errorMessage\">{{ error.messageKey|trans(error.messageData, 'validators')|nl2br }}</p>
  235.                         {% endif %}
  236.                         <div class=\"ec-grid2\">
  237.                             <div class=\"ec-grid2__cell\">
  238.                                 <div class=\"ec-login__actions\">
  239.                                     <button type=\"submit\" class=\"ec-blockBtn--cancel\">{{ 'ログイン'|trans}}</button>
  240.                                 </div>
  241.                             </div>
  242.                             <div class=\"ec-grid2__cell\">
  243.                                 <div class=\"ec-login__link\"><a class=\"ec-link\" href=\"{{ url('forgot') }}\">{{ 'ログイン情報をお忘れですか?'|trans}}</a>
  244.                                 </div>
  245.                                 <div class=\"ec-login__link\"><a class=\"ec-link\" href=\"{{ url('entry') }}\">{{ '新規会員登録'|trans}}</a>
  246.                                 </div>
  247.                             </div>
  248.                         </div>
  249.                     </div>
  250.                 </form>
  251.             </div>
  252.         </div>
  253.     </div>
  254. {% endblock %}
  255. ""Shopping/login.twig""/home/xs080051/million-store.com/public_html/st.million-store.com/ec/app/template/million01/Shopping/login.twig");
  256.     }
  257. }