<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
use Twig\Extension\SandboxExtension;
use Twig\MacroNamespace;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Sandbox\SecurityNotAllowedTestError;
use Twig\Source;
use Twig\Template;
use Twig\TemplateWrapper;
/* web/core/newsletter.html.twig */
class __TwigTemplate_bc05e6b21c559a4ffaac87e0ad6a4048 extends Template
{
private Source $source;
/**
* @var array<string, MacroNamespace>
*/
private array $macros = [];
private \Twig\Runtime\EscaperRuntime $escaper;
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->escaper = $env->getRuntime('Twig\Runtime\EscaperRuntime');
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "web/core/newsletter.html.twig"));
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "web/core/newsletter.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "web/core/newsletter.html.twig"));
// line 2
yield (string) $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 2, $this->source); })()), 'form_start', ["attr" => ["action" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_web_newsletter_add")]]);
yield "
<div role=\"form\" class=\"wpcf7\" dir=\"ltr\" lang=\"en-US\" style=\"padding-right:0; max-width: 100%;\">
<div class=\"custom-email\">
<span class=\"wpcf7-form-control-wrap your-email\">
";
// line 7
yield (string) $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 7, $this->source); })()), "email", [], "any", false, false, false, 7), 'widget', ["attr" => ["class" => "wpcf7-form-control wpcf7-text wpcf7-email wpcf7-validates-as-required wpcf7-validates-as-email"]]);
yield "
</span>
<button type=\"submit\" class=\"wpcf7-form-control wpcf7-submit qodef-btn-custom-border-hover qodef-btn-custom-hover-bg qodef-btn-custom-hover-color qodef-btn qodef-btn-medium\">
<span class=\"qodef-btn-text\">";
// line 10
yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("newsletter.send", [], "web"), "html", null, true);
yield "</span>
</button>
<span class=\"ajax-loader\"></span>
</div>
</div>
<div class=\"qodef-sp-prevent\">
<div class=\"qodef-sp-prevent-inner\">
<label class=\"qodef-sp-prevent-label\" style=\"display: flex\">
<input type=\"checkbox\" class=\"qodef-sp-prevent-input\" style=\"\" data-value=\"no\" required=\"required\">
<span class=\"qodef-sp-prevent-checkbox\" style=\"min-width: 16px\"></span>
<span style=\"display: flex; align-items: flex-end; flex-wrap: wrap; padding-left: 10px; text-align: left;\">
";
// line 21
yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("base.agree", [], "web"), "html", null, true);
yield "
<a class=\"qodef-sp-prevent-label\" style=\"padding-left: 4px;\" href=\"";
// line 22
yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((("build/files/gdpr_" . CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 22, $this->source); })()), "request", [], "any", false, false, false, 22), "locale", [], "any", false, false, false, 22)) . ".pdf")), "html", null, true);
yield "\" target=\"_blank\">";
yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("newsletter.url", [], "web"), "html", null, true);
yield "</a>
</span>
</label>
</div>
</div>
";
// line 28
yield (string) $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 28, $this->source); })()), 'form_end');
yield "
";
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
return; yield;
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "web/core/newsletter.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDefaultEscapeStrategy(): string|false
{
return "html";
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 99 => 28, 88 => 22, 84 => 21, 70 => 10, 64 => 7, 56 => 2,);
}
public function getSourceContext(): Source
{
return new Source("{% trans_default_domain \x27web\x27 %}
{{ form_start(form,{attr:{\x27action\x27: path(\x27app_web_newsletter_add\x27), }}) }}
<div role=\"form\" class=\"wpcf7\" dir=\"ltr\" lang=\"en-US\" style=\"padding-right:0; max-width: 100%;\">
<div class=\"custom-email\">
<span class=\"wpcf7-form-control-wrap your-email\">
{{ form_widget(form.email,{attr:{class:\x27wpcf7-form-control wpcf7-text wpcf7-email wpcf7-validates-as-required wpcf7-validates-as-email\x27}}) }}
</span>
<button type=\"submit\" class=\"wpcf7-form-control wpcf7-submit qodef-btn-custom-border-hover qodef-btn-custom-hover-bg qodef-btn-custom-hover-color qodef-btn qodef-btn-medium\">
<span class=\"qodef-btn-text\">{{ \x27newsletter.send\x27|trans }}</span>
</button>
<span class=\"ajax-loader\"></span>
</div>
</div>
<div class=\"qodef-sp-prevent\">
<div class=\"qodef-sp-prevent-inner\">
<label class=\"qodef-sp-prevent-label\" style=\"display: flex\">
<input type=\"checkbox\" class=\"qodef-sp-prevent-input\" style=\"\" data-value=\"no\" required=\"required\">
<span class=\"qodef-sp-prevent-checkbox\" style=\"min-width: 16px\"></span>
<span style=\"display: flex; align-items: flex-end; flex-wrap: wrap; padding-left: 10px; text-align: left;\">
{{ \x27base.agree\x27|trans }}
<a class=\"qodef-sp-prevent-label\" style=\"padding-left: 4px;\" href=\"{{asset(\x27build/files/gdpr_\x27~app.request.locale~\x27.pdf\x27)}}\" target=\"_blank\">{{ \x27newsletter.url\x27|trans }}</a>
</span>
</label>
</div>
</div>
{{ form_end(form) }}
", "web/core/newsletter.html.twig", "/var/www/templates/web/core/newsletter.html.twig");
}
}