var/cache/dev/boutique.leconservateur.dtv-projects.com/twig/24/24fc2968cf231a2836abf2c0a3cca77a.php line 43

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. /* security/layout.html.twig */
  15. class __TwigTemplate_6609050ae04d5676d987918ec1c66b7f extends Template
  16. {
  17. private $source;
  18. private $macros = [];
  19. public function __construct(Environment $env)
  20. {
  21. parent::__construct($env);
  22. $this->source = $this->getSourceContext();
  23. $this->parent = false;
  24. $this->blocks = [
  25. 'title' => [$this, 'block_title'],
  26. 'styles_global_vendor' => [$this, 'block_styles_global_vendor'],
  27. 'styles' => [$this, 'block_styles'],
  28. 'styles_custom' => [$this, 'block_styles_custom'],
  29. 'bodyclass' => [$this, 'block_bodyclass'],
  30. 'content_container' => [$this, 'block_content_container'],
  31. 'content' => [$this, 'block_content'],
  32. 'footer' => [$this, 'block_footer'],
  33. 'scripts' => [$this, 'block_scripts'],
  34. ];
  35. }
  36. protected function doDisplay(array $context, array $blocks = [])
  37. {
  38. $macros = $this->macros;
  39. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  40. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "security/layout.html.twig"));
  41. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  42. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "security/layout.html.twig"));
  43. // line 1
  44. $macros["macros"] = $this->macros["macros"] = $this->loadTemplate("@component/_template/_html_macro.html.twig", "security/layout.html.twig", 1)->unwrap();
  45. // line 2
  46. if ($this->env->getRuntime('App\Twig\YamlOrSettingRuntime')->platformFront("security.wrapper_header_content")) {
  47. // line 3
  48. yield " ";
  49. $context["wrapper_header_content"] = $this->env->getRuntime('App\Twig\Runtime\PlatformComponentRuntime')->getFrontDataFromSettingOrYaml("front.security.wrapper_header_content", $this->env->getRuntime('App\Twig\YamlOrSettingRuntime')->platformFront("security"), "wrapper_header_content");
  50. // line 4
  51. yield " ";
  52. $context["wrapper_header_content_config"] = $this->env->getRuntime('App\Twig\Runtime\PlatformComponentRuntime')->generateComponentOptions((isset($context["wrapper_header_content"]) || array_key_exists("wrapper_header_content", $context) ? $context["wrapper_header_content"] : (function () { throw new RuntimeError('Variable "wrapper_header_content" does not exist.', 4, $this->source); })()), "wrapper_header_content");
  53. }
  54. // line 6
  55. yield "<!DOCTYPE html>
  56. <html lang=\"fr\">
  57. <head>
  58. <title>";
  59. // line 9
  60. yield from $this->unwrap()->yieldBlock('title', $context, $blocks);
  61. yield "</title>
  62. ";
  63. // line 11
  64. yield from $this->loadTemplate("front/common/layout.head_common_meta_link.html.twig", "security/layout.html.twig", 11)->unwrap()->yield(CoreExtension::merge($context, ["bootstrapVersion" => "5"]));
  65. // line 12
  66. yield "
  67. ";
  68. // line 13
  69. yield from $this->unwrap()->yieldBlock('styles_global_vendor', $context, $blocks);
  70. // line 17
  71. yield "
  72. ";
  73. // line 19
  74. yield " ";
  75. if (($this->env->getRuntime('App\Twig\YamlOrSettingRuntime')->platformFront("theme") && !CoreExtension::inFilter($this->env->getRuntime('App\Twig\YamlOrSettingRuntime')->platformFront("theme"), ["", null]))) {
  76. // line 20
  77. yield " <link rel=\"stylesheet\"
  78. href=\"";
  79. // line 21
  80. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((("build/assets/templates/" . $this->env->getRuntime('App\Twig\YamlOrSettingRuntime')->platformFront("theme")) . "/scss/main.css")), "html", null, true);
  81. yield "?v=";
  82. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["version"]) || array_key_exists("version", $context) ? $context["version"] : (function () { throw new RuntimeError('Variable "version" does not exist.', 21, $this->source); })()), "html", null, true);
  83. yield "\">
  84. <link rel=\"stylesheet\"
  85. href=\"";
  86. // line 23
  87. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((("build/assets/templates/" . $this->env->getRuntime('App\Twig\YamlOrSettingRuntime')->platformFront("theme")) . "/scss/security.css")), "html", null, true);
  88. yield "?v=";
  89. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["version"]) || array_key_exists("version", $context) ? $context["version"] : (function () { throw new RuntimeError('Variable "version" does not exist.', 23, $this->source); })()), "html", null, true);
  90. yield "\">
  91. <link rel=\"stylesheet\"
  92. href=\"";
  93. // line 25
  94. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((("build/assets/templates/" . $this->env->getRuntime('App\Twig\YamlOrSettingRuntime')->platformFront("theme")) . "/scss/media-queries.css")), "html", null, true);
  95. yield "?v=";
  96. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["version"]) || array_key_exists("version", $context) ? $context["version"] : (function () { throw new RuntimeError('Variable "version" does not exist.', 25, $this->source); })()), "html", null, true);
  97. yield "\">
  98. ";
  99. }
  100. // line 27
  101. yield " <link rel=\"stylesheet\" href=\"";
  102. yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("front_common_css_custom");
  103. yield "\">
  104. ";
  105. // line 30
  106. yield " <style rel=\"stylesheet\">
  107. .fv-help-block {
  108. color : red !important;
  109. }
  110. .cc-window{
  111. border:1px solid #000000;
  112. }
  113. </style>
  114. ";
  115. // line 39
  116. yield "
  117. ";
  118. // line 40
  119. yield from $this->unwrap()->yieldBlock('styles', $context, $blocks);
  120. // line 43
  121. yield "
  122. ";
  123. // line 45
  124. yield " ";
  125. if ($this->env->getRuntime('App\Twig\YamlOrSettingRuntime')->platformFront("css_config.custom_css_files")) {
  126. // line 46
  127. yield " ";
  128. $context['_parent'] = $context;
  129. $context['_seq'] = CoreExtension::ensureTraversable($this->env->getRuntime('App\Twig\YamlOrSettingRuntime')->platformFront("css_config.custom_css_files"));
  130. foreach ($context['_seq'] as $context["_key"] => $context["file"]) {
  131. // line 47
  132. yield " <link rel=\"stylesheet\" href=\"";
  133. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($context["file"]), "html", null, true);
  134. yield "?v=";
  135. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["version"]) || array_key_exists("version", $context) ? $context["version"] : (function () { throw new RuntimeError('Variable "version" does not exist.', 47, $this->source); })()), "html", null, true);
  136. yield "\">
  137. ";
  138. }
  139. $_parent = $context['_parent'];
  140. unset($context['_seq'], $context['_iterated'], $context['_key'], $context['file'], $context['_parent'], $context['loop']);
  141. $context = array_intersect_key($context, $_parent) + $_parent;
  142. // line 49
  143. yield " ";
  144. }
  145. // line 50
  146. yield "
  147. ";
  148. // line 51
  149. if ($this->env->getRuntime('App\Twig\YamlOrSettingRuntime')->platformFront("common.custom_css")) {
  150. // line 52
  151. yield " <style rel=\"stylesheet\">
  152. ";
  153. // line 53
  154. yield $this->env->getRuntime('App\Twig\YamlOrSettingRuntime')->platformFront("common.custom_css");
  155. yield "
  156. </style>
  157. ";
  158. }
  159. // line 56
  160. yield " ";
  161. if ($this->env->getRuntime('App\Twig\YamlOrSettingRuntime')->platformFront("security.custom_css")) {
  162. // line 57
  163. yield " <style rel=\"stylesheet\">
  164. ";
  165. // line 58
  166. yield $this->env->getRuntime('App\Twig\YamlOrSettingRuntime')->platformFront("security.custom_css");
  167. yield "
  168. </style>
  169. ";
  170. }
  171. // line 61
  172. yield "
  173. ";
  174. // line 62
  175. yield from $this->unwrap()->yieldBlock('styles_custom', $context, $blocks);
  176. // line 65
  177. yield "
  178. ";
  179. // line 66
  180. yield from $this->loadTemplate("front/common/layout.head_common_js.html.twig", "security/layout.html.twig", 66)->unwrap()->yield($context);
  181. // line 67
  182. yield " <script>
  183. const cdn = '";
  184. // line 68
  185. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["cdn"]) || array_key_exists("cdn", $context) ? $context["cdn"] : (function () { throw new RuntimeError('Variable "cdn" does not exist.', 68, $this->source); })()), "html", null, true);
  186. yield "';
  187. </script>
  188. </head>
  189. <body class=\"security ";
  190. // line 72
  191. yield from $this->unwrap()->yieldBlock('bodyclass', $context, $blocks);
  192. yield " --theme-";
  193. yield (($this->env->getRuntime('App\Twig\YamlOrSettingRuntime')->platformFront("security.theme")) ? ($this->env->getRuntime('App\Twig\Runtime\PlatformComponentRuntime')->getFrontDataFromSettingOrYaml("front.security.theme", $this->env->getRuntime('App\Twig\YamlOrSettingRuntime')->platformFront("security"), "theme")) : ("light"));
  194. yield "\">
  195. <div class=\"main-wrapper\">
  196. ";
  197. // line 75
  198. $context['_parent'] = $context;
  199. $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 75, $this->source); })()), "flashes", [], "method", false, false, false, 75));
  200. foreach ($context['_seq'] as $context["type"] => $context["messages"]) {
  201. // line 76
  202. yield " ";
  203. $context['_parent'] = $context;
  204. $context['_seq'] = CoreExtension::ensureTraversable($context["messages"]);
  205. foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
  206. // line 77
  207. yield " <div class=\"alert alert-";
  208. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["type"], "html", null, true);
  209. yield "\">
  210. ";
  211. // line 78
  212. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["message"], "html", null, true);
  213. yield "
  214. </div>
  215. ";
  216. }
  217. $_parent = $context['_parent'];
  218. unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
  219. $context = array_intersect_key($context, $_parent) + $_parent;
  220. // line 81
  221. yield " ";
  222. }
  223. $_parent = $context['_parent'];
  224. unset($context['_seq'], $context['_iterated'], $context['type'], $context['messages'], $context['_parent'], $context['loop']);
  225. $context = array_intersect_key($context, $_parent) + $_parent;
  226. // line 82
  227. yield " ";
  228. // line 86
  229. yield " ";
  230. if (($this->env->getRuntime('App\Twig\YamlOrSettingRuntime')->platformFront("security.wrapper_header_content") && CoreExtension::getAttribute($this->env, $this->source, (isset($context["wrapper_header_content"]) || array_key_exists("wrapper_header_content", $context) ? $context["wrapper_header_content"] : (function () { throw new RuntimeError('Variable "wrapper_header_content" does not exist.', 86, $this->source); })()), "enabled", [], "any", false, false, false, 86))) {
  231. // line 87
  232. yield " ";
  233. yield CoreExtension::callMacro($macros["macros"], "macro_generateHtmlComponentStart", [CoreExtension::getAttribute($this->env, $this->source, (isset($context["wrapper_header_content_config"]) || array_key_exists("wrapper_header_content_config", $context) ? $context["wrapper_header_content_config"] : (function () { throw new RuntimeError('Variable "wrapper_header_content_config" does not exist.', 87, $this->source); })()), "wrapper", [], "any", false, false, false, 87)], 87, $context, $this->getSourceContext());
  234. yield "
  235. ";
  236. // line 89
  237. yield " ";
  238. yield CoreExtension::callMacro($macros["macros"], "macro_generateHtmlComponentStart", [CoreExtension::getAttribute($this->env, $this->source, (isset($context["wrapper_header_content_config"]) || array_key_exists("wrapper_header_content_config", $context) ? $context["wrapper_header_content_config"] : (function () { throw new RuntimeError('Variable "wrapper_header_content_config" does not exist.', 89, $this->source); })()), "item", [], "any", false, false, false, 89)], 89, $context, $this->getSourceContext());
  239. yield "
  240. ";
  241. // line 91
  242. yield " ";
  243. yield CoreExtension::callMacro($macros["macros"], "macro_generateHtmlComponentStart", [CoreExtension::getAttribute($this->env, $this->source, (isset($context["wrapper_header_content_config"]) || array_key_exists("wrapper_header_content_config", $context) ? $context["wrapper_header_content_config"] : (function () { throw new RuntimeError('Variable "wrapper_header_content_config" does not exist.', 91, $this->source); })()), "container", [], "any", false, false, false, 91)], 91, $context, $this->getSourceContext());
  244. yield "
  245. ";
  246. }
  247. // line 93
  248. yield "
  249. ";
  250. // line 94
  251. yield $this->env->getRuntime('App\Twig\Runtime\PlatformComponentRuntime')->component("security.header", "security.header");
  252. yield "
  253. <main>
  254. <div class=\"";
  255. // line 97
  256. yield from $this->unwrap()->yieldBlock('content_container', $context, $blocks);
  257. yield "\">
  258. ";
  259. // line 98
  260. yield from $this->unwrap()->yieldBlock('content', $context, $blocks);
  261. // line 99
  262. yield " </div>
  263. </main>
  264. ";
  265. // line 106
  266. yield " ";
  267. if (($this->env->getRuntime('App\Twig\YamlOrSettingRuntime')->platformFront("security.wrapper_header_content") && CoreExtension::getAttribute($this->env, $this->source, (isset($context["wrapper_header_content"]) || array_key_exists("wrapper_header_content", $context) ? $context["wrapper_header_content"] : (function () { throw new RuntimeError('Variable "wrapper_header_content" does not exist.', 106, $this->source); })()), "enabled", [], "any", false, false, false, 106))) {
  268. // line 107
  269. yield " ";
  270. yield CoreExtension::callMacro($macros["macros"], "macro_generateHtmlComponentEnd", [CoreExtension::getAttribute($this->env, $this->source, (isset($context["wrapper_header_content_config"]) || array_key_exists("wrapper_header_content_config", $context) ? $context["wrapper_header_content_config"] : (function () { throw new RuntimeError('Variable "wrapper_header_content_config" does not exist.', 107, $this->source); })()), "wrapper", [], "any", false, false, false, 107)], 107, $context, $this->getSourceContext());
  271. yield "
  272. ";
  273. // line 109
  274. yield " ";
  275. yield CoreExtension::callMacro($macros["macros"], "macro_generateHtmlComponentEnd", [CoreExtension::getAttribute($this->env, $this->source, (isset($context["wrapper_header_content_config"]) || array_key_exists("wrapper_header_content_config", $context) ? $context["wrapper_header_content_config"] : (function () { throw new RuntimeError('Variable "wrapper_header_content_config" does not exist.', 109, $this->source); })()), "item", [], "any", false, false, false, 109)], 109, $context, $this->getSourceContext());
  276. yield "
  277. ";
  278. // line 111
  279. yield " ";
  280. yield CoreExtension::callMacro($macros["macros"], "macro_generateHtmlComponentEnd", [CoreExtension::getAttribute($this->env, $this->source, (isset($context["wrapper_header_content_config"]) || array_key_exists("wrapper_header_content_config", $context) ? $context["wrapper_header_content_config"] : (function () { throw new RuntimeError('Variable "wrapper_header_content_config" does not exist.', 111, $this->source); })()), "container", [], "any", false, false, false, 111)], 111, $context, $this->getSourceContext());
  281. yield "
  282. ";
  283. }
  284. // line 113
  285. yield "
  286. ";
  287. // line 114
  288. yield from $this->unwrap()->yieldBlock('footer', $context, $blocks);
  289. // line 117
  290. yield "</div>
  291. ";
  292. // line 118
  293. if ($this->env->getRuntime('App\Twig\YamlOrSettingRuntime')->platformFront("common.panels.enabled")) {
  294. // line 119
  295. yield " ";
  296. yield from $this->loadTemplate("front/common/panel-right.html.twig", "security/layout.html.twig", 119)->unwrap()->yield($context);
  297. }
  298. // line 121
  299. yield "</body>
  300. ";
  301. // line 123
  302. yield from $this->loadTemplate("@back/_common/flash.html.twig", "security/layout.html.twig", 123)->unwrap()->yield($context);
  303. // line 124
  304. yield "
  305. ";
  306. // line 125
  307. yield from $this->unwrap()->yieldBlock('scripts', $context, $blocks);
  308. // line 187
  309. yield "</html>
  310. ";
  311. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  312. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  313. return; yield '';
  314. }
  315. // line 9
  316. public function block_title($context, array $blocks = [])
  317. {
  318. $macros = $this->macros;
  319. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  320. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
  321. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  322. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
  323. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('App\Twig\YamlOrSettingRuntime')->platformGlobal("seo.title"), "html", null, true);
  324. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  325. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  326. return; yield '';
  327. }
  328. // line 13
  329. public function block_styles_global_vendor($context, array $blocks = [])
  330. {
  331. $macros = $this->macros;
  332. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  333. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "styles_global_vendor"));
  334. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  335. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "styles_global_vendor"));
  336. // line 14
  337. yield " ";
  338. // line 15
  339. yield " <link rel=\"stylesheet\" href=\"";
  340. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/assets/plugins/cookieconsent2/build/cookieconsent.min.css"), "html", null, true);
  341. yield "?v=";
  342. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["version"]) || array_key_exists("version", $context) ? $context["version"] : (function () { throw new RuntimeError('Variable "version" does not exist.', 15, $this->source); })()), "html", null, true);
  343. yield "\" />
  344. ";
  345. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  346. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  347. return; yield '';
  348. }
  349. // line 40
  350. public function block_styles($context, array $blocks = [])
  351. {
  352. $macros = $this->macros;
  353. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  354. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "styles"));
  355. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  356. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "styles"));
  357. // line 41
  358. yield " ";
  359. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  360. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  361. return; yield '';
  362. }
  363. // line 62
  364. public function block_styles_custom($context, array $blocks = [])
  365. {
  366. $macros = $this->macros;
  367. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  368. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "styles_custom"));
  369. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  370. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "styles_custom"));
  371. // line 63
  372. yield " ";
  373. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  374. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  375. return; yield '';
  376. }
  377. // line 72
  378. public function block_bodyclass($context, array $blocks = [])
  379. {
  380. $macros = $this->macros;
  381. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  382. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "bodyclass"));
  383. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  384. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "bodyclass"));
  385. yield "login";
  386. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  387. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  388. return; yield '';
  389. }
  390. // line 97
  391. public function block_content_container($context, array $blocks = [])
  392. {
  393. $macros = $this->macros;
  394. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  395. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content_container"));
  396. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  397. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content_container"));
  398. yield "container";
  399. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  400. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  401. return; yield '';
  402. }
  403. // line 98
  404. public function block_content($context, array $blocks = [])
  405. {
  406. $macros = $this->macros;
  407. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  408. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  409. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  410. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  411. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  412. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  413. return; yield '';
  414. }
  415. // line 114
  416. public function block_footer($context, array $blocks = [])
  417. {
  418. $macros = $this->macros;
  419. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  420. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "footer"));
  421. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  422. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "footer"));
  423. // line 115
  424. yield " ";
  425. yield $this->env->getRuntime('App\Twig\Runtime\PlatformComponentRuntime')->component("security.footer", "security.footer");
  426. yield "
  427. ";
  428. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  429. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  430. return; yield '';
  431. }
  432. // line 125
  433. public function block_scripts($context, array $blocks = [])
  434. {
  435. $macros = $this->macros;
  436. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  437. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "scripts"));
  438. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  439. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "scripts"));
  440. // line 126
  441. yield " ";
  442. yield $this->extensions['App\Twig\TwigExtension']->getTranslate();
  443. yield "
  444. <script>
  445. console.log(\"Translation called\")
  446. </script>
  447. <script src=\"";
  448. // line 130
  449. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/assets/bower_components/bootstrap4/dist/js/bootstrap.bundle.min.js"), "html", null, true);
  450. yield "?v=";
  451. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["version"]) || array_key_exists("version", $context) ? $context["version"] : (function () { throw new RuntimeError('Variable "version" does not exist.', 130, $this->source); })()), "html", null, true);
  452. yield "\"></script>
  453. <script src=\"";
  454. // line 131
  455. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/assets/bower_components/jquery-popup-overlay/jquery.popupoverlay.js"), "html", null, true);
  456. yield "?v=";
  457. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["version"]) || array_key_exists("version", $context) ? $context["version"] : (function () { throw new RuntimeError('Variable "version" does not exist.', 131, $this->source); })()), "html", null, true);
  458. yield "\"></script>
  459. <script src=\"";
  460. // line 132
  461. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/assets/bower_components/moment/min/moment.min.js"), "html", null, true);
  462. yield "?v=";
  463. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["version"]) || array_key_exists("version", $context) ? $context["version"] : (function () { throw new RuntimeError('Variable "version" does not exist.', 132, $this->source); })()), "html", null, true);
  464. yield "\"></script>
  465. <script src=\"";
  466. // line 133
  467. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/assets/plugins/cookieconsent2/build/cookieconsent.min.js"), "html", null, true);
  468. yield "?v=";
  469. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["version"]) || array_key_exists("version", $context) ? $context["version"] : (function () { throw new RuntimeError('Variable "version" does not exist.', 133, $this->source); })()), "html", null, true);
  470. yield "\"
  471. data-cfasync=\"false\"></script>
  472. <script>
  473. let messageCookies;
  474. ";
  475. // line 137
  476. if ($this->env->getRuntime('App\Twig\YamlOrSettingRuntime')->platformFront("security.cookies.message")) {
  477. // line 138
  478. yield " messageCookies = \"";
  479. yield $this->env->getRuntime('App\Twig\YamlOrSettingRuntime')->platformFront("security.cookies.message");
  480. yield "\";
  481. ";
  482. }
  483. // line 140
  484. yield " </script>
  485. <script src=\"";
  486. // line 141
  487. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/assets/js/front/common/cookieConsentInit.js"), "html", null, true);
  488. yield "?v=";
  489. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["version"]) || array_key_exists("version", $context) ? $context["version"] : (function () { throw new RuntimeError('Variable "version" does not exist.', 141, $this->source); })()), "html", null, true);
  490. yield "\"></script>
  491. <script src=\"";
  492. // line 143
  493. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/assets/templates/daikin/js/custom.js"), "html", null, true);
  494. yield "?v=";
  495. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["version"]) || array_key_exists("version", $context) ? $context["version"] : (function () { throw new RuntimeError('Variable "version" does not exist.', 143, $this->source); })()), "html", null, true);
  496. yield "\"></script>
  497. <script src=\"";
  498. // line 144
  499. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/assets/templates/daikin/js/rater.js"), "html", null, true);
  500. yield "?v=";
  501. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["version"]) || array_key_exists("version", $context) ? $context["version"] : (function () { throw new RuntimeError('Variable "version" does not exist.', 144, $this->source); })()), "html", null, true);
  502. yield "\"></script>
  503. <script src=\"";
  504. // line 146
  505. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/assets/bower_components/inputmask/dist/jquery.inputmask.min.js"), "html", null, true);
  506. yield "?v=";
  507. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["version"]) || array_key_exists("version", $context) ? $context["version"] : (function () { throw new RuntimeError('Variable "version" does not exist.', 146, $this->source); })()), "html", null, true);
  508. yield "\"></script>
  509. <script src=\"";
  510. // line 148
  511. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/assets/bower_components/parsleyjs/dist/parsley.min.js"), "html", null, true);
  512. yield "?v=";
  513. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["version"]) || array_key_exists("version", $context) ? $context["version"] : (function () { throw new RuntimeError('Variable "version" does not exist.', 148, $this->source); })()), "html", null, true);
  514. yield "\"></script>
  515. <script src=\"";
  516. // line 149
  517. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/assets/bower_components/parsleyjs/dist/i18n/fr.js"), "html", null, true);
  518. yield "?v=";
  519. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["version"]) || array_key_exists("version", $context) ? $context["version"] : (function () { throw new RuntimeError('Variable "version" does not exist.', 149, $this->source); })()), "html", null, true);
  520. yield "\"></script>
  521. <script src=\"";
  522. // line 150
  523. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/assets/bower_components/parsleyjs/dist/i18n/fr.extra.js"), "html", null, true);
  524. yield "?v=";
  525. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["version"]) || array_key_exists("version", $context) ? $context["version"] : (function () { throw new RuntimeError('Variable "version" does not exist.', 150, $this->source); })()), "html", null, true);
  526. yield "\"></script>
  527. <script src=\"";
  528. // line 151
  529. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/assets/js/front/parsley_validator.js"), "html", null, true);
  530. yield "?v=";
  531. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["version"]) || array_key_exists("version", $context) ? $context["version"] : (function () { throw new RuntimeError('Variable "version" does not exist.', 151, $this->source); })()), "html", null, true);
  532. yield "\"></script>
  533. <script src=\"";
  534. // line 152
  535. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/assets/js/dtv/common/confirmation.js"), "html", null, true);
  536. yield "?v=";
  537. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["version"]) || array_key_exists("version", $context) ? $context["version"] : (function () { throw new RuntimeError('Variable "version" does not exist.', 152, $this->source); })()), "html", null, true);
  538. yield "\"></script>
  539. <script src=\"";
  540. // line 153
  541. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/assets/js/dtv/common/spinner_button.js"), "html", null, true);
  542. yield "?v=";
  543. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["version"]) || array_key_exists("version", $context) ? $context["version"] : (function () { throw new RuntimeError('Variable "version" does not exist.', 153, $this->source); })()), "html", null, true);
  544. yield "\"></script>
  545. <script src=\"";
  546. // line 154
  547. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/assets/js/front/security/cookie.js"), "html", null, true);
  548. yield "?v=";
  549. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["version"]) || array_key_exists("version", $context) ? $context["version"] : (function () { throw new RuntimeError('Variable "version" does not exist.', 154, $this->source); })()), "html", null, true);
  550. yield "\"></script>
  551. <script>
  552. \$( '.toggle-password' ).on('click', function () {
  553. \$( this ).toggleClass( 'fa-eye fa-eye-slash' );
  554. let input = \$( \$( this ).attr( 'data-toggle' ) );
  555. if ( input.attr( 'type' ) === 'password' ) {
  556. input.attr( 'type', 'text' );
  557. } else {
  558. input.attr( 'type', 'password' );
  559. }
  560. } );
  561. const init_inputmask = function () {
  562. \$('[data-inputmask]').inputmask();
  563. };
  564. \$(function () {
  565. init_inputmask();
  566. console.log('pk', '";
  567. // line 175
  568. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Twig\TwigExtension']->md5(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["platform"]) || array_key_exists("platform", $context) ? $context["platform"] : (function () { throw new RuntimeError('Variable "platform" does not exist.', 175, $this->source); })()), "global", [], "any", false, false, false, 175), "project_key", [], "any", false, false, false, 175)), "html", null, true);
  569. yield "' )
  570. });
  571. </script>
  572. ";
  573. // line 180
  574. yield " ";
  575. if ($this->env->getRuntime('App\Twig\YamlOrSettingRuntime')->platformFront("security.js_files")) {
  576. // line 181
  577. yield " ";
  578. $context['_parent'] = $context;
  579. $context['_seq'] = CoreExtension::ensureTraversable($this->env->getRuntime('App\Twig\YamlOrSettingRuntime')->platformFront("security.js_files"));
  580. foreach ($context['_seq'] as $context["_key"] => $context["file"]) {
  581. // line 182
  582. yield " <script src=\"";
  583. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($context["file"]), "html", null, true);
  584. yield "?v=";
  585. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["version"]) || array_key_exists("version", $context) ? $context["version"] : (function () { throw new RuntimeError('Variable "version" does not exist.', 182, $this->source); })()), "html", null, true);
  586. yield "\"></script>
  587. ";
  588. }
  589. $_parent = $context['_parent'];
  590. unset($context['_seq'], $context['_iterated'], $context['_key'], $context['file'], $context['_parent'], $context['loop']);
  591. $context = array_intersect_key($context, $_parent) + $_parent;
  592. // line 184
  593. yield " ";
  594. }
  595. // line 185
  596. yield "
  597. ";
  598. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  599. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  600. return; yield '';
  601. }
  602. /**
  603. * @codeCoverageIgnore
  604. */
  605. public function getTemplateName()
  606. {
  607. return "security/layout.html.twig";
  608. }
  609. /**
  610. * @codeCoverageIgnore
  611. */
  612. public function isTraitable()
  613. {
  614. return false;
  615. }
  616. /**
  617. * @codeCoverageIgnore
  618. */
  619. public function getDebugInfo()
  620. {
  621. return array ( 684 => 185, 681 => 184, 670 => 182, 665 => 181, 662 => 180, 655 => 175, 629 => 154, 623 => 153, 617 => 152, 611 => 151, 605 => 150, 599 => 149, 593 => 148, 586 => 146, 579 => 144, 573 => 143, 566 => 141, 563 => 140, 557 => 138, 555 => 137, 546 => 133, 540 => 132, 534 => 131, 528 => 130, 520 => 126, 510 => 125, 496 => 115, 486 => 114, 467 => 98, 447 => 97, 427 => 72, 416 => 63, 406 => 62, 395 => 41, 385 => 40, 369 => 15, 367 => 14, 357 => 13, 337 => 9, 325 => 187, 323 => 125, 320 => 124, 318 => 123, 314 => 121, 310 => 119, 308 => 118, 305 => 117, 303 => 114, 300 => 113, 294 => 111, 289 => 109, 284 => 107, 281 => 106, 276 => 99, 274 => 98, 270 => 97, 264 => 94, 261 => 93, 255 => 91, 250 => 89, 245 => 87, 242 => 86, 240 => 82, 234 => 81, 225 => 78, 220 => 77, 215 => 76, 211 => 75, 203 => 72, 196 => 68, 193 => 67, 191 => 66, 188 => 65, 186 => 62, 183 => 61, 177 => 58, 174 => 57, 171 => 56, 165 => 53, 162 => 52, 160 => 51, 157 => 50, 154 => 49, 143 => 47, 138 => 46, 135 => 45, 132 => 43, 130 => 40, 127 => 39, 117 => 30, 111 => 27, 104 => 25, 97 => 23, 90 => 21, 87 => 20, 84 => 19, 81 => 17, 79 => 13, 76 => 12, 74 => 11, 69 => 9, 64 => 6, 60 => 4, 57 => 3, 55 => 2, 53 => 1,);
  622. }
  623. public function getSourceContext()
  624. {
  625. return new Source("{% import \"@component/_template/_html_macro.html.twig\" as macros %}
  626. {% if platform_front('security.wrapper_header_content') %}
  627. {% set wrapper_header_content = getFrontDataFromSettingOrYaml('front.security.wrapper_header_content', platform_front('security'), 'wrapper_header_content') %}
  628. {% set wrapper_header_content_config = generateComponentOptions(wrapper_header_content, 'wrapper_header_content') %}
  629. {% endif %}
  630. <!DOCTYPE html>
  631. <html lang=\"fr\">
  632. <head>
  633. <title>{% block title %}{{ platform_global('seo.title') }}{% endblock title %}</title>
  634. {% include \"front/common/layout.head_common_meta_link.html.twig\" with {bootstrapVersion: '5'} %}
  635. {% block styles_global_vendor %}
  636. {# Styles venant de vendor / fonts / commun à l'ensemble du site #}
  637. <link rel=\"stylesheet\" href=\"{{ asset('build/assets/plugins/cookieconsent2/build/cookieconsent.min.css') }}?v={{ version }}\" />
  638. {% endblock styles_global_vendor %}
  639. {# Styles commun à l'ensemble du site #}
  640. {% if platform_front('theme') and platform_front('theme') not in ['', null] %}
  641. <link rel=\"stylesheet\"
  642. href=\"{{ asset('build/assets/templates/' ~ platform_front('theme') ~'/scss/main.css') }}?v={{ version }}\">
  643. <link rel=\"stylesheet\"
  644. href=\"{{ asset('build/assets/templates/' ~ platform_front('theme') ~'/scss/security.css') }}?v={{ version }}\">
  645. <link rel=\"stylesheet\"
  646. href=\"{{ asset('build/assets/templates/' ~ platform_front('theme') ~'/scss/media-queries.css') }}?v={{ version }}\">
  647. {% endif %}
  648. <link rel=\"stylesheet\" href=\"{{ path('front_common_css_custom') }}\">
  649. {# parsley hack pour help labels rouges #}
  650. <style rel=\"stylesheet\">
  651. .fv-help-block {
  652. color : red !important;
  653. }
  654. .cc-window{
  655. border:1px solid #000000;
  656. }
  657. </style>
  658. {# end parsley hack #}
  659. {% block styles %}
  660. {# Styles spécifique à une page #}
  661. {% endblock styles %}
  662. {# Style global venant du fichier platform.[projet].yaml, doit avoir la priorité absolue sur tous les autres #}
  663. {% if platform_front('css_config.custom_css_files') %}
  664. {% for file in platform_front('css_config.custom_css_files') %}
  665. <link rel=\"stylesheet\" href=\"{{ asset(file) }}?v={{ version }}\">
  666. {% endfor %}
  667. {% endif %}
  668. {% if platform_front('common.custom_css') %}
  669. <style rel=\"stylesheet\">
  670. {{ platform_front('common.custom_css')|raw }}
  671. </style>
  672. {% endif %}
  673. {% if platform_front('security.custom_css') %}
  674. <style rel=\"stylesheet\">
  675. {{ platform_front('security.custom_css')|raw }}
  676. </style>
  677. {% endif %}
  678. {% block styles_custom %}
  679. {# Styles spécifique à une page et prioritaire par rapport au css global venant de platform.[projet].yaml #}
  680. {% endblock styles_custom %}
  681. {% include \"front/common/layout.head_common_js.html.twig\" %}
  682. <script>
  683. const cdn = '{{ cdn }}';
  684. </script>
  685. </head>
  686. <body class=\"security {% block bodyclass %}login{% endblock %} --theme-{{ platform_front('security.theme') ? getFrontDataFromSettingOrYaml('front.security.theme', platform_front('security'), 'theme') : 'light' }}\">
  687. <div class=\"main-wrapper\">
  688. {% for type, messages in app.flashes() %}
  689. {% for message in messages %}
  690. <div class=\"alert alert-{{ type }}\">
  691. {{ message }}
  692. </div>
  693. {% endfor %}
  694. {% endfor %}
  695. {#
  696. Wrapper qui permet de rassembler le header et le content dans une même div pour mettre un bg spécifique
  697. Pas Iso DTV mais présent dans beaucoup de maquettes...
  698. #}
  699. {% if platform_front('security.wrapper_header_content') and wrapper_header_content.enabled %}
  700. {{ macros.generateHtmlComponentStart(wrapper_header_content_config.wrapper) }}
  701. {#ITEM#}
  702. {{ macros.generateHtmlComponentStart(wrapper_header_content_config.item) }}
  703. {#CONTAINER#}
  704. {{ macros.generateHtmlComponentStart(wrapper_header_content_config.container) }}
  705. {% endif %}
  706. {{ component('security.header','security.header') }}
  707. <main>
  708. <div class=\"{% block content_container %}container{% endblock %}\">
  709. {% block content %}{% endblock %}
  710. </div>
  711. </main>
  712. {#
  713. Wrapper qui permet de rassembler le header et le content dans une même div pour mettre un bg spécifique
  714. Pas Iso DTV mais présent dans beaucoup de maquettes...
  715. #}
  716. {% if platform_front('security.wrapper_header_content') and wrapper_header_content.enabled %}
  717. {{ macros.generateHtmlComponentEnd(wrapper_header_content_config.wrapper) }}
  718. {#ITEM#}
  719. {{ macros.generateHtmlComponentEnd(wrapper_header_content_config.item) }}
  720. {#CONTAINER#}
  721. {{ macros.generateHtmlComponentEnd(wrapper_header_content_config.container) }}
  722. {% endif %}
  723. {% block footer %}
  724. {{ component('security.footer', 'security.footer') }}
  725. {% endblock footer %}
  726. </div>
  727. {% if platform_front('common.panels.enabled') %}
  728. {% include 'front/common/panel-right.html.twig' %}
  729. {% endif %}
  730. </body>
  731. {% include '@back/_common/flash.html.twig' %}
  732. {% block scripts %}
  733. {{ getTranslate() }}
  734. <script>
  735. console.log(\"Translation called\")
  736. </script>
  737. <script src=\"{{ asset('build/assets/bower_components/bootstrap4/dist/js/bootstrap.bundle.min.js') }}?v={{ version }}\"></script>
  738. <script src=\"{{ asset('build/assets/bower_components/jquery-popup-overlay/jquery.popupoverlay.js') }}?v={{ version }}\"></script>
  739. <script src=\"{{ asset('build/assets/bower_components/moment/min/moment.min.js') }}?v={{ version }}\"></script>
  740. <script src=\"{{ asset('build/assets/plugins/cookieconsent2/build/cookieconsent.min.js') }}?v={{ version }}\"
  741. data-cfasync=\"false\"></script>
  742. <script>
  743. let messageCookies;
  744. {% if platform_front('security.cookies.message') %}
  745. messageCookies = \"{{ platform_front('security.cookies.message')|raw }}\";
  746. {% endif %}
  747. </script>
  748. <script src=\"{{ asset('build/assets/js/front/common/cookieConsentInit.js') }}?v={{ version }}\"></script>
  749. <script src=\"{{ asset('build/assets/templates/daikin/js/custom.js') }}?v={{ version }}\"></script>
  750. <script src=\"{{ asset('build/assets/templates/daikin/js/rater.js') }}?v={{ version }}\"></script>
  751. <script src=\"{{ asset('build/assets/bower_components/inputmask/dist/jquery.inputmask.min.js') }}?v={{ version }}\"></script>
  752. <script src=\"{{ asset('build/assets/bower_components/parsleyjs/dist/parsley.min.js') }}?v={{ version }}\"></script>
  753. <script src=\"{{ asset('build/assets/bower_components/parsleyjs/dist/i18n/fr.js') }}?v={{ version }}\"></script>
  754. <script src=\"{{ asset('build/assets/bower_components/parsleyjs/dist/i18n/fr.extra.js') }}?v={{ version }}\"></script>
  755. <script src=\"{{ asset('build/assets/js/front/parsley_validator.js') }}?v={{ version }}\"></script>
  756. <script src=\"{{ asset('build/assets/js/dtv/common/confirmation.js') }}?v={{ version }}\"></script>
  757. <script src=\"{{ asset('build/assets/js/dtv/common/spinner_button.js') }}?v={{ version }}\"></script>
  758. <script src=\"{{ asset('build/assets/js/front/security/cookie.js') }}?v={{ version }}\"></script>
  759. <script>
  760. \$( '.toggle-password' ).on('click', function () {
  761. \$( this ).toggleClass( 'fa-eye fa-eye-slash' );
  762. let input = \$( \$( this ).attr( 'data-toggle' ) );
  763. if ( input.attr( 'type' ) === 'password' ) {
  764. input.attr( 'type', 'text' );
  765. } else {
  766. input.attr( 'type', 'password' );
  767. }
  768. } );
  769. const init_inputmask = function () {
  770. \$('[data-inputmask]').inputmask();
  771. };
  772. \$(function () {
  773. init_inputmask();
  774. console.log('pk', '{{ platform.global.project_key|md5 }}' )
  775. });
  776. </script>
  777. {# @TODO: fichiers par component si besoin, acl, fichiers en fonction des pages ? #}
  778. {% if platform_front('security.js_files') %}
  779. {% for file in platform_front('security.js_files') %}
  780. <script src=\"{{ asset(file) }}?v={{ version }}\"></script>
  781. {% endfor %}
  782. {% endif %}
  783. {% endblock scripts %}
  784. </html>
  785. ", "security/layout.html.twig", "/var/www/dtv-preprod/current/templates/security/layout.html.twig");
  786. }
  787. }