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