var/cache/dev/twig/2a/2a4816e1d9ec8f82b33773cacb8079e0.php line 38

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. /* Blocks/ContactForm/Frontend/renderFrontend.html.twig */
  16. class __TwigTemplate_cc21eb3e2ee0feb92b7007c3877473f9 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_b91a4435ea3baf1e2b6bfda56133dace $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  35.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Blocks/ContactForm/Frontend/renderFrontend.html.twig"));
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Blocks/ContactForm/Frontend/renderFrontend.html.twig"));
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Blocks/ContactForm/Frontend/renderFrontend.html.twig"));
  40.         // line 1
  41.         yield "<div class=\"block block-contactform ";
  42.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env$this->source, ($context["data"] ?? null), "classes", [], "any"truetruefalse1)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env$this->source, (isset($context["data"]) || array_key_exists("data"$context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.'1$this->source); })()), "classes", [], "any"falsefalsefalse1), "")) : ("")), "html"nulltrue);
  43.         yield "\">
  44. \t";
  45.         // line 2
  46.         if ((($tmp CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'2$this->source); })()), "request", [], "any"falsefalsefalse2), "query", [], "any"falsefalsefalse2), "get", ["sent"], "method"falsefalsefalse2)) && $tmp instanceof Markup ? (string) $tmp $tmp)) {
  47.             // line 3
  48.             yield "\t\t<div class=\"bg-light rounded p-4\" style=\"margin-bottom: 80px; border-left: 4px solid #b79961;\">
  49. \t\t\t<p class=\"m-0\">
  50. \t\t\t\tThank you for your submission!<br/>
  51. \t\t\t\tWe will be in touch with you shortly.
  52. \t\t\t</p>
  53. \t\t</div>
  54. \t";
  55.         }
  56.         // line 10
  57.         yield "
  58. \t";
  59.         // line 11
  60.         yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["contactForm"]) || array_key_exists("contactForm"$context) ? $context["contactForm"] : (function () { throw new RuntimeError('Variable "contactForm" does not exist.'11$this->source); })()), 'errors');
  61.         yield "
  62. \t";
  63.         // line 13
  64.         yield         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["contactForm"]) || array_key_exists("contactForm"$context) ? $context["contactForm"] : (function () { throw new RuntimeError('Variable "contactForm" does not exist.'13$this->source); })()), 'form_start');
  65.         yield "
  66. \t\t";
  67.         // line 14
  68.         yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env$this->source, (isset($context["contactForm"]) || array_key_exists("contactForm"$context) ? $context["contactForm"] : (function () { throw new RuntimeError('Variable "contactForm" does not exist.'14$this->source); })()), "name", [], "any"falsefalsefalse14), 'row');
  69.         yield "
  70. \t\t";
  71.         // line 15
  72.         yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env$this->source, (isset($context["contactForm"]) || array_key_exists("contactForm"$context) ? $context["contactForm"] : (function () { throw new RuntimeError('Variable "contactForm" does not exist.'15$this->source); })()), "email", [], "any"falsefalsefalse15), 'row');
  73.         yield "
  74. \t\t";
  75.         // line 16
  76.         yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env$this->source, (isset($context["contactForm"]) || array_key_exists("contactForm"$context) ? $context["contactForm"] : (function () { throw new RuntimeError('Variable "contactForm" does not exist.'16$this->source); })()), "phone", [], "any"falsefalsefalse16), 'row');
  77.         yield "
  78. \t\t";
  79.         // line 17
  80.         yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env$this->source, (isset($context["contactForm"]) || array_key_exists("contactForm"$context) ? $context["contactForm"] : (function () { throw new RuntimeError('Variable "contactForm" does not exist.'17$this->source); })()), "message", [], "any"falsefalsefalse17), 'row');
  81.         yield "
  82. \t\t<button type=\"submit\" class=\"btn btn-primary\">Submit</button>
  83. \t";
  84.         // line 20
  85.         yield         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["contactForm"]) || array_key_exists("contactForm"$context) ? $context["contactForm"] : (function () { throw new RuntimeError('Variable "contactForm" does not exist.'20$this->source); })()), 'form_end');
  86.         yield "
  87. </div>
  88. ";
  89.         
  90.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  91.         
  92.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  93.         
  94.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  95.         yield from [];
  96.     }
  97.     /**
  98.      * @codeCoverageIgnore
  99.      */
  100.     public function getTemplateName(): string
  101.     {
  102.         return "Blocks/ContactForm/Frontend/renderFrontend.html.twig";
  103.     }
  104.     /**
  105.      * @codeCoverageIgnore
  106.      */
  107.     public function isTraitable(): bool
  108.     {
  109.         return false;
  110.     }
  111.     /**
  112.      * @codeCoverageIgnore
  113.      */
  114.     public function getDebugInfo(): array
  115.     {
  116.         return array (  97 => 20,  91 => 17,  87 => 16,  83 => 15,  79 => 14,  75 => 13,  70 => 11,  67 => 10,  58 => 3,  56 => 2,  51 => 1,);
  117.     }
  118.     public function getSourceContext(): Source
  119.     {
  120.         return new Source("<div class=\"block block-contactform {{ data.classes|default('') }}\">
  121. \t{% if app.request.query.get('sent') %}
  122. \t\t<div class=\"bg-light rounded p-4\" style=\"margin-bottom: 80px; border-left: 4px solid #b79961;\">
  123. \t\t\t<p class=\"m-0\">
  124. \t\t\t\tThank you for your submission!<br/>
  125. \t\t\t\tWe will be in touch with you shortly.
  126. \t\t\t</p>
  127. \t\t</div>
  128. \t{% endif %}
  129. \t{{ form_errors(contactForm) }}
  130. \t{{ form_start(contactForm) }}
  131. \t\t{{ form_row(contactForm.name) }}
  132. \t\t{{ form_row(contactForm.email) }}
  133. \t\t{{ form_row(contactForm.phone) }}
  134. \t\t{{ form_row(contactForm.message) }}
  135. \t\t<button type=\"submit\" class=\"btn btn-primary\">Submit</button>
  136. \t{{ form_end(contactForm) }}
  137. </div>
  138. ""Blocks/ContactForm/Frontend/renderFrontend.html.twig""/home/cwd-jm-interlet-group/htdocs/interlet-group.cwd-jm.com/templates/Blocks/ContactForm/Frontend/renderFrontend.html.twig");
  139.     }
  140. }