var/cache/dev/twig/c1/c1b93f45d4953f4301800b89d7817d871701a31c097ed0c907b71110013a9b35.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_25f7ff951534d4efb687938ced0b4cdfaab7bbbf9f74856c84ad7db32852fec2 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("common.login"), "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=\"";
  76.         // line 28
  77.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("shopping");
  78.         echo "\" />
  79.                     <input type=\"hidden\" name=\"_failure_path\" value=\"";
  80.         // line 29
  81.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("shopping_login");
  82.         echo "\" />
  83.                     <input type=\"hidden\" name=\"_csrf_token\" value=\"";
  84.         // line 30
  85.         echo twig_escape_filter($this->env$this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("authenticate"), "html"nulltrue);
  86.         echo "\">
  87.                     <div class=\"ec-login\">
  88.                         <div class=\"ec-login__icon\">
  89.                             <div class=\"ec-icon\"><img src=\"";
  90.         // line 33
  91.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/user.svg"), "html"nulltrue);
  92.         echo "\" alt=\"\"></div>
  93.                         </div>
  94.                         <div class=\"ec-login__input\">
  95.                             <div class=\"ec-input\">
  96.                                 ";
  97.         // line 37
  98.         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"falsefalsetrue37), 37$this->source), 'widget', ["attr" => ["style" => "ime-mode: disabled;""placeholder" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("common.mail_address"), "autofocus" => true]]);
  99.         echo "
  100.                                 ";
  101.         // line 38
  102.         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"falsefalsetrue38), 38$this->source), 'widget', ["attr" => ["placeholder" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("common.password")]]);
  103.         echo "
  104.                             </div>
  105.                             ";
  106.         // line 40
  107.         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"falsefalsetrue40)) {
  108.             // line 41
  109.             echo "                            <div class=\"ec-checkbox\">
  110.                                 <label>
  111.                                     ";
  112.             // line 43
  113.             if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_REMEMBERED")) {
  114.                 // line 44
  115.                 echo "                                        <input type=\"hidden\" name=\"login_memory\" value=\"1\">
  116.                                     ";
  117.             } else {
  118.                 // line 46
  119.                 echo "                                        ";
  120.                 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"falsefalsetrue46), 46$this->source), 'widget', ["label" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("common.remember_me")]);
  121.                 echo "
  122.                                     ";
  123.             }
  124.             // line 48
  125.             echo "                                </label>
  126.                             </div>
  127.                             ";
  128.         }
  129.         // line 51
  130.         echo "                        </div>
  131.                         ";
  132.         // line 52
  133.         if ((isset($context["error"]) || array_key_exists("error"$context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.'52$this->source); })())) {
  134.             // line 53
  135.             echo "                            <p class=\"ec-errorMessage\">";
  136.             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"falsefalsetrue53), 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"falsefalsetrue53), 53$this->source), "validators"), "html"nulltrue));
  137.             echo "</p>
  138.                         ";
  139.         }
  140.         // line 55
  141.         echo "                        <div class=\"ec-grid2\">
  142.                             <div class=\"ec-grid2__cell\">
  143.                                 <div class=\"ec-login__actions\">
  144.                                     <button type=\"submit\" class=\"ec-blockBtn--cancel\">";
  145.         // line 58
  146.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("common.login"), "html"nulltrue);
  147.         echo "</button>
  148.                                 </div>
  149.                             </div>
  150.                             <div class=\"ec-grid2__cell\">
  151.                                 <div class=\"ec-login__link\"><a class=\"ec-link\" href=\"";
  152.         // line 62
  153.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("forgot");
  154.         echo "\">";
  155.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("common.forgot_login"), "html"nulltrue);
  156.         echo "</a>
  157.                                 </div>
  158.                                 <div class=\"ec-login__link\"><a class=\"ec-link\" href=\"";
  159.         // line 64
  160.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("entry");
  161.         echo "\">";
  162.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("common.signup"), "html"nulltrue);
  163.         echo "</a>
  164.                                 </div>
  165.                             </div>
  166.                         </div>
  167.                     </div>
  168.                 </form>
  169.             </div>
  170.             ";
  171.         // line 72
  172.         if (($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_REMEMBERED") == false)) {
  173.             // line 73
  174.             echo "                <div class=\"ec-grid3__cell\">
  175.                     <div class=\"ec-guest\">
  176.                         <div class=\"ec-guest__inner\">
  177.                             <p>";
  178.             // line 76
  179.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.shopping.guest_purchase_message"), "html"nulltrue);
  180.             echo "</p>
  181.                             <div class=\"ec-guest__actions\"><a class=\"ec-blockBtn--cancel\" href=\"";
  182.             // line 77
  183.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("shopping_nonmember");
  184.             echo "\">";
  185.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.shopping.guest_purchase"), "html"nulltrue);
  186.             echo "</a>
  187.                             </div>
  188.                         </div>
  189.                     </div>
  190.                 </div>
  191.             ";
  192.         }
  193.         // line 83
  194.         echo "
  195.         </div>
  196.     </div>
  197. ";
  198.         
  199.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  200.         
  201.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  202.     }
  203.     public function getTemplateName()
  204.     {
  205.         return "Shopping/login.twig";
  206.     }
  207.     public function isTraitable()
  208.     {
  209.         return false;
  210.     }
  211.     public function getDebugInfo()
  212.     {
  213.         return array (  211 => 83,  200 => 77,  196 => 76,  191 => 73,  189 => 72,  176 => 64,  169 => 62,  162 => 58,  157 => 55,  151 => 53,  149 => 52,  146 => 51,  141 => 48,  135 => 46,  131 => 44,  129 => 43,  125 => 41,  123 => 40,  118 => 38,  114 => 37,  107 => 33,  101 => 30,  97 => 29,  93 => 28,  89 => 27,  78 => 19,  73 => 16,  63 => 15,  52 => 11,  50 => 13,  37 => 11,);
  214.     }
  215.     public function getSourceContext()
  216.     {
  217.         return new Source("{#
  218. This file is part of EC-CUBE
  219. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  220. http://www.ec-cube.co.jp/
  221. For the full copyright and license information, please view the LICENSE
  222. file that was distributed with this source code.
  223. #}
  224. {% extends 'default_frame.twig' %}
  225. {% set body_class = 'cart_page' %}
  226. {% block main %}
  227.     <div class=\"ec-role\">
  228.         <div class=\"ec-pageHeader\">
  229.             <h1>{{ 'common.login'|trans }}</h1>
  230.         </div>
  231.     </div>
  232.     <div class=\"ec-role\">
  233.         <div class=\"ec-grid3\">
  234.             <div class=\"ec-grid3__cell2\">
  235.                 <form name=\"shopping_login\" id=\"shopping_login\" method=\"post\" action=\"{{ url('mypage_login') }}\">
  236.                     <input type=\"hidden\" name=\"_target_path\" value=\"{{ url('shopping') }}\" />
  237.                     <input type=\"hidden\" name=\"_failure_path\" value=\"{{ url('shopping_login') }}\" />
  238.                     <input type=\"hidden\" name=\"_csrf_token\" value=\"{{ csrf_token('authenticate') }}\">
  239.                     <div class=\"ec-login\">
  240.                         <div class=\"ec-login__icon\">
  241.                             <div class=\"ec-icon\"><img src=\"{{ asset('assets/icon/user.svg') }}\" alt=\"\"></div>
  242.                         </div>
  243.                         <div class=\"ec-login__input\">
  244.                             <div class=\"ec-input\">
  245.                                 {{ form_widget(form.login_email, { attr: { 'style' : 'ime-mode: disabled;', placeholder: 'common.mail_address'|trans, 'autofocus': true }}) }}
  246.                                 {{ form_widget(form.login_pass, { attr: { placeholder: 'common.password'|trans }}) }}
  247.                             </div>
  248.                             {% if BaseInfo.option_remember_me %}
  249.                             <div class=\"ec-checkbox\">
  250.                                 <label>
  251.                                     {% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}
  252.                                         <input type=\"hidden\" name=\"login_memory\" value=\"1\">
  253.                                     {% else %}
  254.                                         {{ form_widget(form.login_memory, { 'label': 'common.remember_me'|trans }) }}
  255.                                     {% endif %}
  256.                                 </label>
  257.                             </div>
  258.                             {% endif %}
  259.                         </div>
  260.                         {% if error %}
  261.                             <p class=\"ec-errorMessage\">{{ error.messageKey|trans(error.messageData, 'validators')|nl2br }}</p>
  262.                         {% endif %}
  263.                         <div class=\"ec-grid2\">
  264.                             <div class=\"ec-grid2__cell\">
  265.                                 <div class=\"ec-login__actions\">
  266.                                     <button type=\"submit\" class=\"ec-blockBtn--cancel\">{{ 'common.login'|trans}}</button>
  267.                                 </div>
  268.                             </div>
  269.                             <div class=\"ec-grid2__cell\">
  270.                                 <div class=\"ec-login__link\"><a class=\"ec-link\" href=\"{{ url('forgot') }}\">{{ 'common.forgot_login'|trans}}</a>
  271.                                 </div>
  272.                                 <div class=\"ec-login__link\"><a class=\"ec-link\" href=\"{{ url('entry') }}\">{{ 'common.signup'|trans}}</a>
  273.                                 </div>
  274.                             </div>
  275.                         </div>
  276.                     </div>
  277.                 </form>
  278.             </div>
  279.             {% if is_granted('IS_AUTHENTICATED_REMEMBERED') == false %}
  280.                 <div class=\"ec-grid3__cell\">
  281.                     <div class=\"ec-guest\">
  282.                         <div class=\"ec-guest__inner\">
  283.                             <p>{{ 'front.shopping.guest_purchase_message'|trans }}</p>
  284.                             <div class=\"ec-guest__actions\"><a class=\"ec-blockBtn--cancel\" href=\"{{ url('shopping_nonmember') }}\">{{ 'front.shopping.guest_purchase'|trans }}</a>
  285.                             </div>
  286.                         </div>
  287.                     </div>
  288.                 </div>
  289.             {% endif %}
  290.         </div>
  291.     </div>
  292. {% endblock %}
  293. ""Shopping/login.twig""/home/rfzhmmpx/public_html/bhw.world/gekiyasumeishi/shop/preprod/src/Eccube/Resource/template/default/Shopping/login.twig");
  294.     }
  295.     
  296.     public function checkSecurity()
  297.     {
  298.         static $tags = array("set" => 13"if" => 40);
  299.         static $filters = array("escape" => 19"trans" => 19"nl2br" => 53);
  300.         static $functions = array("url" => 27"csrf_token" => 30"asset" => 33"form_widget" => 37"is_granted" => 43);
  301.         try {
  302.             $this->sandbox->checkSecurity(
  303.                 ['set''if'],
  304.                 ['escape''trans''nl2br'],
  305.                 ['url''csrf_token''asset''form_widget''is_granted']
  306.             );
  307.         } catch (SecurityError $e) {
  308.             $e->setSourceContext($this->source);
  309.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  310.                 $e->setTemplateLine($tags[$e->getTagName()]);
  311.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  312.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  313.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  314.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  315.             }
  316.             throw $e;
  317.         }
  318.     }
  319. }