<?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;
/* entry/affiliate.html.twig */
class __TwigTemplate_6bb85670d128446962e51aeb0af7fdea extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'mainClass' => [$this, 'block_mainClass'],
'body' => [$this, 'block_body'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "base.html.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", "entry/affiliate.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "entry/affiliate.html.twig"));
// line 2
$macros["__internal_parse_15"] = $this->macros["__internal_parse_15"] = $this->loadTemplate("/macro/breadcrumb.html.twig", "entry/affiliate.html.twig", 2)->unwrap();
// line 1
$this->parent = $this->loadTemplate("base.html.twig", "entry/affiliate.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 4
public function block_mainClass($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", "mainClass"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "mainClass"));
echo "c-affiliate";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 6
public function block_body($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", "body"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 7
echo " ";
echo twig_call_macro($macros["__internal_parse_15"], "macro_breadcrumb", [twig_get_attribute($this->env, $this->source, (isset($context["entry"]) || array_key_exists("entry", $context) ? $context["entry"] : (function () { throw new RuntimeError('Variable "entry" does not exist.', 7, $this->source); })()), "title", [], "any", false, false, false, 7)], 7, $context, $this->getSourceContext());
echo "
<section class=\"c-affiliate__section\">
<h1 class=\"c-h1--centered c-affiliate__h1\">";
// line 10
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["entry"]) || array_key_exists("entry", $context) ? $context["entry"] : (function () { throw new RuntimeError('Variable "entry" does not exist.', 10, $this->source); })()), "title", [], "any", false, false, false, 10), "html", null, true);
echo "</h1>
<div class=\"o-wrapper-10-column\">
";
// line 13
if (twig_get_attribute($this->env, $this->source, (isset($context["entry"]) || array_key_exists("entry", $context) ? $context["entry"] : (function () { throw new RuntimeError('Variable "entry" does not exist.', 13, $this->source); })()), "imageHeader", [], "any", false, false, false, 13)) {
// line 14
echo " <p class=\"c-affiliate__image-wrapper c-affiliate__image-wrapper--";
echo twig_escape_filter($this->env, 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.', 14, $this->source); })()), "request", [], "any", false, false, false, 14), "locale", [], "any", false, false, false, 14), "html", null, true);
echo "\">
<img class=\"c-affiliate__image\"
src=\"";
// line 16
echo twig_escape_filter($this->env, $this->extensions['Moka\Cms\Twig\MokaMediaExtension']->getMediaFilteredPath(twig_get_attribute($this->env, $this->source, (isset($context["entry"]) || array_key_exists("entry", $context) ? $context["entry"] : (function () { throw new RuntimeError('Variable "entry" does not exist.', 16, $this->source); })()), "imageHeader", [], "any", false, false, false, 16), "news"), "html", null, true);
echo "\"
alt=\"\" loading=\"lazy\">
</p>
";
}
// line 20
echo "
";
// line 21
echo $this->extensions['Moka\Cms\Twig\MokaRendererExtension']->renderMatrix(twig_get_attribute($this->env, $this->source, (isset($context["entry"]) || array_key_exists("entry", $context) ? $context["entry"] : (function () { throw new RuntimeError('Variable "entry" does not exist.', 21, $this->source); })()), "intro", [], "any", false, false, false, 21));
echo "
<div class=\"c-affiliate__form-wrapper\">
<div class=\"c-affiliate__form-image-wrapper\">
<picture class=\"c-affiliate__picture\">
<source srcset=\"";
// line 26
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/img/affiliate-form-mobile.png"), "html", null, true);
echo "\"
media=\"(max-width: 767px)\">
<img class=\"c-affiliate__form-image\"
src=\"";
// line 29
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/img/affiliate-form-desktop.jpg"), "html", null, true);
echo "\"
alt=\"\" loading=\"lazy\">
</picture>
<p class=\"c-affiliate__form-image-text\">";
// line 32
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("affiliate.image.text"), "html", null, true);
echo "</p>
</div>
";
// line 35
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.', 35, $this->source); })()), "request", [], "any", false, false, false, 35), "query", [], "any", false, false, false, 35), "get", [0 => "completed"], "method", false, false, false, 35)) {
// line 36
echo " <div class=\"form c-affiliate__form\">
<div class=\"form__success\">
<p class=\"u-mb-0\">";
// line 38
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("contact.message.success"), "html", null, true);
echo "</p>
</div>
</div>
";
} else {
// line 42
echo " ";
echo $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.', 42, $this->source); })()), 'form_start', ["attr" => ["class" => "form c-affiliate__form"]]);
echo "
<p class=\"c-affiliate__form-intro\">";
// line 43
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("affiliate.form.text"), "html", null, true);
echo "</p>
<div class=\"o-layout\">
";
// line 45
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(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.', 45, $this->source); })()), "lastname", [], "any", false, false, false, 45), 'row', ["row_attr" => ["class" => "o-layout__item--half"]]);
echo "
";
// line 46
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(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); })()), "firstname", [], "any", false, false, false, 46), 'row', ["row_attr" => ["class" => "o-layout__item--half"]]);
echo "
</div>
<div class=\"o-layout\">
";
// line 49
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(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); })()), "mail", [], "any", false, false, false, 49), 'row', ["row_attr" => ["class" => "o-layout__item--half"]]);
echo "
";
// line 50
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(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.', 50, $this->source); })()), "phone", [], "any", false, false, false, 50), 'row', ["row_attr" => ["class" => "o-layout__item--half"]]);
echo "
</div>
";
// line 52
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(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.', 52, $this->source); })()), "city", [], "any", false, false, false, 52), 'row');
echo "
";
// line 53
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(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.', 53, $this->source); })()), "message", [], "any", false, false, false, 53), 'row');
echo "
<div class=\"form__row\">
<div class=\"form__field\">
<label class=\"form__label form__label--checkbox\">
<input type=\"checkbox\" name=\"_remember_me\" class=\"form__checkbox\"
required>";
// line 59
echo twig_nl2br(twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("contact.message.privacy_affiliate"), "html", null, true));
echo "</a>
</label>
</div>
</div>
<p class=\"form__submit\">
<button class=\"c-button c-button--primary\"
type=\"submit\">";
// line 65
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("contact.button.send"), "html", null, true);
echo "</button>
</p>
";
// line 67
echo $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.', 67, $this->source); })()), 'form_end');
echo "
";
}
// line 69
echo " </div>
</div>
";
// line 72
echo $this->extensions['Moka\Cms\Twig\MokaRendererExtension']->renderMatrix(twig_get_attribute($this->env, $this->source, (isset($context["entry"]) || array_key_exists("entry", $context) ? $context["entry"] : (function () { throw new RuntimeError('Variable "entry" does not exist.', 72, $this->source); })()), "body", [], "any", false, false, false, 72));
echo "
</section>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "entry/affiliate.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 227 => 72, 222 => 69, 217 => 67, 212 => 65, 203 => 59, 194 => 53, 190 => 52, 185 => 50, 181 => 49, 175 => 46, 171 => 45, 166 => 43, 161 => 42, 154 => 38, 150 => 36, 148 => 35, 142 => 32, 136 => 29, 130 => 26, 122 => 21, 119 => 20, 112 => 16, 106 => 14, 104 => 13, 98 => 10, 91 => 7, 81 => 6, 62 => 4, 51 => 1, 49 => 2, 36 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'base.html.twig' %}
{% from '/macro/breadcrumb.html.twig' import breadcrumb %}
{% block mainClass %}c-affiliate{% endblock %}
{% block body %}
{{ breadcrumb(entry.title) }}
<section class=\"c-affiliate__section\">
<h1 class=\"c-h1--centered c-affiliate__h1\">{{ entry.title }}</h1>
<div class=\"o-wrapper-10-column\">
{% if entry.imageHeader %}
<p class=\"c-affiliate__image-wrapper c-affiliate__image-wrapper--{{ app.request.locale }}\">
<img class=\"c-affiliate__image\"
src=\"{{ moka_media_filtered_path(entry.imageHeader, 'news') }}\"
alt=\"\" loading=\"lazy\">
</p>
{% endif %}
{{ moka_render_matrix(entry.intro) }}
<div class=\"c-affiliate__form-wrapper\">
<div class=\"c-affiliate__form-image-wrapper\">
<picture class=\"c-affiliate__picture\">
<source srcset=\"{{ asset('build/img/affiliate-form-mobile.png') }}\"
media=\"(max-width: 767px)\">
<img class=\"c-affiliate__form-image\"
src=\"{{ asset('build/img/affiliate-form-desktop.jpg') }}\"
alt=\"\" loading=\"lazy\">
</picture>
<p class=\"c-affiliate__form-image-text\">{{ 'affiliate.image.text' | trans }}</p>
</div>
{% if app.request.query.get('completed') %}
<div class=\"form c-affiliate__form\">
<div class=\"form__success\">
<p class=\"u-mb-0\">{{ 'contact.message.success' | trans }}</p>
</div>
</div>
{% else %}
{{ form_start(form, { 'attr': { 'class': 'form c-affiliate__form' } }) }}
<p class=\"c-affiliate__form-intro\">{{ 'affiliate.form.text' | trans }}</p>
<div class=\"o-layout\">
{{ form_row(form.lastname, {'row_attr' : { 'class' : 'o-layout__item--half' }}) }}
{{ form_row(form.firstname, {'row_attr' : { 'class' : 'o-layout__item--half' }}) }}
</div>
<div class=\"o-layout\">
{{ form_row(form.mail, {'row_attr' : { 'class' : 'o-layout__item--half' }}) }}
{{ form_row(form.phone, {'row_attr' : { 'class' : 'o-layout__item--half' }}) }}
</div>
{{ form_row(form.city) }}
{{ form_row(form.message) }}
<div class=\"form__row\">
<div class=\"form__field\">
<label class=\"form__label form__label--checkbox\">
<input type=\"checkbox\" name=\"_remember_me\" class=\"form__checkbox\"
required>{{ 'contact.message.privacy_affiliate' | trans | nl2br }}</a>
</label>
</div>
</div>
<p class=\"form__submit\">
<button class=\"c-button c-button--primary\"
type=\"submit\">{{ 'contact.button.send' | trans }}</button>
</p>
{{ form_end(form) }}
{% endif %}
</div>
</div>
{{ moka_render_matrix(entry.body) }}
</section>
{% endblock %}
", "entry/affiliate.html.twig", "/home/zwfnisy-mezcalito/preprod/templates/entry/affiliate.html.twig");
}
}