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