var/cache/dev/twig/f0/f04257822d8776b1ba4ba1e06e5f6450.php line 106

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. /* pages/home.html.twig */
  16. class __TwigTemplate_5bb0a1131a53158b74f0f868f980da25 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->blocks = [
  28. 'css' => [$this, 'block_css'],
  29. 'menu' => [$this, 'block_menu'],
  30. 'content' => [$this, 'block_content'],
  31. 'js' => [$this, 'block_js'],
  32. ];
  33. }
  34. protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  35. {
  36. // line 1
  37. return "base.html.twig";
  38. }
  39. protected function doDisplay(array $context, array $blocks = []): iterable
  40. {
  41. $macros = $this->macros;
  42. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  43. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "pages/home.html.twig"));
  44. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  45. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "pages/home.html.twig"));
  46. $this->parent = $this->load("base.html.twig", 1);
  47. yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  48. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  49. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  50. }
  51. // line 2
  52. /**
  53. * @return iterable<null|scalar|\Stringable>
  54. */
  55. public function block_css(array $context, array $blocks = []): iterable
  56. {
  57. $macros = $this->macros;
  58. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  59. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "css"));
  60. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  61. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "css"));
  62. // line 3
  63. yield " ";
  64. yield from $this->yieldParentBlock("css", $context, $blocks);
  65. yield "
  66. <style>
  67. iframe img {
  68. max-width: 250px;
  69. max-height: 250px;
  70. }
  71. .slider-halfscreen {
  72. height: 72vh;
  73. }
  74. </style>
  75. ";
  76. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  77. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  78. yield from [];
  79. }
  80. // line 15
  81. /**
  82. * @return iterable<null|scalar|\Stringable>
  83. */
  84. public function block_menu(array $context, array $blocks = []): iterable
  85. {
  86. $macros = $this->macros;
  87. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  88. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "menu"));
  89. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  90. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "menu"));
  91. // line 16
  92. yield " ";
  93. yield from $this->load("components/menu.html.twig", 16)->unwrap()->yield(CoreExtension::merge($context, ["transparent" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["general"]) || array_key_exists("general", $context) ? $context["general"] : (function () { throw new RuntimeError('Variable "general" does not exist.', 16, $this->source); })()), "sliderFullscreen", [], "any", false, false, false, 16)]));
  94. // line 17
  95. yield " ";
  96. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  97. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  98. yield from [];
  99. }
  100. // line 18
  101. /**
  102. * @return iterable<null|scalar|\Stringable>
  103. */
  104. public function block_content(array $context, array $blocks = []): iterable
  105. {
  106. $macros = $this->macros;
  107. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  108. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  109. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  110. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  111. // line 19
  112. yield "
  113. <div id=\"slider\" class=\"inspiro-slider dots-creative ";
  114. // line 21
  115. if ((($tmp = !CoreExtension::getAttribute($this->env, $this->source, (isset($context["general"]) || array_key_exists("general", $context) ? $context["general"] : (function () { throw new RuntimeError('Variable "general" does not exist.', 21, $this->source); })()), "sliderFullscreen", [], "any", false, false, false, 21)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  116. yield "slider-halfscreen ";
  117. } else {
  118. yield " slider-fullscreen";
  119. }
  120. yield "\" data-height-xs=\"360\">
  121. <div class=\"slide\" data-bg-image=\"";
  122. // line 22
  123. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $this->extensions['App\Twig\ImageRenderExtension']->getFiles($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("images/upload/" . CoreExtension::getAttribute($this->env, $this->source, (isset($context["general"]) || array_key_exists("general", $context) ? $context["general"] : (function () { throw new RuntimeError('Variable "general" does not exist.', 22, $this->source); })()), "imageAccueil", [], "any", false, false, false, 22)))), "3x", [], "array", false, false, false, 22), "html", null, true);
  124. yield "\" >
  125. <div class=\"bg-overlay\"></div>
  126. <div class=\"container ";
  127. // line 24
  128. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["general"]) || array_key_exists("general", $context) ? $context["general"] : (function () { throw new RuntimeError('Variable "general" does not exist.', 24, $this->source); })()), "positionSloganAccueil", [], "any", false, false, false, 24), "html", null, true);
  129. yield "\">
  130. <div class=\"center-sm\" >
  131. <div class=\"slide-captions text-light\">
  132. <h1 data-animate=\"fadeInUp\" style=\"font-size: 44px ;color : ";
  133. // line 27
  134. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["general"]) || array_key_exists("general", $context) ? $context["general"] : (function () { throw new RuntimeError('Variable "general" does not exist.', 27, $this->source); })()), "couleurSlogan", [], "any", false, false, false, 27), "html", null, true);
  135. yield " !important\" class=\"slider-text\" data-animate-delay=\"600\">";
  136. yield CoreExtension::getAttribute($this->env, $this->source, (isset($context["general"]) || array_key_exists("general", $context) ? $context["general"] : (function () { throw new RuntimeError('Variable "general" does not exist.', 27, $this->source); })()), "slogan", [], "any", false, false, false, 27);
  137. yield "</h1>
  138. ";
  139. // line 28
  140. if (((CoreExtension::getAttribute($this->env, $this->source, (isset($context["general"]) || array_key_exists("general", $context) ? $context["general"] : (function () { throw new RuntimeError('Variable "general" does not exist.', 28, $this->source); })()), "sousTexteSlogan", [], "any", false, false, false, 28) != null) || (CoreExtension::getAttribute($this->env, $this->source, (isset($context["general"]) || array_key_exists("general", $context) ? $context["general"] : (function () { throw new RuntimeError('Variable "general" does not exist.', 28, $this->source); })()), "sousTexteSlogan", [], "any", false, false, false, 28) != ""))) {
  141. yield "<p class=\"slider-text\" style=\"color : ";
  142. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["general"]) || array_key_exists("general", $context) ? $context["general"] : (function () { throw new RuntimeError('Variable "general" does not exist.', 28, $this->source); })()), "couleurSlogan", [], "any", false, false, false, 28), "html", null, true);
  143. yield " !important\"> ";
  144. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["general"]) || array_key_exists("general", $context) ? $context["general"] : (function () { throw new RuntimeError('Variable "general" does not exist.', 28, $this->source); })()), "sousTexteSlogan", [], "any", false, false, false, 28), "html", null, true);
  145. yield "</p>";
  146. }
  147. // line 29
  148. yield " </div>
  149. <a href=\"";
  150. // line 30
  151. yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("contact");
  152. yield "\" class=\"btn btn-success\" data-animate=\"fadeInUp\" data-animate-delay=\"600\">";
  153. yield $this->extensions['App\Twig\TransExtension']->trans("home_slider.button");
  154. yield "</a>
  155. </div>
  156. </div>
  157. </div>
  158. </div>
  159. ";
  160. // line 35
  161. $context['_parent'] = $context;
  162. $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["menuS"]) || array_key_exists("menuS", $context) ? $context["menuS"] : (function () { throw new RuntimeError('Variable "menuS" does not exist.', 35, $this->source); })()), "compositionAccueil", [], "any", false, false, false, 35), "composition", [], "any", false, false, false, 35));
  163. $context['loop'] = [
  164. 'parent' => $context['_parent'],
  165. 'index0' => 0,
  166. 'index' => 1,
  167. 'first' => true,
  168. ];
  169. if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  170. $length = count($context['_seq']);
  171. $context['loop']['revindex0'] = $length - 1;
  172. $context['loop']['revindex'] = $length;
  173. $context['loop']['length'] = $length;
  174. $context['loop']['last'] = 1 === $length;
  175. }
  176. foreach ($context['_seq'] as $context["_key"] => $context["libelleSection"]) {
  177. // line 36
  178. yield "
  179. ";
  180. // line 37
  181. yield from $this->load((("composantsPages/homeComponents/" . $context["libelleSection"]) . ".html.twig"), 37)->unwrap()->yield($context);
  182. // line 38
  183. yield " ";
  184. // line 39
  185. yield " ";
  186. // line 40
  187. yield " ";
  188. // line 41
  189. yield " ";
  190. // line 42
  191. yield " ";
  192. // line 43
  193. yield " ";
  194. // line 44
  195. yield " ";
  196. // line 45
  197. yield " ";
  198. // line 46
  199. yield " ";
  200. // line 47
  201. yield " ";
  202. // line 48
  203. yield " ";
  204. // line 49
  205. yield " ";
  206. // line 50
  207. yield " ";
  208. // line 51
  209. yield " ";
  210. // line 52
  211. yield "
  212. ";
  213. ++$context['loop']['index0'];
  214. ++$context['loop']['index'];
  215. $context['loop']['first'] = false;
  216. if (isset($context['loop']['revindex0'], $context['loop']['revindex'])) {
  217. --$context['loop']['revindex0'];
  218. --$context['loop']['revindex'];
  219. $context['loop']['last'] = 0 === $context['loop']['revindex0'];
  220. }
  221. }
  222. $_parent = $context['_parent'];
  223. unset($context['_seq'], $context['_key'], $context['libelleSection'], $context['_parent'], $context['loop']);
  224. $context = array_intersect_key($context, $_parent) + $_parent;
  225. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  226. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  227. yield from [];
  228. }
  229. // line 56
  230. /**
  231. * @return iterable<null|scalar|\Stringable>
  232. */
  233. public function block_js(array $context, array $blocks = []): iterable
  234. {
  235. $macros = $this->macros;
  236. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  237. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "js"));
  238. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  239. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "js"));
  240. // line 57
  241. yield " ";
  242. yield from $this->yieldParentBlock("js", $context, $blocks);
  243. yield "
  244. ";
  245. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  246. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  247. yield from [];
  248. }
  249. /**
  250. * @codeCoverageIgnore
  251. */
  252. public function getTemplateName(): string
  253. {
  254. return "pages/home.html.twig";
  255. }
  256. /**
  257. * @codeCoverageIgnore
  258. */
  259. public function isTraitable(): bool
  260. {
  261. return false;
  262. }
  263. /**
  264. * @codeCoverageIgnore
  265. */
  266. public function getDebugInfo(): array
  267. {
  268. return array ( 280 => 57, 267 => 56, 243 => 52, 241 => 51, 239 => 50, 237 => 49, 235 => 48, 233 => 47, 231 => 46, 229 => 45, 227 => 44, 225 => 43, 223 => 42, 221 => 41, 219 => 40, 217 => 39, 215 => 38, 213 => 37, 210 => 36, 193 => 35, 183 => 30, 180 => 29, 172 => 28, 166 => 27, 160 => 24, 155 => 22, 147 => 21, 143 => 19, 130 => 18, 119 => 17, 116 => 16, 103 => 15, 79 => 3, 66 => 2, 43 => 1,);
  269. }
  270. public function getSourceContext(): Source
  271. {
  272. return new Source("{% extends 'base.html.twig' %}
  273. {% block css %}
  274. {{ parent() }}
  275. <style>
  276. iframe img {
  277. max-width: 250px;
  278. max-height: 250px;
  279. }
  280. .slider-halfscreen {
  281. height: 72vh;
  282. }
  283. </style>
  284. {% endblock %}
  285. {% block menu %}
  286. {% include('components/menu.html.twig') with {'transparent' : general.sliderFullscreen }%}
  287. {% endblock %}
  288. {% block content %}
  289. <div id=\"slider\" class=\"inspiro-slider dots-creative {% if not general.sliderFullscreen %}slider-halfscreen {% else %} slider-fullscreen{% endif %}\" data-height-xs=\"360\">
  290. <div class=\"slide\" data-bg-image=\"{{ get_assets(asset('images/upload/' ~ general.imageAccueil))['3x'] }}\" >
  291. <div class=\"bg-overlay\"></div>
  292. <div class=\"container {{ general.positionSloganAccueil }}\">
  293. <div class=\"center-sm\" >
  294. <div class=\"slide-captions text-light\">
  295. <h1 data-animate=\"fadeInUp\" style=\"font-size: 44px ;color : {{ general.couleurSlogan }} !important\" class=\"slider-text\" data-animate-delay=\"600\">{{ general.slogan | raw }}</h1>
  296. {% if general.sousTexteSlogan != null or general.sousTexteSlogan != '' %}<p class=\"slider-text\" style=\"color : {{ general.couleurSlogan }} !important\"> {{ general.sousTexteSlogan }}</p>{% endif %}
  297. </div>
  298. <a href=\"{{ path('contact') }}\" class=\"btn btn-success\" data-animate=\"fadeInUp\" data-animate-delay=\"600\">{{ 'home_slider.button' | admintrans | raw }}</a>
  299. </div>
  300. </div>
  301. </div>
  302. </div>
  303. {% for libelleSection in menuS.compositionAccueil.composition %}
  304. {% include('composantsPages/homeComponents/'~libelleSection~'.html.twig') %}
  305. {#{% include('composantsPages/homeComponents/quiSommesNous.html.twig') %}#}
  306. {# {% include('composantsPages/homeComponents/zoneDintervention.html.twig') %}#}
  307. {# {% include('composantsPages/homeComponents/nosChiffresCles.html.twig') %}#}
  308. {# {% include('composantsPages/homeComponents/nosRealisations.html.twig') %}#}
  309. {# {% include('composantsPages/homeComponents/nosReseauxSociauxLiens.html.twig') %}#}
  310. {# {% include('composantsPages/homeComponents/ilsNousFontConfiance.html.twig') %}#}
  311. {# {% include('composantsPages/homeComponents/nosGaranties.html.twig') %}#}
  312. {# {% include('composantsPages/homeComponents/notreActualite.html.twig') %}#}
  313. {# {% include('composantsPages/homeComponents/nosClientsTemoignent.html.twig') %}#}
  314. {# {% include('composantsPages/homeComponents/nosReseauxSociaux.html.twig') %}#}
  315. {# {% include('composantsPages/homeComponents/nosServices.html.twig') %}#}
  316. {# {% include('composantsPages/homeComponents/nosTarifs.html.twig') %}#}
  317. {# {% include('composantsPages/homeComponents/compteurs.html.twig') %}#}
  318. {# {% include('composantsPages/homeComponents/iconesColorees.html.twig') %}#}
  319. {% endfor %}
  320. {% endblock %}
  321. {% block js %}
  322. {{ parent() }}
  323. {% endblock %}
  324. ", "pages/home.html.twig", "/app/templates/pages/home.html.twig");
  325. }
  326. }