<?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_51a8f857065154768b1f8f1c3424594a 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 11
return "default_frame.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Mypage/login.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Mypage/login.twig"));
// line 13
$context["body_class"] = "mypage";
// line 11
$this->parent = $this->loadTemplate("default_frame.twig", "Mypage/login.twig", 11);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 15
public function block_main($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
// line 16
echo "\t<div class=\"mt-10 mb-[120px] px-4 md:mt-4 md:mb-10 animate-slideIn\">
\t\t<div class=\"w-full max-w-[720px] flex flex-col gap-10 md:gap-5 mx-auto\">
\t\t\t<h2 class=\"text-2xl md:text-lg font-extralight\">新規会員登録・ログイン</h2>
\t\t\t";
// line 20
echo "\t\t\t<div class=\"bg-manakaBeige\">
\t\t\t\t<h3 class=\"bg-[#A7A79B] text-white font-bold px-8 py-4 mb-10 md:mb-6\">新規会員登録</h3>
\t\t\t\t<p class=\"text-sm text-center font-bold mb-5\">
\t\t\t\t\t<span>●</span>
\t\t\t\t\tはじめてのご利用はこちら
\t\t\t\t</p>
\t\t\t\t<a class=\"mb-10 md:mb-5 py-4 md:py-3 block text-lg text-white text-center bg-[#333] mx-auto w-[calc(100%-32px)] max-w-[300px] md:text-base hover\" href=\"";
// line 26
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("entry");
echo "\">会員登録</a>
\t\t\t</div>
\t\t\t";
// line 29
echo "\t\t\t<form name=\"login_mypage\" id=\"login_mypage\" method=\"post\" action=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("mypage_login");
echo "\">
\t\t\t\t";
// line 30
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.', 30, $this->source); })()), "session", [], "any", false, false, true, 30), "flashBag", [], "any", false, false, true, 30), "has", [0 => "eccube.login.target.path"], "method", false, false, true, 30)) {
// line 31
echo "\t\t\t\t\t";
$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.', 31, $this->source); })()), "session", [], "any", false, false, true, 31), "flashBag", [], "any", false, false, true, 31), "peek", [0 => "eccube.login.target.path"], "method", false, false, true, 31));
foreach ($context['_seq'] as $context["_key"] => $context["targetPath"]) {
// line 32
echo "\t\t\t\t\t\t<input type=\"hidden\" name=\"_target_path\" value=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed($context["targetPath"], 32, $this->source), "html", null, true);
echo "\"/>
\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['targetPath'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 34
echo "\t\t\t\t";
}
// line 35
echo "\t\t\t\t<div class=\"flex flex-col items-center w-full bg-manakaBeige x\">
\t\t\t\t\t<h3 class=\"bg-[#A7A79B] text-white font-bold px-8 py-4 mb-10 w-full md:mb-6\">ログイン</h3>
";
// line 37
if ((isset($context["error"]) || array_key_exists("error", $context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.', 37, $this->source); })())) {
// line 38
echo " <p class=\"my-2 text-[15px] text-[#be5255] font-bold text-center\">";
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.', 38, $this->source); })()), "messageKey", [], "any", false, false, true, 38), 38, $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.', 38, $this->source); })()), "messageData", [], "any", false, false, true, 38), 38, $this->source), "validators"), "html", null, true));
echo "</p>
";
}
// line 40
echo "\t\t\t\t\t<div class=\"w-full mb-6 md:mb-5 px-4 max-w-[576px] mx-auto\">
\t\t\t\t\t\t<div class=\"flex flex-col gap-4 md:gap-3 w-full\">
\t\t\t\t\t\t\t";
// 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" => ["class" => "w-full max-w-[576px] mx-auto px-4 py-2 border border-[#CCC] rounded-md", "style" => "ime-mode: disabled;", "placeholder" => "common.mail_address", "autofocus" => true]]);
echo "
\t\t\t\t\t\t\t";
// line 43
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.', 43, $this->source); })()), "login_pass", [], "any", false, false, true, 43), 43, $this->source), 'widget', ["attr" => ["class" => "w-full max-w-[576px] mx-auto px-4 py-2 border border-[#CCC] rounded-md", "placeholder" => "common.password"]]);
echo "
\t\t\t\t\t\t</div>
\t\t\t\t\t\t";
// line 45
$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.', 45, $this->source); })()), "session", [], "any", false, false, true, 45), "flashbag", [], "any", false, false, true, 45), "get", [0 => "password_reset_complete"], "method", false, false, true, 45));
foreach ($context['_seq'] as $context["_key"] => $context["reset_complete"]) {
// line 46
echo "\t\t\t\t\t\t\t<p class=\"mt-2\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->sandbox->ensureToStringAllowed($context["reset_complete"], 46, $this->source)), "html", null, true);
echo "</p>
\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['reset_complete'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 48
echo "\t\t\t\t\t</div>
\t\t\t\t\t<button type=\"submit\" class=\"mb-3 text-lg bg-[#333] text-white w-[calc(100%-32px)] max-w-[300px] py-4 md:py-3 md:text-base hover\">";
// line 49
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("common.login"), "html", null, true);
echo "</button>
\t\t\t\t\t<a class=\"underline mb-10 md:mb-5 hover md:text-sm\" href=\"";
// line 50
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("forgot");
echo "\">パスワードを忘れた方</a>
\t\t\t\t</div>
\t\t\t\t<input type=\"hidden\" name=\"_csrf_token\" value=\"";
// line 52
echo twig_escape_filter($this->env, $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("authenticate"), "html", null, true);
echo "\">
\t\t\t\t<div class=\"ec-login\"></div>
\t\t\t</form>
\t\t</div>
\t</div>
\t<div class=\"w-[calc(100%-32px)] max-w-[1120px] mx-auto\">
\t\t";
// line 58
$context["breadcrumbs"] = [0 => ["name" => "新規会員登録・ログイン"]];
// line 59
echo "\t\t";
$this->loadTemplate("Block/breadcrumbs.twig", "Mypage/login.twig", 59)->display($context);
// line 60
echo "\t</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "Mypage/login.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 179 => 60, 176 => 59, 174 => 58, 165 => 52, 160 => 50, 156 => 49, 153 => 48, 144 => 46, 140 => 45, 135 => 43, 131 => 42, 127 => 40, 121 => 38, 119 => 37, 115 => 35, 112 => 34, 103 => 32, 98 => 31, 96 => 30, 91 => 29, 86 => 26, 78 => 20, 73 => 16, 63 => 15, 52 => 11, 50 => 13, 37 => 11,);
}
public function getSourceContext()
{
return new Source("{#
This file is part of EC-CUBE
Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
http://www.ec-cube.co.jp/
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
#}
{% extends 'default_frame.twig' %}
{% set body_class = 'mypage' %}
{% block main %}
\t<div class=\"mt-10 mb-[120px] px-4 md:mt-4 md:mb-10 animate-slideIn\">
\t\t<div class=\"w-full max-w-[720px] flex flex-col gap-10 md:gap-5 mx-auto\">
\t\t\t<h2 class=\"text-2xl md:text-lg font-extralight\">新規会員登録・ログイン</h2>
\t\t\t{# 新規会員登録 #}
\t\t\t<div class=\"bg-manakaBeige\">
\t\t\t\t<h3 class=\"bg-[#A7A79B] text-white font-bold px-8 py-4 mb-10 md:mb-6\">新規会員登録</h3>
\t\t\t\t<p class=\"text-sm text-center font-bold mb-5\">
\t\t\t\t\t<span>●</span>
\t\t\t\t\tはじめてのご利用はこちら
\t\t\t\t</p>
\t\t\t\t<a class=\"mb-10 md:mb-5 py-4 md:py-3 block text-lg text-white text-center bg-[#333] mx-auto w-[calc(100%-32px)] max-w-[300px] md:text-base hover\" href=\"{{ url('entry') }}\">会員登録</a>
\t\t\t</div>
\t\t\t{# ログイン #}
\t\t\t<form name=\"login_mypage\" id=\"login_mypage\" method=\"post\" action=\"{{ url('mypage_login') }}\">
\t\t\t\t{% if app.session.flashBag.has('eccube.login.target.path') %}
\t\t\t\t\t{% for targetPath in app.session.flashBag.peek('eccube.login.target.path') %}
\t\t\t\t\t\t<input type=\"hidden\" name=\"_target_path\" value=\"{{ targetPath }}\"/>
\t\t\t\t\t{% endfor %}
\t\t\t\t{% endif %}
\t\t\t\t<div class=\"flex flex-col items-center w-full bg-manakaBeige x\">
\t\t\t\t\t<h3 class=\"bg-[#A7A79B] text-white font-bold px-8 py-4 mb-10 w-full md:mb-6\">ログイン</h3>
{% if error %}
<p class=\"my-2 text-[15px] text-[#be5255] font-bold text-center\">{{ error.messageKey|trans(error.messageData, 'validators')|nl2br }}</p>
{% endif %}
\t\t\t\t\t<div class=\"w-full mb-6 md:mb-5 px-4 max-w-[576px] mx-auto\">
\t\t\t\t\t\t<div class=\"flex flex-col gap-4 md:gap-3 w-full\">
\t\t\t\t\t\t\t{{ form_widget(form.login_email, {'attr': {'class':'w-full max-w-[576px] mx-auto px-4 py-2 border border-[#CCC] rounded-md','style' : 'ime-mode: disabled;', 'placeholder' : 'common.mail_address', 'autofocus': true}}) }}
\t\t\t\t\t\t\t{{ form_widget(form.login_pass, {'attr': {'class':'w-full max-w-[576px] mx-auto px-4 py-2 border border-[#CCC] rounded-md','placeholder' : 'common.password' }}) }}
\t\t\t\t\t\t</div>
\t\t\t\t\t\t{% for reset_complete in app.session.flashbag.get('password_reset_complete') %}
\t\t\t\t\t\t\t<p class=\"mt-2\">{{ reset_complete|trans }}</p>
\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t</div>
\t\t\t\t\t<button type=\"submit\" class=\"mb-3 text-lg bg-[#333] text-white w-[calc(100%-32px)] max-w-[300px] py-4 md:py-3 md:text-base hover\">{{ 'common.login'|trans }}</button>
\t\t\t\t\t<a class=\"underline mb-10 md:mb-5 hover md:text-sm\" href=\"{{ url('forgot') }}\">パスワードを忘れた方</a>
\t\t\t\t</div>
\t\t\t\t<input type=\"hidden\" name=\"_csrf_token\" value=\"{{ csrf_token('authenticate') }}\">
\t\t\t\t<div class=\"ec-login\"></div>
\t\t\t</form>
\t\t</div>
\t</div>
\t<div class=\"w-[calc(100%-32px)] max-w-[1120px] mx-auto\">
\t\t{% set breadcrumbs = [{'name': '新規会員登録・ログイン'}] %}
\t\t{% include('Block/breadcrumbs.twig') %}
\t</div>
{% endblock %}
", "Mypage/login.twig", "/home/xs082386/manaka-store.com/public_html/stg-renewal.manaka-store.com/app/template/default/Mypage/login.twig");
}
public function checkSecurity()
{
static $tags = array("set" => 13, "if" => 30, "for" => 31, "include" => 59);
static $filters = array("escape" => 32, "nl2br" => 38, "trans" => 38);
static $functions = array("url" => 26, "form_widget" => 42, "csrf_token" => 52);
try {
$this->sandbox->checkSecurity(
['set', 'if', 'for', 'include'],
['escape', 'nl2br', 'trans'],
['url', 'form_widget', '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;
}
}
}