var/cache/dev/twig/3b/3baa3c947b566f0f197283ee75311ead3516547394014ffa8b23e48321f67b1f.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. /* __string_template__27239f964384516c3998e6613e6eebaf95468db83f3b559574a9467d48f0f15a */
  14. class __TwigTemplate_4489bbbf45f368aded2b50390d6181d916e0bbd0cbdc0ff56f0e6783f20929af 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""__string_template__27239f964384516c3998e6613e6eebaf95468db83f3b559574a9467d48f0f15a"));
  36.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""__string_template__27239f964384516c3998e6613e6eebaf95468db83f3b559574a9467d48f0f15a"));
  38.         // line 13
  39.         $context["body_class"] = "mypage";
  40.         // line 11
  41.         $this->parent $this->loadTemplate("default_frame.twig""__string_template__27239f964384516c3998e6613e6eebaf95468db83f3b559574a9467d48f0f15a"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 "    <div class=\"ec-role\">
  58.         <div class=\"ec-pageHeader\">
  59.             <h1>";
  60.         // line 18
  61.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("common.login"), "html"nulltrue);
  62.         echo "</h1>
  63.         </div>
  64.         <div class=\"ec-off2Grid\">
  65.             <div class=\"ec-off2Grid__cell\"><div class=\"btn\" style=\"\"><a href=\"https://test-darcys-factory.xyz/plugin_line_login\" class=\"line-button\"><img src=\"https://test-darcys-factory.xyz/html/plugin/line_login_integration/assets/img/btn_login_base.png\" alt=\"LINEログイン\"></a></div><br>
  66.                 <form name=\"login_mypage\" id=\"login_mypage\" method=\"post\" action=\"";
  67.         // line 23
  68.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("mypage_login");
  69.         echo "\">
  70.                     ";
  71.         // line 24
  72.         if (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.'24$this->source); })()), "session", [], "any"falsefalsefalse24), "flashBag", [], "any"falsefalsefalse24), "has", [=> "eccube.login.target.path"], "method"falsefalsefalse24)) {
  73.             // line 25
  74.             echo "                        ";
  75.             $context['_parent'] = $context;
  76.             $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.'25$this->source); })()), "session", [], "any"falsefalsefalse25), "flashBag", [], "any"falsefalsefalse25), "peek", [=> "eccube.login.target.path"], "method"falsefalsefalse25));
  77.             foreach ($context['_seq'] as $context["_key"] => $context["targetPath"]) {
  78.                 // line 26
  79.                 echo "                            <input type=\"hidden\" name=\"_target_path\" value=\"";
  80.                 echo twig_escape_filter($this->env$context["targetPath"], "html"nulltrue);
  81.                 echo "\" />
  82.                         ";
  83.             }
  84.             $_parent $context['_parent'];
  85.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['targetPath'], $context['_parent'], $context['loop']);
  86.             $context array_intersect_key($context$_parent) + $_parent;
  87.             // line 28
  88.             echo "                    ";
  89.         }
  90.         // line 29
  91.         echo "                    <div class=\"ec-login\">
  92.                         <div class=\"ec-login__icon\">
  93.                             <div class=\"ec-icon\"><img src=\"";
  94.         // line 31
  95.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/user.svg"), "html"nulltrue);
  96.         echo "\" alt=\"\"></div>
  97.                         </div>
  98.                         <div class=\"ec-login__input\">
  99.                             <div class=\"ec-input\">
  100.                                 ";
  101.         // line 35
  102.         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.'35$this->source); })()), "login_email", [], "any"falsefalsefalse35), 'widget', ["attr" => ["style" => "ime-mode: disabled;""placeholder" => "common.mail_address""autofocus" => true]]);
  103.         echo "
  104.                                 ";
  105.         // line 36
  106.         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.'36$this->source); })()), "login_pass", [], "any"falsefalsefalse36), 'widget', ["attr" => ["placeholder" => "common.password"]]);
  107.         echo "
  108.                             </div>
  109.                             ";
  110.         // line 38
  111.         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.'38$this->source); })()), "option_remember_me", [], "any"falsefalsefalse38)) {
  112.             // line 39
  113.             echo "                            <div class=\"ec-checkbox\">
  114.                                 <label>
  115.                                     ";
  116.             // line 41
  117.             if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_REMEMBERED")) {
  118.                 // line 42
  119.                 echo "                                        <input type=\"hidden\" name=\"login_memory\" value=\"1\">
  120.                                     ";
  121.             } else {
  122.                 // line 44
  123.                 echo "                                        ";
  124.                 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.'44$this->source); })()), "login_memory", [], "any"falsefalsefalse44), 'widget', ["label" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("common.remember_me")]);
  125.                 echo "
  126.                                     ";
  127.             }
  128.             // line 46
  129.             echo "                                </label>
  130.                             </div>
  131.                             ";
  132.         }
  133.         // line 49
  134.         echo "                            ";
  135.         $context['_parent'] = $context;
  136.         $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.'49$this->source); })()), "session", [], "any"falsefalsefalse49), "flashbag", [], "any"falsefalsefalse49), "get", [=> "password_reset_complete"], "method"falsefalsefalse49));
  137.         foreach ($context['_seq'] as $context["_key"] => $context["reset_complete"]) {
  138.             // line 50
  139.             echo "                                <p>";
  140.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($context["reset_complete"]), "html"nulltrue);
  141.             echo "</p>
  142.                             ";
  143.         }
  144.         $_parent $context['_parent'];
  145.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['reset_complete'], $context['_parent'], $context['loop']);
  146.         $context array_intersect_key($context$_parent) + $_parent;
  147.         // line 52
  148.         echo "                            ";
  149.         if ((isset($context["error"]) || array_key_exists("error"$context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.'52$this->source); })())) {
  150.             // line 53
  151.             echo "                                <p class=\"ec-errorMessage\">";
  152.             echo 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));
  153.             echo "</p>
  154.                             ";
  155.         }
  156.         // line 55
  157.         echo "                        </div>
  158.                         <div class=\"ec-grid2\">
  159.                             <div class=\"ec-grid2__cell\">
  160.                                 <div class=\"ec-login__actions\">
  161.                                     <button type=\"submit\"
  162.                                             class=\"ec-blockBtn--cancel\">";
  163.         // line 60
  164.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("common.login"), "html"nulltrue);
  165.         echo "</button>
  166.                                 </div>
  167.                             </div>
  168.                             <div class=\"ec-grid2__cell\">
  169.                                 <div class=\"ec-login__link\"><a class=\"ec-link\"
  170.                                                                href=\"";
  171.         // line 65
  172.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("forgot");
  173.         echo "\">";
  174.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("common.forgot_login"), "html"nulltrue);
  175.         echo "</a>
  176.                                 </div>
  177.                                 <div class=\"ec-login__link\"><a class=\"ec-link\"
  178.                                                                href=\"";
  179.         // line 68
  180.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("entry");
  181.         echo "\">";
  182.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("common.signup"), "html"nulltrue);
  183.         echo "</a>
  184.                                 </div>
  185.                             </div>
  186.                         </div>
  187.                     </div>
  188.                     <input type=\"hidden\" name=\"_csrf_token\" value=\"";
  189.         // line 73
  190.         echo twig_escape_filter($this->env$this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("authenticate"), "html"nulltrue);
  191.         echo "\">
  192.                 </form>
  193.             </div>
  194.         </div>
  195.     </div>
  196. ";
  197.         
  198.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  199.         
  200.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  201.     }
  202.     public function getTemplateName()
  203.     {
  204.         return "__string_template__27239f964384516c3998e6613e6eebaf95468db83f3b559574a9467d48f0f15a";
  205.     }
  206.     public function isTraitable()
  207.     {
  208.         return false;
  209.     }
  210.     public function getDebugInfo()
  211.     {
  212.         return array (  205 => 73,  195 => 68,  187 => 65,  179 => 60,  172 => 55,  166 => 53,  163 => 52,  154 => 50,  149 => 49,  144 => 46,  138 => 44,  134 => 42,  132 => 41,  128 => 39,  126 => 38,  121 => 36,  117 => 35,  110 => 31,  106 => 29,  103 => 28,  94 => 26,  89 => 25,  87 => 24,  83 => 23,  75 => 18,  71 => 16,  61 => 15,  50 => 11,  48 => 13,  35 => 11,);
  213.     }
  214.     public function getSourceContext()
  215.     {
  216.         return new Source("{#
  217. This file is part of EC-CUBE
  218. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  219. http://www.ec-cube.co.jp/
  220. For the full copyright and license information, please view the LICENSE
  221. file that was distributed with this source code.
  222. #}
  223. {% extends 'default_frame.twig' %}
  224. {% set body_class = 'mypage' %}
  225. {% block main %}
  226.     <div class=\"ec-role\">
  227.         <div class=\"ec-pageHeader\">
  228.             <h1>{{ 'common.login'|trans }}</h1>
  229.         </div>
  230.         <div class=\"ec-off2Grid\">
  231.             <div class=\"ec-off2Grid__cell\"><div class=\"btn\" style=\"\"><a href=\"https://test-darcys-factory.xyz/plugin_line_login\" class=\"line-button\"><img src=\"https://test-darcys-factory.xyz/html/plugin/line_login_integration/assets/img/btn_login_base.png\" alt=\"LINEログイン\"></a></div><br>
  232.                 <form name=\"login_mypage\" id=\"login_mypage\" method=\"post\" action=\"{{ url('mypage_login') }}\">
  233.                     {% if app.session.flashBag.has('eccube.login.target.path') %}
  234.                         {% for targetPath in app.session.flashBag.peek('eccube.login.target.path') %}
  235.                             <input type=\"hidden\" name=\"_target_path\" value=\"{{ targetPath }}\" />
  236.                         {% endfor %}
  237.                     {% endif %}
  238.                     <div class=\"ec-login\">
  239.                         <div class=\"ec-login__icon\">
  240.                             <div class=\"ec-icon\"><img src=\"{{ asset('assets/icon/user.svg') }}\" alt=\"\"></div>
  241.                         </div>
  242.                         <div class=\"ec-login__input\">
  243.                             <div class=\"ec-input\">
  244.                                 {{ form_widget(form.login_email, {'attr': {'style' : 'ime-mode: disabled;', 'placeholder' : 'common.mail_address', 'autofocus': true}}) }}
  245.                                 {{ form_widget(form.login_pass,  {'attr': {'placeholder' : 'common.password' }}) }}
  246.                             </div>
  247.                             {% if BaseInfo.option_remember_me %}
  248.                             <div class=\"ec-checkbox\">
  249.                                 <label>
  250.                                     {% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}
  251.                                         <input type=\"hidden\" name=\"login_memory\" value=\"1\">
  252.                                     {% else %}
  253.                                         {{ form_widget(form.login_memory, { 'label': 'common.remember_me'|trans }) }}
  254.                                     {% endif %}
  255.                                 </label>
  256.                             </div>
  257.                             {% endif %}
  258.                             {% for reset_complete in app.session.flashbag.get('password_reset_complete') %}
  259.                                 <p>{{ reset_complete|trans }}</p>
  260.                             {% endfor %}
  261.                             {% if error %}
  262.                                 <p class=\"ec-errorMessage\">{{ error.messageKey|trans(error.messageData, 'validators')|nl2br }}</p>
  263.                             {% endif %}
  264.                         </div>
  265.                         <div class=\"ec-grid2\">
  266.                             <div class=\"ec-grid2__cell\">
  267.                                 <div class=\"ec-login__actions\">
  268.                                     <button type=\"submit\"
  269.                                             class=\"ec-blockBtn--cancel\">{{ 'common.login'|trans }}</button>
  270.                                 </div>
  271.                             </div>
  272.                             <div class=\"ec-grid2__cell\">
  273.                                 <div class=\"ec-login__link\"><a class=\"ec-link\"
  274.                                                                href=\"{{ url('forgot') }}\">{{ 'common.forgot_login'|trans }}</a>
  275.                                 </div>
  276.                                 <div class=\"ec-login__link\"><a class=\"ec-link\"
  277.                                                                href=\"{{ url('entry') }}\">{{ 'common.signup'|trans }}</a>
  278.                                 </div>
  279.                             </div>
  280.                         </div>
  281.                     </div>
  282.                     <input type=\"hidden\" name=\"_csrf_token\" value=\"{{ csrf_token('authenticate') }}\">
  283.                 </form>
  284.             </div>
  285.         </div>
  286.     </div>
  287. {% endblock %}
  288. ""__string_template__27239f964384516c3998e6613e6eebaf95468db83f3b559574a9467d48f0f15a""");
  289.     }
  290. }