var/cache/dev/top-intuis-thermo.dtv-projects.com/twig/d8/d8b272e325736805c6e601ed90e79bf0.php line 195

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. use Twig\TemplateWrapper;
  15. /* security/login.html.twig */
  16. class __TwigTemplate_43c9474b2542ff6d67c0f48112044e9e extends Template
  17. {
  18. private Source $source;
  19. /**
  20. * @var array<string, Template>
  21. */
  22. private array $macros = [];
  23. public function __construct(Environment $env)
  24. {
  25. parent::__construct($env);
  26. $this->source = $this->getSourceContext();
  27. $this->blocks = [
  28. 'content_container' => [$this, 'block_content_container'],
  29. 'content' => [$this, 'block_content'],
  30. 'scripts' => [$this, 'block_scripts'],
  31. ];
  32. }
  33. protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  34. {
  35. // line 1
  36. return "security/layout.html.twig";
  37. }
  38. protected function doDisplay(array $context, array $blocks = []): iterable
  39. {
  40. $macros = $this->macros;
  41. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  42. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "security/login.html.twig"));
  43. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  44. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "security/login.html.twig"));
  45. // line 4
  46. $context["loginData"] = $this->env->getRuntime('App\Twig\Runtime\PlatformComponentRuntime')->getFrontDataFromSettingOrYaml("front.security.login", $this->env->getRuntime('App\Twig\YamlOrSettingRuntime')->platformFront("security.login"));
  47. // line 1
  48. $this->parent = $this->load("security/layout.html.twig", 1);
  49. yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  50. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  51. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  52. }
  53. // line 6
  54. /**
  55. * @return iterable<null|scalar|\Stringable>
  56. */
  57. public function block_content_container(array $context, array $blocks = []): iterable
  58. {
  59. $macros = $this->macros;
  60. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  61. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content_container"));
  62. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  63. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content_container"));
  64. // line 7
  65. yield " ";
  66. if (CoreExtension::getAttribute($this->env, $this->source, ($context["loginData"] ?? null), "content_container", [], "any", true, true, false, 7)) {
  67. // line 8
  68. yield " ";
  69. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["loginData"]) || array_key_exists("loginData", $context) ? $context["loginData"] : (function () { throw new RuntimeError('Variable "loginData" does not exist.', 8, $this->source); })()), "content_container", [], "any", false, false, false, 8), "html", null, true);
  70. yield "
  71. ";
  72. } else {
  73. // line 9
  74. yield "container";
  75. }
  76. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  77. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  78. yield from [];
  79. }
  80. // line 12
  81. /**
  82. * @return iterable<null|scalar|\Stringable>
  83. */
  84. public function block_content(array $context, array $blocks = []): iterable
  85. {
  86. $macros = $this->macros;
  87. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  88. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  89. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  90. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  91. // line 13
  92. yield " <div class=\"row ";
  93. if (CoreExtension::getAttribute($this->env, $this->source, ($context["loginData"] ?? null), "row_justify", [], "any", true, true, false, 13)) {
  94. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["loginData"]) || array_key_exists("loginData", $context) ? $context["loginData"] : (function () { throw new RuntimeError('Variable "loginData" does not exist.', 13, $this->source); })()), "row_justify", [], "any", false, false, false, 13), "html", null, true);
  95. } else {
  96. yield "justify-content-between";
  97. }
  98. yield "\">
  99. <div class=\"col-md-6\">
  100. ";
  101. // line 15
  102. $context['_parent'] = $context;
  103. $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.', 15, $this->source); })()), "flashes", [], "method", false, false, false, 15));
  104. foreach ($context['_seq'] as $context["type"] => $context["messages"]) {
  105. // line 16
  106. yield " ";
  107. $context['_parent'] = $context;
  108. $context['_seq'] = CoreExtension::ensureTraversable($context["messages"]);
  109. foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
  110. // line 17
  111. yield " <div class=\"alert alert-";
  112. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["type"], "html", null, true);
  113. yield "\">
  114. ";
  115. // line 18
  116. yield $context["message"];
  117. yield "
  118. </div>
  119. ";
  120. }
  121. $_parent = $context['_parent'];
  122. unset($context['_seq'], $context['_key'], $context['message'], $context['_parent']);
  123. $context = array_intersect_key($context, $_parent) + $_parent;
  124. // line 21
  125. yield " ";
  126. }
  127. $_parent = $context['_parent'];
  128. unset($context['_seq'], $context['type'], $context['messages'], $context['_parent']);
  129. $context = array_intersect_key($context, $_parent) + $_parent;
  130. // line 22
  131. yield " ";
  132. if ((($tmp = (isset($context["error"]) || array_key_exists("error", $context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.', 22, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  133. // line 23
  134. yield " <div class=\"alert alert-danger\">";
  135. yield $this->extensions['App\Twig\TwigExtension']->customTrans(CoreExtension::getAttribute($this->env, $this->source, (isset($context["error"]) || array_key_exists("error", $context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.', 23, $this->source); })()), "messageKey", [], "any", false, false, false, 23), CoreExtension::getAttribute($this->env, $this->source, (isset($context["error"]) || array_key_exists("error", $context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.', 23, $this->source); })()), "messageData", [], "any", false, false, false, 23));
  136. yield "</div>
  137. ";
  138. }
  139. // line 25
  140. yield " </div>
  141. <div class=\"w-100\"></div>
  142. ";
  143. // line 29
  144. if (CoreExtension::getAttribute($this->env, $this->source, ($context["loginData"] ?? null), "sections", [], "any", true, true, false, 29)) {
  145. // line 30
  146. yield " ";
  147. $context['_parent'] = $context;
  148. $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, (isset($context["loginData"]) || array_key_exists("loginData", $context) ? $context["loginData"] : (function () { throw new RuntimeError('Variable "loginData" does not exist.', 30, $this->source); })()), "sections", [], "any", false, false, false, 30));
  149. $context['loop'] = [
  150. 'parent' => $context['_parent'],
  151. 'index0' => 0,
  152. 'index' => 1,
  153. 'first' => true,
  154. ];
  155. if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  156. $length = count($context['_seq']);
  157. $context['loop']['revindex0'] = $length - 1;
  158. $context['loop']['revindex'] = $length;
  159. $context['loop']['length'] = $length;
  160. $context['loop']['last'] = 1 === $length;
  161. }
  162. foreach ($context['_seq'] as $context["k"] => $context["el"]) {
  163. // line 31
  164. yield " ";
  165. if ((((CoreExtension::getAttribute($this->env, $this->source, $context["el"], "enabled", [], "any", false, false, false, 31) || (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, 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.', 31, $this->source); })()), "request", [], "any", false, false, false, 31), "query", [], "any", false, false, false, 31), "get", ["force_login"], "method", false, false, false, 31) == $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.', 31, $this->source); })()), "global", [], "any", false, false, false, 31), "project_key", [], "any", false, false, false, 31)))) && CoreExtension::getAttribute($this->env, $this->source, $context["el"], "type", [], "any", true, true, false, 31)) && CoreExtension::inFilter(CoreExtension::getAttribute($this->env, $this->source, $context["el"], "type", [], "any", false, false, false, 31), ["default_security_login_form"]))) {
  166. // line 32
  167. yield " ";
  168. // line 33
  169. yield " ";
  170. yield from $this->load((("@component/molecule/" . CoreExtension::getAttribute($this->env, $this->source, $context["el"], "type", [], "any", false, false, false, 33)) . ".html.twig"), 33)->unwrap()->yield(CoreExtension::merge($context, ["value" => $context["el"], "form" => (isset($context["loginForm"]) || array_key_exists("loginForm", $context) ? $context["loginForm"] : (function () { throw new RuntimeError('Variable "loginForm" does not exist.', 33, $this->source); })()), "hasFormRegister" => (isset($context["hasFormRegister"]) || array_key_exists("hasFormRegister", $context) ? $context["hasFormRegister"] : (function () { throw new RuntimeError('Variable "hasFormRegister" does not exist.', 33, $this->source); })()), "componentKey" => "security.login.sections"]));
  171. // line 34
  172. yield " ";
  173. } elseif ((CoreExtension::getAttribute($this->env, $this->source, $context["el"], "enabled", [], "any", false, false, false, 34) && !($context["k"] === "section_register"))) {
  174. // line 35
  175. yield " ";
  176. yield $this->env->getRuntime('App\Twig\Runtime\PlatformComponentRuntime')->component($context["el"], ("security.login.sections." . $context["k"]));
  177. yield "
  178. ";
  179. }
  180. // line 37
  181. yield " ";
  182. ++$context['loop']['index0'];
  183. ++$context['loop']['index'];
  184. $context['loop']['first'] = false;
  185. if (isset($context['loop']['revindex0'], $context['loop']['revindex'])) {
  186. --$context['loop']['revindex0'];
  187. --$context['loop']['revindex'];
  188. $context['loop']['last'] = 0 === $context['loop']['revindex0'];
  189. }
  190. }
  191. $_parent = $context['_parent'];
  192. unset($context['_seq'], $context['k'], $context['el'], $context['_parent'], $context['loop']);
  193. $context = array_intersect_key($context, $_parent) + $_parent;
  194. // line 38
  195. yield " ";
  196. }
  197. // line 39
  198. yield " </div>
  199. ";
  200. // line 41
  201. if ((CoreExtension::getAttribute($this->env, $this->source, ($context["loginData"] ?? null), "modal_video_presentation", [], "any", true, true, false, 41) && CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["loginData"]) || array_key_exists("loginData", $context) ? $context["loginData"] : (function () { throw new RuntimeError('Variable "loginData" does not exist.', 41, $this->source); })()), "modal_video_presentation", [], "any", false, false, false, 41), "enabled", [], "any", false, false, false, 41))) {
  202. // line 42
  203. yield " <div class=\"modal fade ";
  204. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["loginData"]) || array_key_exists("loginData", $context) ? $context["loginData"] : (function () { throw new RuntimeError('Variable "loginData" does not exist.', 42, $this->source); })()), "modal_video_presentation", [], "any", false, false, false, 42), "class", [], "any", false, false, false, 42), "html", null, true);
  205. yield "\" id=\"modal_video_presentation\" tabindex=\"-1\" aria-labelledby=\"modal_video_presentation_label\" aria-hidden=\"true\">
  206. <div class=\"modal-dialog modal-dialog-centered\">
  207. <div class=\"modal-content\">
  208. <div class=\"modal-header bg-primary border-primary\">
  209. <h5 class=\"modal-title\" id=\"modal_video_presentation_label\">";
  210. // line 46
  211. yield CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["loginData"]) || array_key_exists("loginData", $context) ? $context["loginData"] : (function () { throw new RuntimeError('Variable "loginData" does not exist.', 46, $this->source); })()), "modal_video_presentation", [], "any", false, false, false, 46), "title", [], "any", false, false, false, 46);
  212. yield "</h5>
  213. <button id=\"btn-close-modal\" type=\"button\" class=\"close btn-close ";
  214. // line 47
  215. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["loginData"]) || array_key_exists("loginData", $context) ? $context["loginData"] : (function () { throw new RuntimeError('Variable "loginData" does not exist.', 47, $this->source); })()), "modal_video_presentation", [], "any", false, false, false, 47), "btn_close_class", [], "any", false, false, false, 47), "html", null, true);
  216. yield "\" data-dismiss=\"modal\" aria-label=\"Close\">
  217. <i class=\"bi bi-x-lg\"></i>
  218. </button>
  219. </div>
  220. <div class=\"modal-body bg-primary border-primary\">
  221. <video id=\"youtube_player\" controls >
  222. ";
  223. // line 53
  224. $context['_parent'] = $context;
  225. $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["loginData"]) || array_key_exists("loginData", $context) ? $context["loginData"] : (function () { throw new RuntimeError('Variable "loginData" does not exist.', 53, $this->source); })()), "modal_video_presentation", [], "any", false, false, false, 53), "sources", [], "any", false, false, false, 53));
  226. foreach ($context['_seq'] as $context["type"] => $context["src"]) {
  227. // line 54
  228. yield " ";
  229. if (CoreExtension::getAttribute($this->env, $this->source, $context["src"], "filename", [], "any", true, true, false, 54)) {
  230. // line 55
  231. yield " <source src=\"";
  232. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("static_file_folder", ["fileName" => CoreExtension::getAttribute($this->env, $this->source, $context["src"], "filename", [], "any", false, false, false, 55), "folder" => CoreExtension::getAttribute($this->env, $this->source, $context["src"], "folder", [], "any", false, false, false, 55)]), "html", null, true);
  233. yield "\" type=\"video/";
  234. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["type"], "html", null, true);
  235. yield "\">
  236. ";
  237. } else {
  238. // line 57
  239. yield " <source src=\"";
  240. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["src"], "html", null, true);
  241. yield "\" type=\"video/";
  242. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["type"], "html", null, true);
  243. yield "\">
  244. ";
  245. }
  246. // line 59
  247. yield " ";
  248. }
  249. $_parent = $context['_parent'];
  250. unset($context['_seq'], $context['type'], $context['src'], $context['_parent']);
  251. $context = array_intersect_key($context, $_parent) + $_parent;
  252. // line 60
  253. yield " </video>
  254. </div>
  255. </div>
  256. </div>
  257. </div>
  258. <div class=\"security-modal-btn security-modal-btn-animate ";
  259. // line 66
  260. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["loginData"]) || array_key_exists("loginData", $context) ? $context["loginData"] : (function () { throw new RuntimeError('Variable "loginData" does not exist.', 66, $this->source); })()), "modal_video_presentation", [], "any", false, false, false, 66), "btn", [], "any", false, false, false, 66), "class", [], "any", false, false, false, 66), "html", null, true);
  261. yield "\"
  262. data-toggle=\"modal\"
  263. data-target=\"#modal_video_presentation\">
  264. ";
  265. // line 69
  266. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["loginData"]) || array_key_exists("loginData", $context) ? $context["loginData"] : (function () { throw new RuntimeError('Variable "loginData" does not exist.', 69, $this->source); })()), "modal_video_presentation", [], "any", false, false, false, 69), "btn", [], "any", false, false, false, 69), "content", [], "any", false, false, false, 69), "html", null, true);
  267. yield "
  268. </div>
  269. ";
  270. }
  271. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  272. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  273. yield from [];
  274. }
  275. // line 74
  276. /**
  277. * @return iterable<null|scalar|\Stringable>
  278. */
  279. public function block_scripts(array $context, array $blocks = []): iterable
  280. {
  281. $macros = $this->macros;
  282. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  283. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "scripts"));
  284. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  285. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "scripts"));
  286. // line 75
  287. yield " ";
  288. yield from $this->yieldParentBlock("scripts", $context, $blocks);
  289. yield "
  290. <script>
  291. window.addEventListener('load', addEventModal);
  292. function addEventModal(){
  293. \$('#modal_video_presentation').on('hidden.bs.modal', function (e) {
  294. document.getElementById('youtube_player').pause();
  295. });
  296. \$('#modal_video_presentation').on('shown.bs.modal', function (e) {
  297. document.getElementById('youtube_player').play();
  298. });
  299. }
  300. </script>
  301. ";
  302. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  303. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  304. yield from [];
  305. }
  306. /**
  307. * @codeCoverageIgnore
  308. */
  309. public function getTemplateName(): string
  310. {
  311. return "security/login.html.twig";
  312. }
  313. /**
  314. * @codeCoverageIgnore
  315. */
  316. public function isTraitable(): bool
  317. {
  318. return false;
  319. }
  320. /**
  321. * @codeCoverageIgnore
  322. */
  323. public function getDebugInfo(): array
  324. {
  325. return array ( 321 => 75, 308 => 74, 293 => 69, 287 => 66, 279 => 60, 273 => 59, 265 => 57, 257 => 55, 254 => 54, 250 => 53, 241 => 47, 237 => 46, 229 => 42, 227 => 41, 223 => 39, 220 => 38, 206 => 37, 200 => 35, 197 => 34, 194 => 33, 192 => 32, 189 => 31, 171 => 30, 169 => 29, 163 => 25, 157 => 23, 154 => 22, 148 => 21, 139 => 18, 134 => 17, 129 => 16, 125 => 15, 115 => 13, 102 => 12, 90 => 9, 84 => 8, 81 => 7, 68 => 6, 57 => 1, 55 => 4, 42 => 1,);
  326. }
  327. public function getSourceContext(): Source
  328. {
  329. return new Source("{% extends 'security/layout.html.twig' %}
  330. {% set loginData = getFrontDataFromSettingOrYaml('front.security.login', platform_front('security.login') ) %}
  331. {% block content_container %}
  332. {% if loginData.content_container is defined %}
  333. {{ loginData.content_container }}
  334. {% else %}container{% endif %}
  335. {% endblock %}
  336. {% block content %}
  337. <div class=\"row {% if loginData.row_justify is defined %}{{ loginData.row_justify }}{% else %}justify-content-between{% endif %}\">
  338. <div class=\"col-md-6\">
  339. {% for type, messages in app.flashes() %}
  340. {% for message in messages %}
  341. <div class=\"alert alert-{{ type }}\">
  342. {{ message|raw }}
  343. </div>
  344. {% endfor %}
  345. {% endfor %}
  346. {% if error %}
  347. <div class=\"alert alert-danger\">{{ error.messageKey|trans(error.messageData) }}</div>
  348. {% endif %}
  349. </div>
  350. <div class=\"w-100\"></div>
  351. {% if loginData.sections is defined %}
  352. {% for k, el in loginData.sections %}
  353. {% if ( el.enabled or app.request.query.get('force_login') == platform.global.project_key|md5 ) and el.type is defined and el.type in ['default_security_login_form'] %}
  354. {# default_security_login_form #}
  355. {% include '@component/molecule/'~ el.type ~'.html.twig' with {'value': el, 'form': loginForm, 'hasFormRegister': hasFormRegister, componentKey: 'security.login.sections' } %}
  356. {% elseif el.enabled and k is not same as('section_register') %}
  357. {{ component(el,'security.login.sections.'~ k) }}
  358. {% endif %}
  359. {% endfor %}
  360. {% endif %}
  361. </div>
  362. {% if loginData.modal_video_presentation is defined and loginData.modal_video_presentation.enabled %}
  363. <div class=\"modal fade {{ loginData.modal_video_presentation.class }}\" id=\"modal_video_presentation\" tabindex=\"-1\" aria-labelledby=\"modal_video_presentation_label\" aria-hidden=\"true\">
  364. <div class=\"modal-dialog modal-dialog-centered\">
  365. <div class=\"modal-content\">
  366. <div class=\"modal-header bg-primary border-primary\">
  367. <h5 class=\"modal-title\" id=\"modal_video_presentation_label\">{{ loginData.modal_video_presentation.title|raw }}</h5>
  368. <button id=\"btn-close-modal\" type=\"button\" class=\"close btn-close {{ loginData.modal_video_presentation.btn_close_class }}\" data-dismiss=\"modal\" aria-label=\"Close\">
  369. <i class=\"bi bi-x-lg\"></i>
  370. </button>
  371. </div>
  372. <div class=\"modal-body bg-primary border-primary\">
  373. <video id=\"youtube_player\" controls >
  374. {% for type,src in loginData.modal_video_presentation.sources %}
  375. {% if src.filename is defined %}
  376. <source src=\"{{ path('static_file_folder', {'fileName': src.filename, 'folder': src.folder}) }}\" type=\"video/{{ type }}\">
  377. {% else %}
  378. <source src=\"{{ src }}\" type=\"video/{{ type }}\">
  379. {% endif %}
  380. {% endfor %}
  381. </video>
  382. </div>
  383. </div>
  384. </div>
  385. </div>
  386. <div class=\"security-modal-btn security-modal-btn-animate {{ loginData.modal_video_presentation.btn.class }}\"
  387. data-toggle=\"modal\"
  388. data-target=\"#modal_video_presentation\">
  389. {{ loginData.modal_video_presentation.btn.content }}
  390. </div>
  391. {% endif %}
  392. {% endblock %}
  393. {% block scripts %}
  394. {{ parent() }}
  395. <script>
  396. window.addEventListener('load', addEventModal);
  397. function addEventModal(){
  398. \$('#modal_video_presentation').on('hidden.bs.modal', function (e) {
  399. document.getElementById('youtube_player').pause();
  400. });
  401. \$('#modal_video_presentation').on('shown.bs.modal', function (e) {
  402. document.getElementById('youtube_player').play();
  403. });
  404. }
  405. </script>
  406. {% endblock %}
  407. ", "security/login.html.twig", "/var/www/dtv-preprod/current/templates/security/login.html.twig");
  408. }
  409. }