<?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;
use Twig\TemplateWrapper;
/* dashboard_free/lesson-video.html.twig */
class __TwigTemplate_aa46bdb698679407c6755c774991b160 extends Template
{
private Source $source;
/**
* @var array<string, Template>
*/
private array $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'head' => [$this, 'block_head'],
'content' => [$this, 'block_content'],
];
}
protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
{
// line 1
return "dashboard_free/layout.html.twig";
}
protected function doDisplay(array $context, array $blocks = []): iterable
{
$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", "dashboard_free/lesson-video.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "dashboard_free/lesson-video.html.twig"));
$this->parent = $this->loadTemplate("dashboard_free/layout.html.twig", "dashboard_free/lesson-video.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 2
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_head(array $context, array $blocks = []): iterable
{
$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", "head"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "head"));
// line 3
yield " <meta name=\"description\" content=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["video"]) || array_key_exists("video", $context) ? $context["video"] : (function () { throw new RuntimeError('Variable "video" does not exist.', 3, $this->source); })()), "metaDescription", [], "any", false, false, false, 3), "html", null, true);
yield "\" />
<title>";
// line 4
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["find"]) || array_key_exists("find", $context) ? $context["find"] : (function () { throw new RuntimeError('Variable "find" does not exist.', 4, $this->source); })()), "title", [], "any", false, false, false, 4), "html", null, true);
yield " - Les Bons Profs</title>
<link rel=\"canonical\" href=\"";
// line 5
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["base_url_front"]) || array_key_exists("base_url_front", $context) ? $context["base_url_front"] : (function () { throw new RuntimeError('Variable "base_url_front" does not exist.', 5, $this->source); })()), "html", null, true);
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(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.', 5, $this->source); })()), "request", [], "any", false, false, false, 5), "attributes", [], "any", false, false, false, 5), "get", ["_route"], "method", false, false, false, 5), 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.', 5, $this->source); })()), "request", [], "any", false, false, false, 5), "attributes", [], "any", false, false, false, 5), "get", ["_route_params"], "method", false, false, false, 5)), "html", null, true);
yield "\" />
<!--Tags Facebook-->
<meta property=\"og:url\" content=\"";
// line 8
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["base_url_front"]) || array_key_exists("base_url_front", $context) ? $context["base_url_front"] : (function () { throw new RuntimeError('Variable "base_url_front" does not exist.', 8, $this->source); })()), "html", null, true);
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(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.', 8, $this->source); })()), "request", [], "any", false, false, false, 8), "attributes", [], "any", false, false, false, 8), "get", ["_route"], "method", false, false, false, 8), 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.', 8, $this->source); })()), "request", [], "any", false, false, false, 8), "attributes", [], "any", false, false, false, 8), "get", ["_route_params"], "method", false, false, false, 8)), "html", null, true);
yield "\" />
<meta property=\"og:type\" content=\"website\" />
<meta property=\"og:title\" content=\"";
// line 10
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["find"]) || array_key_exists("find", $context) ? $context["find"] : (function () { throw new RuntimeError('Variable "find" does not exist.', 10, $this->source); })()), "title", [], "any", false, false, false, 10), "html", null, true);
yield " - Les Bons Profs\" />
<meta property=\"og:description\" content=\"";
// line 11
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["video"]) || array_key_exists("video", $context) ? $context["video"] : (function () { throw new RuntimeError('Variable "video" does not exist.', 11, $this->source); })()), "metaDescription", [], "any", false, false, false, 11), "html", null, true);
yield "\" />
<meta property=\"og:image\" content=\"";
// line 12
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["base_url_front"]) || array_key_exists("base_url_front", $context) ? $context["base_url_front"] : (function () { throw new RuntimeError('Variable "base_url_front" does not exist.', 12, $this->source); })()), "html", null, true);
yield "/static/img/dashboard-free/eleve-cours-gratuit.webp\" />
<script type=\"application/ld+json\">
{
\"@context\": \"https://schema.org\",
\"@type\": \"VideoObject\",
\"name\": \"";
// line 17
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::capitalize($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, (isset($context["course"]) || array_key_exists("course", $context) ? $context["course"] : (function () { throw new RuntimeError('Variable "course" does not exist.', 17, $this->source); })()), "title", [], "any", false, false, false, 17)), "html", null, true);
yield "\",
\"description\": \"";
// line 18
if ( !(null === CoreExtension::getAttribute($this->env, $this->source, (isset($context["find"]) || array_key_exists("find", $context) ? $context["find"] : (function () { throw new RuntimeError('Variable "find" does not exist.', 18, $this->source); })()), "metadescription", [], "any", false, false, false, 18))) {
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["find"]) || array_key_exists("find", $context) ? $context["find"] : (function () { throw new RuntimeError('Variable "find" does not exist.', 18, $this->source); })()), "metadescription", [], "any", false, false, false, 18), "html", null, true);
} else {
yield "Cours de ";
if ((isset($context["find"]) || array_key_exists("find", $context) ? $context["find"] : (function () { throw new RuntimeError('Variable "find" does not exist.', 18, $this->source); })())) {
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, CoreExtension::getAttribute($this->env, $this->source, (isset($context["find"]) || array_key_exists("find", $context) ? $context["find"] : (function () { throw new RuntimeError('Variable "find" does not exist.', 18, $this->source); })()), "notion", [], "any", false, false, false, 18), "library", [], "any", false, false, false, 18), "discipline", [], "any", false, false, false, 18), "title", [], "any", false, false, false, 18), "html", null, true);
}
yield " pour ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["course"]) || array_key_exists("course", $context) ? $context["course"] : (function () { throw new RuntimeError('Variable "course" does not exist.', 18, $this->source); })()), "title", [], "any", false, false, false, 18), "html", null, true);
yield " : vidéos pédagogiques, exercices corrigés et méthodologie. Par Les Bons Profs.";
}
yield "\",
\"thumbnailUrl\": \"https://img.youtube.com/vi/";
// line 19
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["video"]) || array_key_exists("video", $context) ? $context["video"] : (function () { throw new RuntimeError('Variable "video" does not exist.', 19, $this->source); })()), "videoId", [], "any", false, false, false, 19), "html", null, true);
yield "/maxresdefault.jpg\",
\"uploadDate\": \"2025-06-16\",
\"duration\": \"";
// line 21
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["video"]) || array_key_exists("video", $context) ? $context["video"] : (function () { throw new RuntimeError('Variable "video" does not exist.', 21, $this->source); })()), "durationYoutube", [], "any", false, false, false, 21), "html", null, true);
yield "\",
\"contentUrl\": \"https://www.youtube.com/embed/";
// line 22
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["video"]) || array_key_exists("video", $context) ? $context["video"] : (function () { throw new RuntimeError('Variable "video" does not exist.', 22, $this->source); })()), "videoId", [], "any", false, false, false, 22), "html", null, true);
yield "\",
\"embedUrl\": \"https://www.youtube.com/embed/";
// line 23
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["video"]) || array_key_exists("video", $context) ? $context["video"] : (function () { throw new RuntimeError('Variable "video" does not exist.', 23, $this->source); })()), "videoId", [], "any", false, false, false, 23), "html", null, true);
yield "\",
\"publisher\": {
\"@type\": \"Organization\",
\"name\": \"Les Bons Profs\",
\"logo\": {
\"@type\": \"ImageObject\",
\"url\": \"https://lesbonsprofs.com/static/img/dashboard-free/les-bons-profs-logo.svg\"
}
},
\"teachingMode\": \"online\",
\"educationalLevel\": \"";
// line 33
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::capitalize($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, (isset($context["course"]) || array_key_exists("course", $context) ? $context["course"] : (function () { throw new RuntimeError('Variable "course" does not exist.', 33, $this->source); })()), "title", [], "any", false, false, false, 33)), "html", null, true);
yield "\",
\"inLanguage\": \"fr\",
\"learningResourceType\": \"VideoLesson\",
\"isAccessibleForFree\": true,
\"offers\": {
\"@type\": \"Offer\",
\"price\": \"0\",
\"priceCurrency\": \"EUR\",
\"availability\": \"https://schema.org/InStock\"
}
}
</script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 46
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_content(array $context, array $blocks = []): iterable
{
$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 47
yield "
<!-- Popup -->
<div x-cloak>
<!-- Fond noir transparent flouté -->
<div x-show=\"open\"
x-transition:enter=\"transition ease-out duration-300\"
x-transition:enter-start=\"opacity-0\"
x-transition:enter-end=\"opacity-100\"
x-transition:leave=\"transition ease-in duration-200\"
x-transition:leave-start=\"opacity-100\"
x-transition:leave-end=\"opacity-0\"
class=\"fixed inset-0 bg-black/50 backdrop-blur-sm z-40\"
@click=\"open = false\">
<!-- Contenu du popup -->
<div class=\"fixed inset-0 z-50 flex items-center justify-center\">
<div class=\"flex flex-col items-center bg-white border-8 border-miel rounded-lg p-4 sm:p-6 max-w-lg mx-4\" @click.stop>
<!-- Contenu à personnaliser -->
<p class=\"text-2xl text-bleu font-bold text-center mb-4\">Tous nos cours en ligne en accès gratuit</p>
<img src=\"";
// line 66
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["base_url"]) || array_key_exists("base_url", $context) ? $context["base_url"] : (function () { throw new RuntimeError('Variable "base_url" does not exist.', 66, $this->source); })()), "html", null, true);
yield "/static/img/dashboard-free/hibou-popup1.webp\" alt=\"Tous nos cours en ligne en accès gratuit\" class=\"w-40 z-10\">
<div class=\"flex justify-between bg-miel text-bleu font-bold rounded-lg columns-2 w-full sm:w-[90%] p-4 sm:p-5 -mt-[14px]\">
<ul>
<li class=\"flex items-baseline\"><img src=\"";
// line 69
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["base_url"]) || array_key_exists("base_url", $context) ? $context["base_url"] : (function () { throw new RuntimeError('Variable "base_url" does not exist.', 69, $this->source); })()), "html", null, true);
yield "/static/img/dashboard-free/coche-grenat.webp\" alt=\"Vidéos\" class=\"w-4 sm:w-5 mr-1\">Vidéos</li>
<li class=\"flex items-baseline\"><img src=\"";
// line 70
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["base_url"]) || array_key_exists("base_url", $context) ? $context["base_url"] : (function () { throw new RuntimeError('Variable "base_url" does not exist.', 70, $this->source); })()), "html", null, true);
yield "/static/img/dashboard-free/coche-grenat.webp\" alt=\"Fiches\" class=\"w-4 sm:w-5 mr-1\">Fiches</li>
<li class=\"flex items-baseline\"><img src=\"";
// line 71
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["base_url"]) || array_key_exists("base_url", $context) ? $context["base_url"] : (function () { throw new RuntimeError('Variable "base_url" does not exist.', 71, $this->source); })()), "html", null, true);
yield "/static/img/dashboard-free/coche-grenat.webp\" alt=\"QCM\" class=\"w-4 sm:w-5 mr-1\">QCM</li>
</ul>
<ul>
<li class=\"flex items-baseline\"><img src=\"";
// line 74
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["base_url"]) || array_key_exists("base_url", $context) ? $context["base_url"] : (function () { throw new RuntimeError('Variable "base_url" does not exist.', 74, $this->source); })()), "html", null, true);
yield "/static/img/dashboard-free/coche-grenat.webp\" alt=\"Exercices corrigés\" class=\"w-4 sm:w-5 mr-1\">Exercices corrigés</li>
<li class=\"flex items-baseline\"><img src=\"";
// line 75
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["base_url"]) || array_key_exists("base_url", $context) ? $context["base_url"] : (function () { throw new RuntimeError('Variable "base_url" does not exist.', 75, $this->source); })()), "html", null, true);
yield "/static/img/dashboard-free/coche-grenat.webp\" alt=\"Méthodologie\" class=\"w-4 sm:w-5 mr-1\">Méthodologie</li>
<li class=\"flex items-baseline\"><img src=\"";
// line 76
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["base_url"]) || array_key_exists("base_url", $context) ? $context["base_url"] : (function () { throw new RuntimeError('Variable "base_url" does not exist.', 76, $this->source); })()), "html", null, true);
yield "/static/img/dashboard-free/coche-grenat.webp\" alt=\"Compte parent\" class=\"w-4 sm:w-5 mr-1\">Compte parent</li>
</ul>
</div>
<p class=\"text-lg sm:text-2xl text-bleu text-center font-bold mt-4\">
Inscrivez-vous gratuitement
</p>
<p class=\"text-lg sm:text-xl text-center\">
pour accéder à tous nos cours en ligne
</p>
<p class=\"flex text-lg sm:text-xl text-bleu font-bold\">
pendant 7 jours <img src=\"";
// line 86
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["base_url"]) || array_key_exists("base_url", $context) ? $context["base_url"] : (function () { throw new RuntimeError('Variable "base_url" does not exist.', 86, $this->source); })()), "html", null, true);
yield "/static/img/dashboard-free/emphase-miel-dr.webp\" alt=\"Inscrivez-vous gratuitement\" class=\"w-[24px] mt-[12px]\">
</p>
<a href=\"";
// line 88
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["base_url_front"]) || array_key_exists("base_url_front", $context) ? $context["base_url_front"] : (function () { throw new RuntimeError('Variable "base_url_front" does not exist.', 88, $this->source); })()), "html", null, true);
yield "/nos-offres/\" class=\"bg-miel hover:bg-grenat text-bleu hover:text-white text-lg sm:text-xl font-bold py-2 px-4 rounded-full transition-colors mt-4\">
Obtenir mon accès gratuit
</a>
<p class=\"text-base sm:text-xl mt-4\">Déjà un compte ?
<a href=\"";
// line 92
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("app_login");
yield "\" class=\"text-bleu hover:text-grenat\">Je me connecte</a>
</p>
</div>
</div>
</div>
</div>
<div class=\"flex justify-center px-5 pt-[80px] md:pt-[110px] \">
<div class=\"text-[16px] w-[1160px]\">
<a href=\"https://www.lesbonsprofs.com/\" class=\"text-bleu\"><span class=\"text-[21px]\">⌂</span> Accueil</a> »
<a href=\"";
// line 102
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["base_url_front"]) || array_key_exists("base_url_front", $context) ? $context["base_url_front"] : (function () { throw new RuntimeError('Variable "base_url_front" does not exist.', 102, $this->source); })()), "html", null, true);
yield "/nos-cours/";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["course"]) || array_key_exists("course", $context) ? $context["course"] : (function () { throw new RuntimeError('Variable "course" does not exist.', 102, $this->source); })()), "slug", [], "any", false, false, false, 102), "html", null, true);
yield "\" class=\"text-bleu\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::capitalize($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, (isset($context["course"]) || array_key_exists("course", $context) ? $context["course"] : (function () { throw new RuntimeError('Variable "course" does not exist.', 102, $this->source); })()), "title", [], "any", false, false, false, 102)), "html", null, true);
yield "</a> » <a href=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_front_dashboard_discipline", ["courseSlug" => CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["find"]) || array_key_exists("find", $context) ? $context["find"] : (function () { throw new RuntimeError('Variable "find" does not exist.', 102, $this->source); })()), "notion", [], "any", false, false, false, 102), "library", [], "any", false, false, false, 102), "course", [], "any", false, false, false, 102), "slug", [], "any", false, false, false, 102), "disciplineSlug" => CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["find"]) || array_key_exists("find", $context) ? $context["find"] : (function () { throw new RuntimeError('Variable "find" does not exist.', 102, $this->source); })()), "notion", [], "any", false, false, false, 102), "library", [], "any", false, false, false, 102), "discipline", [], "any", false, false, false, 102), "slugLesson", [], "any", false, false, false, 102)]), "html", null, true);
yield "\" class=\"text-bleu\">";
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, CoreExtension::getAttribute($this->env, $this->source, (isset($context["find"]) || array_key_exists("find", $context) ? $context["find"] : (function () { throw new RuntimeError('Variable "find" does not exist.', 102, $this->source); })()), "notion", [], "any", false, false, false, 102), "library", [], "any", false, false, false, 102), "discipline", [], "any", false, false, false, 102), "title", [], "any", false, false, false, 102), "html", null, true);
yield "</a> » ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["find"]) || array_key_exists("find", $context) ? $context["find"] : (function () { throw new RuntimeError('Variable "find" does not exist.', 102, $this->source); })()), "notion", [], "any", false, false, false, 102), "title", [], "any", false, false, false, 102), "html", null, true);
yield "
</div>
</div>
<!-- Bloc Contenu -->
<section class=\"flex justify-center px-5 pt-[20px]\">
<div class=\"flex flex-col md:flex-row w-[1160px] relative\">
<!-- Menu gauche -->
<aside id=\"menu-gauche\" class=\"w-full md:w-[275px] absolute bg-rose md:bg-inherit mb-5 md:mb-0\">
";
// line 113
yield from $this->loadTemplate("dashboard_free/menu-gauche.html.twig", "dashboard_free/lesson-video.html.twig", 113)->unwrap()->yield($context);
// line 114
yield "
<div class=\"hidden md:flex flex-col justify-center text-center text-sm items-center border-2 border-miel rounded-lg gap-4 my-5 py-5\">
<img src=\"";
// line 116
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["base_url"]) || array_key_exists("base_url", $context) ? $context["base_url"] : (function () { throw new RuntimeError('Variable "base_url" does not exist.', 116, $this->source); })()), "html", null, true);
yield "/static/img/dashboard-free/hibou-bons-profs.webp\" alt=\"Les bons profs - Cours gratuits\" class=\"w-20\" />
<p>
Envie de tester gratuitement nos vidéos de cours enrichies de jeux interactifs ?
</p>
<a href=\"#\" class=\"block bg-grenat hover:bg-bleu text-white py-2 px-4 rounded-full text-center transition-colors\">
J'essaie gratuitement
</a>
<p>Déjà un compte ? <a href=\"\" class=\"text-bleu hover:text-grenat\">Je me connecte</a> </p>
</div>
</aside>
<!-- Partie droite -->
<section class=\"md:ml-[300px] md:w-[calc(100%-275px)]\">
<div class=\"mb-4\">
<!-- En-têtes des onglets -->
<div class=\"flex gap-1\">
<button class=\"md:px-4 py-2 text-[3vw] sm:text-[2.5vw] md:text-sm font-bold text-white bg-lavande rounded-t-lg w-full\" data-tab=\"video\">
Vidéo
</button>
<button @click.prevent=\"open = true\" class=\"md:px-4 py-2 text-[3vw] sm:text-[2.5vw] md:text-sm font-bold text-lavande bg-lavandePastel hover:text-bleu rounded-t-lg w-full\" data-tab=\"fiche\">
Fiche
</button>
<button @click.prevent=\"open = true\" class=\"md:px-4 py-2 text-[3vw] sm:text-[2.5vw] md:text-sm font-bold text-lavande bg-lavandePastel hover:text-bleu rounded-t-lg w-full\" data-tab=\"qcm\">
QCM
</button>
<button @click.prevent=\"open = true\" class=\"md:px-4 py-2 text-[3vw] sm:text-[2.5vw] md:text-sm font-bold text-lavande bg-lavandePastel hover:text-bleu rounded-t-lg w-full\" data-tab=\"exercice\">
Exercice
</button>
<button @click.prevent=\"open = true\" class=\"md:px-4 py-2 text-[3vw] sm:text-[2.5vw] md:text-sm font-bold text-lavande bg-lavandePastel hover:text-bleu rounded-t-lg w-full\" data-tab=\"annale\">
Annale Bac
</button>
<button @click.prevent=\"open = true\" class=\"md:px-4 py-2 text-[3vw] sm:text-[2.5vw] md:text-sm font-bold text-lavande bg-lavandePastel hover:text-bleu rounded-t-lg w-full\" data-tab=\"carte\">
Carte mentale
</button>
</div>
<!-- Contenu des onglets -->
<div class=\"pt-4 md:p-4\">
<div id=\"video\" class=\"tab-panel text-justify\">
<h1 class=\"font-bold capitalize text-2xl my-3\">";
// line 158
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["video"]) || array_key_exists("video", $context) ? $context["video"] : (function () { throw new RuntimeError('Variable "video" does not exist.', 158, $this->source); })()), "title", [], "any", false, false, false, 158), "html", null, true);
yield "</h1>
";
// line 160
yield " <iframe class=\"w-full mb-4\" height=\"442\"
src=\"https://www.youtube.com/embed/";
// line 161
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["video"]) || array_key_exists("video", $context) ? $context["video"] : (function () { throw new RuntimeError('Variable "video" does not exist.', 161, $this->source); })()), "videoId", [], "any", false, false, false, 161), "html", null, true);
yield "?controls=0\">
</iframe>
";
// line 164
yield " <iframe class=\"w-full mb-4\" id=\"description-video-iframe\"
style=\"min-height: 200px\" scrolling=\"no\"
src=\"";
// line 166
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("app_front_dashboard_descripyion_video", ["videoSlug" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["video"]) || array_key_exists("video", $context) ? $context["video"] : (function () { throw new RuntimeError('Variable "video" does not exist.', 166, $this->source); })()), "slug", [], "any", false, false, false, 166)]), "html", null, true);
yield "\"></iframe>
</div>
</div>
<div class=\"flex md:hidden justify-center\">
<div class=\"flex flex-col justify-center text-center text-sm items-center border-2 border-miel rounded-lg gap-4 my-5 py-5 w-[275px]\">
<img src=\"/static/img/dashboard-free/hibou-bons-profs.webp\" alt=\"Les bons profs - Cours gratuits\" class=\"w-20\" />
<p>
Envie de tester gratuitement nos vidéos de cours enrichies de jeux interactifs ?
</p>
<a href=\"#\" class=\"block bg-grenat hover:bg-bleu text-white py-2 px-4 rounded-full text-center transition-colors\">
J'essaie gratuitement
</a>
<p>Déjà un compte ? <a href=\"\" class=\"text-bleu hover:text-grenat\">Je me connecte</a> </p>
</div>
</div>
</section>
</div>
</section>
<script src=\"https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS_HTML-full\"></script>
<script type=\"text/x-mathjax-config\">
MathJax.Hub.Config({
extensions: [\"tex2jax.js\"],
jax: [\"input/TeX\", \"output/HTML-CSS\"],
tex2jax: {
inlineMath: [ ['\$','\$'], [\"\\\\(\",\"\\\\)\"] ],
displayMath: [ ['\$\$','\$\$'], [\"\\\\[\",\"\\\\]\"] ],
processEscapes: true
},
\"HTML-CSS\": { fonts: [\"TeX\"] }
});
</script>
<script type=\"text/javascript\">
document.addEventListener('DOMContentLoaded', function() {
// Fonction pour recevoir la hauteur depuis l'iframe
window.addEventListener('message', function(e) {
const iframe = document.getElementById('description-video-iframe');
if (iframe && e.data.type === 'setHeight') {
iframe.style.height = e.data.height + 'px';
}
});
});
</script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "dashboard_free/lesson-video.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 374 => 166, 370 => 164, 365 => 161, 362 => 160, 358 => 158, 313 => 116, 309 => 114, 307 => 113, 283 => 102, 270 => 92, 263 => 88, 258 => 86, 245 => 76, 241 => 75, 237 => 74, 231 => 71, 227 => 70, 223 => 69, 217 => 66, 196 => 47, 183 => 46, 159 => 33, 146 => 23, 142 => 22, 138 => 21, 133 => 19, 119 => 18, 115 => 17, 107 => 12, 103 => 11, 99 => 10, 93 => 8, 86 => 5, 82 => 4, 77 => 3, 64 => 2, 41 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% extends 'dashboard_free/layout.html.twig' %}
{% block head %}
<meta name=\"description\" content=\"{{ video.metaDescription }}\" />
<title>{{ find.title }} - Les Bons Profs</title>
<link rel=\"canonical\" href=\"{{ base_url_front }}{{ path(app.request.attributes.get('_route'), app.request.attributes.get('_route_params')) }}\" />
<!--Tags Facebook-->
<meta property=\"og:url\" content=\"{{ base_url_front }}{{ path(app.request.attributes.get('_route'), app.request.attributes.get('_route_params')) }}\" />
<meta property=\"og:type\" content=\"website\" />
<meta property=\"og:title\" content=\"{{ find.title }} - Les Bons Profs\" />
<meta property=\"og:description\" content=\"{{ video.metaDescription }}\" />
<meta property=\"og:image\" content=\"{{ base_url_front }}/static/img/dashboard-free/eleve-cours-gratuit.webp\" />
<script type=\"application/ld+json\">
{
\"@context\": \"https://schema.org\",
\"@type\": \"VideoObject\",
\"name\": \"{{ course.title|capitalize }}\",
\"description\": \"{% if find.metadescription is not null %}{{ find.metadescription }}{% else %}Cours de {% if find %}{{ find.notion.library.discipline.title }}{% endif %} pour {{ course.title }} : vidéos pédagogiques, exercices corrigés et méthodologie. Par Les Bons Profs.{% endif %}\",
\"thumbnailUrl\": \"https://img.youtube.com/vi/{{ video.videoId }}/maxresdefault.jpg\",
\"uploadDate\": \"2025-06-16\",
\"duration\": \"{{ video.durationYoutube }}\",
\"contentUrl\": \"https://www.youtube.com/embed/{{ video.videoId }}\",
\"embedUrl\": \"https://www.youtube.com/embed/{{ video.videoId }}\",
\"publisher\": {
\"@type\": \"Organization\",
\"name\": \"Les Bons Profs\",
\"logo\": {
\"@type\": \"ImageObject\",
\"url\": \"https://lesbonsprofs.com/static/img/dashboard-free/les-bons-profs-logo.svg\"
}
},
\"teachingMode\": \"online\",
\"educationalLevel\": \"{{ course.title|capitalize }}\",
\"inLanguage\": \"fr\",
\"learningResourceType\": \"VideoLesson\",
\"isAccessibleForFree\": true,
\"offers\": {
\"@type\": \"Offer\",
\"price\": \"0\",
\"priceCurrency\": \"EUR\",
\"availability\": \"https://schema.org/InStock\"
}
}
</script>
{% endblock %}
{% block content %}
<!-- Popup -->
<div x-cloak>
<!-- Fond noir transparent flouté -->
<div x-show=\"open\"
x-transition:enter=\"transition ease-out duration-300\"
x-transition:enter-start=\"opacity-0\"
x-transition:enter-end=\"opacity-100\"
x-transition:leave=\"transition ease-in duration-200\"
x-transition:leave-start=\"opacity-100\"
x-transition:leave-end=\"opacity-0\"
class=\"fixed inset-0 bg-black/50 backdrop-blur-sm z-40\"
@click=\"open = false\">
<!-- Contenu du popup -->
<div class=\"fixed inset-0 z-50 flex items-center justify-center\">
<div class=\"flex flex-col items-center bg-white border-8 border-miel rounded-lg p-4 sm:p-6 max-w-lg mx-4\" @click.stop>
<!-- Contenu à personnaliser -->
<p class=\"text-2xl text-bleu font-bold text-center mb-4\">Tous nos cours en ligne en accès gratuit</p>
<img src=\"{{ base_url }}/static/img/dashboard-free/hibou-popup1.webp\" alt=\"Tous nos cours en ligne en accès gratuit\" class=\"w-40 z-10\">
<div class=\"flex justify-between bg-miel text-bleu font-bold rounded-lg columns-2 w-full sm:w-[90%] p-4 sm:p-5 -mt-[14px]\">
<ul>
<li class=\"flex items-baseline\"><img src=\"{{ base_url }}/static/img/dashboard-free/coche-grenat.webp\" alt=\"Vidéos\" class=\"w-4 sm:w-5 mr-1\">Vidéos</li>
<li class=\"flex items-baseline\"><img src=\"{{ base_url }}/static/img/dashboard-free/coche-grenat.webp\" alt=\"Fiches\" class=\"w-4 sm:w-5 mr-1\">Fiches</li>
<li class=\"flex items-baseline\"><img src=\"{{ base_url }}/static/img/dashboard-free/coche-grenat.webp\" alt=\"QCM\" class=\"w-4 sm:w-5 mr-1\">QCM</li>
</ul>
<ul>
<li class=\"flex items-baseline\"><img src=\"{{ base_url }}/static/img/dashboard-free/coche-grenat.webp\" alt=\"Exercices corrigés\" class=\"w-4 sm:w-5 mr-1\">Exercices corrigés</li>
<li class=\"flex items-baseline\"><img src=\"{{ base_url }}/static/img/dashboard-free/coche-grenat.webp\" alt=\"Méthodologie\" class=\"w-4 sm:w-5 mr-1\">Méthodologie</li>
<li class=\"flex items-baseline\"><img src=\"{{ base_url }}/static/img/dashboard-free/coche-grenat.webp\" alt=\"Compte parent\" class=\"w-4 sm:w-5 mr-1\">Compte parent</li>
</ul>
</div>
<p class=\"text-lg sm:text-2xl text-bleu text-center font-bold mt-4\">
Inscrivez-vous gratuitement
</p>
<p class=\"text-lg sm:text-xl text-center\">
pour accéder à tous nos cours en ligne
</p>
<p class=\"flex text-lg sm:text-xl text-bleu font-bold\">
pendant 7 jours <img src=\"{{ base_url }}/static/img/dashboard-free/emphase-miel-dr.webp\" alt=\"Inscrivez-vous gratuitement\" class=\"w-[24px] mt-[12px]\">
</p>
<a href=\"{{ base_url_front }}/nos-offres/\" class=\"bg-miel hover:bg-grenat text-bleu hover:text-white text-lg sm:text-xl font-bold py-2 px-4 rounded-full transition-colors mt-4\">
Obtenir mon accès gratuit
</a>
<p class=\"text-base sm:text-xl mt-4\">Déjà un compte ?
<a href=\"{{ url(\"app_login\") }}\" class=\"text-bleu hover:text-grenat\">Je me connecte</a>
</p>
</div>
</div>
</div>
</div>
<div class=\"flex justify-center px-5 pt-[80px] md:pt-[110px] \">
<div class=\"text-[16px] w-[1160px]\">
<a href=\"https://www.lesbonsprofs.com/\" class=\"text-bleu\"><span class=\"text-[21px]\">⌂</span> Accueil</a> »
<a href=\"{{ base_url_front }}/nos-cours/{{ course.slug }}\" class=\"text-bleu\">{{ course.title|capitalize }}</a> » <a href=\"{{ path('app_front_dashboard_discipline',{'courseSlug':find.notion.library.course.slug,'disciplineSlug':find.notion.library.discipline.slugLesson}) }}\" class=\"text-bleu\">{{ find.notion.library.discipline.title }}</a> » {{ find.notion.title }}
</div>
</div>
<!-- Bloc Contenu -->
<section class=\"flex justify-center px-5 pt-[20px]\">
<div class=\"flex flex-col md:flex-row w-[1160px] relative\">
<!-- Menu gauche -->
<aside id=\"menu-gauche\" class=\"w-full md:w-[275px] absolute bg-rose md:bg-inherit mb-5 md:mb-0\">
{% include 'dashboard_free/menu-gauche.html.twig' %}
<div class=\"hidden md:flex flex-col justify-center text-center text-sm items-center border-2 border-miel rounded-lg gap-4 my-5 py-5\">
<img src=\"{{ base_url }}/static/img/dashboard-free/hibou-bons-profs.webp\" alt=\"Les bons profs - Cours gratuits\" class=\"w-20\" />
<p>
Envie de tester gratuitement nos vidéos de cours enrichies de jeux interactifs ?
</p>
<a href=\"#\" class=\"block bg-grenat hover:bg-bleu text-white py-2 px-4 rounded-full text-center transition-colors\">
J'essaie gratuitement
</a>
<p>Déjà un compte ? <a href=\"\" class=\"text-bleu hover:text-grenat\">Je me connecte</a> </p>
</div>
</aside>
<!-- Partie droite -->
<section class=\"md:ml-[300px] md:w-[calc(100%-275px)]\">
<div class=\"mb-4\">
<!-- En-têtes des onglets -->
<div class=\"flex gap-1\">
<button class=\"md:px-4 py-2 text-[3vw] sm:text-[2.5vw] md:text-sm font-bold text-white bg-lavande rounded-t-lg w-full\" data-tab=\"video\">
Vidéo
</button>
<button @click.prevent=\"open = true\" class=\"md:px-4 py-2 text-[3vw] sm:text-[2.5vw] md:text-sm font-bold text-lavande bg-lavandePastel hover:text-bleu rounded-t-lg w-full\" data-tab=\"fiche\">
Fiche
</button>
<button @click.prevent=\"open = true\" class=\"md:px-4 py-2 text-[3vw] sm:text-[2.5vw] md:text-sm font-bold text-lavande bg-lavandePastel hover:text-bleu rounded-t-lg w-full\" data-tab=\"qcm\">
QCM
</button>
<button @click.prevent=\"open = true\" class=\"md:px-4 py-2 text-[3vw] sm:text-[2.5vw] md:text-sm font-bold text-lavande bg-lavandePastel hover:text-bleu rounded-t-lg w-full\" data-tab=\"exercice\">
Exercice
</button>
<button @click.prevent=\"open = true\" class=\"md:px-4 py-2 text-[3vw] sm:text-[2.5vw] md:text-sm font-bold text-lavande bg-lavandePastel hover:text-bleu rounded-t-lg w-full\" data-tab=\"annale\">
Annale Bac
</button>
<button @click.prevent=\"open = true\" class=\"md:px-4 py-2 text-[3vw] sm:text-[2.5vw] md:text-sm font-bold text-lavande bg-lavandePastel hover:text-bleu rounded-t-lg w-full\" data-tab=\"carte\">
Carte mentale
</button>
</div>
<!-- Contenu des onglets -->
<div class=\"pt-4 md:p-4\">
<div id=\"video\" class=\"tab-panel text-justify\">
<h1 class=\"font-bold capitalize text-2xl my-3\">{{ video.title }}</h1>
{#<video controls class=\"w-full\"></video>#}
<iframe class=\"w-full mb-4\" height=\"442\"
src=\"https://www.youtube.com/embed/{{ video.videoId }}?controls=0\">
</iframe>
{#<h2 class=\"font-bold text-xl my-3\">Sous-titre</h2>#}
<iframe class=\"w-full mb-4\" id=\"description-video-iframe\"
style=\"min-height: 200px\" scrolling=\"no\"
src=\"{{ url('app_front_dashboard_descripyion_video',{'videoSlug':video.slug}) }}\"></iframe>
</div>
</div>
<div class=\"flex md:hidden justify-center\">
<div class=\"flex flex-col justify-center text-center text-sm items-center border-2 border-miel rounded-lg gap-4 my-5 py-5 w-[275px]\">
<img src=\"/static/img/dashboard-free/hibou-bons-profs.webp\" alt=\"Les bons profs - Cours gratuits\" class=\"w-20\" />
<p>
Envie de tester gratuitement nos vidéos de cours enrichies de jeux interactifs ?
</p>
<a href=\"#\" class=\"block bg-grenat hover:bg-bleu text-white py-2 px-4 rounded-full text-center transition-colors\">
J'essaie gratuitement
</a>
<p>Déjà un compte ? <a href=\"\" class=\"text-bleu hover:text-grenat\">Je me connecte</a> </p>
</div>
</div>
</section>
</div>
</section>
<script src=\"https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS_HTML-full\"></script>
<script type=\"text/x-mathjax-config\">
MathJax.Hub.Config({
extensions: [\"tex2jax.js\"],
jax: [\"input/TeX\", \"output/HTML-CSS\"],
tex2jax: {
inlineMath: [ ['\$','\$'], [\"\\\\(\",\"\\\\)\"] ],
displayMath: [ ['\$\$','\$\$'], [\"\\\\[\",\"\\\\]\"] ],
processEscapes: true
},
\"HTML-CSS\": { fonts: [\"TeX\"] }
});
</script>
<script type=\"text/javascript\">
document.addEventListener('DOMContentLoaded', function() {
// Fonction pour recevoir la hauteur depuis l'iframe
window.addEventListener('message', function(e) {
const iframe = document.getElementById('description-video-iframe');
if (iframe && e.data.type === 'setHeight') {
iframe.style.height = e.data.height + 'px';
}
});
});
</script>
{% endblock %}
", "dashboard_free/lesson-video.html.twig", "/var/www/dashboard/templates/dashboard_free/lesson-video.html.twig");
}
}