var/cache/website/dev/twig/0d/0db24dd516fba31e10627d2f0ca75d1535f1c059b57d2d815061517203626d45.php line 111

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. /* elements/home_cover/home_cover.html.twig */
  14. class __TwigTemplate_c98d593c066162d7e3ee084da9bb07ec2d1b194c06de1ca56ec49d4c62d87154 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_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""elements/home_cover/home_cover.html.twig"));
  31.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""elements/home_cover/home_cover.html.twig"));
  33.         // line 1
  34.         $macros["buttons"] = $this->macros["buttons"] = $this->loadTemplate("elements2024/macros/buttons.html.twig""elements/home_cover/home_cover.html.twig"1)->unwrap();
  35.         // line 2
  36.         echo "
  37. <!-- Hero section -->
  38. <section class=\"home-hero-section relative max-lg:pt-32 max-lg:pb-16 md:h-screen\">
  39. \t<div class=\"absolute inset-0 overflow-hidden\">
  40. \t\t<div class=\"absolute inset-0 animate-slowLoopZoomInOut\">
  41. \t\t\t";
  42.         // line 7
  43.         if (($context["image"] ?? null)) {
  44.             // line 8
  45.             echo "\t\t\t\t<img class=\"home-hero-bg img-cover\" src=\"";
  46.             echo twig_escape_filter($this->env, (($__internal_compile_0 twig_get_attribute($this->env$this->source, ($context["image"] ?? null), "thumbnails", [], "any"falsefalsefalse8)) && is_array($__internal_compile_0) || $__internal_compile_0 instanceof ArrayAccess ? ($__internal_compile_0["1440x800"] ?? null) : null), "html"nulltrue);
  47.             echo "\" srcset=\"";
  48.             echo twig_escape_filter($this->env, (($__internal_compile_1 twig_get_attribute($this->env$this->source, ($context["image"] ?? null), "thumbnails", [], "any"falsefalsefalse8)) && is_array($__internal_compile_1) || $__internal_compile_1 instanceof ArrayAccess ? ($__internal_compile_1["2880x1600"] ?? null) : null), "html"nulltrue);
  49.             echo " 2x\" alt=\"\">
  50. \t\t\t";
  51.         }
  52.         // line 10
  53.         echo "\t\t\t<div class=\"absolute inset-0 bg-dark/20\"></div>
  54. \t\t</div>
  55. \t</div>
  56. \t<div class=\"container px-4 h-full flex flex-col justify-center relative\">
  57. \t\t<div class=\"xl:max-w-8/12 w-full mx-auto\">
  58. \t\t\t<h1 class=\"home-hero-title h2 text-center uppercase text-white\" fade>";
  59.         // line 16
  60.         echo twig_escape_filter($this->env, ($context["title"] ?? null), "html"nulltrue);
  61.         echo "</h1>
  62. \t\t\t<div class=\"home-hero-deal flex flex-col md:flex-row gap-4 lg:gap-8 mt-16\" fade>
  63. \t\t\t\t<div class=\"form-deal-type\">
  64. \t\t\t\t\t<button data-form-action=\"/buy\" data-price-select=\"acheter\" class=\"active\" >Acheter</button>
  65. \t\t\t\t\t<button data-form-action=\"/rent\" data-price-select=\"louer\">Louer</button>
  66. \t\t\t\t</div>
  67. \t\t\t\t<a class=\"btn-rounded btn__green\" href=\"/nos-services/estimer\">
  68. \t\t\t\t\t<span>Estimer</span>
  69. \t\t\t\t\t<svg class=\"w-5 h-5\" viewbox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">
  70. \t\t\t\t\t\t<path d=\"M1.25 10H18.75\" stroke=\"currentColor\"/>
  71. \t\t\t\t\t\t<path d=\"M13.75 5L18.75 10L13.75 15\" stroke=\"currentColor\"/>
  72. \t\t\t\t\t</svg>
  73. \t\t\t\t</a>
  74. \t\t\t</div>
  75. \t\t\t";
  76.         // line 33
  77.         if (array_key_exists("eyebrowHtml"$context)) {
  78.             // line 34
  79.             echo "\t\t\t<div class=\"text-white text-center\">";
  80.             echo ($context["eyebrowHtml"] ?? null);
  81.             echo "</div>
  82. \t\t\t";
  83.         } else {
  84.             // line 36
  85.             echo "\t\t\t<form method=\"GET\" action=\"/buy\" class=\"home-hero-form flex flex-col lg:flex-row max-lg:gap-6 lg:justify-between bg-white py-6 lg:py-3 px-4 lg:pl-4 lg:pr-3 rounded-xl lg:rounded-full mt-4 lg:divide-x divide-dark/60\">
  86. \t\t\t\t<div class=\"multiselect-wrapp lg:w-1/4\">
  87. \t\t\t\t\t<label for=\"location\" class=\"truncate\">Localité(s) (Canton, ville, NPA)</label>
  88. \t\t\t\t\t<div class=\"js-location-select\" id=\"location\" name=\"location[]\" fetch-url=\"";
  89.             // line 39
  90.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("offers_locations_autocomplete");
  91.             echo "\"></div>
  92. \t\t\t\t</div>
  93. \t\t\t\t<div class=\"multiselect-wrapp lg:w-1/4\">
  94. \t\t\t\t\t<label for=\"type\">Type</label>
  95. \t\t\t\t\t";
  96.             // line 44
  97.             echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\Website\\LayoutController::selectType"));
  98.             echo "
  99. \t\t\t\t</div>
  100. \t\t\t\t<div class=\"multiselect-wrapp lg:w-1/4\">
  101. \t\t\t\t\t<label>Budget (CHF)</label>
  102. \t\t\t\t\t<div data-vue-root>
  103. \t\t\t\t\t\t<dropdown>
  104. \t\t\t\t\t\t\t<template slot=\"header\">
  105. \t\t\t\t\t\t\t\t<button
  106. \t\t\t\t\t\t\t\t\ttype=\"button\"
  107. \t\t\t\t\t\t\t\t\tclass=\"vscomp-toggle-button vscomp-wrapper\"
  108. \t\t\t\t\t\t\t\t\t:class=\"{ 'has-value': priceSelectionDisplay }\"
  109. \t\t\t\t\t\t\t\t>
  110. \t\t\t\t\t\t\t\t\t<div class=\"vscomp-value\" v-text=\"priceSelectionDisplay || 'Choisir'\"></div>
  111. \t\t\t\t\t\t\t\t\t<div class=\"vscomp-arrow\"></div>
  112. \t\t\t\t\t\t\t\t</button>
  113. \t\t\t\t\t\t\t</template>
  114. \t\t\t\t\t\t\t<template slot=\"default\">
  115. \t\t\t\t\t\t\t\t<div class=\"flex gap-4\">
  116. \t\t\t\t\t\t\t\t\t<number-input-with-suggestions
  117. \t\t\t\t\t\t\t\t\t\tinput-class=\"simple-input\"
  118. \t\t\t\t\t\t\t\t\t\tv-model=\"priceMin\"
  119. \t\t\t\t\t\t\t\t\t\t:suggestions=\"minPriceSuggestions\"
  120. \t\t\t\t\t\t\t\t\t\t:format-option=\"formatPriceOption\"
  121. \t\t\t\t\t\t\t\t\t\tplaceholder=\"Min\"
  122. \t\t\t\t\t\t\t\t\t\tname=\"priceMin\"
  123. \t\t\t\t\t\t\t\t\t\tlist-class=\"vscomp-options-list price-list\"
  124. \t\t\t\t\t\t\t\t\t\tlist-item-class=\"vscomp-option\"
  125. \t\t\t\t\t\t\t\t\t/>
  126. \t\t\t\t\t\t\t\t\t<number-input-with-suggestions
  127. \t\t\t\t\t\t\t\t\t\tinput-class=\"simple-input\"
  128. \t\t\t\t\t\t\t\t\t\tv-model=\"priceMax\"
  129. \t\t\t\t\t\t\t\t\t\t:suggestions=\"maxPriceSuggestions\"
  130. \t\t\t\t\t\t\t\t\t\t:format-option=\"formatPriceOption\"
  131. \t\t\t\t\t\t\t\t\t\tplaceholder=\"Max\"
  132. \t\t\t\t\t\t\t\t\t\tname=\"priceMax\"
  133. \t\t\t\t\t\t\t\t\t\tlist-class=\"vscomp-options-list price-list\"
  134. \t\t\t\t\t\t\t\t\t\tlist-item-class=\"vscomp-option\"
  135. \t\t\t\t\t\t\t\t\t/>
  136. \t\t\t\t\t\t\t\t</div>
  137. \t\t\t\t\t\t\t</template>
  138. \t\t\t\t\t\t</dropdown>
  139. \t\t\t\t\t</div>
  140. \t\t\t\t</div>
  141. \t\t\t\t<button class=\"btn-rounded btn__green\">Recherche</button>
  142. \t\t\t</form>
  143. \t\t\t";
  144.         }
  145.         // line 93
  146.         echo "\t\t</div>
  147. \t</div>
  148. </section>
  149. ";
  150.         
  151.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  152.         
  153.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  154.     }
  155.     public function getTemplateName()
  156.     {
  157.         return "elements/home_cover/home_cover.html.twig";
  158.     }
  159.     public function isTraitable()
  160.     {
  161.         return false;
  162.     }
  163.     public function getDebugInfo()
  164.     {
  165.         return array (  163 => 93,  111 => 44,  103 => 39,  98 => 36,  92 => 34,  90 => 33,  70 => 16,  62 => 10,  54 => 8,  52 => 7,  45 => 2,  43 => 1,);
  166.     }
  167.     public function getSourceContext()
  168.     {
  169.         return new Source("{% import 'elements2024/macros/buttons.html.twig' as buttons %}
  170. <!-- Hero section -->
  171. <section class=\"home-hero-section relative max-lg:pt-32 max-lg:pb-16 md:h-screen\">
  172. \t<div class=\"absolute inset-0 overflow-hidden\">
  173. \t\t<div class=\"absolute inset-0 animate-slowLoopZoomInOut\">
  174. \t\t\t{% if image %}
  175. \t\t\t\t<img class=\"home-hero-bg img-cover\" src=\"{{image.thumbnails['1440x800']}}\" srcset=\"{{image.thumbnails['2880x1600']}} 2x\" alt=\"\">
  176. \t\t\t{% endif %}
  177. \t\t\t<div class=\"absolute inset-0 bg-dark/20\"></div>
  178. \t\t</div>
  179. \t</div>
  180. \t<div class=\"container px-4 h-full flex flex-col justify-center relative\">
  181. \t\t<div class=\"xl:max-w-8/12 w-full mx-auto\">
  182. \t\t\t<h1 class=\"home-hero-title h2 text-center uppercase text-white\" fade>{{ title }}</h1>
  183. \t\t\t<div class=\"home-hero-deal flex flex-col md:flex-row gap-4 lg:gap-8 mt-16\" fade>
  184. \t\t\t\t<div class=\"form-deal-type\">
  185. \t\t\t\t\t<button data-form-action=\"/buy\" data-price-select=\"acheter\" class=\"active\" >Acheter</button>
  186. \t\t\t\t\t<button data-form-action=\"/rent\" data-price-select=\"louer\">Louer</button>
  187. \t\t\t\t</div>
  188. \t\t\t\t<a class=\"btn-rounded btn__green\" href=\"/nos-services/estimer\">
  189. \t\t\t\t\t<span>Estimer</span>
  190. \t\t\t\t\t<svg class=\"w-5 h-5\" viewbox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">
  191. \t\t\t\t\t\t<path d=\"M1.25 10H18.75\" stroke=\"currentColor\"/>
  192. \t\t\t\t\t\t<path d=\"M13.75 5L18.75 10L13.75 15\" stroke=\"currentColor\"/>
  193. \t\t\t\t\t</svg>
  194. \t\t\t\t</a>
  195. \t\t\t</div>
  196. \t\t\t{% if eyebrowHtml is defined %}
  197. \t\t\t<div class=\"text-white text-center\">{{ eyebrowHtml | raw }}</div>
  198. \t\t\t{% else %}
  199. \t\t\t<form method=\"GET\" action=\"/buy\" class=\"home-hero-form flex flex-col lg:flex-row max-lg:gap-6 lg:justify-between bg-white py-6 lg:py-3 px-4 lg:pl-4 lg:pr-3 rounded-xl lg:rounded-full mt-4 lg:divide-x divide-dark/60\">
  200. \t\t\t\t<div class=\"multiselect-wrapp lg:w-1/4\">
  201. \t\t\t\t\t<label for=\"location\" class=\"truncate\">Localité(s) (Canton, ville, NPA)</label>
  202. \t\t\t\t\t<div class=\"js-location-select\" id=\"location\" name=\"location[]\" fetch-url=\"{{path('offers_locations_autocomplete')}}\"></div>
  203. \t\t\t\t</div>
  204. \t\t\t\t<div class=\"multiselect-wrapp lg:w-1/4\">
  205. \t\t\t\t\t<label for=\"type\">Type</label>
  206. \t\t\t\t\t{{ render(controller('App\\\\Controller\\\\Website\\\\LayoutController::selectType')) }}
  207. \t\t\t\t</div>
  208. \t\t\t\t<div class=\"multiselect-wrapp lg:w-1/4\">
  209. \t\t\t\t\t<label>Budget (CHF)</label>
  210. \t\t\t\t\t<div data-vue-root>
  211. \t\t\t\t\t\t<dropdown>
  212. \t\t\t\t\t\t\t<template slot=\"header\">
  213. \t\t\t\t\t\t\t\t<button
  214. \t\t\t\t\t\t\t\t\ttype=\"button\"
  215. \t\t\t\t\t\t\t\t\tclass=\"vscomp-toggle-button vscomp-wrapper\"
  216. \t\t\t\t\t\t\t\t\t:class=\"{ 'has-value': priceSelectionDisplay }\"
  217. \t\t\t\t\t\t\t\t>
  218. \t\t\t\t\t\t\t\t\t<div class=\"vscomp-value\" v-text=\"priceSelectionDisplay || 'Choisir'\"></div>
  219. \t\t\t\t\t\t\t\t\t<div class=\"vscomp-arrow\"></div>
  220. \t\t\t\t\t\t\t\t</button>
  221. \t\t\t\t\t\t\t</template>
  222. \t\t\t\t\t\t\t<template slot=\"default\">
  223. \t\t\t\t\t\t\t\t<div class=\"flex gap-4\">
  224. \t\t\t\t\t\t\t\t\t<number-input-with-suggestions
  225. \t\t\t\t\t\t\t\t\t\tinput-class=\"simple-input\"
  226. \t\t\t\t\t\t\t\t\t\tv-model=\"priceMin\"
  227. \t\t\t\t\t\t\t\t\t\t:suggestions=\"minPriceSuggestions\"
  228. \t\t\t\t\t\t\t\t\t\t:format-option=\"formatPriceOption\"
  229. \t\t\t\t\t\t\t\t\t\tplaceholder=\"Min\"
  230. \t\t\t\t\t\t\t\t\t\tname=\"priceMin\"
  231. \t\t\t\t\t\t\t\t\t\tlist-class=\"vscomp-options-list price-list\"
  232. \t\t\t\t\t\t\t\t\t\tlist-item-class=\"vscomp-option\"
  233. \t\t\t\t\t\t\t\t\t/>
  234. \t\t\t\t\t\t\t\t\t<number-input-with-suggestions
  235. \t\t\t\t\t\t\t\t\t\tinput-class=\"simple-input\"
  236. \t\t\t\t\t\t\t\t\t\tv-model=\"priceMax\"
  237. \t\t\t\t\t\t\t\t\t\t:suggestions=\"maxPriceSuggestions\"
  238. \t\t\t\t\t\t\t\t\t\t:format-option=\"formatPriceOption\"
  239. \t\t\t\t\t\t\t\t\t\tplaceholder=\"Max\"
  240. \t\t\t\t\t\t\t\t\t\tname=\"priceMax\"
  241. \t\t\t\t\t\t\t\t\t\tlist-class=\"vscomp-options-list price-list\"
  242. \t\t\t\t\t\t\t\t\t\tlist-item-class=\"vscomp-option\"
  243. \t\t\t\t\t\t\t\t\t/>
  244. \t\t\t\t\t\t\t\t</div>
  245. \t\t\t\t\t\t\t</template>
  246. \t\t\t\t\t\t</dropdown>
  247. \t\t\t\t\t</div>
  248. \t\t\t\t</div>
  249. \t\t\t\t<button class=\"btn-rounded btn__green\">Recherche</button>
  250. \t\t\t</form>
  251. \t\t\t{% endif %}
  252. \t\t</div>
  253. \t</div>
  254. </section>
  255. ""elements/home_cover/home_cover.html.twig""/home/clients/6069f7d890ad1893915d376cf7e5b903/var/www/bn-invest-commercial/templates/elements/home_cover/home_cover.html.twig");
  256.     }
  257. }