var/cache/website/dev/twig/7a/7a61f75f7646f93bccdc6c31db421ebd.php line 303

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\Sandbox\SecurityNotAllowedTestError;
  13. use Twig\Source;
  14. use Twig\Template;
  15. use Twig\TemplateWrapper;
  16. /* pages/connection_screen.html.twig */
  17. class __TwigTemplate_ef1816640ba8effe28a1579780e5c62b extends Template
  18. {
  19. private Source $source;
  20. /**
  21. * @var array<string, Template>
  22. */
  23. private array $macros = [];
  24. public function __construct(Environment $env)
  25. {
  26. parent::__construct($env);
  27. $this->source = $this->getSourceContext();
  28. $this->blocks = [
  29. 'page_class' => [$this, 'block_page_class'],
  30. 'header' => [$this, 'block_header'],
  31. 'aside' => [$this, 'block_aside'],
  32. 'footer' => [$this, 'block_footer'],
  33. 'modals' => [$this, 'block_modals'],
  34. 'stylesheets' => [$this, 'block_stylesheets'],
  35. 'content' => [$this, 'block_content'],
  36. ];
  37. }
  38. protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  39. {
  40. // line 1
  41. return "base.html.twig";
  42. }
  43. protected function doDisplay(array $context, array $blocks = []): iterable
  44. {
  45. $macros = $this->macros;
  46. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  47. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "pages/connection_screen.html.twig"));
  48. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  49. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "pages/connection_screen.html.twig"));
  50. // line 3
  51. $this->env->getRuntime("Symfony\\Component\\Form\\FormRenderer")->setTheme((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 3, $this->source); })()), ["form_theme.html.twig"], true);
  52. // line 1
  53. $this->parent = $this->load("base.html.twig", 1);
  54. yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  55. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  56. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  57. }
  58. // line 5
  59. /**
  60. * @return iterable<null|scalar|\Stringable>
  61. */
  62. public function block_page_class(array $context, array $blocks = []): iterable
  63. {
  64. $macros = $this->macros;
  65. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  66. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_class"));
  67. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  68. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_class"));
  69. // line 6
  70. yield " page connection-screen-page
  71. ";
  72. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  73. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  74. yield from [];
  75. }
  76. // line 9
  77. /**
  78. * @return iterable<null|scalar|\Stringable>
  79. */
  80. public function block_header(array $context, array $blocks = []): iterable
  81. {
  82. $macros = $this->macros;
  83. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  84. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header"));
  85. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  86. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header"));
  87. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  88. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  89. yield from [];
  90. }
  91. // line 11
  92. /**
  93. * @return iterable<null|scalar|\Stringable>
  94. */
  95. public function block_aside(array $context, array $blocks = []): iterable
  96. {
  97. $macros = $this->macros;
  98. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  99. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "aside"));
  100. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  101. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "aside"));
  102. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  103. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  104. yield from [];
  105. }
  106. // line 13
  107. /**
  108. * @return iterable<null|scalar|\Stringable>
  109. */
  110. public function block_footer(array $context, array $blocks = []): iterable
  111. {
  112. $macros = $this->macros;
  113. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  114. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "footer"));
  115. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  116. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "footer"));
  117. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  118. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  119. yield from [];
  120. }
  121. // line 15
  122. /**
  123. * @return iterable<null|scalar|\Stringable>
  124. */
  125. public function block_modals(array $context, array $blocks = []): iterable
  126. {
  127. $macros = $this->macros;
  128. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  129. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "modals"));
  130. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  131. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "modals"));
  132. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  133. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  134. yield from [];
  135. }
  136. // line 17
  137. /**
  138. * @return iterable<null|scalar|\Stringable>
  139. */
  140. public function block_stylesheets(array $context, array $blocks = []): iterable
  141. {
  142. $macros = $this->macros;
  143. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  144. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
  145. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  146. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
  147. // line 18
  148. yield " ";
  149. yield from $this->yieldParentBlock("stylesheets", $context, $blocks);
  150. yield "
  151. ";
  152. // line 19
  153. yield (string) $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackLinkTags("connection_screen_styles");
  154. yield "
  155. ";
  156. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  157. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  158. yield from [];
  159. }
  160. // line 22
  161. /**
  162. * @return iterable<null|scalar|\Stringable>
  163. */
  164. public function block_content(array $context, array $blocks = []): iterable
  165. {
  166. $macros = $this->macros;
  167. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  168. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  169. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  170. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  171. // line 23
  172. yield " ";
  173. $context["currentFormType"] = ((CoreExtension::getAttribute($this->env, $this->source, ($context["content"] ?? null), "formType", [], "any", true, true, false, 23)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 23, $this->source); })()), "formType", [], "any", false, false, false, 23), ((array_key_exists("formType", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["formType"]) || array_key_exists("formType", $context) ? $context["formType"] : (function () { throw new RuntimeError('Variable "formType" does not exist.', 23, $this->source); })()), "connection")) : ("connection")))) : (((array_key_exists("formType", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["formType"]) || array_key_exists("formType", $context) ? $context["formType"] : (function () { throw new RuntimeError('Variable "formType" does not exist.', 23, $this->source); })()), "connection")) : ("connection"))));
  174. // line 24
  175. yield "
  176. ";
  177. // line 26
  178. yield " ";
  179. $context["media"] = null;
  180. // line 27
  181. yield " ";
  182. if (((CoreExtension::getAttribute($this->env, $this->source, ($context["content"] ?? null), "pageMedia", [], "any", true, true, false, 27) && !(null === CoreExtension::getAttribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 27, $this->source); })()), "pageMedia", [], "any", false, false, false, 27))) && CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["content"] ?? null), "pageMedia", [], "any", false, true, false, 27), "id", [], "any", true, true, false, 27))) {
  183. // line 28
  184. yield " ";
  185. $context["media"] = $this->extensions['Sulu\Bundle\MediaBundle\Twig\MediaTwigExtension']->resolveMediaFunction(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 28, $this->source); })()), "pageMedia", [], "any", false, false, false, 28), "id", [], "any", false, false, false, 28), 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.', 28, $this->source); })()), "request", [], "any", false, false, false, 28), "locale", [], "any", false, false, false, 28));
  186. // line 29
  187. yield " ";
  188. }
  189. // line 30
  190. yield "
  191. ";
  192. // line 31
  193. $context["mediaUrl"] = (((($tmp = (isset($context["media"]) || array_key_exists("media", $context) ? $context["media"] : (function () { throw new RuntimeError('Variable "media" does not exist.', 31, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? ($this->extensions['App\Twig\MediaExtension']->getMediaUrlWithFallback((isset($context["media"]) || array_key_exists("media", $context) ? $context["media"] : (function () { throw new RuntimeError('Variable "media" does not exist.', 31, $this->source); })()), "1600x")) : ($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("img/connection-screen/background.gif")));
  194. // line 32
  195. yield " ";
  196. $context["mediaMimeType"] = ((CoreExtension::getAttribute($this->env, $this->source, ($context["media"] ?? null), "mimeType", [], "any", true, true, false, 32)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, (isset($context["media"]) || array_key_exists("media", $context) ? $context["media"] : (function () { throw new RuntimeError('Variable "media" does not exist.', 32, $this->source); })()), "mimeType", [], "any", false, false, false, 32), "")) : (""));
  197. // line 33
  198. yield " ";
  199. $context["isVideo"] = ((is_string($_v0 = (isset($context["mediaMimeType"]) || array_key_exists("mediaMimeType", $context) ? $context["mediaMimeType"] : (function () { throw new RuntimeError('Variable "mediaMimeType" does not exist.', 33, $this->source); })())) && is_string($_v1 = "video/") && str_starts_with($_v0, $_v1)) || CoreExtension::matches("/.(mp4|webm|ogg)(\\?.*)?\$/i", (isset($context["mediaUrl"]) || array_key_exists("mediaUrl", $context) ? $context["mediaUrl"] : (function () { throw new RuntimeError('Variable "mediaUrl" does not exist.', 33, $this->source); })())));
  200. // line 34
  201. yield "
  202. <section class=\"connection-screen\">
  203. ";
  204. // line 36
  205. if ( !Twig\Extension\CoreExtension::testEmpty((isset($context["mediaUrl"]) || array_key_exists("mediaUrl", $context) ? $context["mediaUrl"] : (function () { throw new RuntimeError('Variable "mediaUrl" does not exist.', 36, $this->source); })()))) {
  206. // line 37
  207. yield " <div class=\"connection-screen__media\" aria-hidden=\"true\">
  208. ";
  209. // line 38
  210. if ((($tmp = (isset($context["isVideo"]) || array_key_exists("isVideo", $context) ? $context["isVideo"] : (function () { throw new RuntimeError('Variable "isVideo" does not exist.', 38, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  211. // line 39
  212. yield " <video class=\"connection-screen__media-video\" autoplay muted loop playsinline preload=\"metadata\">
  213. <source src=\"";
  214. // line 40
  215. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["mediaUrl"]) || array_key_exists("mediaUrl", $context) ? $context["mediaUrl"] : (function () { throw new RuntimeError('Variable "mediaUrl" does not exist.', 40, $this->source); })()), "html_attr");
  216. yield "\" type=\"";
  217. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["mediaMimeType"]) || array_key_exists("mediaMimeType", $context) ? $context["mediaMimeType"] : (function () { throw new RuntimeError('Variable "mediaMimeType" does not exist.', 40, $this->source); })()), "html_attr");
  218. yield "\" />
  219. </video>
  220. ";
  221. } else {
  222. // line 43
  223. yield " <img class=\"connection-screen__media-img\" src=\"";
  224. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["mediaUrl"]) || array_key_exists("mediaUrl", $context) ? $context["mediaUrl"] : (function () { throw new RuntimeError('Variable "mediaUrl" does not exist.', 43, $this->source); })()), "html_attr");
  225. yield "\" alt=\"\" />
  226. ";
  227. }
  228. // line 45
  229. yield " </div>
  230. ";
  231. }
  232. // line 47
  233. yield "
  234. ";
  235. // line 48
  236. if (((isset($context["currentFormType"]) || array_key_exists("currentFormType", $context) ? $context["currentFormType"] : (function () { throw new RuntimeError('Variable "currentFormType" does not exist.', 48, $this->source); })()) == "connection")) {
  237. // line 49
  238. yield " ";
  239. yield from $this->load("pages/_includes/connection_screen/_form_connection.html.twig", 49)->unwrap()->yield($context);
  240. // line 50
  241. yield " ";
  242. } elseif (((isset($context["currentFormType"]) || array_key_exists("currentFormType", $context) ? $context["currentFormType"] : (function () { throw new RuntimeError('Variable "currentFormType" does not exist.', 50, $this->source); })()) == "connection_commercial_proposition")) {
  243. // line 51
  244. yield " ";
  245. yield from $this->load("pages/_includes/connection_screen/_form_connection_commercial_proposition.html.twig", 51)->unwrap()->yield($context);
  246. // line 52
  247. yield " ";
  248. } elseif (((isset($context["currentFormType"]) || array_key_exists("currentFormType", $context) ? $context["currentFormType"] : (function () { throw new RuntimeError('Variable "currentFormType" does not exist.', 52, $this->source); })()) == "forgot_password")) {
  249. // line 53
  250. yield " ";
  251. yield from $this->load("pages/_includes/connection_screen/_form_forgot_password.html.twig", 53)->unwrap()->yield($context);
  252. // line 54
  253. yield " ";
  254. } elseif (((isset($context["currentFormType"]) || array_key_exists("currentFormType", $context) ? $context["currentFormType"] : (function () { throw new RuntimeError('Variable "currentFormType" does not exist.', 54, $this->source); })()) == "reset_password")) {
  255. // line 55
  256. yield " ";
  257. yield from $this->load("pages/_includes/connection_screen/_form_reset_password.html.twig", 55)->unwrap()->yield($context);
  258. // line 56
  259. yield " ";
  260. } elseif (((isset($context["currentFormType"]) || array_key_exists("currentFormType", $context) ? $context["currentFormType"] : (function () { throw new RuntimeError('Variable "currentFormType" does not exist.', 56, $this->source); })()) == "subscription")) {
  261. // line 57
  262. yield " ";
  263. yield from $this->load("pages/_includes/connection_screen/_form_subscription.html.twig", 57)->unwrap()->yield($context);
  264. // line 58
  265. yield " ";
  266. } elseif (((isset($context["currentFormType"]) || array_key_exists("currentFormType", $context) ? $context["currentFormType"] : (function () { throw new RuntimeError('Variable "currentFormType" does not exist.', 58, $this->source); })()) == "confirm_subscription")) {
  267. // line 59
  268. yield " ";
  269. yield from $this->load("pages/_includes/connection_screen/_confirm_subscription.html.twig", 59)->unwrap()->yield($context);
  270. // line 60
  271. yield " ";
  272. } elseif (((isset($context["currentFormType"]) || array_key_exists("currentFormType", $context) ? $context["currentFormType"] : (function () { throw new RuntimeError('Variable "currentFormType" does not exist.', 60, $this->source); })()) == "subscription_success")) {
  273. // line 61
  274. yield " ";
  275. yield from $this->load("pages/_includes/connection_screen/_confirm_subscription_success.html.twig", 61)->unwrap()->yield($context);
  276. // line 62
  277. yield " ";
  278. } else {
  279. // line 63
  280. yield " ";
  281. // line 64
  282. yield " ";
  283. yield from $this->load("pages/_includes/connection_screen/_form_connection.html.twig", 64)->unwrap()->yield($context);
  284. // line 65
  285. yield " ";
  286. }
  287. // line 66
  288. yield " </section>
  289. ";
  290. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  291. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  292. yield from [];
  293. }
  294. /**
  295. * @codeCoverageIgnore
  296. */
  297. public function getTemplateName(): string
  298. {
  299. return "pages/connection_screen.html.twig";
  300. }
  301. /**
  302. * @codeCoverageIgnore
  303. */
  304. public function isTraitable(): bool
  305. {
  306. return false;
  307. }
  308. /**
  309. * @codeCoverageIgnore
  310. */
  311. public function getDebugInfo(): array
  312. {
  313. return array ( 346 => 66, 343 => 65, 340 => 64, 338 => 63, 335 => 62, 332 => 61, 329 => 60, 326 => 59, 323 => 58, 320 => 57, 317 => 56, 314 => 55, 311 => 54, 308 => 53, 305 => 52, 302 => 51, 299 => 50, 296 => 49, 294 => 48, 291 => 47, 287 => 45, 281 => 43, 273 => 40, 270 => 39, 268 => 38, 265 => 37, 263 => 36, 259 => 34, 256 => 33, 253 => 32, 251 => 31, 248 => 30, 245 => 29, 242 => 28, 239 => 27, 236 => 26, 233 => 24, 230 => 23, 217 => 22, 204 => 19, 199 => 18, 186 => 17, 164 => 15, 142 => 13, 120 => 11, 98 => 9, 86 => 6, 73 => 5, 62 => 1, 60 => 3, 47 => 1,);
  314. }
  315. public function getSourceContext(): Source
  316. {
  317. return new Source("{% extends \x27base.html.twig\x27 %}
  318. {% form_theme form \x27form_theme.html.twig\x27 %}
  319. {% block page_class %}
  320. page connection-screen-page
  321. {% endblock %}
  322. {% block header %}{% endblock %}
  323. {% block aside %}{% endblock %}
  324. {% block footer %}{% endblock %}
  325. {% block modals %}{% endblock %}
  326. {% block stylesheets %}
  327. {{ parent() }}
  328. {{ encore_entry_link_tags(\x27connection_screen_styles\x27) }}
  329. {% endblock %}
  330. {% block content %}
  331. {% set currentFormType = content.formType|default(formType|default(\x27connection\x27)) %}
  332. {# pageMedia peut être une image ou une vidéo (affiché en arrière-plan) #}
  333. {% set media = null %}
  334. {% if content.pageMedia is defined and content.pageMedia is not null and content.pageMedia.id is defined %}
  335. {% set media = sulu_resolve_media(content.pageMedia.id, app.request.locale) %}
  336. {% endif %}
  337. {% set mediaUrl = media ? sulu_media_url(media, \x271600x\x27) : asset(\x27img/connection-screen/background.gif\x27) %}
  338. {% set mediaMimeType = media.mimeType|default(\x27\x27) %}
  339. {% set isVideo = (mediaMimeType starts with \x27video/\x27) or (mediaUrl matches \x27/\\.(mp4|webm|ogg)(\\\\?.*)?\$/i\x27) %}
  340. <section class=\"connection-screen\">
  341. {% if mediaUrl is not empty %}
  342. <div class=\"connection-screen__media\" aria-hidden=\"true\">
  343. {% if isVideo %}
  344. <video class=\"connection-screen__media-video\" autoplay muted loop playsinline preload=\"metadata\">
  345. <source src=\"{{ mediaUrl|e(\x27html_attr\x27) }}\" type=\"{{ mediaMimeType|e(\x27html_attr\x27) }}\" />
  346. </video>
  347. {% else %}
  348. <img class=\"connection-screen__media-img\" src=\"{{ mediaUrl|e(\x27html_attr\x27) }}\" alt=\"\" />
  349. {% endif %}
  350. </div>
  351. {% endif %}
  352. {% if currentFormType == \x27connection\x27 %}
  353. {% include \x27pages/_includes/connection_screen/_form_connection.html.twig\x27 %}
  354. {% elseif currentFormType == \x27connection_commercial_proposition\x27 %}
  355. {% include \x27pages/_includes/connection_screen/_form_connection_commercial_proposition.html.twig\x27 %}
  356. {% elseif currentFormType == \x27forgot_password\x27 %}
  357. {% include \x27pages/_includes/connection_screen/_form_forgot_password.html.twig\x27 %}
  358. {% elseif currentFormType == \x27reset_password\x27 %}
  359. {% include \x27pages/_includes/connection_screen/_form_reset_password.html.twig\x27 %}
  360. {% elseif currentFormType == \x27subscription\x27 %}
  361. {% include \x27pages/_includes/connection_screen/_form_subscription.html.twig\x27 %}
  362. {% elseif currentFormType == \x27confirm_subscription\x27 %}
  363. {% include \x27pages/_includes/connection_screen/_confirm_subscription.html.twig\x27 %}
  364. {% elseif currentFormType == \x27subscription_success\x27 %}
  365. {% include \x27pages/_includes/connection_screen/_confirm_subscription_success.html.twig\x27 %}
  366. {% else %}
  367. {# Fallback: on affiche le formulaire de connexion #}
  368. {% include \x27pages/_includes/connection_screen/_form_connection.html.twig\x27 %}
  369. {% endif %}
  370. </section>
  371. {% endblock %}
  372. ", "pages/connection_screen.html.twig", "/home/croisiland-pp/www/f0312421abff37637dabe6f4d57b6afd95d16263/templates/pages/connection_screen.html.twig");
  373. }
  374. }