var/cache/dev/twig/ba/ba6fe9bea3d61d605eb522cfaddcfc55.php line 53

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. /* home/contact.html.twig */
  14. class __TwigTemplate_776de0f392fc5764c47d35f549f57b4c 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.             'title_suffix' => [$this'block_title_suffix'],
  24.             'head_scripts' => [$this'block_head_scripts'],
  25.             'body' => [$this'block_body'],
  26.             'javascripts' => [$this'block_javascripts'],
  27.         ];
  28.     }
  29.     protected function doGetParent(array $context)
  30.     {
  31.         // line 1
  32.         return $this->loadTemplate($this->extensions['App\Twig\MiscExtension']->getBaseTemplateName(twig_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.'1$this->source); })()), "request", [], "any"falsefalsefalse1)), "home/contact.html.twig"1);
  33.     }
  34.     protected function doDisplay(array $context, array $blocks = [])
  35.     {
  36.         $macros $this->macros;
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  38.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""home/contact.html.twig"));
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  40.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""home/contact.html.twig"));
  41.         // line 4
  42.         $this->env->getRuntime("Symfony\\Component\\Form\\FormRenderer")->setTheme((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'4$this->source); })()), ["bootstrap_4_layout.html.twig"], true);
  43.         // line 1
  44.         $this->getParent($context)->display($contextarray_merge($this->blocks$blocks));
  45.         
  46.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  47.         
  48.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  49.     }
  50.     // line 2
  51.     public function block_title_suffix($context, array $blocks = [])
  52.     {
  53.         $macros $this->macros;
  54.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  55.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title_suffix"));
  56.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  57.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title_suffix"));
  58.         echo "Kontakt";
  59.         
  60.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  61.         
  62.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  63.     }
  64.     // line 6
  65.     public function block_head_scripts($context, array $blocks = [])
  66.     {
  67.         $macros $this->macros;
  68.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  69.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""head_scripts"));
  70.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  71.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""head_scripts"));
  72.         // line 7
  73.         echo "    <script src=\"https://www.google.com/recaptcha/api.js\" async defer></script>
  74. ";
  75.         
  76.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  77.         
  78.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  79.     }
  80.     // line 10
  81.     public function block_body($context, array $blocks = [])
  82.     {
  83.         $macros $this->macros;
  84.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  85.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  86.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  87.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  88.         // line 11
  89.         echo "    <h2 class=\"mb-3\">Kontakt aufnehmen ... und Hilfe erhalten</h2>
  90.     <h4>Bitte fülle dieses Formular aus</h4>
  91.     <p>Unsere Antwort erfolgt per E-Mail. Bitte achte daher auf eine gültige E-Mail Adresse, damit wir dich auch
  92.         erreichen können!</p>
  93.     <div class=\"align-items-center bg-grey-10 py-2 pb-lg-2 mx-0 mb-4\">
  94.         ";
  95.         // line 16
  96.         if (((isset($context["emailSent"]) || array_key_exists("emailSent"$context) ? $context["emailSent"] : (function () { throw new RuntimeError('Variable "emailSent" does not exist.'16$this->source); })()) || (isset($context["failure"]) || array_key_exists("failure"$context) ? $context["failure"] : (function () { throw new RuntimeError('Variable "failure" does not exist.'16$this->source); })()))) {
  97.             // line 17
  98.             echo "            ";
  99.             $context["class"] = (((isset($context["failure"]) || array_key_exists("failure"$context) ? $context["failure"] : (function () { throw new RuntimeError('Variable "failure" does not exist.'17$this->source); })())) ? ("alert alert-danger") : ("alert alert-success"));
  100.             // line 18
  101.             echo "            <div class=\"col-12 ";
  102.             echo twig_escape_filter($this->env, (isset($context["class"]) || array_key_exists("class"$context) ? $context["class"] : (function () { throw new RuntimeError('Variable "class" does not exist.'18$this->source); })()), "html"nulltrue);
  103.             echo "\">
  104.                 <strong>Vielen Dank!</strong>
  105.                 ";
  106.             // line 20
  107.             if ((isset($context["failure"]) || array_key_exists("failure"$context) ? $context["failure"] : (function () { throw new RuntimeError('Variable "failure" does not exist.'20$this->source); })())) {
  108.                 // line 21
  109.                 echo "                    <p>Das hat leider nicht geklappt. Bitte versuche es nochmal oder schicke uns eine E-Mail an support@frivol.com</p>
  110.                 ";
  111.             } else {
  112.                 // line 23
  113.                 echo "                    <p>Deine Nachricht wurde gespeichert und wird von einem Mitarbeiter aus dem Support bearbeitet.
  114.                         Wir bitten um Geduld, besonders nachts, an Wochenenden und Feiertagen.</p>
  115.                 ";
  116.             }
  117.             // line 26
  118.             echo "            </div>
  119.         ";
  120.         }
  121.         // line 28
  122.         echo "        ";
  123.         if (((isset($context["emailSent"]) || array_key_exists("emailSent"$context) ? $context["emailSent"] : (function () { throw new RuntimeError('Variable "emailSent" does not exist.'28$this->source); })()) == false)) {
  124.             // line 29
  125.             echo "            ";
  126.             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.'29$this->source); })()), 'form_start', ["attr" => ["class" => "col-12""id" => "contact_form"]]);
  127.             echo "
  128.             ";
  129.             // line 30
  130.             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.'30$this->source); })()), "firstName", [], "any"falsefalsefalse30), 'row');
  131.             echo "
  132.             ";
  133.             // line 31
  134.             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.'31$this->source); })()), "lastName", [], "any"falsefalsefalse31), 'row');
  135.             echo "
  136.             ";
  137.             // line 32
  138.             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.'32$this->source); })()), "email", [], "any"falsefalsefalse32), 'row');
  139.             echo "
  140.             ";
  141.             // line 33
  142.             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.'33$this->source); })()), "phone", [], "any"falsefalsefalse33), 'row');
  143.             echo "
  144.             ";
  145.             // line 34
  146.             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.'34$this->source); })()), "webmId", [], "any"falsefalsefalse34), 'row');
  147.             echo "
  148.             ";
  149.             // line 35
  150.             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.'35$this->source); })()), "topic", [], "any"falsefalsefalse35), 'row');
  151.             echo "
  152.             ";
  153.             // line 36
  154.             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.'36$this->source); })()), "message", [], "any"falsefalsefalse36), 'row');
  155.             echo "
  156.             ";
  157.             // line 37
  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.'37$this->source); })()), "info", [], "any"falsefalsefalse37), 'row');
  159.             echo "
  160.             <div id=\"contactFormContent\" style=\"visibility:hidden;\">
  161.                 ";
  162.             // line 39
  163.             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.'39$this->source); })()), "submit", [], "any"falsefalsefalse39), 'row', ["attr" => ["disabled" => "disabled"]]);
  164.             echo "
  165.             </div>
  166.             <div class=\"g-recaptcha\" data-sitekey=\"";
  167.             // line 41
  168.             echo twig_escape_filter($this->env, (isset($context["RECAPTCHA_FORM_KEY"]) || array_key_exists("RECAPTCHA_FORM_KEY"$context) ? $context["RECAPTCHA_FORM_KEY"] : (function () { throw new RuntimeError('Variable "RECAPTCHA_FORM_KEY" does not exist.'41$this->source); })()), "html"nulltrue);
  169.             echo "\" data-callback=\"recaptchaCallback\"></div>
  170.             ";
  171.             // line 42
  172.             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_end');
  173.             echo "
  174.         ";
  175.         }
  176.         // line 44
  177.         echo "    </div>
  178.     <h4>Europäischer Support:</h4>
  179.     <img src=\"";
  180.         // line 47
  181.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/contactInfo.png"), "html"nulltrue);
  182.         echo "\" data-callback=\"contactCallback\" class=\"company-contact-info\" />
  183.     <div class=\"row-fluid\">
  184.         <div class=\"span12\">
  185.             <h5>Online-Streitbeilegung (Art. 14 Abs. 1 ODR-Verordnung):</h5>
  186.             <p>
  187.                 Die Europäische Kommission stellt unter <a href=\"http://ec.europa.eu/consumers/odr\" target=\"_blank\">
  188.                     http://ec.europa.eu/consumers/odr</a> eine Plattform zur Online-Streitbeilegung bereit.
  189.             </p>
  190.         </div>
  191.     </div>
  192. ";
  193.         
  194.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  195.         
  196.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  197.     }
  198.     // line 60
  199.     public function block_javascripts($context, array $blocks = [])
  200.     {
  201.         $macros $this->macros;
  202.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  203.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  204.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  205.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  206.         // line 61
  207.         echo "    ";
  208.         $this->displayParentBlock("javascripts"$context$blocks);
  209.         echo "
  210.     <script>
  211.         function recaptchaCallback() {
  212.             \$(\"#contactFormContent\").css(\"visibility\", \"visible\");
  213.             \$('#contact_form_submit').removeAttr('disabled');
  214.         }
  215.     </script>
  216. ";
  217.         
  218.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  219.         
  220.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  221.     }
  222.     public function getTemplateName()
  223.     {
  224.         return "home/contact.html.twig";
  225.     }
  226.     public function isTraitable()
  227.     {
  228.         return false;
  229.     }
  230.     public function getDebugInfo()
  231.     {
  232.         return array (  238 => 61,  228 => 60,  206 => 47,  201 => 44,  196 => 42,  192 => 41,  187 => 39,  182 => 37,  178 => 36,  174 => 35,  170 => 34,  166 => 33,  162 => 32,  158 => 31,  154 => 30,  149 => 29,  146 => 28,  142 => 26,  137 => 23,  133 => 21,  131 => 20,  125 => 18,  122 => 17,  120 => 16,  113 => 11,  103 => 10,  92 => 7,  82 => 6,  63 => 2,  53 => 1,  51 => 4,  38 => 1,);
  233.     }
  234.     public function getSourceContext()
  235.     {
  236.         return new Source("{% extends baseTemplateName(app.request) %}
  237. {% block title_suffix %}Kontakt{% endblock %}
  238. {% form_theme form 'bootstrap_4_layout.html.twig' %}
  239. {% block head_scripts %}
  240.     <script src=\"https://www.google.com/recaptcha/api.js\" async defer></script>
  241. {% endblock %}
  242. {% block body %}
  243.     <h2 class=\"mb-3\">Kontakt aufnehmen ... und Hilfe erhalten</h2>
  244.     <h4>Bitte fülle dieses Formular aus</h4>
  245.     <p>Unsere Antwort erfolgt per E-Mail. Bitte achte daher auf eine gültige E-Mail Adresse, damit wir dich auch
  246.         erreichen können!</p>
  247.     <div class=\"align-items-center bg-grey-10 py-2 pb-lg-2 mx-0 mb-4\">
  248.         {% if emailSent or failure %}
  249.             {% set class = failure ? \"alert alert-danger\" : \"alert alert-success\" %}
  250.             <div class=\"col-12 {{ class }}\">
  251.                 <strong>Vielen Dank!</strong>
  252.                 {% if failure %}
  253.                     <p>Das hat leider nicht geklappt. Bitte versuche es nochmal oder schicke uns eine E-Mail an support@frivol.com</p>
  254.                 {% else %}
  255.                     <p>Deine Nachricht wurde gespeichert und wird von einem Mitarbeiter aus dem Support bearbeitet.
  256.                         Wir bitten um Geduld, besonders nachts, an Wochenenden und Feiertagen.</p>
  257.                 {% endif %}
  258.             </div>
  259.         {% endif %}
  260.         {% if emailSent == false %}
  261.             {{ form_start(form, {'attr': {'class': 'col-12', 'id': 'contact_form'}}) }}
  262.             {{ form_row(form.firstName) }}
  263.             {{ form_row(form.lastName) }}
  264.             {{ form_row(form.email) }}
  265.             {{ form_row(form.phone) }}
  266.             {{ form_row(form.webmId) }}
  267.             {{ form_row(form.topic) }}
  268.             {{ form_row(form.message) }}
  269.             {{ form_row(form.info) }}
  270.             <div id=\"contactFormContent\" style=\"visibility:hidden;\">
  271.                 {{ form_row(form.submit, {'attr': {'disabled':'disabled'}}) }}
  272.             </div>
  273.             <div class=\"g-recaptcha\" data-sitekey=\"{{ RECAPTCHA_FORM_KEY }}\" data-callback=\"recaptchaCallback\"></div>
  274.             {{ form_end(form) }}
  275.         {% endif %}
  276.     </div>
  277.     <h4>Europäischer Support:</h4>
  278.     <img src=\"{{ asset('build/images/contactInfo.png')}}\" data-callback=\"contactCallback\" class=\"company-contact-info\" />
  279.     <div class=\"row-fluid\">
  280.         <div class=\"span12\">
  281.             <h5>Online-Streitbeilegung (Art. 14 Abs. 1 ODR-Verordnung):</h5>
  282.             <p>
  283.                 Die Europäische Kommission stellt unter <a href=\"http://ec.europa.eu/consumers/odr\" target=\"_blank\">
  284.                     http://ec.europa.eu/consumers/odr</a> eine Plattform zur Online-Streitbeilegung bereit.
  285.             </p>
  286.         </div>
  287.     </div>
  288. {% endblock %}
  289. {% block javascripts %}
  290.     {{ parent() }}
  291.     <script>
  292.         function recaptchaCallback() {
  293.             \$(\"#contactFormContent\").css(\"visibility\", \"visible\");
  294.             \$('#contact_form_submit').removeAttr('disabled');
  295.         }
  296.     </script>
  297. {% endblock %}
  298. ""home/contact.html.twig""/var/www/frontend-dev/apps/frontend/templates/home/contact.html.twig");
  299.     }
  300. }