var/cache/dev/twig/65/65331e42f15cf6c0f3daa42ef16d676b.php line 52

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* entry/affiliate.html.twig */
  14. class __TwigTemplate_6bb85670d128446962e51aeb0af7fdea extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'mainClass' => [$this'block_mainClass'],
  24.             'body' => [$this'block_body'],
  25.         ];
  26.     }
  27.     protected function doGetParent(array $context)
  28.     {
  29.         // line 1
  30.         return "base.html.twig";
  31.     }
  32.     protected function doDisplay(array $context, array $blocks = [])
  33.     {
  34.         $macros $this->macros;
  35.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""entry/affiliate.html.twig"));
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""entry/affiliate.html.twig"));
  39.         // line 2
  40.         $macros["__internal_parse_15"] = $this->macros["__internal_parse_15"] = $this->loadTemplate("/macro/breadcrumb.html.twig""entry/affiliate.html.twig"2)->unwrap();
  41.         // line 1
  42.         $this->parent $this->loadTemplate("base.html.twig""entry/affiliate.html.twig"1);
  43.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  44.         
  45.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  46.         
  47.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  48.     }
  49.     // line 4
  50.     public function block_mainClass($context, array $blocks = [])
  51.     {
  52.         $macros $this->macros;
  53.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  54.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""mainClass"));
  55.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  56.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""mainClass"));
  57.         echo "c-affiliate";
  58.         
  59.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  60.         
  61.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  62.     }
  63.     // line 6
  64.     public function block_body($context, array $blocks = [])
  65.     {
  66.         $macros $this->macros;
  67.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  68.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  69.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  70.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  71.         // line 7
  72.         echo "    ";
  73.         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"falsefalsefalse7)], 7$context$this->getSourceContext());
  74.         echo "
  75.     <section class=\"c-affiliate__section\">
  76.         <h1 class=\"c-h1--centered c-affiliate__h1\">";
  77.         // line 10
  78.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse10), "html"nulltrue);
  79.         echo "</h1>
  80.         <div class=\"o-wrapper-10-column\">
  81.             ";
  82.         // line 13
  83.         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"falsefalsefalse13)) {
  84.             // line 14
  85.             echo "                <p class=\"c-affiliate__image-wrapper c-affiliate__image-wrapper--";
  86.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse14), "locale", [], "any"falsefalsefalse14), "html"nulltrue);
  87.             echo "\">
  88.                     <img class=\"c-affiliate__image\"
  89.                          src=\"";
  90.             // line 16
  91.             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"falsefalsefalse16), "news"), "html"nulltrue);
  92.             echo "\"
  93.                          alt=\"\" loading=\"lazy\">
  94.                 </p>
  95.             ";
  96.         }
  97.         // line 20
  98.         echo "
  99.             ";
  100.         // line 21
  101.         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"falsefalsefalse21));
  102.         echo "
  103.             <div class=\"c-affiliate__form-wrapper\">
  104.                 <div class=\"c-affiliate__form-image-wrapper\">
  105.                     <picture class=\"c-affiliate__picture\">
  106.                         <source srcset=\"";
  107.         // line 26
  108.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/img/affiliate-form-mobile.png"), "html"nulltrue);
  109.         echo "\"
  110.                                 media=\"(max-width: 767px)\">
  111.                         <img class=\"c-affiliate__form-image\"
  112.                              src=\"";
  113.         // line 29
  114.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/img/affiliate-form-desktop.jpg"), "html"nulltrue);
  115.         echo "\"
  116.                              alt=\"\" loading=\"lazy\">
  117.                     </picture>
  118.                     <p class=\"c-affiliate__form-image-text\">";
  119.         // line 32
  120.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("affiliate.image.text"), "html"nulltrue);
  121.         echo "</p>
  122.                 </div>
  123.                 ";
  124.         // line 35
  125.         if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse35), "query", [], "any"falsefalsefalse35), "get", [=> "completed"], "method"falsefalsefalse35)) {
  126.             // line 36
  127.             echo "                    <div class=\"form c-affiliate__form\">
  128.                         <div class=\"form__success\">
  129.                             <p class=\"u-mb-0\">";
  130.             // line 38
  131.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("contact.message.success"), "html"nulltrue);
  132.             echo "</p>
  133.                         </div>
  134.                     </div>
  135.                 ";
  136.         } else {
  137.             // line 42
  138.             echo "                    ";
  139.             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"]]);
  140.             echo "
  141.                         <p class=\"c-affiliate__form-intro\">";
  142.             // line 43
  143.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("affiliate.form.text"), "html"nulltrue);
  144.             echo "</p>
  145.                         <div class=\"o-layout\">
  146.                             ";
  147.             // line 45
  148.             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"falsefalsefalse45), 'row', ["row_attr" => ["class" => "o-layout__item--half"]]);
  149.             echo "
  150.                             ";
  151.             // line 46
  152.             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"falsefalsefalse46), 'row', ["row_attr" => ["class" => "o-layout__item--half"]]);
  153.             echo "
  154.                         </div>
  155.                         <div class=\"o-layout\">
  156.                             ";
  157.             // line 49
  158.             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"falsefalsefalse49), 'row', ["row_attr" => ["class" => "o-layout__item--half"]]);
  159.             echo "
  160.                             ";
  161.             // line 50
  162.             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"falsefalsefalse50), 'row', ["row_attr" => ["class" => "o-layout__item--half"]]);
  163.             echo "
  164.                         </div>
  165.                         ";
  166.             // line 52
  167.             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"falsefalsefalse52), 'row');
  168.             echo "
  169.                         ";
  170.             // line 53
  171.             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"falsefalsefalse53), 'row');
  172.             echo "
  173.                         <div class=\"form__row\">
  174.                             <div class=\"form__field\">
  175.                                 <label class=\"form__label form__label--checkbox\">
  176.                                     <input type=\"checkbox\" name=\"_remember_me\" class=\"form__checkbox\"
  177.                                            required>";
  178.             // line 59
  179.             echo twig_nl2br(twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("contact.message.privacy_affiliate"), "html"nulltrue));
  180.             echo "</a>
  181.                                 </label>
  182.                             </div>
  183.                         </div>
  184.                         <p class=\"form__submit\">
  185.                             <button class=\"c-button c-button--primary\"
  186.                                     type=\"submit\">";
  187.             // line 65
  188.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("contact.button.send"), "html"nulltrue);
  189.             echo "</button>
  190.                         </p>
  191.                     ";
  192.             // line 67
  193.             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');
  194.             echo "
  195.                 ";
  196.         }
  197.         // line 69
  198.         echo "            </div>
  199.         </div>
  200.         ";
  201.         // line 72
  202.         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"falsefalsefalse72));
  203.         echo "
  204.     </section>
  205. ";
  206.         
  207.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  208.         
  209.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  210.     }
  211.     public function getTemplateName()
  212.     {
  213.         return "entry/affiliate.html.twig";
  214.     }
  215.     public function isTraitable()
  216.     {
  217.         return false;
  218.     }
  219.     public function getDebugInfo()
  220.     {
  221.         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,);
  222.     }
  223.     public function getSourceContext()
  224.     {
  225.         return new Source("{% extends 'base.html.twig' %}
  226. {% from '/macro/breadcrumb.html.twig' import breadcrumb %}
  227. {% block mainClass %}c-affiliate{% endblock %}
  228. {% block body %}
  229.     {{ breadcrumb(entry.title) }}
  230.     <section class=\"c-affiliate__section\">
  231.         <h1 class=\"c-h1--centered c-affiliate__h1\">{{ entry.title }}</h1>
  232.         <div class=\"o-wrapper-10-column\">
  233.             {% if entry.imageHeader %}
  234.                 <p class=\"c-affiliate__image-wrapper c-affiliate__image-wrapper--{{ app.request.locale }}\">
  235.                     <img class=\"c-affiliate__image\"
  236.                          src=\"{{ moka_media_filtered_path(entry.imageHeader, 'news') }}\"
  237.                          alt=\"\" loading=\"lazy\">
  238.                 </p>
  239.             {% endif %}
  240.             {{ moka_render_matrix(entry.intro) }}
  241.             <div class=\"c-affiliate__form-wrapper\">
  242.                 <div class=\"c-affiliate__form-image-wrapper\">
  243.                     <picture class=\"c-affiliate__picture\">
  244.                         <source srcset=\"{{ asset('build/img/affiliate-form-mobile.png') }}\"
  245.                                 media=\"(max-width: 767px)\">
  246.                         <img class=\"c-affiliate__form-image\"
  247.                              src=\"{{ asset('build/img/affiliate-form-desktop.jpg') }}\"
  248.                              alt=\"\" loading=\"lazy\">
  249.                     </picture>
  250.                     <p class=\"c-affiliate__form-image-text\">{{ 'affiliate.image.text' | trans }}</p>
  251.                 </div>
  252.                 {% if app.request.query.get('completed') %}
  253.                     <div class=\"form c-affiliate__form\">
  254.                         <div class=\"form__success\">
  255.                             <p class=\"u-mb-0\">{{ 'contact.message.success' | trans }}</p>
  256.                         </div>
  257.                     </div>
  258.                 {% else %}
  259.                     {{ form_start(form, { 'attr': { 'class': 'form c-affiliate__form' } }) }}
  260.                         <p class=\"c-affiliate__form-intro\">{{ 'affiliate.form.text' | trans }}</p>
  261.                         <div class=\"o-layout\">
  262.                             {{ form_row(form.lastname, {'row_attr' : { 'class' : 'o-layout__item--half' }}) }}
  263.                             {{ form_row(form.firstname, {'row_attr' : { 'class' : 'o-layout__item--half' }}) }}
  264.                         </div>
  265.                         <div class=\"o-layout\">
  266.                             {{ form_row(form.mail, {'row_attr' : { 'class' : 'o-layout__item--half' }}) }}
  267.                             {{ form_row(form.phone, {'row_attr' : { 'class' : 'o-layout__item--half' }}) }}
  268.                         </div>
  269.                         {{ form_row(form.city) }}
  270.                         {{ form_row(form.message) }}
  271.                         <div class=\"form__row\">
  272.                             <div class=\"form__field\">
  273.                                 <label class=\"form__label form__label--checkbox\">
  274.                                     <input type=\"checkbox\" name=\"_remember_me\" class=\"form__checkbox\"
  275.                                            required>{{ 'contact.message.privacy_affiliate' | trans | nl2br }}</a>
  276.                                 </label>
  277.                             </div>
  278.                         </div>
  279.                         <p class=\"form__submit\">
  280.                             <button class=\"c-button c-button--primary\"
  281.                                     type=\"submit\">{{ 'contact.button.send' | trans }}</button>
  282.                         </p>
  283.                     {{ form_end(form) }}
  284.                 {% endif %}
  285.             </div>
  286.         </div>
  287.         {{ moka_render_matrix(entry.body) }}
  288.     </section>
  289. {% endblock %}
  290. ""entry/affiliate.html.twig""/home/zwfnisy-mezcalito/preprod/templates/entry/affiliate.html.twig");
  291.     }
  292. }