var/cache/website/dev/twig/ff/ff2ed52ee69a330e3cbe2d045115f7e23b3b7e8aa6bc59a46b7060c7af954aee.php line 34

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. /* search_properties/popups/_send-a-message.html.twig */
  14. class __TwigTemplate_d355f6a88bfb3c0798edbd917ade93ba5787311ca0796ae4e208d3c13f55f201 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.         $macros["_self"] = $this->macros["_self"] = $this;
  26.     }
  27.     protected function doDisplay(array $context, array $blocks = [])
  28.     {
  29.         $macros $this->macros;
  30.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  31.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""search_properties/popups/_send-a-message.html.twig"));
  32.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  33.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""search_properties/popups/_send-a-message.html.twig"));
  34.         // line 1
  35.         $macros["macros"] = $this->macros["macros"] = $this->loadTemplate("search_properties/_macros.twig""search_properties/popups/_send-a-message.html.twig"1)->unwrap();
  36.         // line 2
  37.         echo "
  38. ";
  39.         // line 10
  40.         echo "
  41. <transition name='slide-left'>
  42.   <div class='align-self-bottom mt-auto w-392' ref='send-a-message' v-if=\"currentPopup === 'send-a-message'\">
  43.     ";
  44.         // line 13
  45.         $context["snippet"] = $this->extensions['Sulu\Bundle\SnippetBundle\Twig\SnippetAreaTwigExtension']->loadByArea("offer_area");
  46.         // line 14
  47.         echo "    ";
  48.         if (( !(null === ($context["snippet"] ?? null)) &&  !(null === twig_get_attribute($this->env$this->source, ($context["snippet"] ?? null), "content", [], "any"falsefalsefalse14)))) {
  49.             // line 15
  50.             echo "      <div class='bg-white box-shadow contact-form offers-container py-32 p-r' @click.stop>
  51.         <button @click=\"closePopup\" type='button' aria-label='";
  52.             // line 16
  53.             echo twig_escape_filter($this->envtwig_capitalize_string_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("close")), "html"nulltrue);
  54.             echo "' class='button-reset top-right px-16 py-16'>
  55.           <svg width=\"12\" height=\"12\">
  56.           <use xlink:href='#close-12'/>
  57.           </svg>
  58.         </button>
  59.         <h3 class='t-caption-medium mb-16'>";
  60.             // line 21
  61.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["snippet"] ?? null), "content", [], "any"falsefalsefalse21), "title", [], "any"falsefalsefalse21), "html"nulltrue);
  62.             echo "</h3>
  63.         <div class='border-top mb-24'></div>
  64.         <async-form action=\"";
  65.             // line 24
  66.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("submitForm");
  67.             echo "\" method=\"POST\" data-focus-first-invalid v-slot='{ isDisabled }'>
  68.           <p class='t-p-medium mb-32'>";
  69.             // line 25
  70.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["snippet"] ?? null), "content", [], "any"falsefalsefalse25), "descriptionsingle", [], "any"falsefalsefalse25), "html"nulltrue);
  71.             echo "</p>
  72.           <div>
  73.             <div class='mb-16'>
  74.               ";
  75.             // line 29
  76.             echo twig_call_macro($macros["macros"], "macro_input", [["label" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["snippet"] ?? null), "content", [], "any"falsefalsefalse29), "firstname", [], "any"falsefalsefalse29), "name" => "first-name""required" => true]], 29$context$this->getSourceContext());
  77.             echo "
  78.             </div>
  79.             <div class='mb-16'>
  80.               ";
  81.             // line 32
  82.             echo twig_call_macro($macros["macros"], "macro_input", [["label" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["snippet"] ?? null), "content", [], "any"falsefalsefalse32), "lastname", [], "any"falsefalsefalse32), "name" => "last-name""required" => true]], 32$context$this->getSourceContext());
  83.             echo "
  84.             </div>
  85.             <div class='mb-16'>
  86.               ";
  87.             // line 35
  88.             echo twig_call_macro($macros["macros"], "macro_input", [["label" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["snippet"] ?? null), "content", [], "any"falsefalsefalse35), "email", [], "any"falsefalsefalse35), "name" => "email""required" => true"type" => "email"]], 35$context$this->getSourceContext());
  89.             echo "
  90.             </div>
  91.             <div class='mb-16'>
  92.               ";
  93.             // line 38
  94.             echo twig_call_macro($macros["macros"], "macro_input", [["label" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["snippet"] ?? null), "content", [], "any"falsefalsefalse38), "phone", [], "any"falsefalsefalse38), "name" => "phone""required" => true"type" => "tel"]], 38$context$this->getSourceContext());
  95.             echo "
  96.             </div>
  97.             <div class='mb-16'>
  98.               ";
  99.             // line 41
  100.             echo twig_call_macro($macros["macros"], "macro_input", [["label" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["snippet"] ?? null), "content", [], "any"falsefalsefalse41), "message", [], "any"falsefalsefalse41), "name" => "message""textarea" => true]], 41$context$this->getSourceContext());
  101.             echo "
  102.             </div>
  103.           </div>
  104.           <div class='grid-x'>
  105.             <div class='small-8 cell'>
  106.               <button class='py-16 w-100 button-reset text-center o-h t-label-regular bg-dark-blue c-white mb-16' :disabled='isDisabled' :class='{\"o-04\": isDisabled}'>
  107.                 ";
  108.             // line 48
  109.             echo twig_escape_filter($this->envtwig_capitalize_string_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Envoyer")), "html"nulltrue);
  110.             echo "
  111.               </button>
  112.             </div>
  113.           </div>
  114.           ";
  115.             // line 53
  116.             echo twig_call_macro($macros["_self"], "macro_protectedByCaptcha", [], 53$context$this->getSourceContext());
  117.             echo "
  118.           <input type='hidden' name='reference' :value='detail ? detail.ref : \"\"'/>
  119.           ";
  120.             // line 55
  121.             if (twig_get_attribute($this->env$this->source, ($context["detail"] ?? null), "isForRent", [], "any"falsefalsefalse55)) {
  122.                 // line 56
  123.                 echo "            <input type=\"hidden\" name=\"address\" :value='detail ? detail.rentAddress : \"\"'/>
  124.           ";
  125.             } elseif ( !twig_get_attribute($this->env$this->source,             // line 57
  126. ($context["detail"] ?? null), "isForRent", [], "any"falsefalsefalse57)) {
  127.                 // line 58
  128.                 echo "            <input type=\"hidden\" name=\"address\" :value='detail ? detail.buyAddress : \"\"'/>
  129.           ";
  130.             }
  131.             // line 60
  132.             echo "          <input type=\"hidden\" name=\"price\" :value='detail ? detail.price : \"\"'/>
  133.           <input type='hidden' name='emailBroker' :value='currentContactPerson.email'/>
  134.           <input type='hidden' name='isRent' :value='detail.isForRent'/>
  135.         </async-form>
  136.       </div>
  137.     ";
  138.         } else {
  139.             // line 66
  140.             echo "      <h4 class=\"alert alert-danger\" style=\"color:red\">
  141.         Form offer Snippet is not Defined
  142.       </h4>
  143.     ";
  144.         }
  145.         // line 70
  146.         echo "  </div>
  147. </transition>
  148. ";
  149.         
  150.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  151.         
  152.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  153.     }
  154.     // line 3
  155.     public function macro_protectedByCaptcha(...$__varargs__)
  156.     {
  157.         $macros $this->macros;
  158.         $context $this->env->mergeGlobals([
  159.             "varargs" => $__varargs__,
  160.         ]);
  161.         $blocks = [];
  162.         ob_start();
  163.         try {
  164.             $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  165.             $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro""protectedByCaptcha"));
  166.             $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  167.             $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro""protectedByCaptcha"));
  168.             // line 4
  169.             echo "  <p class='t-small'>";
  170.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Ce site est protégé par reCAPTCHA et par la"), "html"nulltrue);
  171.             echo "
  172.     <a href='https://policies.google.com/privacy' class='c-accent-blue' target='_blank' rel='noopener noreferrer'>";
  173.             // line 5
  174.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("politique de confidentialité"), "html"nulltrue);
  175.             echo "</a>
  176.     ";
  177.             // line 6
  178.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("et les"), "html"nulltrue);
  179.             echo "
  180.     <a href='https://policies.google.com/terms' class='c-accent-blue' target='_blank' rel='noopener noreferrer'>";
  181.             // line 7
  182.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("conditions d'utilisation de Google"), "html"nulltrue);
  183.             echo "</a>
  184.   </p>
  185. ";
  186.             
  187.             $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  188.             
  189.             $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  190.             return ('' === $tmp ob_get_contents()) ? '' : new Markup($tmp$this->env->getCharset());
  191.         } finally {
  192.             ob_end_clean();
  193.         }
  194.     }
  195.     public function getTemplateName()
  196.     {
  197.         return "search_properties/popups/_send-a-message.html.twig";
  198.     }
  199.     public function isTraitable()
  200.     {
  201.         return false;
  202.     }
  203.     public function getDebugInfo()
  204.     {
  205.         return array (  202 => 7,  198 => 6,  194 => 5,  189 => 4,  171 => 3,  159 => 70,  153 => 66,  145 => 60,  141 => 58,  139 => 57,  136 => 56,  134 => 55,  129 => 53,  121 => 48,  111 => 41,  105 => 38,  99 => 35,  93 => 32,  87 => 29,  80 => 25,  76 => 24,  70 => 21,  62 => 16,  59 => 15,  56 => 14,  54 => 13,  49 => 10,  46 => 2,  44 => 1,);
  206.     }
  207.     public function getSourceContext()
  208.     {
  209.         return new Source("{% import 'search_properties/_macros.twig' as macros %}
  210. {% macro protectedByCaptcha() %}
  211.   <p class='t-small'>{{'Ce site est protégé par reCAPTCHA et par la' | trans}}
  212.     <a href='https://policies.google.com/privacy' class='c-accent-blue' target='_blank' rel='noopener noreferrer'>{{'politique de confidentialité' | trans}}</a>
  213.     {{'et les' | trans}}
  214.     <a href='https://policies.google.com/terms' class='c-accent-blue' target='_blank' rel='noopener noreferrer'>{{\"conditions d'utilisation de Google\" | trans}}</a>
  215.   </p>
  216. {% endmacro %}
  217. <transition name='slide-left'>
  218.   <div class='align-self-bottom mt-auto w-392' ref='send-a-message' v-if=\"currentPopup === 'send-a-message'\">
  219.     {% set snippet = sulu_snippet_load_by_area('offer_area') %}
  220.     {% if snippet is not null and snippet.content is not null %}
  221.       <div class='bg-white box-shadow contact-form offers-container py-32 p-r' @click.stop>
  222.         <button @click=\"closePopup\" type='button' aria-label='{{'close'|trans|capitalize}}' class='button-reset top-right px-16 py-16'>
  223.           <svg width=\"12\" height=\"12\">
  224.           <use xlink:href='#close-12'/>
  225.           </svg>
  226.         </button>
  227.         <h3 class='t-caption-medium mb-16'>{{snippet.content.title}}</h3>
  228.         <div class='border-top mb-24'></div>
  229.         <async-form action=\"{{path('submitForm')}}\" method=\"POST\" data-focus-first-invalid v-slot='{ isDisabled }'>
  230.           <p class='t-p-medium mb-32'>{{snippet.content.descriptionsingle}}</p>
  231.           <div>
  232.             <div class='mb-16'>
  233.               {{macros.input({label: snippet.content.firstname, name: 'first-name', required: true})}}
  234.             </div>
  235.             <div class='mb-16'>
  236.               {{macros.input({label: snippet.content.lastname, name: 'last-name', required: true})}}
  237.             </div>
  238.             <div class='mb-16'>
  239.               {{macros.input({label: snippet.content.email, name: 'email', required: true, type: 'email'})}}
  240.             </div>
  241.             <div class='mb-16'>
  242.               {{macros.input({label: snippet.content.phone, name: 'phone', required: true, type: 'tel'})}}
  243.             </div>
  244.             <div class='mb-16'>
  245.               {{macros.input({label: snippet.content.message, name: 'message', textarea: true })}}
  246.             </div>
  247.           </div>
  248.           <div class='grid-x'>
  249.             <div class='small-8 cell'>
  250.               <button class='py-16 w-100 button-reset text-center o-h t-label-regular bg-dark-blue c-white mb-16' :disabled='isDisabled' :class='{\"o-04\": isDisabled}'>
  251.                 {{'Envoyer'|trans|capitalize}}
  252.               </button>
  253.             </div>
  254.           </div>
  255.           {{_self.protectedByCaptcha()}}
  256.           <input type='hidden' name='reference' :value='detail ? detail.ref : \"\"'/>
  257.           {% if detail.isForRent %}
  258.             <input type=\"hidden\" name=\"address\" :value='detail ? detail.rentAddress : \"\"'/>
  259.           {% elseif not detail.isForRent%}
  260.             <input type=\"hidden\" name=\"address\" :value='detail ? detail.buyAddress : \"\"'/>
  261.           {% endif %}
  262.           <input type=\"hidden\" name=\"price\" :value='detail ? detail.price : \"\"'/>
  263.           <input type='hidden' name='emailBroker' :value='currentContactPerson.email'/>
  264.           <input type='hidden' name='isRent' :value='detail.isForRent'/>
  265.         </async-form>
  266.       </div>
  267.     {% else %}
  268.       <h4 class=\"alert alert-danger\" style=\"color:red\">
  269.         Form offer Snippet is not Defined
  270.       </h4>
  271.     {% endif %}
  272.   </div>
  273. </transition>
  274. ""search_properties/popups/_send-a-message.html.twig""/home/clients/6069f7d890ad1893915d376cf7e5b903/var/www/bn-invest-commercial/templates/search_properties/popups/_send-a-message.html.twig");
  275.     }
  276. }