var/cache/dev/api-edenwork.dtv-projects.com/twig/24/24fc2968cf231a2836abf2c0a3cca77a.php line 233

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