var/cache/dev/twig/ea/ea2480bfb8298a4fb3ee9de3a2a937b19e03e93f63c2893972fbaea2d3bdcf0d.php line 51

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. /* Mypage/login.twig */
  14. class __TwigTemplate_8e0570d43bf5470c738a2224c14c3dd26625e15f0a7a916ce2f4cb2ea6ff0b9a 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""Mypage/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""Mypage/login.twig"));
  38.         // line 13
  39.         $context["body_class"] = "mypage";
  40.         // line 11
  41.         $this->parent $this->loadTemplate("default_frame.twig""Mypage/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 "    <div class=\"ec-role content__inner\">
  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("ログイン画面"), "html"nulltrue);
  62.         echo "</h1>
  63.         </div>
  64.         
  65.         ";
  66.         // line 21
  67.         $context['_parent'] = $context;
  68.         $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.'21$this->source); })()), "session", [], "any"falsefalsefalse21), "flashbag", [], "any"falsefalsefalse21), "get", [=> "password_reset_complete"], "method"falsefalsefalse21));
  69.         foreach ($context['_seq'] as $context["_key"] => $context["reset_complete"]) {
  70.             // line 22
  71.             echo "        <div class=\"alert alert-info\">
  72.             <p>";
  73.             // line 23
  74.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($context["reset_complete"]), "html"nulltrue);
  75.             echo "</p>
  76.         </div>
  77.         ";
  78.         }
  79.         $_parent $context['_parent'];
  80.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['reset_complete'], $context['_parent'], $context['loop']);
  81.         $context array_intersect_key($context$_parent) + $_parent;
  82.         // line 26
  83.         echo "        
  84.         ";
  85.         // line 27
  86.         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.'27$this->source); })()), "session", [], "any"falsefalsefalse27), "flashBag", [], "any"falsefalsefalse27), "has", [=> "customize.info.auto_logout"], "method"falsefalsefalse27)) {
  87.             // line 28
  88.             echo "        <div class=\"alert alert-info\">
  89.             <p>";
  90.             // line 29
  91.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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.'29$this->source); })()), "session", [], "any"falsefalsefalse29), "flashBag", [], "any"falsefalsefalse29), "get", [=> "customize.info.auto_logout"], "method"falsefalsefalse29), 0, [], "array"falsefalsefalse29), "html"nulltrue);
  92.             echo "</p>
  93.         </div>
  94.         ";
  95.         }
  96.         // line 32
  97.         echo "        <p class=\"mb-30 ta-center\">
  98.             動画を見るにはログインが必要です。
  99.             <br>
  100.             まだご登録の手続きをされていない方は、<a href=\"";
  101.         // line 35
  102.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("entry");
  103.         echo "\" class=\"ec-link\">こちらより会員登録</a>を行ってください。
  104.         </p>
  105.         <div class=\"ec-off2Grid\">
  106.             <div class=\"ec-off2Grid__cell\">
  107.                 <form name=\"login_mypage\" id=\"login_mypage\" method=\"post\" action=\"";
  108.         // line 39
  109.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("mypage_login");
  110.         echo "\">
  111.                     ";
  112.         // line 40
  113.         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.'40$this->source); })()), "session", [], "any"falsefalsefalse40), "flashBag", [], "any"falsefalsefalse40), "has", [=> "eccube.login.target.path"], "method"falsefalsefalse40)) {
  114.             // line 41
  115.             echo "                        ";
  116.             $context['_parent'] = $context;
  117.             $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.'41$this->source); })()), "session", [], "any"falsefalsefalse41), "flashBag", [], "any"falsefalsefalse41), "peek", [=> "eccube.login.target.path"], "method"falsefalsefalse41));
  118.             foreach ($context['_seq'] as $context["_key"] => $context["targetPath"]) {
  119.                 // line 42
  120.                 echo "                            <input type=\"hidden\" name=\"_target_path\" value=\"";
  121.                 echo twig_escape_filter($this->env$context["targetPath"], "html"nulltrue);
  122.                 echo "\" />
  123.                         ";
  124.             }
  125.             $_parent $context['_parent'];
  126.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['targetPath'], $context['_parent'], $context['loop']);
  127.             $context array_intersect_key($context$_parent) + $_parent;
  128.             // line 44
  129.             echo "                    ";
  130.         }
  131.         // line 45
  132.         echo "                    <div class=\"ec-login\">
  133.                         <div class=\"ec-login__icon\">
  134.                             <div class=\"ec-icon\"><img src=\"";
  135.         // line 47
  136.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/user.svg"), "html"nulltrue);
  137.         echo "\" alt=\"\"></div>
  138.                         </div>
  139.                         <div class=\"ec-login__input\">
  140.                             <div class=\"ec-input\">
  141.                                 ";
  142.         // line 51
  143.         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.'51$this->source); })()), "login_email", [], "any"falsefalsefalse51), 'widget', ["attr" => ["style" => "ime-mode: disabled;""placeholder" => "メールアドレス""autofocus" => true]]);
  144.         echo "
  145.                                 ";
  146.         // line 52
  147.         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.'52$this->source); })()), "login_pass", [], "any"falsefalsefalse52), 'widget', ["attr" => ["placeholder" => "パスワード"]]);
  148.         echo "
  149.                             </div>
  150.                             ";
  151.         // line 54
  152.         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.'54$this->source); })()), "option_remember_me", [], "any"falsefalsefalse54)) {
  153.             // line 55
  154.             echo "                            <div class=\"ec-checkbox\">
  155.                                 <label>
  156.                                     ";
  157.             // line 57
  158.             if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_REMEMBERED")) {
  159.                 // line 58
  160.                 echo "                                        <input type=\"hidden\" name=\"login_memory\" value=\"1\">
  161.                                     ";
  162.             } else {
  163.                 // line 60
  164.                 echo "                                        ";
  165.                 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.'60$this->source); })()), "login_memory", [], "any"falsefalsefalse60), 'widget', ["label" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("次回から自動的にログインする")]);
  166.                 echo "
  167.                                     ";
  168.             }
  169.             // line 62
  170.             echo "                                </label>
  171.                             </div>
  172.                             ";
  173.         }
  174.         // line 65
  175.         echo "                            ";
  176.         // line 66
  177.         echo "                            ";
  178.         // line 67
  179.         echo "                            ";
  180.         // line 68
  181.         echo "                            ";
  182.         if ((isset($context["error"]) || array_key_exists("error"$context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.'68$this->source); })())) {
  183.             // line 69
  184.             echo "                                <p class=\"ec-errorMessage\">";
  185.             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.'69$this->source); })()), "messageKey", [], "any"falsefalsefalse69), 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.'69$this->source); })()), "messageData", [], "any"falsefalsefalse69), "validators"), "html"nulltrue));
  186.             echo "</p>
  187.                             ";
  188.         }
  189.         // line 71
  190.         echo "                        </div>
  191.                         <div class=\"ec-grid2\">
  192.                             <div class=\"ec-grid2__cell\">
  193.                                 <div class=\"ec-login__actions\">
  194.                                     <button type=\"submit\"
  195.                                             class=\"ec-blockBtn--cancel\">";
  196.         // line 76
  197.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ログイン"), "html"nulltrue);
  198.         echo "</button>
  199.                                 </div>
  200.                             </div>
  201.                             <div class=\"ec-grid2__cell\">
  202.                                 <div class=\"ec-login__link\"><a class=\"ec-link\"
  203.                                                                href=\"";
  204.         // line 81
  205.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("forgot");
  206.         echo "\">";
  207.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("パスワードをお忘れの方"), "html"nulltrue);
  208.         echo "</a>
  209.                                 </div>
  210.                                 <div class=\"ec-login__link\"><a class=\"ec-link\"
  211.                                                                href=\"";
  212.         // line 84
  213.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  214.         echo "enquete/detail/3\">";
  215.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("メールアドレスをお忘れの方"), "html"nulltrue);
  216.         echo "</a>
  217.                                 </div>
  218.                                 <div class=\"ec-login__link\"><a class=\"ec-link\"
  219.                                                                href=\"";
  220.         // line 87
  221.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("entry");
  222.         echo "\">";
  223.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("新規会員登録"), "html"nulltrue);
  224.         echo "</a>
  225.                                 </div>
  226.                             </div>
  227.                         </div>
  228.                     </div>
  229.                     <input type=\"hidden\" name=\"_csrf_token\" value=\"";
  230.         // line 92
  231.         echo twig_escape_filter($this->env$this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("authenticate"), "html"nulltrue);
  232.         echo "\">
  233.                 </form>
  234.             </div>
  235.         </div>
  236.     </div>
  237. ";
  238.         
  239.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  240.         
  241.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  242.     }
  243.     public function getTemplateName()
  244.     {
  245.         return "Mypage/login.twig";
  246.     }
  247.     public function isTraitable()
  248.     {
  249.         return false;
  250.     }
  251.     public function getDebugInfo()
  252.     {
  253.         return array (  245 => 92,  235 => 87,  227 => 84,  219 => 81,  211 => 76,  204 => 71,  198 => 69,  195 => 68,  193 => 67,  191 => 66,  189 => 65,  184 => 62,  178 => 60,  174 => 58,  172 => 57,  168 => 55,  166 => 54,  161 => 52,  157 => 51,  150 => 47,  146 => 45,  143 => 44,  134 => 42,  129 => 41,  127 => 40,  123 => 39,  116 => 35,  111 => 32,  105 => 29,  102 => 28,  100 => 27,  97 => 26,  88 => 23,  85 => 22,  81 => 21,  75 => 18,  71 => 16,  61 => 15,  50 => 11,  48 => 13,  35 => 11,);
  254.     }
  255.     public function getSourceContext()
  256.     {
  257.         return new Source("{#
  258. This file is part of EC-CUBE
  259. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  260. http://www.ec-cube.co.jp/
  261. For the full copyright and license information, please view the LICENSE
  262. file that was distributed with this source code.
  263. #}
  264. {% extends 'default_frame.twig' %}
  265. {% set body_class = 'mypage' %}
  266. {% block main %}
  267.     <div class=\"ec-role content__inner\">
  268.         <div class=\"ec-pageHeader\">
  269.             <h1>{{ 'ログイン画面'|trans }}</h1>
  270.         </div>
  271.         
  272.         {% for reset_complete in app.session.flashbag.get('password_reset_complete') %}
  273.         <div class=\"alert alert-info\">
  274.             <p>{{ reset_complete|trans }}</p>
  275.         </div>
  276.         {% endfor %}
  277.         
  278.         {% if app.session.flashBag.has('customize.info.auto_logout') %}
  279.         <div class=\"alert alert-info\">
  280.             <p>{{ app.session.flashBag.get('customize.info.auto_logout')[0] }}</p>
  281.         </div>
  282.         {% endif %}
  283.         <p class=\"mb-30 ta-center\">
  284.             動画を見るにはログインが必要です。
  285.             <br>
  286.             まだご登録の手続きをされていない方は、<a href=\"{{ url('entry') }}\" class=\"ec-link\">こちらより会員登録</a>を行ってください。
  287.         </p>
  288.         <div class=\"ec-off2Grid\">
  289.             <div class=\"ec-off2Grid__cell\">
  290.                 <form name=\"login_mypage\" id=\"login_mypage\" method=\"post\" action=\"{{ url('mypage_login') }}\">
  291.                     {% if app.session.flashBag.has('eccube.login.target.path') %}
  292.                         {% for targetPath in app.session.flashBag.peek('eccube.login.target.path') %}
  293.                             <input type=\"hidden\" name=\"_target_path\" value=\"{{ targetPath }}\" />
  294.                         {% endfor %}
  295.                     {% endif %}
  296.                     <div class=\"ec-login\">
  297.                         <div class=\"ec-login__icon\">
  298.                             <div class=\"ec-icon\"><img src=\"{{ asset('assets/icon/user.svg') }}\" alt=\"\"></div>
  299.                         </div>
  300.                         <div class=\"ec-login__input\">
  301.                             <div class=\"ec-input\">
  302.                                 {{ form_widget(form.login_email, {'attr': {'style' : 'ime-mode: disabled;', 'placeholder' : 'メールアドレス', 'autofocus': true}}) }}
  303.                                 {{ form_widget(form.login_pass,  {'attr': {'placeholder' : 'パスワード' }}) }}
  304.                             </div>
  305.                             {% if BaseInfo.option_remember_me %}
  306.                             <div class=\"ec-checkbox\">
  307.                                 <label>
  308.                                     {% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}
  309.                                         <input type=\"hidden\" name=\"login_memory\" value=\"1\">
  310.                                     {% else %}
  311.                                         {{ form_widget(form.login_memory, { 'label': '次回から自動的にログインする'|trans }) }}
  312.                                     {% endif %}
  313.                                 </label>
  314.                             </div>
  315.                             {% endif %}
  316.                             {#{% for reset_complete in app.session.flashbag.get('password_reset_complete') %}#}
  317.                             {#    <p>{{ reset_complete|trans }}</p>#}
  318.                             {#{% endfor %}#}
  319.                             {% if error %}
  320.                                 <p class=\"ec-errorMessage\">{{ error.messageKey|trans(error.messageData, 'validators')|nl2br }}</p>
  321.                             {% endif %}
  322.                         </div>
  323.                         <div class=\"ec-grid2\">
  324.                             <div class=\"ec-grid2__cell\">
  325.                                 <div class=\"ec-login__actions\">
  326.                                     <button type=\"submit\"
  327.                                             class=\"ec-blockBtn--cancel\">{{ 'ログイン'|trans }}</button>
  328.                                 </div>
  329.                             </div>
  330.                             <div class=\"ec-grid2__cell\">
  331.                                 <div class=\"ec-login__link\"><a class=\"ec-link\"
  332.                                                                href=\"{{ url('forgot') }}\">{{ 'パスワードをお忘れの方'|trans }}</a>
  333.                                 </div>
  334.                                 <div class=\"ec-login__link\"><a class=\"ec-link\"
  335.                                                                href=\"{{ url('homepage') }}enquete/detail/3\">{{ 'メールアドレスをお忘れの方'|trans }}</a>
  336.                                 </div>
  337.                                 <div class=\"ec-login__link\"><a class=\"ec-link\"
  338.                                                                href=\"{{ url('entry') }}\">{{ '新規会員登録'|trans }}</a>
  339.                                 </div>
  340.                             </div>
  341.                         </div>
  342.                     </div>
  343.                     <input type=\"hidden\" name=\"_csrf_token\" value=\"{{ csrf_token('authenticate') }}\">
  344.                 </form>
  345.             </div>
  346.         </div>
  347.     </div>
  348. {% endblock %}""Mypage/login.twig""/home/mahjontv1326/kmj-tv.jp/public_html/dev.kmj-tv.jp/app/template/default/Mypage/login.twig");
  349.     }
  350. }