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