var/cache/dev/twig/2f/2fff56e88eb82498431b84fbbfab2bb4d6590023e99c51e1651a11b7fb9b513e.php line 38

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_7bbcb36e8a546e9a8398a89d72620bdd972211d03e6071df8e7a8bcbf920b124 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""Shopping/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""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_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 "
  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-grid3\">
  68.             <div class=\"ec-grid3__cell2\">
  69.                 <form name=\"shopping_login\" id=\"shopping_login\" method=\"post\" action=\"";
  70.         // line 27
  71.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("mypage_login");
  72.         echo "\">
  73.                     <input type=\"hidden\" name=\"_target_path\" value=\"";
  74.         // line 28
  75.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("shopping");
  76.         echo "\" />
  77.                     <input type=\"hidden\" name=\"_failure_path\" value=\"";
  78.         // line 29
  79.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("shopping_login");
  80.         echo "\" />
  81.                     <input type=\"hidden\" name=\"_csrf_token\" value=\"";
  82.         // line 30
  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 33
  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 37
  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.'37$this->source); })()), "login_email", [], "any"falsefalsefalse37), 'widget', ["attr" => ["style" => "ime-mode: disabled;""placeholder" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("メールアドレス"), "autofocus" => true]]);
  97.         echo "
  98.                                 ";
  99.         // line 38
  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.'38$this->source); })()), "login_pass", [], "any"falsefalsefalse38), 'widget', ["attr" => ["placeholder" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("パスワード")]]);
  101.         echo "
  102.                             </div>
  103.                             ";
  104.         // line 40
  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.'40$this->source); })()), "option_remember_me", [], "any"falsefalsefalse40)) {
  106.             // line 41
  107.             echo "                            <div class=\"ec-checkbox\">
  108.                                 <label>
  109.                                     ";
  110.             // line 43
  111.             if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_REMEMBERED")) {
  112.                 // line 44
  113.                 echo "                                        <input type=\"hidden\" name=\"login_memory\" value=\"1\">
  114.                                     ";
  115.             } else {
  116.                 // line 46
  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.'46$this->source); })()), "login_memory", [], "any"falsefalsefalse46), 'widget', ["label" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("次回から自動的にログインする")]);
  119.                 echo "
  120.                                     ";
  121.             }
  122.             // line 48
  123.             echo "                                </label>
  124.                             </div>
  125.                             ";
  126.         }
  127.         // line 51
  128.         echo "                        </div>
  129.                         ";
  130.         // line 52
  131.         if ((isset($context["error"]) || array_key_exists("error"$context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.'52$this->source); })())) {
  132.             // line 53
  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.'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));
  135.             echo "</p>
  136.                         ";
  137.         }
  138.         // line 55
  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 58
  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 62
  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 64
  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.             ";
  169.         // line 72
  170.         if (($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_REMEMBERED") == false)) {
  171.             // line 73
  172.             echo "                <div class=\"ec-grid3__cell\">
  173.                     <div class=\"ec-guest\">
  174.                         <div class=\"ec-guest__inner\">
  175.                             <p>";
  176.             // line 76
  177.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("会員登録をせずに購入手続きをされたい方は、下記よりお進みください。"), "html"nulltrue);
  178.             echo "</p>
  179.                             <div class=\"ec-guest__actions\"><a class=\"ec-blockBtn--cancel\" href=\"";
  180.             // line 77
  181.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("shopping_nonmember");
  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.             ";
  190.         }
  191.         // line 83
  192.         echo "
  193.         </div>
  194.     </div>
  195. ";
  196.         
  197.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  198.         
  199.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  200.     }
  201.     public function getTemplateName()
  202.     {
  203.         return "Shopping/login.twig";
  204.     }
  205.     public function isTraitable()
  206.     {
  207.         return false;
  208.     }
  209.     public function getDebugInfo()
  210.     {
  211.         return array (  209 => 83,  198 => 77,  194 => 76,  189 => 73,  187 => 72,  174 => 64,  167 => 62,  160 => 58,  155 => 55,  149 => 53,  147 => 52,  144 => 51,  139 => 48,  133 => 46,  129 => 44,  127 => 43,  123 => 41,  121 => 40,  116 => 38,  112 => 37,  105 => 33,  99 => 30,  95 => 29,  91 => 28,  87 => 27,  76 => 19,  71 => 16,  61 => 15,  50 => 11,  48 => 13,  35 => 11,);
  212.     }
  213.     public function getSourceContext()
  214.     {
  215.         return new Source("{#
  216. This file is part of EC-CUBE
  217. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  218. http://www.ec-cube.co.jp/
  219. For the full copyright and license information, please view the LICENSE
  220. file that was distributed with this source code.
  221. #}
  222. {% extends 'default_frame.twig' %}
  223. {% set body_class = 'cart_page' %}
  224. {% block main %}
  225.     <div class=\"ec-role\">
  226.         <div class=\"ec-pageHeader\">
  227.             <h1>{{ 'ログイン'|trans }}</h1>
  228.         </div>
  229.     </div>
  230.     <div class=\"ec-role\">
  231.         <div class=\"ec-grid3\">
  232.             <div class=\"ec-grid3__cell2\">
  233.                 <form name=\"shopping_login\" id=\"shopping_login\" method=\"post\" action=\"{{ url('mypage_login') }}\">
  234.                     <input type=\"hidden\" name=\"_target_path\" value=\"{{ path('shopping') }}\" />
  235.                     <input type=\"hidden\" name=\"_failure_path\" value=\"{{ path('shopping_login') }}\" />
  236.                     <input type=\"hidden\" name=\"_csrf_token\" value=\"{{ csrf_token('authenticate') }}\">
  237.                     <div class=\"ec-login\">
  238.                         <div class=\"ec-login__icon\">
  239.                             <div class=\"ec-icon\"><img src=\"{{ asset('assets/icon/user.svg') }}\" alt=\"\"></div>
  240.                         </div>
  241.                         <div class=\"ec-login__input\">
  242.                             <div class=\"ec-input\">
  243.                                 {{ form_widget(form.login_email, { attr: { 'style' : 'ime-mode: disabled;', placeholder: 'メールアドレス'|trans, 'autofocus': true }}) }}
  244.                                 {{ form_widget(form.login_pass, { attr: { placeholder: 'パスワード'|trans }}) }}
  245.                             </div>
  246.                             {% if BaseInfo.option_remember_me %}
  247.                             <div class=\"ec-checkbox\">
  248.                                 <label>
  249.                                     {% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}
  250.                                         <input type=\"hidden\" name=\"login_memory\" value=\"1\">
  251.                                     {% else %}
  252.                                         {{ form_widget(form.login_memory, { 'label': '次回から自動的にログインする'|trans }) }}
  253.                                     {% endif %}
  254.                                 </label>
  255.                             </div>
  256.                             {% endif %}
  257.                         </div>
  258.                         {% if error %}
  259.                             <p class=\"ec-errorMessage\">{{ error.messageKey|trans(error.messageData, 'validators')|nl2br }}</p>
  260.                         {% endif %}
  261.                         <div class=\"ec-grid2\">
  262.                             <div class=\"ec-grid2__cell\">
  263.                                 <div class=\"ec-login__actions\">
  264.                                     <button type=\"submit\" class=\"ec-blockBtn--cancel\">{{ 'ログイン'|trans}}</button>
  265.                                 </div>
  266.                             </div>
  267.                             <div class=\"ec-grid2__cell\">
  268.                                 <div class=\"ec-login__link\"><a class=\"ec-link\" href=\"{{ url('forgot') }}\">{{ 'ログイン情報をお忘れですか?'|trans}}</a>
  269.                                 </div>
  270.                                 <div class=\"ec-login__link\"><a class=\"ec-link\" href=\"{{ url('entry') }}\">{{ '新規会員登録'|trans}}</a>
  271.                                 </div>
  272.                             </div>
  273.                         </div>
  274.                     </div>
  275.                 </form>
  276.             </div>
  277.             {% if is_granted('IS_AUTHENTICATED_REMEMBERED') == false %}
  278.                 <div class=\"ec-grid3__cell\">
  279.                     <div class=\"ec-guest\">
  280.                         <div class=\"ec-guest__inner\">
  281.                             <p>{{ '会員登録をせずに購入手続きをされたい方は、下記よりお進みください。'|trans }}</p>
  282.                             <div class=\"ec-guest__actions\"><a class=\"ec-blockBtn--cancel\" href=\"{{ url('shopping_nonmember') }}\">{{ 'ゲスト購入'|trans }}</a>
  283.                             </div>
  284.                         </div>
  285.                     </div>
  286.                 </div>
  287.             {% endif %}
  288.         </div>
  289.     </div>
  290. {% endblock %}
  291. ""Shopping/login.twig""/home/daiwafood/www/ec/app/template/mizunasu/Shopping/login.twig");
  292.     }
  293. }