var/cache/dev/twig/a9/a9fbd93ddfbb88407c603d0d40f36287.php line 33

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