var/cache/dev/twig/23/2385f34f22ca10d78eb0a97dc22e79be.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. /* components/menu.html.twig */
  16. class __TwigTemplate_0e12843b0fb96bf6e5510066999d0ef6 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_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "components/menu.html.twig"));
  36. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "components/menu.html.twig"));
  38. // line 1
  39. yield "<header id=\"header\" class=\" submenu-light header-always-fixed\" data-fullwidth=\"true\" ";
  40. if ((array_key_exists("transparent", $context) && (isset($context["transparent"]) || array_key_exists("transparent", $context) ? $context["transparent"] : (function () { throw new RuntimeError('Variable "transparent" does not exist.', 1, $this->source); })()))) {
  41. yield " data-transparent=\"true\" ";
  42. }
  43. yield ">
  44. ";
  45. // line 2
  46. $context["general"] = CoreExtension::getAttribute($this->env, $this->source, (isset($context["generalS"]) || array_key_exists("generalS", $context) ? $context["generalS"] : (function () { throw new RuntimeError('Variable "generalS" does not exist.', 2, $this->source); })()), "general", [], "any", false, false, false, 2);
  47. // line 3
  48. yield " <div class=\"header-inner\">
  49. <div class=\"container-wide flex-row\">
  50. <div class=\"mobile-action d-xl-none z-index-top ";
  51. // line 5
  52. yield (((($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.', 5, $this->source); })()), "hidePhoneOnMobile", [], "any", false, false, false, 5)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? ("d-sm-none") : (""));
  53. yield "\">
  54. <a class=\"special btn btn-success text-light\" style=\"z-index: 10;\" href=\"";
  55. // line 6
  56. yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("contact");
  57. yield "\">";
  58. yield $this->extensions['App\Twig\TransExtension']->trans("menu.contact");
  59. yield "</a>
  60. <h4 class=\" lh-0 pt-3\" style=\"z-index: 10;\" ><a style=\"color:#210e0e; font-size: 1em\" href=\"tel:";
  61. // line 7
  62. 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.', 7, $this->source); })()), "telephone", [], "any", false, false, false, 7), "html", null, true);
  63. yield "\"> <span class=\"fa fa-mobile-alt\"></span> ";
  64. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::replace(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.', 7, $this->source); })()), "telephone", [], "any", false, false, false, 7), [" " => "."]), "html", null, true);
  65. yield " </a></h4>
  66. </div>
  67. <div id=\"logo\">
  68. <a href=\"";
  69. // line 10
  70. yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("home");
  71. yield "\" class=\"sm-relative\" style=\" top: 50%; -ms-transform: translateY(-50%); transform: translateY(-50%); max-width: 65%\">
  72. <span class=\"logo-default\"><img height=\"80\" width=\"250\" ";
  73. // line 11
  74. yield $this->extensions['App\Twig\ImageRenderExtension']->generateSrc($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/upload/logo-dark.png"));
  75. yield " alt=\"";
  76. 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.', 11, $this->source); })()), "nomEntreprise", [], "any", false, false, false, 11), "html", null, true);
  77. yield "\" style=\"object-fit: contain\"></span>
  78. <span class=\"logo-dark\"><img height=\"80\" width=\"250\" ";
  79. // line 12
  80. yield $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/upload/logo-light.png");
  81. yield " alt=\"";
  82. 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.', 12, $this->source); })()), "nomEntreprise", [], "any", false, false, false, 12), "html", null, true);
  83. yield "\" style=\"object-fit: contain\"></span>
  84. <span class=\"logo-responsive\"><img height=\"80\" width=\"250\" ";
  85. // line 13
  86. yield $this->extensions['App\Twig\ImageRenderExtension']->generateSrc($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/upload/logo-petit.png"));
  87. yield " alt=\"";
  88. 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.', 13, $this->source); })()), "nomEntreprise", [], "any", false, false, false, 13), "html", null, true);
  89. yield "\" style=\"object-fit: contain\"></span>
  90. </a>
  91. </div>
  92. <div id=\"mainMenu-trigger\">
  93. <a class=\"lines-button x\"><span class=\"lines\"></span></a>
  94. </div>
  95. <div id=\"mainMenu\" class=\"menu-creative\">
  96. <div class=\"container\">
  97. <nav>
  98. <ul>
  99. ";
  100. // line 27
  101. if ((($tmp = 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.', 27, $this->source); })()), "menu", [], "any", false, false, false, 27), "parDefaut", [], "any", false, false, false, 27)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  102. // line 28
  103. yield " <li><a href=\"";
  104. yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("home");
  105. yield "#presentation\" class=\"scroll-to\">";
  106. yield $this->extensions['App\Twig\TransExtension']->trans("menu.entreprise");
  107. yield "</a></li>
  108. <li><a href=\"";
  109. // line 29
  110. yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("realisations");
  111. yield "\">";
  112. yield $this->extensions['App\Twig\TransExtension']->trans("menu.realisations");
  113. yield "</a></li>
  114. <li><a href=\"";
  115. // line 30
  116. yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("blogs");
  117. yield "#presentation\" class=\"scroll-to\">";
  118. yield $this->extensions['App\Twig\TransExtension']->trans("menu.blogs");
  119. yield "</a></li>
  120. <li><a href=\"";
  121. // line 31
  122. yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("actualites");
  123. yield "\">";
  124. yield $this->extensions['App\Twig\TransExtension']->trans("menu.actualites");
  125. yield "</a></li>
  126. ";
  127. } else {
  128. // line 34
  129. yield " ";
  130. $context['_parent'] = $context;
  131. $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.', 34, $this->source); })()), "menu", [], "any", false, false, false, 34), "elements", [], "any", false, false, false, 34));
  132. foreach ($context['_seq'] as $context["_key"] => $context["menuElement"]) {
  133. // line 35
  134. yield " ";
  135. if (($context["menuElement"] == "entreprise")) {
  136. // line 36
  137. yield " <li><a href=\"";
  138. yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("home");
  139. yield "#presentation\" class=\"scroll-to\">";
  140. yield $this->extensions['App\Twig\TransExtension']->trans(("menu." . $context["menuElement"]));
  141. yield "</a></li>
  142. ";
  143. } elseif (( // line 37
  144. $context["menuElement"] == "services")) {
  145. // line 38
  146. yield " <li class=\"dropdown\">
  147. <a href=\"";
  148. // line 39
  149. yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath($context["menuElement"]);
  150. yield "\">";
  151. yield $this->extensions['App\Twig\TransExtension']->trans(("menu." . $context["menuElement"]));
  152. yield "</a>
  153. <ul class=\"dropdown-menu\">
  154. ";
  155. // line 41
  156. $context['_parent'] = $context;
  157. $context['_seq'] = CoreExtension::ensureTraversable(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.', 41, $this->source); })()), "services", [], "any", false, false, false, 41));
  158. foreach ($context['_seq'] as $context["_key"] => $context["service"]) {
  159. // line 42
  160. yield " <li>
  161. <a href=\"";
  162. // line 43
  163. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("service", ["id" => CoreExtension::getAttribute($this->env, $this->source, $context["service"], "id", [], "any", false, false, false, 43)]), "html", null, true);
  164. yield "\">";
  165. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["service"], "titre", [], "any", false, false, false, 43), "html", null, true);
  166. yield "</a>
  167. </li>
  168. ";
  169. }
  170. $_parent = $context['_parent'];
  171. unset($context['_seq'], $context['_key'], $context['service'], $context['_parent']);
  172. $context = array_intersect_key($context, $_parent) + $_parent;
  173. // line 46
  174. yield " </ul>
  175. </li>
  176. ";
  177. } else {
  178. // line 49
  179. yield " <li><a href=\"";
  180. yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath($context["menuElement"]);
  181. yield "\">";
  182. yield $this->extensions['App\Twig\TransExtension']->trans(("menu." . $context["menuElement"]));
  183. yield "</a></li>
  184. ";
  185. }
  186. // line 51
  187. yield " ";
  188. }
  189. $_parent = $context['_parent'];
  190. unset($context['_seq'], $context['_key'], $context['menuElement'], $context['_parent']);
  191. $context = array_intersect_key($context, $_parent) + $_parent;
  192. // line 52
  193. yield " ";
  194. }
  195. // line 53
  196. yield " ";
  197. if ((($tmp = $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN")) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  198. // line 54
  199. yield " <li><a href=\"";
  200. yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin");
  201. yield "\">Back office</a></li>
  202. <li><a href=\"";
  203. // line 55
  204. yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("cc");
  205. yield "\"><i class=\"fa fa-refresh\"></i></a></li>
  206. ";
  207. }
  208. // line 57
  209. yield " <li><a class=\"special btn btn-success text-light\" href=\"";
  210. yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("contact");
  211. yield "\">";
  212. yield $this->extensions['App\Twig\TransExtension']->trans("menu.contact");
  213. yield "</a></li>
  214. ";
  215. // line 58
  216. if (($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("acces_membre") != "acces_membre")) {
  217. // line 59
  218. yield " <li><a class=\"special btn btn-primary text-light\" href=\"";
  219. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("acces_membre"), "html", null, true);
  220. yield "\">Accès membre</a></li>
  221. ";
  222. }
  223. // line 61
  224. yield " </ul>
  225. <div class=\"text-center telephone-button\">
  226. <h4 class=\" lh-0\">
  227. <a style=\"color:#210e0e\" href=\"tel:";
  228. // line 64
  229. 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.', 64, $this->source); })()), "telephone", [], "any", false, false, false, 64), "html", null, true);
  230. yield "\">
  231. <span class=\"fa fa-mobile-alt\"></span> ";
  232. // line 65
  233. 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.', 65, $this->source); })()), "telephone", [], "any", false, false, false, 65), "html", null, true);
  234. yield "
  235. </a>
  236. ";
  237. // line 67
  238. 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.', 67, $this->source); })()), "fixe", [], "any", false, false, false, 67)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  239. // line 68
  240. yield " |
  241. <a style=\"color:#210e0e\" href=\"tel:";
  242. // line 69
  243. 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.', 69, $this->source); })()), "fixe", [], "any", false, false, false, 69), "html", null, true);
  244. yield "\">
  245. <span class=\"fa fa-phone\"></span> ";
  246. // line 70
  247. 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.', 70, $this->source); })()), "fixe", [], "any", false, false, false, 70), "html", null, true);
  248. yield "
  249. </a>
  250. ";
  251. }
  252. // line 73
  253. yield " </h4>
  254. </div>
  255. </nav>
  256. </div>
  257. </div>
  258. </div>
  259. </div>
  260. </header>
  261. <div class=\"container-xl\">
  262. <div class=\"row justify-content-between\">
  263. ";
  264. // line 85
  265. $context['_parent'] = $context;
  266. $context['_seq'] = CoreExtension::ensureTraversable(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.', 85, $this->source); })()), "menuActions", [], "any", false, false, false, 85));
  267. foreach ($context['_seq'] as $context["_key"] => $context["menuAction"]) {
  268. // line 86
  269. yield " <div class=\"col-lg-3 col-sm-6\">
  270. <a class=\"btn w-100 mb-0 rounded-0\" href=\"";
  271. // line 87
  272. yield (((CoreExtension::getAttribute($this->env, $this->source, $context["menuAction"], "lien", [], "any", true, true, false, 87) && !(null === CoreExtension::getAttribute($this->env, $this->source, $context["menuAction"], "lien", [], "any", false, false, false, 87)))) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["menuAction"], "lien", [], "any", false, false, false, 87), "html", null, true)) : ("#"));
  273. yield "\" style=\"background-color: ";
  274. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["menuAction"], "couleur", [], "any", false, false, false, 87), "html", null, true);
  275. yield "; border-color: ";
  276. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["menuAction"], "couleur", [], "any", false, false, false, 87), "html", null, true);
  277. yield "; color : ";
  278. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["menuAction"], "couleurTexte", [], "any", false, false, false, 87), "html", null, true);
  279. yield "\">";
  280. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["menuAction"], "titre", [], "any", false, false, false, 87), "html", null, true);
  281. yield "</a>
  282. </div>
  283. ";
  284. }
  285. $_parent = $context['_parent'];
  286. unset($context['_seq'], $context['_key'], $context['menuAction'], $context['_parent']);
  287. $context = array_intersect_key($context, $_parent) + $_parent;
  288. // line 90
  289. yield " </div>
  290. </div>
  291. ";
  292. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  293. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  294. yield from [];
  295. }
  296. /**
  297. * @codeCoverageIgnore
  298. */
  299. public function getTemplateName(): string
  300. {
  301. return "components/menu.html.twig";
  302. }
  303. /**
  304. * @codeCoverageIgnore
  305. */
  306. public function isTraitable(): bool
  307. {
  308. return false;
  309. }
  310. /**
  311. * @codeCoverageIgnore
  312. */
  313. public function getDebugInfo(): array
  314. {
  315. return array ( 305 => 90, 288 => 87, 285 => 86, 281 => 85, 267 => 73, 261 => 70, 257 => 69, 254 => 68, 252 => 67, 247 => 65, 243 => 64, 238 => 61, 232 => 59, 230 => 58, 223 => 57, 218 => 55, 213 => 54, 210 => 53, 207 => 52, 201 => 51, 193 => 49, 188 => 46, 177 => 43, 174 => 42, 170 => 41, 163 => 39, 160 => 38, 158 => 37, 151 => 36, 148 => 35, 143 => 34, 135 => 31, 129 => 30, 123 => 29, 116 => 28, 114 => 27, 95 => 13, 89 => 12, 83 => 11, 79 => 10, 71 => 7, 65 => 6, 61 => 5, 57 => 3, 55 => 2, 48 => 1,);
  316. }
  317. public function getSourceContext(): Source
  318. {
  319. return new Source("<header id=\"header\" class=\" submenu-light header-always-fixed\" data-fullwidth=\"true\" {% if transparent is defined and transparent %} data-transparent=\"true\" {% endif %}>
  320. {% set general = generalS.general %}
  321. <div class=\"header-inner\">
  322. <div class=\"container-wide flex-row\">
  323. <div class=\"mobile-action d-xl-none z-index-top {{ general.hidePhoneOnMobile ? 'd-sm-none' : ''}}\">
  324. <a class=\"special btn btn-success text-light\" style=\"z-index: 10;\" href=\"{{ path('contact') }}\">{{ 'menu.contact' | admintrans | raw }}</a>
  325. <h4 class=\" lh-0 pt-3\" style=\"z-index: 10;\" ><a style=\"color:#210e0e; font-size: 1em\" href=\"tel:{{ general.telephone}}\"> <span class=\"fa fa-mobile-alt\"></span> {{ general.telephone | replace({' ' : '.'}) }} </a></h4>
  326. </div>
  327. <div id=\"logo\">
  328. <a href=\"{{ path('home') }}\" class=\"sm-relative\" style=\" top: 50%; -ms-transform: translateY(-50%); transform: translateY(-50%); max-width: 65%\">
  329. <span class=\"logo-default\"><img height=\"80\" width=\"250\" {{ responsive_src(asset('images/upload/logo-dark.png')) | raw }} alt=\"{{ general.nomEntreprise }}\" style=\"object-fit: contain\"></span>
  330. <span class=\"logo-dark\"><img height=\"80\" width=\"250\" {{ asset('images/upload/logo-light.png') | raw }} alt=\"{{ general.nomEntreprise }}\" style=\"object-fit: contain\"></span>
  331. <span class=\"logo-responsive\"><img height=\"80\" width=\"250\" {{ responsive_src(asset('images/upload/logo-petit.png')) | raw }} alt=\"{{ general.nomEntreprise }}\" style=\"object-fit: contain\"></span>
  332. </a>
  333. </div>
  334. <div id=\"mainMenu-trigger\">
  335. <a class=\"lines-button x\"><span class=\"lines\"></span></a>
  336. </div>
  337. <div id=\"mainMenu\" class=\"menu-creative\">
  338. <div class=\"container\">
  339. <nav>
  340. <ul>
  341. {% if menuS.menu.parDefaut %}
  342. <li><a href=\"{{ path('home') }}#presentation\" class=\"scroll-to\">{{ 'menu.entreprise' | admintrans | raw }}</a></li>
  343. <li><a href=\"{{ path('realisations') }}\">{{ 'menu.realisations' | admintrans | raw }}</a></li>
  344. <li><a href=\"{{ path('blogs') }}#presentation\" class=\"scroll-to\">{{ 'menu.blogs' | admintrans | raw }}</a></li>
  345. <li><a href=\"{{ path('actualites') }}\">{{ 'menu.actualites' | admintrans | raw }}</a></li>
  346. {% else %}
  347. {% for menuElement in menuS.menu.elements %}
  348. {% if menuElement == 'entreprise' %}
  349. <li><a href=\"{{ path('home') }}#presentation\" class=\"scroll-to\">{{ ('menu.'~menuElement) | admintrans | raw }}</a></li>
  350. {% elseif menuElement == 'services' %}
  351. <li class=\"dropdown\">
  352. <a href=\"{{ path(menuElement) }}\">{{ ('menu.'~menuElement) | admintrans | raw }}</a>
  353. <ul class=\"dropdown-menu\">
  354. {% for service in menuS.services %}
  355. <li>
  356. <a href=\"{{ path('service',{'id' : service.id}) }}\">{{ service.titre }}</a>
  357. </li>
  358. {% endfor %}
  359. </ul>
  360. </li>
  361. {% else %}
  362. <li><a href=\"{{ path(menuElement) }}\">{{ ('menu.'~menuElement) | admintrans | raw }}</a></li>
  363. {% endif %}
  364. {% endfor %}
  365. {% endif %}
  366. {% if is_granted('ROLE_ADMIN') %}
  367. <li><a href=\"{{ path('admin') }}\">Back office</a></li>
  368. <li><a href=\"{{ path('cc') }}\"><i class=\"fa fa-refresh\"></i></a></li>
  369. {% endif %}
  370. <li><a class=\"special btn btn-success text-light\" href=\"{{ path('contact') }}\">{{ 'menu.contact' | admintrans | raw }}</a></li>
  371. {% if ('acces_membre' | trans) != 'acces_membre' %}
  372. <li><a class=\"special btn btn-primary text-light\" href=\"{{ 'acces_membre' | trans }}\">Accès membre</a></li>
  373. {% endif %}
  374. </ul>
  375. <div class=\"text-center telephone-button\">
  376. <h4 class=\" lh-0\">
  377. <a style=\"color:#210e0e\" href=\"tel:{{ general.telephone }}\">
  378. <span class=\"fa fa-mobile-alt\"></span> {{ general.telephone }}
  379. </a>
  380. {% if general.fixe %}
  381. |
  382. <a style=\"color:#210e0e\" href=\"tel:{{ general.fixe }}\">
  383. <span class=\"fa fa-phone\"></span> {{ general.fixe }}
  384. </a>
  385. {% endif %}
  386. </h4>
  387. </div>
  388. </nav>
  389. </div>
  390. </div>
  391. </div>
  392. </div>
  393. </header>
  394. <div class=\"container-xl\">
  395. <div class=\"row justify-content-between\">
  396. {% for menuAction in menuS.menuActions %}
  397. <div class=\"col-lg-3 col-sm-6\">
  398. <a class=\"btn w-100 mb-0 rounded-0\" href=\"{{ menuAction.lien ?? \"#\" }}\" style=\"background-color: {{ menuAction.couleur }}; border-color: {{ menuAction.couleur }}; color : {{ menuAction.couleurTexte }}\">{{ menuAction.titre }}</a>
  399. </div>
  400. {% endfor %}
  401. </div>
  402. </div>
  403. ", "components/menu.html.twig", "/app/templates/components/menu.html.twig");
  404. }
  405. }