<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* Mypage/login.twig */
class __TwigTemplate_e20698a390552366c6c95d323e70e6ed6e362e6d5412c3de58520f3b5008e075 extends \Eccube\Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'main' => [$this, 'block_main'],
];
$this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
$this->checkSecurity();
}
protected function doGetParent(array $context)
{
// line 22
return "default_frame.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Mypage/login.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Mypage/login.twig"));
// line 24
$context["body_class"] = "mypage";
// line 22
$this->parent = $this->loadTemplate("default_frame.twig", "Mypage/login.twig", 22);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 26
public function block_main($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
// line 27
echo "<div class=\"login_box login\">
<h2>ログイン</h2>
<div class=\"container-fluid\">
<form name=\"login_mypage\" id=\"login_mypage\" method=\"post\" action=\"";
// line 30
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("mypage_login");
echo "\">
";
// line 31
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_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.', 31, $this->source); })()), "session", [], "any", false, false, true, 31), "flashBag", [], "any", false, false, true, 31), "has", [0 => "eccube.login.target.path"], "method", false, false, true, 31)) {
// line 32
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_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.', 32, $this->source); })()), "session", [], "any", false, false, true, 32), "flashBag", [], "any", false, false, true, 32), "get", [0 => "eccube.login.target.path"], "method", false, false, true, 32));
foreach ($context['_seq'] as $context["_key"] => $context["targetPath"]) {
// line 33
echo " <input type=\"hidden\" name=\"_target_path\" value=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed($context["targetPath"], 33, $this->source), "html", null, true);
echo "\" />
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['targetPath'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 35
echo " ";
}
// line 36
echo " <div id=\"login_box\" class=\"row\">
<div id=\"mypage_login_wrap\">
<div id=\"mypage_login_box\" class=\"column\">
<div id=\"mypage_login_box__body\" class=\"column_inner clearfix\">
<div id=\"mypage_login_box__login_email\" class=\"form-group\">
";
// line 42
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.', 42, $this->source); })()), "login_email", [], "any", false, false, true, 42), 42, $this->source), 'widget', ["attr" => ["style" => "ime-mode: disabled;", "placeholder" => "ログインID/メールアドレス", "autofocus" => true]]);
echo "
<p class=\"kome\" style=\"width: 85%; margin:0 auto;\">登録済の方はメールアドレスでログインしてください。</p>
</div>
<div id=\"mypage_login_box__login_pass\" class=\"form-group\">
";
// line 46
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_pass", [], "any", false, false, true, 46), 46, $this->source), 'widget', ["attr" => ["placeholder" => "パスワード"]]);
echo "
";
// line 47
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.', 47, $this->source); })()), "option_remember_me", [], "any", false, false, true, 47)) {
// line 48
echo " ";
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_REMEMBERED")) {
// line 49
echo " <input id=\"mypage_login_box__login_memory\" type=\"hidden\" name=\"login_memory\" value=\"1\">
";
} else {
// line 51
echo " ";
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.', 51, $this->source); })()), "login_memory", [], "any", false, false, true, 51), 51, $this->source), 'widget', ["label" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("次回から自動的にログインする")]);
echo "
";
}
// line 53
echo " ";
}
// line 54
echo " </div>
<div class=\"extra-form form-group\">
";
// line 56
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(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.', 56, $this->source); })()), "getIterator", [], "any", false, false, true, 56));
foreach ($context['_seq'] as $context["_key"] => $context["f"]) {
// line 57
echo " ";
if (preg_match("[^plg*]", twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["f"], "vars", [], "any", false, false, true, 57), "name", [], "any", false, false, true, 57))) {
// line 58
echo " ";
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed($context["f"], 58, $this->source), 'label');
echo "
";
// line 59
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed($context["f"], 59, $this->source), 'widget');
echo "
";
// line 60
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed($context["f"], 60, $this->source), 'errors');
echo "
";
}
// line 62
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['f'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 63
echo " </div>
";
// line 64
if ((isset($context["error"]) || array_key_exists("error", $context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.', 64, $this->source); })())) {
// line 65
echo " <div id=\"mypage_login_box__error_message\" class=\"form-group\">
<span class=\"text-danger\">";
// line 66
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.', 66, $this->source); })()), "messageKey", [], "any", false, false, true, 66), 66, $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.', 66, $this->source); })()), "messageData", [], "any", false, false, true, 66), 66, $this->source), "validators"), "html", null, true));
echo "</span>
</div>
";
}
// line 69
echo "<div class=\"browicon\">
<p><span class=\"tit_browser\">○対応ブラウザ</span>
<span><span class=\"icon-edge\">Microsoft Edge</span><span class=\"icon-safari\">Safari</span><span class=\"icon-chrome\">Google Chrome</span><span class=\"icon-firefox\">Firefox</span></span></p>
<p><span class=\"tit_browser\"><span>×ご利用に</span><span>なれません</span></span>
<span><span class=\"icon-IE\">Internet Explorer</span></span></p>
</div>
<div id=\"mypage_login__login_button\" class=\"btn_area\">
<button type=\"submit\" class=\"def_button3 unibtn\">ログイン</button>
<a class=\"forgot\" href=\"";
// line 77
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("forgot");
echo "\"><span>ログインIDがわからない、</span><span>パスワードを忘れた場合はこちら</span></a>
</div>
</div>
</div>
</div><!-- /.col -->
</div><!-- /.row -->
<input type=\"hidden\" name=\"_csrf_token\" value=\"";
// line 83
echo twig_escape_filter($this->env, $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("authenticate"), "html", null, true);
echo "\">
</form>
</div>
</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "Mypage/login.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 202 => 83, 193 => 77, 183 => 69, 177 => 66, 174 => 65, 172 => 64, 169 => 63, 163 => 62, 158 => 60, 154 => 59, 149 => 58, 146 => 57, 142 => 56, 138 => 54, 135 => 53, 129 => 51, 125 => 49, 122 => 48, 120 => 47, 116 => 46, 109 => 42, 101 => 36, 98 => 35, 89 => 33, 84 => 32, 82 => 31, 78 => 30, 73 => 27, 63 => 26, 52 => 22, 50 => 24, 37 => 22,);
}
public function getSourceContext()
{
return new Source("{#
This file is part of EC-CUBE
Copyright(c) 2000-2015 LOCKON CO.,LTD. All Rights Reserved.
http://www.lockon.co.jp/
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#}
{% extends 'default_frame.twig' %}
{% set body_class = 'mypage' %}
{% block main %}
<div class=\"login_box login\">
<h2>ログイン</h2>
<div class=\"container-fluid\">
<form name=\"login_mypage\" id=\"login_mypage\" method=\"post\" action=\"{{ url('mypage_login') }}\">
{% if app.session.flashBag.has('eccube.login.target.path') %}
{% for targetPath in app.session.flashBag.get('eccube.login.target.path') %}
<input type=\"hidden\" name=\"_target_path\" value=\"{{ targetPath }}\" />
{% endfor %}
{% endif %}
<div id=\"login_box\" class=\"row\">
<div id=\"mypage_login_wrap\">
<div id=\"mypage_login_box\" class=\"column\">
<div id=\"mypage_login_box__body\" class=\"column_inner clearfix\">
<div id=\"mypage_login_box__login_email\" class=\"form-group\">
{{ form_widget(form.login_email, {'attr': {'style' : 'ime-mode: disabled;', 'placeholder' : 'ログインID/メールアドレス', 'autofocus': true}}) }}
<p class=\"kome\" style=\"width: 85%; margin:0 auto;\">登録済の方はメールアドレスでログインしてください。</p>
</div>
<div id=\"mypage_login_box__login_pass\" class=\"form-group\">
{{ form_widget(form.login_pass, {'attr': {'placeholder' : 'パスワード' }}) }}
{% if BaseInfo.option_remember_me %}
{% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}
<input id=\"mypage_login_box__login_memory\" type=\"hidden\" name=\"login_memory\" value=\"1\">
{% else %}
{{ form_widget(form.login_memory, { 'label': '次回から自動的にログインする'|trans }) }}
{% endif %}
{% endif %}
</div>
<div class=\"extra-form form-group\">
{% for f in form.getIterator %}
{% if f.vars.name matches '[^plg*]' %}
{{ form_label(f) }}
{{ form_widget(f) }}
{{ form_errors(f) }}
{% endif %}
{% endfor %}
</div>
{% if error %}
<div id=\"mypage_login_box__error_message\" class=\"form-group\">
<span class=\"text-danger\">{{ error.messageKey|trans(error.messageData, 'validators')|nl2br }}</span>
</div>
{% endif %}
<div class=\"browicon\">
<p><span class=\"tit_browser\">○対応ブラウザ</span>
<span><span class=\"icon-edge\">Microsoft Edge</span><span class=\"icon-safari\">Safari</span><span class=\"icon-chrome\">Google Chrome</span><span class=\"icon-firefox\">Firefox</span></span></p>
<p><span class=\"tit_browser\"><span>×ご利用に</span><span>なれません</span></span>
<span><span class=\"icon-IE\">Internet Explorer</span></span></p>
</div>
<div id=\"mypage_login__login_button\" class=\"btn_area\">
<button type=\"submit\" class=\"def_button3 unibtn\">ログイン</button>
<a class=\"forgot\" href=\"{{ url('forgot') }}\"><span>ログインIDがわからない、</span><span>パスワードを忘れた場合はこちら</span></a>
</div>
</div>
</div>
</div><!-- /.col -->
</div><!-- /.row -->
<input type=\"hidden\" name=\"_csrf_token\" value=\"{{ csrf_token('authenticate') }}\">
</form>
</div>
</div>
{% endblock %}", "Mypage/login.twig", "/home/nmtokyolad01/tokyoladies-onlinestore.com/public_html/app/template/unishop/Mypage/login.twig");
}
public function checkSecurity()
{
static $tags = array("set" => 24, "if" => 31, "for" => 32);
static $filters = array("escape" => 33, "trans" => 51, "nl2br" => 66);
static $functions = array("url" => 30, "form_widget" => 42, "is_granted" => 48, "form_label" => 58, "form_errors" => 60, "csrf_token" => 83);
try {
$this->sandbox->checkSecurity(
['set', 'if', 'for'],
['escape', 'trans', 'nl2br'],
['url', 'form_widget', 'is_granted', 'form_label', 'form_errors', 'csrf_token']
);
} catch (SecurityError $e) {
$e->setSourceContext($this->source);
if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
$e->setTemplateLine($tags[$e->getTagName()]);
} elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
$e->setTemplateLine($filters[$e->getFilterName()]);
} elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
$e->setTemplateLine($functions[$e->getFunctionName()]);
}
throw $e;
}
}
}