<?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_c38928fa05da39f75312203386518d69 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"));
$__eccube__gblobal = $this->env->getGlobals();
$__eccube__eventDispatcher = $__eccube__gblobal['event_dispatcher'];
$__eccube__source = $this->env->getLoader()->getSourceContext($this->getTemplateName())->getCode();
$__eccube__event = new \Eccube\Event\TemplateEvent($this->getTemplateName(), $__eccube__source, $context);
$__eccube__eventDispatcher->dispatch($__eccube__event, $this->getTemplateName());
$context = $__eccube__event->getParameters();
if ($__eccube__event->getSource() !== $__eccube__source) {
$__eccube__newTemplate = $this->env->createTemplate($__eccube__event->getSource());
$__eccube__newTemplate->display($__eccube__event->getParameters(), $blocks);
return;
}
$__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 login";
// 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 " <div class=\"ec-role\">
<div class=\"ec-pageHeader\">
<h1>";
// line 18
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ログイン"), "html", null, true);
echo "</h1>
</div>
<div class=\"ec-off2Grid\">
<div class=\"ec-off2Grid__cell\">
<div class=\"ec-login ec-login--register\">
<h2 class=\"ec-login__registerTitle\">新規会員登録</h2>
<div class=\"ec-login__actions\">
<a href=\"";
// line 25
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("entry");
echo "\" class=\"ec-blockBtn--action\">新規会員登録(無料)に進む</a>
</div>
<p class=\"ec-login__registerText\"> PRO Membership(有料会員) 加入で永久10%OFF、年会費なし。</p>
<div class=\"ec-login__registerBanner\">
<a href=\"https://shop.temptu.co.jp/products/detail/235\"><img src=\"https://shop.temptu.co.jp/html/upload/save_image/1658122492.jpg\" alt=\"PRO(有料会員)\"></a>
</div>
<p>↑ご加入はこちらを同時にご購入ください</p>
</div>
</div>
<div class=\"ec-off2Grid__cell\">
<form name=\"login_mypage\" id=\"login_mypage\" method=\"post\" action=\"";
// line 37
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("mypage_login");
echo "\">
";
// line 38
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.', 38, $this->source); })()), "session", [], "any", false, false, true, 38), "flashBag", [], "any", false, false, true, 38), "has", [0 => "eccube.login.target.path"], "method", false, false, true, 38)) {
// line 39
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.', 39, $this->source); })()), "session", [], "any", false, false, true, 39), "flashBag", [], "any", false, false, true, 39), "peek", [0 => "eccube.login.target.path"], "method", false, false, true, 39));
foreach ($context['_seq'] as $context["_key"] => $context["targetPath"]) {
// line 40
echo " <input type=\"hidden\" name=\"_target_path\" value=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed($context["targetPath"], 40, $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 42
echo " ";
}
// line 43
echo " <div class=\"ec-login\">
<h2 class=\"ec-login__registerTitle\">既にメンバーの方はログイン</h2>
<div class=\"ec-login__input\">
<div class=\"ec-input\">
";
// line 48
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.', 48, $this->source); })()), "login_email", [], "any", false, false, true, 48), 48, $this->source), 'widget', ["attr" => ["style" => "ime-mode: disabled;", "placeholder" => "メールアドレス", "autofocus" => true]]);
echo "
";
// line 49
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.', 49, $this->source); })()), "login_pass", [], "any", false, false, true, 49), 49, $this->source), 'widget', ["attr" => ["placeholder" => "パスワード"]]);
echo "
</div>
";
// line 51
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.', 51, $this->source); })()), "option_remember_me", [], "any", false, false, true, 51)) {
// line 52
echo " <div class=\"ec-checkbox\">
<label>
";
// line 54
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_REMEMBERED")) {
// line 55
echo " <input type=\"hidden\" name=\"login_memory\" value=\"1\">
";
} else {
// line 57
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.', 57, $this->source); })()), "login_memory", [], "any", false, false, true, 57), 57, $this->source), 'widget', ["label" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("次回から自動的にログインする")]);
echo "
";
}
// line 59
echo " </label>
</div>
";
}
// line 62
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.', 62, $this->source); })()), "session", [], "any", false, false, true, 62), "flashbag", [], "any", false, false, true, 62), "get", [0 => "password_reset_complete"], "method", false, false, true, 62));
foreach ($context['_seq'] as $context["_key"] => $context["reset_complete"]) {
// line 63
echo " <p>";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->sandbox->ensureToStringAllowed($context["reset_complete"], 63, $this->source)), "html", null, true);
echo "</p>
";
}
$_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 65
echo " ";
if ((isset($context["error"]) || array_key_exists("error", $context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.', 65, $this->source); })())) {
// line 66
echo " <p class=\"ec-errorMessage\">";
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 "</p>
";
}
// line 68
echo " </div>
<div class=\"ec-grid2\">
<div class=\"ec-grid2__cell\">
<div class=\"ec-login__actions\">
<button type=\"submit\"
class=\"ec-blockBtn--cancel\">";
// line 73
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ログイン"), "html", null, true);
echo "</button>
</div>
</div>
<div class=\"ec-grid2__cell\">
<div class=\"ec-login__link\"><a class=\"ec-link\"
href=\"";
// line 78
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("forgot");
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ログイン情報をお忘れですか?"), "html", null, true);
echo "</a>
</div>
</div>
</div>
</div>
<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>
</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 ( 224 => 83, 214 => 78, 206 => 73, 199 => 68, 193 => 66, 190 => 65, 181 => 63, 176 => 62, 171 => 59, 165 => 57, 161 => 55, 159 => 54, 155 => 52, 153 => 51, 148 => 49, 144 => 48, 137 => 43, 134 => 42, 125 => 40, 120 => 39, 118 => 38, 114 => 37, 99 => 25, 89 => 18, 85 => 16, 75 => 15, 64 => 11, 62 => 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 login' %}
{% block main %}
<div class=\"ec-role\">
<div class=\"ec-pageHeader\">
<h1>{{ 'ログイン'|trans }}</h1>
</div>
<div class=\"ec-off2Grid\">
<div class=\"ec-off2Grid__cell\">
<div class=\"ec-login ec-login--register\">
<h2 class=\"ec-login__registerTitle\">新規会員登録</h2>
<div class=\"ec-login__actions\">
<a href=\"{{ url('entry') }}\" class=\"ec-blockBtn--action\">新規会員登録(無料)に進む</a>
</div>
<p class=\"ec-login__registerText\"> PRO Membership(有料会員) 加入で永久10%OFF、年会費なし。</p>
<div class=\"ec-login__registerBanner\">
<a href=\"https://shop.temptu.co.jp/products/detail/235\"><img src=\"https://shop.temptu.co.jp/html/upload/save_image/1658122492.jpg\" alt=\"PRO(有料会員)\"></a>
</div>
<p>↑ご加入はこちらを同時にご購入ください</p>
</div>
</div>
<div class=\"ec-off2Grid__cell\">
<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.peek('eccube.login.target.path') %}
<input type=\"hidden\" name=\"_target_path\" value=\"{{ targetPath }}\" />
{% endfor %}
{% endif %}
<div class=\"ec-login\">
<h2 class=\"ec-login__registerTitle\">既にメンバーの方はログイン</h2>
<div class=\"ec-login__input\">
<div class=\"ec-input\">
{{ form_widget(form.login_email, {'attr': {'style' : 'ime-mode: disabled;', 'placeholder' : 'メールアドレス', 'autofocus': true}}) }}
{{ form_widget(form.login_pass, {'attr': {'placeholder' : 'パスワード' }}) }}
</div>
{% if BaseInfo.option_remember_me %}
<div class=\"ec-checkbox\">
<label>
{% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}
<input type=\"hidden\" name=\"login_memory\" value=\"1\">
{% else %}
{{ form_widget(form.login_memory, { 'label': '次回から自動的にログインする'|trans }) }}
{% endif %}
</label>
</div>
{% endif %}
{% for reset_complete in app.session.flashbag.get('password_reset_complete') %}
<p>{{ reset_complete|trans }}</p>
{% endfor %}
{% if error %}
<p class=\"ec-errorMessage\">{{ error.messageKey|trans(error.messageData, 'validators')|nl2br }}</p>
{% endif %}
</div>
<div class=\"ec-grid2\">
<div class=\"ec-grid2__cell\">
<div class=\"ec-login__actions\">
<button type=\"submit\"
class=\"ec-blockBtn--cancel\">{{ 'ログイン'|trans }}</button>
</div>
</div>
<div class=\"ec-grid2__cell\">
<div class=\"ec-login__link\"><a class=\"ec-link\"
href=\"{{ url('forgot') }}\">{{ 'ログイン情報をお忘れですか?'|trans }}</a>
</div>
</div>
</div>
</div>
<input type=\"hidden\" name=\"_csrf_token\" value=\"{{ csrf_token('authenticate') }}\">
</form>
</div>
</div>
</div>
{% endblock %}
", "Mypage/login.twig", "/var/www/shop.temptu.co.jp/public_html/app/template/temptu/Mypage/login.twig");
}
public function checkSecurity()
{
static $tags = array("set" => 13, "if" => 38, "for" => 39);
static $filters = array("escape" => 18, "trans" => 18, "nl2br" => 66);
static $functions = array("url" => 25, "form_widget" => 48, "is_granted" => 54, "csrf_token" => 83);
try {
$this->sandbox->checkSecurity(
['set', 'if', 'for'],
['escape', 'trans', 'nl2br'],
['url', 'form_widget', 'is_granted', '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;
}
}
}