var/cache/dev/twig/71/7124ad6368e746a6f48f6b1f2c4f2209.php line 43

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\MacroNamespace;
  8. use Twig\Markup;
  9. use Twig\Sandbox\SecurityError;
  10. use Twig\Sandbox\SecurityNotAllowedTagError;
  11. use Twig\Sandbox\SecurityNotAllowedFilterError;
  12. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  13. use Twig\Sandbox\SecurityNotAllowedTestError;
  14. use Twig\Source;
  15. use Twig\Template;
  16. use Twig\TemplateWrapper;
  17. /* web/core/newsletter.html.twig */
  18. class __TwigTemplate_bc05e6b21c559a4ffaac87e0ad6a4048 extends Template
  19. {
  20. private Source $source;
  21. /**
  22. * @var array<string, MacroNamespace>
  23. */
  24. private array $macros = [];
  25. private \Twig\Runtime\EscaperRuntime $escaper;
  26. public function __construct(Environment $env)
  27. {
  28. parent::__construct($env);
  29. $this->source = $this->getSourceContext();
  30. $this->escaper = $env->getRuntime('Twig\Runtime\EscaperRuntime');
  31. $this->parent = false;
  32. $this->blocks = [
  33. ];
  34. }
  35. protected function doDisplay(array $context, array $blocks = []): iterable
  36. {
  37. $macros = $this->macros;
  38. $__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  39. $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "web/core/newsletter.html.twig"));
  40. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  41. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "web/core/newsletter.html.twig"));
  42. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  43. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "web/core/newsletter.html.twig"));
  44. // line 2
  45. 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")]]);
  46. yield "
  47. <div role=\"form\" class=\"wpcf7\" dir=\"ltr\" lang=\"en-US\" style=\"padding-right:0; max-width: 100%;\">
  48. <div class=\"custom-email\">
  49. <span class=\"wpcf7-form-control-wrap your-email\">
  50. ";
  51. // line 7
  52. 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"]]);
  53. yield "
  54. </span>
  55. <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\">
  56. <span class=\"qodef-btn-text\">";
  57. // line 10
  58. yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("newsletter.send", [], "web"), "html", null, true);
  59. yield "</span>
  60. </button>
  61. <span class=\"ajax-loader\"></span>
  62. </div>
  63. </div>
  64. <div class=\"qodef-sp-prevent\">
  65. <div class=\"qodef-sp-prevent-inner\">
  66. <label class=\"qodef-sp-prevent-label\" style=\"display: flex\">
  67. <input type=\"checkbox\" class=\"qodef-sp-prevent-input\" style=\"\" data-value=\"no\" required=\"required\">
  68. <span class=\"qodef-sp-prevent-checkbox\" style=\"min-width: 16px\"></span>
  69. <span style=\"display: flex; align-items: flex-end; flex-wrap: wrap; padding-left: 10px; text-align: left;\">
  70. ";
  71. // line 21
  72. yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("base.agree", [], "web"), "html", null, true);
  73. yield "
  74. <a class=\"qodef-sp-prevent-label\" style=\"padding-left: 4px;\" href=\"";
  75. // line 22
  76. 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);
  77. yield "\" target=\"_blank\">";
  78. yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("newsletter.url", [], "web"), "html", null, true);
  79. yield "</a>
  80. </span>
  81. </label>
  82. </div>
  83. </div>
  84. ";
  85. // line 28
  86. 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');
  87. yield "
  88. ";
  89. $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  90. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  91. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  92. return; yield;
  93. }
  94. /**
  95. * @codeCoverageIgnore
  96. */
  97. public function getTemplateName(): string
  98. {
  99. return "web/core/newsletter.html.twig";
  100. }
  101. /**
  102. * @codeCoverageIgnore
  103. */
  104. public function isTraitable(): bool
  105. {
  106. return false;
  107. }
  108. /**
  109. * @codeCoverageIgnore
  110. */
  111. public function getDefaultEscapeStrategy(): string|false
  112. {
  113. return "html";
  114. }
  115. /**
  116. * @codeCoverageIgnore
  117. */
  118. public function getDebugInfo(): array
  119. {
  120. return array ( 99 => 28, 88 => 22, 84 => 21, 70 => 10, 64 => 7, 56 => 2,);
  121. }
  122. public function getSourceContext(): Source
  123. {
  124. return new Source("{% trans_default_domain \x27web\x27 %}
  125. {{ form_start(form,{attr:{\x27action\x27: path(\x27app_web_newsletter_add\x27), }}) }}
  126. <div role=\"form\" class=\"wpcf7\" dir=\"ltr\" lang=\"en-US\" style=\"padding-right:0; max-width: 100%;\">
  127. <div class=\"custom-email\">
  128. <span class=\"wpcf7-form-control-wrap your-email\">
  129. {{ form_widget(form.email,{attr:{class:\x27wpcf7-form-control wpcf7-text wpcf7-email wpcf7-validates-as-required wpcf7-validates-as-email\x27}}) }}
  130. </span>
  131. <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\">
  132. <span class=\"qodef-btn-text\">{{ \x27newsletter.send\x27|trans }}</span>
  133. </button>
  134. <span class=\"ajax-loader\"></span>
  135. </div>
  136. </div>
  137. <div class=\"qodef-sp-prevent\">
  138. <div class=\"qodef-sp-prevent-inner\">
  139. <label class=\"qodef-sp-prevent-label\" style=\"display: flex\">
  140. <input type=\"checkbox\" class=\"qodef-sp-prevent-input\" style=\"\" data-value=\"no\" required=\"required\">
  141. <span class=\"qodef-sp-prevent-checkbox\" style=\"min-width: 16px\"></span>
  142. <span style=\"display: flex; align-items: flex-end; flex-wrap: wrap; padding-left: 10px; text-align: left;\">
  143. {{ \x27base.agree\x27|trans }}
  144. <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>
  145. </span>
  146. </label>
  147. </div>
  148. </div>
  149. {{ form_end(form) }}
  150. ", "web/core/newsletter.html.twig", "/var/www/templates/web/core/newsletter.html.twig");
  151. }
  152. }