<?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;
/* PostCarrier42/Resource/template/Mailmaga/postcarrier_unsubscribe.twig */
class __TwigTemplate_b459cb54df5b2556c138b2cd336ac8aa 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", "PostCarrier42/Resource/template/Mailmaga/postcarrier_unsubscribe.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "PostCarrier42/Resource/template/Mailmaga/postcarrier_unsubscribe.twig"));
$this->parent = $this->loadTemplate("default_frame.twig", "PostCarrier42/Resource/template/Mailmaga/postcarrier_unsubscribe.twig", 11);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 13
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 14
echo " <div class=\"ec-role\">
<div class=\"ec-pageHeader\">
<h1>";
// line 16
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\">
<form method=\"post\" id=\"postcarrier_mailmaga\" action=\"";
// line 20
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("postcarrier_mailmaga");
echo "\">
";
// line 21
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.', 21, $this->source); })()), "_token", [], "any", false, false, true, 21), 21, $this->source), 'widget');
echo "
<div class=\"ec-reportHeading\">
<h3 class=\"unsubscribe_subtitle\">";
// line 23
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("メルマガ停止の手続はこちら"), "html", null, true);
echo "</h3>
</div>
<div>
<div class=\"ec-halfInput";
// line 26
echo (($this->extensions['Eccube\Twig\Extension\EccubeExtension']->hasErrors($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.', 26, $this->source); })()), "email", [], "any", false, false, true, 26), 26, $this->source))) ? (" error") : (""));
echo "\" style=\"text-align: center;\">
";
// line 27
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.', 27, $this->source); })()), "email", [], "any", false, false, true, 27), 27, $this->source), 'widget', ["attr" => ["placeholder" => "停止メールアドレス", "size" => 20]]);
echo "
</div>
</div>
<div class=\"ec-registerRole__actions\">
<div class=\"ec-off4Grid\">
<div class=\"ec-off4Grid__cell\">
<button class=\"ec-blockBtn--action\" type=\"submit\" name=\"action\" value=\"unsubscribe\">";
// line 33
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("解除"), "html", null, true);
echo "</button>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "PostCarrier42/Resource/template/Mailmaga/postcarrier_unsubscribe.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 109 => 33, 100 => 27, 96 => 26, 90 => 23, 85 => 21, 81 => 20, 74 => 16, 70 => 14, 60 => 13, 37 => 11,);
}
public function getSourceContext()
{
return new Source("{#
This file is part of the PostCarrier
Copyright(c) IPLOGIC CO.,LTD. All Rights Reserved.
http://www.iplogic.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' %}
{% block main %}
<div class=\"ec-role\">
<div class=\"ec-pageHeader\">
<h1>{{ 'メルマガ配信停止'|trans }}</h1>
</div>
<div class=\"ec-off2Grid\">
<div class=\"ec-off2Grid__cell\">
<form method=\"post\" id=\"postcarrier_mailmaga\" action=\"{{ path('postcarrier_mailmaga') }}\">
{{ form_widget(form._token) }}
<div class=\"ec-reportHeading\">
<h3 class=\"unsubscribe_subtitle\">{{ 'メルマガ停止の手続はこちら'|trans }}</h3>
</div>
<div>
<div class=\"ec-halfInput{{ has_errors(form.email) ? ' error'}}\" style=\"text-align: center;\">
{{ form_widget(form.email, {'attr':{'placeholder':\"停止メールアドレス\", 'size':20}}) }}
</div>
</div>
<div class=\"ec-registerRole__actions\">
<div class=\"ec-off4Grid\">
<div class=\"ec-off4Grid__cell\">
<button class=\"ec-blockBtn--action\" type=\"submit\" name=\"action\" value=\"unsubscribe\">{{ '解除'|trans }}</button>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
{% endblock %}", "PostCarrier42/Resource/template/Mailmaga/postcarrier_unsubscribe.twig", "/home/xs501433/xs501433.xsrv.jp/public_html/app/template/default/PostCarrier42/Resource/template/Mailmaga/postcarrier_unsubscribe.twig");
}
public function checkSecurity()
{
static $tags = array();
static $filters = array("escape" => 16, "trans" => 16);
static $functions = array("path" => 20, "form_widget" => 21, "has_errors" => 26);
try {
$this->sandbox->checkSecurity(
[],
['escape', 'trans'],
['path', 'form_widget', 'has_errors']
);
} 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;
}
}
}