<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* security/login.html.twig */
class __TwigTemplate_a55e9f4c36eea26f3ead18dd9a8328db extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'content_container' => [$this, 'block_content_container'],
'content' => [$this, 'block_content'],
'scripts' => [$this, 'block_scripts'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "security/layout.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "security/login.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "security/login.html.twig"));
// line 4
$context["loginData"] = $this->env->getRuntime('App\Twig\Runtime\PlatformComponentRuntime')->getFrontDataFromSettingOrYaml("front.security.login", $this->env->getRuntime('App\Twig\YamlOrSettingRuntime')->platformFront("security.login"));
// line 1
$this->parent = $this->loadTemplate("security/layout.html.twig", "security/login.html.twig", 1);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 6
public function block_content_container($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content_container"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content_container"));
// line 7
yield " ";
if (CoreExtension::getAttribute($this->env, $this->source, ($context["loginData"] ?? null), "content_container", [], "any", true, true, false, 7)) {
// line 8
yield " ";
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);
yield "
";
} else {
// line 9
yield "container";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 12
public function block_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 13
yield " <div class=\"row ";
if (CoreExtension::getAttribute($this->env, $this->source, ($context["loginData"] ?? null), "row_justify", [], "any", true, true, false, 13)) {
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);
} else {
yield "justify-content-between";
}
yield "\">
<div class=\"col-md-6\">
";
// line 15
$context['_parent'] = $context;
$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));
foreach ($context['_seq'] as $context["type"] => $context["messages"]) {
// line 16
yield " ";
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable($context["messages"]);
foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
// line 17
yield " <div class=\"alert alert-";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["type"], "html", null, true);
yield "\">
";
// line 18
yield $context["message"];
yield "
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 21
yield " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['type'], $context['messages'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 22
yield " ";
if ((isset($context["error"]) || array_key_exists("error", $context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.', 22, $this->source); })())) {
// line 23
yield " <div class=\"alert alert-danger\">";
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));
yield "</div>
";
}
// line 25
yield " </div>
<div class=\"w-100\"></div>
";
// line 29
if (CoreExtension::getAttribute($this->env, $this->source, ($context["loginData"] ?? null), "sections", [], "any", true, true, false, 29)) {
// line 30
yield " ";
$context['_parent'] = $context;
$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));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["k"] => $context["el"]) {
// line 31
yield " ";
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"]))) {
// line 32
yield " ";
yield from $this->loadTemplate((("@component/molecule/" . CoreExtension::getAttribute($this->env, $this->source, $context["el"], "type", [], "any", false, false, false, 32)) . ".html.twig"), "security/login.html.twig", 32)->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.', 32, $this->source); })()), "hasFormRegister" => (isset($context["hasFormRegister"]) || array_key_exists("hasFormRegister", $context) ? $context["hasFormRegister"] : (function () { throw new RuntimeError('Variable "hasFormRegister" does not exist.', 32, $this->source); })()), "componentKey" => "security.login.sections"]));
// line 33
yield " ";
} elseif ((CoreExtension::getAttribute($this->env, $this->source, $context["el"], "enabled", [], "any", false, false, false, 33) && !($context["k"] === "section_register"))) {
// line 34
yield " ";
yield $this->env->getRuntime('App\Twig\Runtime\PlatformComponentRuntime')->component($context["el"], ("security.login.sections." . $context["k"]));
yield "
";
}
// line 36
yield " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['k'], $context['el'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 37
yield " ";
}
// line 38
yield " </div>
";
// line 40
if ((CoreExtension::getAttribute($this->env, $this->source, ($context["loginData"] ?? null), "modal_video_presentation", [], "any", true, true, false, 40) && 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.', 40, $this->source); })()), "modal_video_presentation", [], "any", false, false, false, 40), "enabled", [], "any", false, false, false, 40))) {
// line 41
yield " <div class=\"modal fade ";
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.', 41, $this->source); })()), "modal_video_presentation", [], "any", false, false, false, 41), "class", [], "any", false, false, false, 41), "html", null, true);
yield "\" id=\"modal_video_presentation\" tabindex=\"-1\" aria-labelledby=\"modal_video_presentation_label\" aria-hidden=\"true\">
<div class=\"modal-dialog modal-dialog-centered\">
<div class=\"modal-content\">
<div class=\"modal-header bg-primary border-primary\">
<h5 class=\"modal-title\" id=\"modal_video_presentation_label\">";
// line 45
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.', 45, $this->source); })()), "modal_video_presentation", [], "any", false, false, false, 45), "title", [], "any", false, false, false, 45);
yield "</h5>
<button id=\"btn-close-modal\" type=\"button\" class=\"close btn-close ";
// line 46
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.', 46, $this->source); })()), "modal_video_presentation", [], "any", false, false, false, 46), "btn_close_class", [], "any", false, false, false, 46), "html", null, true);
yield "\" data-dismiss=\"modal\" aria-label=\"Close\">
<i class=\"bi bi-x-lg\"></i>
</button>
</div>
<div class=\"modal-body bg-primary border-primary\">
<video id=\"youtube_player\" controls >
";
// line 52
$context['_parent'] = $context;
$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.', 52, $this->source); })()), "modal_video_presentation", [], "any", false, false, false, 52), "sources", [], "any", false, false, false, 52));
foreach ($context['_seq'] as $context["type"] => $context["src"]) {
// line 53
yield " ";
if (CoreExtension::getAttribute($this->env, $this->source, $context["src"], "filename", [], "any", true, true, false, 53)) {
// line 54
yield " <source src=\"";
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, 54), "folder" => CoreExtension::getAttribute($this->env, $this->source, $context["src"], "folder", [], "any", false, false, false, 54)]), "html", null, true);
yield "\" type=\"video/";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["type"], "html", null, true);
yield "\">
";
} else {
// line 56
yield " <source src=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["src"], "html", null, true);
yield "\" type=\"video/";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["type"], "html", null, true);
yield "\">
";
}
// line 58
yield " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['type'], $context['src'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 59
yield " </video>
</div>
</div>
</div>
</div>
<div class=\"security-modal-btn security-modal-btn-animate ";
// line 65
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.', 65, $this->source); })()), "modal_video_presentation", [], "any", false, false, false, 65), "btn", [], "any", false, false, false, 65), "class", [], "any", false, false, false, 65), "html", null, true);
yield "\"
data-toggle=\"modal\"
data-target=\"#modal_video_presentation\">
";
// line 68
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.', 68, $this->source); })()), "modal_video_presentation", [], "any", false, false, false, 68), "btn", [], "any", false, false, false, 68), "content", [], "any", false, false, false, 68), "html", null, true);
yield "
</div>
";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 73
public function block_scripts($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "scripts"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "scripts"));
// line 74
yield " ";
yield from $this->yieldParentBlock("scripts", $context, $blocks);
yield "
<script>
window.addEventListener('load', addEventModal);
function addEventModal(){
\$('#modal_video_presentation').on('hidden.bs.modal', function (e) {
document.getElementById('youtube_player').pause();
});
\$('#modal_video_presentation').on('shown.bs.modal', function (e) {
document.getElementById('youtube_player').play();
});
}
</script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "security/login.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 306 => 74, 296 => 73, 281 => 68, 275 => 65, 267 => 59, 261 => 58, 253 => 56, 245 => 54, 242 => 53, 238 => 52, 229 => 46, 225 => 45, 217 => 41, 215 => 40, 211 => 38, 208 => 37, 194 => 36, 188 => 34, 185 => 33, 182 => 32, 179 => 31, 161 => 30, 159 => 29, 153 => 25, 147 => 23, 144 => 22, 138 => 21, 129 => 18, 124 => 17, 119 => 16, 115 => 15, 105 => 13, 95 => 12, 83 => 9, 77 => 8, 74 => 7, 64 => 6, 53 => 1, 51 => 4, 38 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'security/layout.html.twig' %}
{% set loginData = getFrontDataFromSettingOrYaml('front.security.login', platform_front('security.login') ) %}
{% block content_container %}
{% if loginData.content_container is defined %}
{{ loginData.content_container }}
{% else %}container{% endif %}
{% endblock %}
{% block content %}
<div class=\"row {% if loginData.row_justify is defined %}{{ loginData.row_justify }}{% else %}justify-content-between{% endif %}\">
<div class=\"col-md-6\">
{% for type, messages in app.flashes() %}
{% for message in messages %}
<div class=\"alert alert-{{ type }}\">
{{ message|raw }}
</div>
{% endfor %}
{% endfor %}
{% if error %}
<div class=\"alert alert-danger\">{{ error.messageKey|trans(error.messageData) }}</div>
{% endif %}
</div>
<div class=\"w-100\"></div>
{% if loginData.sections is defined %}
{% for k, el in loginData.sections %}
{% 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'] %}
{% include '@component/molecule/'~ el.type ~'.html.twig' with {'value': el, 'form': loginForm, 'hasFormRegister': hasFormRegister, componentKey: 'security.login.sections' } %}
{% elseif el.enabled and k is not same as('section_register') %}
{{ component(el,'security.login.sections.'~ k) }}
{% endif %}
{% endfor %}
{% endif %}
</div>
{% if loginData.modal_video_presentation is defined and loginData.modal_video_presentation.enabled %}
<div class=\"modal fade {{ loginData.modal_video_presentation.class }}\" id=\"modal_video_presentation\" tabindex=\"-1\" aria-labelledby=\"modal_video_presentation_label\" aria-hidden=\"true\">
<div class=\"modal-dialog modal-dialog-centered\">
<div class=\"modal-content\">
<div class=\"modal-header bg-primary border-primary\">
<h5 class=\"modal-title\" id=\"modal_video_presentation_label\">{{ loginData.modal_video_presentation.title|raw }}</h5>
<button id=\"btn-close-modal\" type=\"button\" class=\"close btn-close {{ loginData.modal_video_presentation.btn_close_class }}\" data-dismiss=\"modal\" aria-label=\"Close\">
<i class=\"bi bi-x-lg\"></i>
</button>
</div>
<div class=\"modal-body bg-primary border-primary\">
<video id=\"youtube_player\" controls >
{% for type,src in loginData.modal_video_presentation.sources %}
{% if src.filename is defined %}
<source src=\"{{ path('static_file_folder', {'fileName': src.filename, 'folder': src.folder}) }}\" type=\"video/{{ type }}\">
{% else %}
<source src=\"{{ src }}\" type=\"video/{{ type }}\">
{% endif %}
{% endfor %}
</video>
</div>
</div>
</div>
</div>
<div class=\"security-modal-btn security-modal-btn-animate {{ loginData.modal_video_presentation.btn.class }}\"
data-toggle=\"modal\"
data-target=\"#modal_video_presentation\">
{{ loginData.modal_video_presentation.btn.content }}
</div>
{% endif %}
{% endblock %}
{% block scripts %}
{{ parent() }}
<script>
window.addEventListener('load', addEventModal);
function addEventModal(){
\$('#modal_video_presentation').on('hidden.bs.modal', function (e) {
document.getElementById('youtube_player').pause();
});
\$('#modal_video_presentation').on('shown.bs.modal', function (e) {
document.getElementById('youtube_player').play();
});
}
</script>
{% endblock %}
", "security/login.html.twig", "/var/www/dtv-preprod/current/templates/security/login.html.twig");
}
}