var/cache/dev/twig/69/69b771492da128257ffa3f46221e79d8.php line 63

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\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. use Twig\TemplateWrapper;
  15. /* themes/theme/enquiry/enquiry.html.twig */
  16. class __TwigTemplate_27d23bef052c0484acd5d40540b7db2a extends Template
  17. {
  18. private Source $source;
  19. /**
  20. * @var array<string, Template>
  21. */
  22. private array $macros = [];
  23. public function __construct(Environment $env)
  24. {
  25. parent::__construct($env);
  26. $this->source = $this->getSourceContext();
  27. $this->parent = false;
  28. $this->blocks = [
  29. ];
  30. }
  31. protected function doDisplay(array $context, array $blocks = []): iterable
  32. {
  33. $macros = $this->macros;
  34. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "themes/theme/enquiry/enquiry.html.twig"));
  36. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "themes/theme/enquiry/enquiry.html.twig"));
  38. // line 1
  39. yield "
  40. <section class=\"green-img mb-12\">
  41. <div class=\"container\">
  42. <div class=\"row\">
  43. <div class=\"xl:col-8 lg:col-7 flex flex-col justify-between\">
  44. <div class=\"mb-8 lg:mb-0 lg:mt-24\">
  45. ";
  46. // line 7
  47. yield $this->env->getFunction('forceRenderHtmlBlock')->getCallable()("Form Text");
  48. yield "
  49. </div>
  50. <div>
  51. <h3>Trusted by</h3>
  52. ";
  53. // line 11
  54. yield $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\LogosDefaultController::slider"));
  55. yield "
  56. </div>
  57. </div>
  58. <div class=\"xl:col-4 lg:col-5 mt-8 lg:mt-0\">
  59. <div class=\"bg-primary rounded-3xl p-8 shadowed\">
  60. ";
  61. // line 16
  62. if ((($tmp = (isset($context["error"]) || array_key_exists("error", $context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.', 16, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  63. // line 17
  64. yield " <p class=\"error-message !mb-6\">";
  65. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["errorMessage"]) || array_key_exists("errorMessage", $context) ? $context["errorMessage"] : (function () { throw new RuntimeError('Variable "errorMessage" does not exist.', 17, $this->source); })()), "html", null, true);
  66. yield "</p>
  67. ";
  68. }
  69. // line 19
  70. yield "
  71. ";
  72. // line 20
  73. if ((($tmp = (isset($context["success"]) || array_key_exists("success", $context) ? $context["success"] : (function () { throw new RuntimeError('Variable "success" does not exist.', 20, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  74. // line 21
  75. yield " <p class=\"success-message !mb-6\">Thank you for your enquiry.</p>
  76. ";
  77. } else {
  78. // line 23
  79. yield " <form method=\"post\" id=\"enquiry_form\">
  80. ";
  81. // line 24
  82. yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 24, $this->source); })()), 'widget');
  83. yield "
  84. <button type=\"submit\" class=\"btn btn-form g-recaptcha mb-8\" data-sitekey=\"";
  85. // line 25
  86. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["recaptcha_key"]) || array_key_exists("recaptcha_key", $context) ? $context["recaptcha_key"] : (function () { throw new RuntimeError('Variable "recaptcha_key" does not exist.', 25, $this->source); })()), "html", null, true);
  87. yield "\" data-callback='onSubmit'>Send</button>
  88. <p class=\"text-sm\">By submitting your details, you agree for one of our team to contact you.</p>
  89. ";
  90. // line 27
  91. yield $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.', 27, $this->source); })()), 'form_end');
  92. yield "
  93. ";
  94. }
  95. // line 29
  96. yield " </div>
  97. </div>
  98. </div>
  99. </div>
  100. </section>
  101. <script src=\"https://www.google.com/recaptcha/enterprise.js?render=";
  102. // line 35
  103. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["recaptcha_key"]) || array_key_exists("recaptcha_key", $context) ? $context["recaptcha_key"] : (function () { throw new RuntimeError('Variable "recaptcha_key" does not exist.', 35, $this->source); })()), "html", null, true);
  104. yield "\"></script>
  105. <script>
  106. function onSubmit(token) {
  107. document.getElementById(\"enquiry_form\").submit();
  108. }
  109. </script>
  110. ";
  111. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  112. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  113. yield from [];
  114. }
  115. /**
  116. * @codeCoverageIgnore
  117. */
  118. public function getTemplateName(): string
  119. {
  120. return "themes/theme/enquiry/enquiry.html.twig";
  121. }
  122. /**
  123. * @codeCoverageIgnore
  124. */
  125. public function isTraitable(): bool
  126. {
  127. return false;
  128. }
  129. /**
  130. * @codeCoverageIgnore
  131. */
  132. public function getDebugInfo(): array
  133. {
  134. return array ( 113 => 35, 105 => 29, 100 => 27, 95 => 25, 91 => 24, 88 => 23, 84 => 21, 82 => 20, 79 => 19, 73 => 17, 71 => 16, 63 => 11, 56 => 7, 48 => 1,);
  135. }
  136. public function getSourceContext(): Source
  137. {
  138. return new Source("
  139. <section class=\"green-img mb-12\">
  140. <div class=\"container\">
  141. <div class=\"row\">
  142. <div class=\"xl:col-8 lg:col-7 flex flex-col justify-between\">
  143. <div class=\"mb-8 lg:mb-0 lg:mt-24\">
  144. {{ forceRenderHtmlBlock('Form Text')|raw }}
  145. </div>
  146. <div>
  147. <h3>Trusted by</h3>
  148. {{ render(controller('App\\\\Controller\\\\LogosDefaultController::slider')) }}
  149. </div>
  150. </div>
  151. <div class=\"xl:col-4 lg:col-5 mt-8 lg:mt-0\">
  152. <div class=\"bg-primary rounded-3xl p-8 shadowed\">
  153. {% if error %}
  154. <p class=\"error-message !mb-6\">{{errorMessage}}</p>
  155. {% endif %}
  156. {% if success %}
  157. <p class=\"success-message !mb-6\">Thank you for your enquiry.</p>
  158. {% else %}
  159. <form method=\"post\" id=\"enquiry_form\">
  160. {{ form_widget(form) }}
  161. <button type=\"submit\" class=\"btn btn-form g-recaptcha mb-8\" data-sitekey=\"{{ recaptcha_key }}\" data-callback='onSubmit'>Send</button>
  162. <p class=\"text-sm\">By submitting your details, you agree for one of our team to contact you.</p>
  163. {{ form_end(form) }}
  164. {% endif %}
  165. </div>
  166. </div>
  167. </div>
  168. </div>
  169. </section>
  170. <script src=\"https://www.google.com/recaptcha/enterprise.js?render={{ recaptcha_key }}\"></script>
  171. <script>
  172. function onSubmit(token) {
  173. document.getElementById(\"enquiry_form\").submit();
  174. }
  175. </script>
  176. ", "themes/theme/enquiry/enquiry.html.twig", "/var/www/html/k/kasscaffolding/templates/themes/theme/enquiry/enquiry.html.twig");
  177. }
  178. }