var/cache/dev/twig/38/3877cf3f18fa5db2d11504d6d966bc0a.php line 56

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\MacroNamespace;
  8. use Twig\Markup;
  9. use Twig\Sandbox\SecurityError;
  10. use Twig\Sandbox\SecurityNotAllowedTagError;
  11. use Twig\Sandbox\SecurityNotAllowedFilterError;
  12. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  13. use Twig\Sandbox\SecurityNotAllowedTestError;
  14. use Twig\Source;
  15. use Twig\Template;
  16. use Twig\TemplateWrapper;
  17. /* Front/Scholar/Lesson/show.html.twig */
  18. class __TwigTemplate_b28f8784dd106abdf7a134fffed940f5 extends Template
  19. {
  20. private Source $source;
  21. /**
  22. * @var array<string, MacroNamespace>
  23. */
  24. private array $macros = [];
  25. private \Twig\Runtime\EscaperRuntime $escaper;
  26. public function __construct(Environment $env)
  27. {
  28. parent::__construct($env);
  29. $this->source = $this->getSourceContext();
  30. $this->escaper = $env->getRuntime('Twig\Runtime\EscaperRuntime');
  31. $this->blocks = [
  32. 'back_to_dashboard' => [$this, 'block_back_to_dashboard'],
  33. 'title' => [$this, 'block_title'],
  34. 'stylesheets' => [$this, 'block_stylesheets'],
  35. 'before_navbar' => [$this, 'block_before_navbar'],
  36. 'body_markup' => [$this, 'block_body_markup'],
  37. 'content' => [$this, 'block_content'],
  38. 'inner_content' => [$this, 'block_inner_content'],
  39. 'body' => [$this, 'block_body'],
  40. 'javascripts' => [$this, 'block_javascripts'],
  41. ];
  42. }
  43. protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  44. {
  45. // line 1
  46. return $this->parent ??= $this->load("base.html.twig", 1);
  47. }
  48. protected function doDisplay(array $context, array $blocks = []): iterable
  49. {
  50. $macros = $this->macros;
  51. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  52. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Front/Scholar/Lesson/show.html.twig"));
  53. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Front/Scholar/Lesson/show.html.twig"));
  55. // line 9
  56. $context["currentRoute"] = 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.', 9, $this->source); })()), "request", [], "any", false, false, false, 9), "attributes", [], "any", false, false, false, 9), "get", ["_route"], "method", false, false, false, 9);
  57. // line 1
  58. $this->parent = $this->load("base.html.twig", 1);
  59. yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  60. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  61. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  62. }
  63. // line 3
  64. /**
  65. * @return iterable<null|scalar|\Stringable>
  66. */
  67. public function block_back_to_dashboard(array $context, array $blocks = []): iterable
  68. {
  69. $macros = $this->macros;
  70. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  71. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "back_to_dashboard"));
  72. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  73. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "back_to_dashboard"));
  74. // line 4
  75. yield " ";
  76. yield from $this->load("Front/Scholar/Partial/_back_to_dashboard.html.twig", 4)->unwrap()->yield($context);
  77. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  78. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  79. return; yield;
  80. }
  81. // line 7
  82. /**
  83. * @return iterable<null|scalar|\Stringable>
  84. */
  85. public function block_title(array $context, array $blocks = []): iterable
  86. {
  87. $macros = $this->macros;
  88. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  89. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
  90. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  91. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
  92. yield (string) $this->escaper->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["lesson"]) || array_key_exists("lesson", $context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.', 7, $this->source); })()), "name", [], "any", false, false, false, 7), "html", null, true);
  93. yield " - ";
  94. yield from $this->yieldParentBlock("title", $context, $blocks);
  95. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  96. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  97. return; yield;
  98. }
  99. // line 11
  100. /**
  101. * @return iterable<null|scalar|\Stringable>
  102. */
  103. public function block_stylesheets(array $context, array $blocks = []): iterable
  104. {
  105. $macros = $this->macros;
  106. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  107. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
  108. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  109. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
  110. // line 12
  111. yield " ";
  112. yield from $this->yieldParentBlock("stylesheets", $context, $blocks);
  113. yield "
  114. ";
  115. // line 13
  116. yield (string) $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackLinkTags("styles", "core", "core");
  117. yield "
  118. ";
  119. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  120. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  121. return; yield;
  122. }
  123. // line 16
  124. /**
  125. * @return iterable<null|scalar|\Stringable>
  126. */
  127. public function block_before_navbar(array $context, array $blocks = []): iterable
  128. {
  129. $macros = $this->macros;
  130. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  131. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "before_navbar"));
  132. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  133. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "before_navbar"));
  134. // line 17
  135. yield " ";
  136. yield from $this->load("Front/Scholar/Partial/_preview_manager_heager.html.twig", 17)->unwrap()->yield(CoreExtension::merge($context, ["channel" => // line 18
  137. (isset($context["channel"]) || array_key_exists("channel", $context) ? $context["channel"] : (function () { throw new RuntimeError('Variable "channel" does not exist.', 18, $this->source); })()), "currentRoute" => // line 19
  138. (isset($context["currentRoute"]) || array_key_exists("currentRoute", $context) ? $context["currentRoute"] : (function () { throw new RuntimeError('Variable "currentRoute" does not exist.', 19, $this->source); })())]));
  139. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  140. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  141. return; yield;
  142. }
  143. // line 23
  144. /**
  145. * @return iterable<null|scalar|\Stringable>
  146. */
  147. public function block_body_markup(array $context, array $blocks = []): iterable
  148. {
  149. $macros = $this->macros;
  150. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  151. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body_markup"));
  152. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  153. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body_markup"));
  154. // line 24
  155. yield "<body class=\"progression lesson-view ";
  156. if ((($tmp = $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_REMEMBERED")) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  157. yield "logged-in";
  158. }
  159. yield "\"
  160. style=\"font-family: \x27Poppins\x27;\"
  161. id=\"page-training-lesson\"
  162. ";
  163. // line 27
  164. if (((isset($context["currentRoute"]) || array_key_exists("currentRoute", $context) ? $context["currentRoute"] : (function () { throw new RuntimeError('Variable "currentRoute" does not exist.', 27, $this->source); })()) == "front_channel_lesson_show")) {
  165. // line 28
  166. yield " data-training_id=";
  167. yield (string) $this->escaper->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["training"]) || array_key_exists("training", $context) ? $context["training"] : (function () { throw new RuntimeError('Variable "training" does not exist.', 28, $this->source); })()), "id", [], "any", false, false, false, 28), "html", null, true);
  168. yield "
  169. data-module_id=";
  170. // line 29
  171. yield (string) $this->escaper->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["module"]) || array_key_exists("module", $context) ? $context["module"] : (function () { throw new RuntimeError('Variable "module" does not exist.', 29, $this->source); })()), "id", [], "any", false, false, false, 29), "html", null, true);
  172. yield "
  173. data-lesson_id=";
  174. // line 30
  175. yield (string) $this->escaper->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["lesson"]) || array_key_exists("lesson", $context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.', 30, $this->source); })()), "id", [], "any", false, false, false, 30), "html", null, true);
  176. yield "
  177. ";
  178. }
  179. // line 32
  180. yield ">
  181. ";
  182. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  183. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  184. return; yield;
  185. }
  186. // line 35
  187. /**
  188. * @return iterable<null|scalar|\Stringable>
  189. */
  190. public function block_content(array $context, array $blocks = []): iterable
  191. {
  192. $macros = $this->macros;
  193. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  194. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  195. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  196. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  197. // line 36
  198. yield " ";
  199. if (CoreExtension::inFilter((isset($context["currentRoute"]) || array_key_exists("currentRoute", $context) ? $context["currentRoute"] : (function () { throw new RuntimeError('Variable "currentRoute" does not exist.', 36, $this->source); })()), ["front_channel_lesson_show", "front_channel_lesson_show_without_training", "manager_channel_module_lesson_show", "manager_channel_training_module_lesson_show"])) {
  200. // line 37
  201. yield " ";
  202. $context["trainingModuleLessons"] = $this->env->getRuntime('App\Twig\Runtime\Scholar\ScholarModuleRuntime')->getLessons((isset($context["module"]) || array_key_exists("module", $context) ? $context["module"] : (function () { throw new RuntimeError('Variable "module" does not exist.', 37, $this->source); })()));
  203. // line 38
  204. yield " ";
  205. } elseif (CoreExtension::inFilter((isset($context["currentRoute"]) || array_key_exists("currentRoute", $context) ? $context["currentRoute"] : (function () { throw new RuntimeError('Variable "currentRoute" does not exist.', 38, $this->source); })()), ["manager_channel_lesson_show"])) {
  206. // line 39
  207. yield " ";
  208. $context["trainingModuleLessons"] = [(isset($context["lesson"]) || array_key_exists("lesson", $context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.', 39, $this->source); })())];
  209. // line 40
  210. yield " ";
  211. }
  212. // line 41
  213. yield "
  214. ";
  215. // line 42
  216. if ((($tmp = 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.', 42, $this->source); })()), "user", [], "any", false, false, false, 42)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  217. // line 43
  218. yield " ";
  219. $preRendered = $this->extensions["Symfony\\UX\\TwigComponent\\Twig\\ComponentExtension"]->extensionPreCreateForRender("ChannelUserData:CursusLockout", Twig\Extension\CoreExtension::toArray(["cursus" => (((array_key_exists("cursus", $context) && !(null === $context["cursus"]))) ? ($context["cursus"]) : (null))]));
  220. if (null !== $preRendered) {
  221. echo $preRendered;
  222. } else {
  223. $preRenderEvent = $this->extensions["Symfony\\UX\\TwigComponent\\Twig\\ComponentExtension"]->startEmbeddedComponentRender("ChannelUserData:CursusLockout", Twig\Extension\CoreExtension::toArray(["cursus" => (((array_key_exists("cursus", $context) && !(null === $context["cursus"]))) ? ($context["cursus"]) : (null))]), $context, "Front/Scholar/Lesson/show.html.twig", 8618838181);
  224. $embeddedContext = $preRenderEvent->getVariables();
  225. $embeddedContext["__parent__"] = $preRenderEvent->getTemplate();
  226. if (!isset($embeddedContext["outerBlocks"])) {
  227. $embeddedContext["outerBlocks"] = new \Symfony\UX\TwigComponent\BlockStack();
  228. }
  229. $embeddedBlocks = $embeddedContext["outerBlocks"]->convert($blocks, 8618838181);
  230. $this->loadTemplate("Front/Scholar/Lesson/show.html.twig", "Front/Scholar/Lesson/show.html.twig", 43, "8618838181")->display($embeddedContext, $embeddedBlocks);
  231. $this->extensions["Symfony\\UX\\TwigComponent\\Twig\\ComponentExtension"]->finishEmbeddedComponentRender();
  232. }
  233. // line 44
  234. yield " ";
  235. }
  236. // line 45
  237. yield "
  238. ";
  239. // line 46
  240. yield from $this->load("Front/Scholar/Partial/_menu_lessons_mobile.html.twig", 46)->unwrap()->yield($context);
  241. // line 47
  242. yield "
  243. <div class=\"container pt-md-5 pb-md-5 pt-3 pb-3 summary-lesson font-size-14\">
  244. <div class=\"row\">
  245. <div class=\"col-md-9 col-12\">
  246. <div>
  247. ";
  248. // line 52
  249. $context['_parent'] = $context;
  250. $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.', 52, $this->source); })()), "flashes", [], "method", false, false, false, 52));
  251. foreach ($context['_seq'] as $context["key"] => $context["messageType"]) {
  252. // line 53
  253. yield " <div>
  254. ";
  255. // line 54
  256. $context['_parent'] = $context;
  257. $context['_seq'] = CoreExtension::ensureTraversable($context["messageType"]);
  258. foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
  259. // line 55
  260. yield " <div class=\"alert alert-";
  261. yield (string) $this->escaper->escape(Twig\Extension\CoreExtension::replace($context["key"], ["error" => "danger"]), "html", null, true);
  262. yield "\">
  263. ";
  264. // line 56
  265. yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($context["message"]), "html", null, true);
  266. yield "
  267. </div>
  268. ";
  269. }
  270. $_parent = $context['_parent'];
  271. unset($context['_seq'], $context['_key'], $context['message'], $context['_parent']);
  272. $context = array_intersect_key($context, $_parent);
  273. $context += $_parent;
  274. // line 59
  275. yield " </div>
  276. ";
  277. }
  278. $_parent = $context['_parent'];
  279. unset($context['_seq'], $context['key'], $context['messageType'], $context['_parent']);
  280. $context = array_intersect_key($context, $_parent);
  281. $context += $_parent;
  282. // line 61
  283. yield " </div>
  284. <h2 class=\"v2-title-big\">";
  285. // line 63
  286. yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.lesson.show.summary_title.label", ["%name%" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["lesson"]) || array_key_exists("lesson", $context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.', 63, $this->source); })()), "name", [], "any", false, false, false, 63)]), "html", null, true);
  287. yield "</h2>
  288. ";
  289. // line 65
  290. yield from $this->load("Front/Scholar/Partial/_content_alert.html.twig", 65)->unwrap()->yield($context);
  291. // line 66
  292. yield "
  293. <div class=\"col-12 col-lg-6 d-flex justify-content-between align-items-baseline p-0\">
  294. ";
  295. // line 68
  296. if ($this->env->getRuntime('App\Twig\Runtime\LockContentRuntime')->isLockByInterface((isset($context["lesson"]) || array_key_exists("lesson", $context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.', 68, $this->source); })()))) {
  297. // line 69
  298. yield " ";
  299. $context["lessonStats"] = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["lesson"]) || array_key_exists("lesson", $context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.', 69, $this->source); })()), "lockBy", [], "any", false, false, false, 69), "lessonStats", [], "any", false, false, false, 69);
  300. // line 70
  301. yield " ";
  302. } else {
  303. // line 71
  304. yield " ";
  305. $context["lessonStats"] = CoreExtension::getAttribute($this->env, $this->source, (isset($context["lesson"]) || array_key_exists("lesson", $context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.', 71, $this->source); })()), "lessonStats", [], "any", false, false, false, 71);
  306. // line 72
  307. yield " ";
  308. }
  309. // line 73
  310. yield " ";
  311. if ( !(null === (isset($context["lessonStats"]) || array_key_exists("lessonStats", $context) ? $context["lessonStats"] : (function () { throw new RuntimeError('Variable "lessonStats" does not exist.', 73, $this->source); })()))) {
  312. // line 74
  313. yield " ";
  314. yield (string) $this->env->getRuntime('App\Twig\Runtime\RatingRuntime')->getRatingComponent($this->env, CoreExtension::getAttribute($this->env, $this->source, (isset($context["lessonStats"]) || array_key_exists("lessonStats", $context) ? $context["lessonStats"] : (function () { throw new RuntimeError('Variable "lessonStats" does not exist.', 74, $this->source); })()), "lessonReviewMarkAvg", [], "any", false, false, false, 74), 5, ["class" => "blue-stars", "hide_when_null" => true]);
  315. yield "
  316. ";
  317. }
  318. // line 76
  319. yield "
  320. <div>
  321. ";
  322. // line 78
  323. if ( !(null === CoreExtension::getAttribute($this->env, $this->source, (isset($context["lesson"]) || array_key_exists("lesson", $context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.', 78, $this->source); })()), "updatedAt", [], "any", false, false, false, 78))) {
  324. // line 79
  325. yield (string) $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.show.createdAt.label", ["%date%" => $this->extensions['Twig\Extra\Intl\IntlExtension']->formatDate($this->env, CoreExtension::getAttribute($this->env, $this->source, // line 80
  326. (isset($context["lesson"]) || array_key_exists("lesson", $context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.', 80, $this->source); })()), "updatedAt", [], "any", false, false, false, 80), "long", "", null, null, 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.', 80, $this->source); })()), "request", [], "any", false, false, false, 80), "locale", [], "any", false, false, false, 80))]);
  327. } else {
  328. // line 83
  329. yield (string) $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.show.createdAt.label", ["%date%" => $this->extensions['Twig\Extra\Intl\IntlExtension']->formatDate($this->env, CoreExtension::getAttribute($this->env, $this->source, // line 84
  330. (isset($context["lesson"]) || array_key_exists("lesson", $context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.', 84, $this->source); })()), "createdAt", [], "any", false, false, false, 84), "long", "", null, null, 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.', 84, $this->source); })()), "request", [], "any", false, false, false, 84), "locale", [], "any", false, false, false, 84))]);
  331. }
  332. // line 87
  333. yield " </div>
  334. </div>
  335. <div class=\"description-lesson mt-4 lesson-content\">
  336. <p class=\"text-subcateg description-style\">";
  337. // line 91
  338. yield (string) CoreExtension::getAttribute($this->env, $this->source, (isset($context["lesson"]) || array_key_exists("lesson", $context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.', 91, $this->source); })()), "description", [], "any", false, false, false, 91);
  339. yield "</p>
  340. </div>
  341. ";
  342. // line 94
  343. if ( !(null === CoreExtension::getAttribute($this->env, $this->source, (isset($context["lesson"]) || array_key_exists("lesson", $context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.', 94, $this->source); })()), "objective", [], "any", false, false, false, 94))) {
  344. // line 95
  345. yield " <div class=\"pt-30px\">
  346. <div class=\"font-weight-bold pb-10px\">";
  347. // line 96
  348. yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.lesson.show.objectif_cours.label"), "html", null, true);
  349. yield "</div>
  350. <p class=\"text-subcateg description-style\">";
  351. // line 97
  352. yield (string) $this->escaper->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["lesson"]) || array_key_exists("lesson", $context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.', 97, $this->source); })()), "objective", [], "any", false, false, false, 97), "html", null, true);
  353. yield "</p>
  354. </div>
  355. ";
  356. }
  357. // line 100
  358. yield "
  359. ";
  360. // line 101
  361. if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, (isset($context["lesson"]) || array_key_exists("lesson", $context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.', 101, $this->source); })()), "lessonPrerequisites", [], "any", false, false, false, 101)) > 0)) {
  362. // line 102
  363. yield " <div class=\"pt-30px mb-3\">
  364. <div class=\"font-weight-bold pb-10px\">";
  365. // line 103
  366. yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.lesson.show.pre_requis.label"), "html", null, true);
  367. yield "</div>
  368. ";
  369. // line 104
  370. $context['_parent'] = $context;
  371. $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, (isset($context["lesson"]) || array_key_exists("lesson", $context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.', 104, $this->source); })()), "lessonPrerequisites", [], "any", false, false, false, 104));
  372. foreach ($context['_seq'] as $context["_key"] => $context["prerequisite"]) {
  373. // line 105
  374. yield " <p class=\"font-size-14 m-0\">";
  375. yield (string) $this->escaper->escape(("- " . CoreExtension::getAttribute($this->env, $this->source, $context["prerequisite"], "label", [], "any", false, false, false, 105)), "html", null, true);
  376. yield "</p>
  377. ";
  378. }
  379. $_parent = $context['_parent'];
  380. unset($context['_seq'], $context['_key'], $context['prerequisite'], $context['_parent']);
  381. $context = array_intersect_key($context, $_parent);
  382. $context += $_parent;
  383. // line 107
  384. yield " </div>
  385. ";
  386. }
  387. // line 109
  388. yield "
  389. ";
  390. // line 110
  391. if ( !(null === CoreExtension::getAttribute($this->env, $this->source, (isset($context["lesson"]) || array_key_exists("lesson", $context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.', 110, $this->source); })()), "minimumTime", [], "any", false, false, false, 110))) {
  392. // line 111
  393. yield " ";
  394. $context["minimumTime"] = $this->extensions['Twig\Extra\Intl\IntlExtension']->formatDateTime($this->env, CoreExtension::getAttribute($this->env, $this->source, (isset($context["lesson"]) || array_key_exists("lesson", $context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.', 111, $this->source); })()), "minimumTime", [], "any", false, false, false, 111), null, null, "HH\x27h\x27mm", null, null, 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.', 111, $this->source); })()), "request", [], "any", false, false, false, 111), "locale", [], "any", false, false, false, 111));
  395. // line 112
  396. yield " ";
  397. } else {
  398. // line 113
  399. yield " ";
  400. $context["minimumTime"] = null;
  401. // line 114
  402. yield " ";
  403. }
  404. // line 115
  405. yield " ";
  406. $context["caseStudy"] = CoreExtension::getAttribute($this->env, $this->source, (isset($context["lesson"]) || array_key_exists("lesson", $context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.', 115, $this->source); })()), "caseStudy", [], "any", false, false, false, 115);
  407. // line 116
  408. yield " ";
  409. $context["mcq"] = CoreExtension::getAttribute($this->env, $this->source, (isset($context["lesson"]) || array_key_exists("lesson", $context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.', 116, $this->source); })()), "exerciseCount", [], "any", false, false, false, 116);
  410. // line 117
  411. yield "
  412. ";
  413. // line 118
  414. if ((((($tmp = (isset($context["minimumTime"]) || array_key_exists("minimumTime", $context) ? $context["minimumTime"] : (function () { throw new RuntimeError('Variable "minimumTime" does not exist.', 118, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp) || (($tmp = (isset($context["caseStudy"]) || array_key_exists("caseStudy", $context) ? $context["caseStudy"] : (function () { throw new RuntimeError('Variable "caseStudy" does not exist.', 118, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) || (($tmp = (isset($context["mcq"]) || array_key_exists("mcq", $context) ? $context["mcq"] : (function () { throw new RuntimeError('Variable "mcq" does not exist.', 118, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp))) {
  415. // line 119
  416. yield " <div class=\"row pt-20px\">
  417. <div class=\"col-6 col-md-4 pt-10px\">
  418. <div class=\"d-flex flex-row\">
  419. <img class=\"small-svg\" src=\"";
  420. // line 122
  421. yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/common/watch.svg", "common"), "html", null, true);
  422. yield "\"
  423. alt=\"Temps minimum logo\"/>
  424. <div>
  425. <div class=\"font-weight-bold\">";
  426. // line 125
  427. yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.lesson.show.temps_minimum.label"), "html", null, true);
  428. yield "</div>
  429. <div class=\"text-subcateg\">";
  430. // line 126
  431. yield (string) $this->escaper->escape((isset($context["minimumTime"]) || array_key_exists("minimumTime", $context) ? $context["minimumTime"] : (function () { throw new RuntimeError('Variable "minimumTime" does not exist.', 126, $this->source); })()), "html", null, true);
  432. yield "</div>
  433. </div>
  434. </div>
  435. </div>
  436. <div class=\"col-6 col-md-4 pt-10px\">
  437. <div class=\"d-flex flex-row\">
  438. <img class=\"small-svg\" src=\"";
  439. // line 132
  440. yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/common/sheet-user.svg", "common"), "html", null, true);
  441. yield "\"
  442. alt=\"Cas pratique logo\"/>
  443. <div>
  444. <div class=\"font-weight-bold\">";
  445. // line 135
  446. yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.lesson.show.cas_pratique.label"), "html", null, true);
  447. yield "</div>
  448. ";
  449. // line 136
  450. if ((($tmp = (isset($context["caseStudy"]) || array_key_exists("caseStudy", $context) ? $context["caseStudy"] : (function () { throw new RuntimeError('Variable "caseStudy" does not exist.', 136, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  451. // line 137
  452. yield " <div class=\"text-subcateg\">Oui</div>
  453. ";
  454. } else {
  455. // line 139
  456. yield " <div class=\"text-subcateg\">Non</div>
  457. ";
  458. }
  459. // line 141
  460. yield " </div>
  461. </div>
  462. </div>
  463. <div class=\"col-6 col-md-4 pt-10px\">
  464. <div class=\"d-flex flex-row\">
  465. <img class=\"small-svg\" src=\"";
  466. // line 146
  467. yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/common/sheet-pen.svg", "common"), "html", null, true);
  468. yield "\"
  469. alt=\"QCM logo\"/>
  470. <div>
  471. <div class=\"font-weight-bold\">";
  472. // line 149
  473. yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.lesson.show.qcm.label"), "html", null, true);
  474. yield "</div>
  475. ";
  476. // line 150
  477. if ((($tmp = (isset($context["mcq"]) || array_key_exists("mcq", $context) ? $context["mcq"] : (function () { throw new RuntimeError('Variable "mcq" does not exist.', 150, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  478. // line 151
  479. yield " <div class=\"text-subcateg\">Oui</div>
  480. ";
  481. } else {
  482. // line 153
  483. yield " <div class=\"text-subcateg\">Non</div>
  484. ";
  485. }
  486. // line 155
  487. yield " </div>
  488. </div>
  489. </div>
  490. </div>
  491. ";
  492. }
  493. // line 160
  494. yield "
  495. ";
  496. // line 161
  497. if (((isset($context["currentRoute"]) || array_key_exists("currentRoute", $context) ? $context["currentRoute"] : (function () { throw new RuntimeError('Variable "currentRoute" does not exist.', 161, $this->source); })()) == "front_channel_lesson_show")) {
  498. // line 162
  499. yield " ";
  500. yield from $this->load("Front/Scholar/Partial/_scholar_navigation_previous_after.html.twig", 162)->unwrap()->yield(CoreExtension::merge($context, ["next_informations" => $this->env->getRuntime('App\Twig\Runtime\Scholar\ScholarNavigationRuntime')->getNextInformationsLessonSummary( // line 163
  501. (isset($context["training"]) || array_key_exists("training", $context) ? $context["training"] : (function () { throw new RuntimeError('Variable "training" does not exist.', 163, $this->source); })()), (isset($context["module"]) || array_key_exists("module", $context) ? $context["module"] : (function () { throw new RuntimeError('Variable "module" does not exist.', 163, $this->source); })()), (isset($context["lesson"]) || array_key_exists("lesson", $context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.', 163, $this->source); })())), "previous_informations" => $this->env->getRuntime('App\Twig\Runtime\Scholar\ScholarNavigationRuntime')->getPreviousInformationsLessonSummary( // line 164
  502. (isset($context["training"]) || array_key_exists("training", $context) ? $context["training"] : (function () { throw new RuntimeError('Variable "training" does not exist.', 164, $this->source); })()), (isset($context["module"]) || array_key_exists("module", $context) ? $context["module"] : (function () { throw new RuntimeError('Variable "module" does not exist.', 164, $this->source); })()), (isset($context["lesson"]) || array_key_exists("lesson", $context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.', 164, $this->source); })()))]));
  503. // line 166
  504. yield " ";
  505. }
  506. // line 167
  507. yield " </div>
  508. <div class=\"col-3 d-none d-md-block\">
  509. ";
  510. // line 170
  511. yield from $this->load("Front/Scholar/Partial/menu_lessons.html.twig", 170)->unwrap()->yield($context);
  512. // line 171
  513. yield " </div>
  514. </div>
  515. </div>
  516. ";
  517. // line 175
  518. yield from $this->yieldParentBlock("content", $context, $blocks);
  519. yield "
  520. ";
  521. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  522. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  523. return; yield;
  524. }
  525. // line 178
  526. /**
  527. * @return iterable<null|scalar|\Stringable>
  528. */
  529. public function block_inner_content(array $context, array $blocks = []): iterable
  530. {
  531. $macros = $this->macros;
  532. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  533. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "inner_content"));
  534. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  535. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "inner_content"));
  536. // line 179
  537. yield " ";
  538. yield from $this->yieldParentBlock("inner_content", $context, $blocks);
  539. yield "
  540. ";
  541. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  542. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  543. return; yield;
  544. }
  545. // line 182
  546. /**
  547. * @return iterable<null|scalar|\Stringable>
  548. */
  549. public function block_body(array $context, array $blocks = []): iterable
  550. {
  551. $macros = $this->macros;
  552. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  553. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
  554. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  555. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
  556. // line 183
  557. yield " ";
  558. yield from $this->yieldParentBlock("body", $context, $blocks);
  559. yield "
  560. ";
  561. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  562. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  563. return; yield;
  564. }
  565. // line 186
  566. /**
  567. * @return iterable<null|scalar|\Stringable>
  568. */
  569. public function block_javascripts(array $context, array $blocks = []): iterable
  570. {
  571. $macros = $this->macros;
  572. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  573. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
  574. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  575. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
  576. // line 187
  577. yield " ";
  578. if (((($tmp = 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.', 187, $this->source); })()), "user", [], "any", false, false, false, 187)) && $tmp instanceof Markup ? (string) $tmp : $tmp) && ((isset($context["currentRoute"]) || array_key_exists("currentRoute", $context) ? $context["currentRoute"] : (function () { throw new RuntimeError('Variable "currentRoute" does not exist.', 187, $this->source); })()) == "front_channel_lesson_show"))) {
  579. // line 188
  580. yield " <script>
  581. var attendanceLessonUrl = \x27";
  582. // line 189
  583. yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("async_channel_scholar_attendance_lesson", ["channelId" => CoreExtension::getAttribute($this->env, $this->source, // line 190
  584. (isset($context["channel"]) || array_key_exists("channel", $context) ? $context["channel"] : (function () { throw new RuntimeError('Variable "channel" does not exist.', 190, $this->source); })()), "id", [], "any", false, false, false, 190)]), "html", null, true);
  585. // line 191
  586. yield "\x27;
  587. </script>
  588. ";
  589. }
  590. // line 194
  591. yield "
  592. ";
  593. // line 195
  594. yield from $this->yieldParentBlock("javascripts", $context, $blocks);
  595. yield "
  596. ";
  597. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  598. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  599. return; yield;
  600. }
  601. /**
  602. * @codeCoverageIgnore
  603. */
  604. public function getTemplateName(): string
  605. {
  606. return "Front/Scholar/Lesson/show.html.twig";
  607. }
  608. /**
  609. * @codeCoverageIgnore
  610. */
  611. public function isTraitable(): bool
  612. {
  613. return false;
  614. }
  615. /**
  616. * @codeCoverageIgnore
  617. */
  618. public function getDefaultEscapeStrategy(): string|false
  619. {
  620. return "html";
  621. }
  622. /**
  623. * @codeCoverageIgnore
  624. */
  625. public function getDebugInfo(): array
  626. {
  627. return array ( 673 => 195, 670 => 194, 665 => 191, 663 => 190, 662 => 189, 659 => 188, 656 => 187, 643 => 186, 629 => 183, 616 => 182, 602 => 179, 589 => 178, 576 => 175, 570 => 171, 568 => 170, 563 => 167, 560 => 166, 558 => 164, 557 => 163, 555 => 162, 553 => 161, 550 => 160, 543 => 155, 539 => 153, 535 => 151, 533 => 150, 529 => 149, 523 => 146, 516 => 141, 512 => 139, 508 => 137, 506 => 136, 502 => 135, 496 => 132, 487 => 126, 483 => 125, 477 => 122, 472 => 119, 470 => 118, 467 => 117, 464 => 116, 461 => 115, 458 => 114, 455 => 113, 452 => 112, 449 => 111, 447 => 110, 444 => 109, 440 => 107, 430 => 105, 426 => 104, 422 => 103, 419 => 102, 417 => 101, 414 => 100, 408 => 97, 404 => 96, 401 => 95, 399 => 94, 393 => 91, 387 => 87, 384 => 84, 383 => 83, 380 => 80, 379 => 79, 377 => 78, 373 => 76, 367 => 74, 364 => 73, 361 => 72, 358 => 71, 355 => 70, 352 => 69, 350 => 68, 346 => 66, 344 => 65, 339 => 63, 335 => 61, 327 => 59, 317 => 56, 312 => 55, 308 => 54, 305 => 53, 301 => 52, 294 => 47, 292 => 46, 289 => 45, 286 => 44, 270 => 43, 268 => 42, 265 => 41, 262 => 40, 259 => 39, 256 => 38, 253 => 37, 250 => 36, 237 => 35, 225 => 32, 220 => 30, 216 => 29, 211 => 28, 209 => 27, 200 => 24, 187 => 23, 176 => 19, 175 => 18, 173 => 17, 160 => 16, 147 => 13, 142 => 12, 129 => 11, 104 => 7, 92 => 4, 79 => 3, 68 => 1, 66 => 9, 53 => 1,);
  628. }
  629. public function getSourceContext(): Source
  630. {
  631. return new Source("{% extends \x27base.html.twig\x27 %}
  632. {% block back_to_dashboard %}
  633. {% include \x27Front/Scholar/Partial/_back_to_dashboard.html.twig\x27 %}
  634. {% endblock back_to_dashboard %}
  635. {% block title %}{{ lesson.name }} - {{ parent() }}{% endblock %}
  636. {% set currentRoute = app.request.attributes.get(\x27_route\x27) %}
  637. {% block stylesheets %}
  638. {{ parent() }}
  639. {{ encore_entry_link_tags(\x27styles\x27, \x27core\x27, \x27core\x27) }}
  640. {% endblock %}
  641. {% block before_navbar %}
  642. {% include \x27Front/Scholar/Partial/_preview_manager_heager.html.twig\x27 with {
  643. \x27channel\x27: channel,
  644. \x27currentRoute\x27: currentRoute,
  645. } %}
  646. {% endblock before_navbar %}
  647. {% block body_markup %}
  648. <body class=\"progression lesson-view {% if is_granted(\x27IS_AUTHENTICATED_REMEMBERED\x27) %}logged-in{% endif %}\"
  649. style=\"font-family: \x27Poppins\x27;\"
  650. id=\"page-training-lesson\"
  651. {% if currentRoute == \x27front_channel_lesson_show\x27 %}
  652. data-training_id={{ training.id }}
  653. data-module_id={{ module.id }}
  654. data-lesson_id={{ lesson.id }}
  655. {% endif %}
  656. >
  657. {% endblock body_markup %}
  658. {% block content %}
  659. {% if currentRoute in [\x27front_channel_lesson_show\x27, \x27front_channel_lesson_show_without_training\x27, \x27manager_channel_module_lesson_show\x27, \x27manager_channel_training_module_lesson_show\x27] %}
  660. {% set trainingModuleLessons = module | get_lessons %}
  661. {% elseif currentRoute in [\x27manager_channel_lesson_show\x27] %}
  662. {% set trainingModuleLessons = [lesson] %}
  663. {% endif %}
  664. {% if app.user %}
  665. {% component \x27ChannelUserData:CursusLockout\x27 with { cursus: cursus ?? null } %}{% endcomponent %}
  666. {% endif %}
  667. {% include \x27Front/Scholar/Partial/_menu_lessons_mobile.html.twig\x27 %}
  668. <div class=\"container pt-md-5 pb-md-5 pt-3 pb-3 summary-lesson font-size-14\">
  669. <div class=\"row\">
  670. <div class=\"col-md-9 col-12\">
  671. <div>
  672. {% for key, messageType in app.flashes() %}
  673. <div>
  674. {% for message in messageType %}
  675. <div class=\"alert alert-{{ key|replace({\x27error\x27: \x27danger\x27}) }}\">
  676. {{ message | trans }}
  677. </div>
  678. {% endfor %}
  679. </div>
  680. {% endfor %}
  681. </div>
  682. <h2 class=\"v2-title-big\">{{- \x27front.scholar.lesson.show.summary_title.label\x27|trans({\x27%name%\x27: lesson.name}) -}}</h2>
  683. {% include \x27Front/Scholar/Partial/_content_alert.html.twig\x27 %}
  684. <div class=\"col-12 col-lg-6 d-flex justify-content-between align-items-baseline p-0\">
  685. {% if lesson is lock_by_interface %}
  686. {% set lessonStats = lesson.lockBy.lessonStats %}
  687. {% else %}
  688. {% set lessonStats = lesson.lessonStats %}
  689. {% endif %}
  690. {% if lessonStats is not null %}
  691. {{ get_rating_component(lessonStats.lessonReviewMarkAvg, 5, {\x27class\x27: \x27blue-stars\x27, \x27hide_when_null\x27: true}) }}
  692. {% endif %}
  693. <div>
  694. {% if lesson.updatedAt is not null %}
  695. {{- \x27front.scholar.training.show.createdAt.label\x27|trans({
  696. \x27%date%\x27: lesson.updatedAt|format_date(\x27long\x27, locale=app.request.locale),
  697. })|raw -}}
  698. {% else %}
  699. {{- \x27front.scholar.training.show.createdAt.label\x27|trans({
  700. \x27%date%\x27: lesson.createdAt|format_date(\x27long\x27, locale=app.request.locale),
  701. })|raw -}}
  702. {% endif %}
  703. </div>
  704. </div>
  705. <div class=\"description-lesson mt-4 lesson-content\">
  706. <p class=\"text-subcateg description-style\">{{- lesson.description|raw -}}</p>
  707. </div>
  708. {% if lesson.objective is not null %}
  709. <div class=\"pt-30px\">
  710. <div class=\"font-weight-bold pb-10px\">{{- \x27front.scholar.lesson.show.objectif_cours.label\x27|trans -}}</div>
  711. <p class=\"text-subcateg description-style\">{{- lesson.objective -}}</p>
  712. </div>
  713. {% endif %}
  714. {% if lesson.lessonPrerequisites|length > 0 %}
  715. <div class=\"pt-30px mb-3\">
  716. <div class=\"font-weight-bold pb-10px\">{{- \x27front.scholar.lesson.show.pre_requis.label\x27|trans -}}</div>
  717. {% for prerequisite in lesson.lessonPrerequisites %}
  718. <p class=\"font-size-14 m-0\">{{- \x27- \x27 ~ prerequisite.label -}}</p>
  719. {% endfor %}
  720. </div>
  721. {% endif %}
  722. {% if lesson.minimumTime is not null %}
  723. {% set minimumTime = lesson.minimumTime | format_datetime(pattern = \"HH\x27h\x27mm\", locale=app.request.locale) %}
  724. {% else %}
  725. {% set minimumTime = null %}
  726. {% endif %}
  727. {% set caseStudy = lesson.caseStudy %}
  728. {% set mcq = lesson.exerciseCount %}
  729. {% if minimumTime or caseStudy or mcq %}
  730. <div class=\"row pt-20px\">
  731. <div class=\"col-6 col-md-4 pt-10px\">
  732. <div class=\"d-flex flex-row\">
  733. <img class=\"small-svg\" src=\"{{ asset(\x27build/common/watch.svg\x27, \x27common\x27) }}\"
  734. alt=\"Temps minimum logo\"/>
  735. <div>
  736. <div class=\"font-weight-bold\">{{- \x27front.scholar.lesson.show.temps_minimum.label\x27|trans -}}</div>
  737. <div class=\"text-subcateg\">{{- minimumTime -}}</div>
  738. </div>
  739. </div>
  740. </div>
  741. <div class=\"col-6 col-md-4 pt-10px\">
  742. <div class=\"d-flex flex-row\">
  743. <img class=\"small-svg\" src=\"{{ asset(\x27build/common/sheet-user.svg\x27, \x27common\x27) }}\"
  744. alt=\"Cas pratique logo\"/>
  745. <div>
  746. <div class=\"font-weight-bold\">{{- \x27front.scholar.lesson.show.cas_pratique.label\x27|trans -}}</div>
  747. {% if caseStudy %}
  748. <div class=\"text-subcateg\">Oui</div>
  749. {% else %}
  750. <div class=\"text-subcateg\">Non</div>
  751. {% endif %}
  752. </div>
  753. </div>
  754. </div>
  755. <div class=\"col-6 col-md-4 pt-10px\">
  756. <div class=\"d-flex flex-row\">
  757. <img class=\"small-svg\" src=\"{{ asset(\x27build/common/sheet-pen.svg\x27, \x27common\x27) }}\"
  758. alt=\"QCM logo\"/>
  759. <div>
  760. <div class=\"font-weight-bold\">{{- \x27front.scholar.lesson.show.qcm.label\x27|trans -}}</div>
  761. {% if mcq %}
  762. <div class=\"text-subcateg\">Oui</div>
  763. {% else %}
  764. <div class=\"text-subcateg\">Non</div>
  765. {% endif %}
  766. </div>
  767. </div>
  768. </div>
  769. </div>
  770. {% endif %}
  771. {% if currentRoute == \x27front_channel_lesson_show\x27 %}
  772. {% include \x27Front/Scholar/Partial/_scholar_navigation_previous_after.html.twig\x27 with {
  773. next_informations: get_next_informations_lesson_summary(training, module, lesson),
  774. previous_informations: get_previous_informations_lesson_summary(training, module, lesson),
  775. } %}
  776. {% endif %}
  777. </div>
  778. <div class=\"col-3 d-none d-md-block\">
  779. {% include \x27Front/Scholar/Partial/menu_lessons.html.twig\x27 %}
  780. </div>
  781. </div>
  782. </div>
  783. {{ parent() }}
  784. {% endblock content %}
  785. {% block inner_content %}
  786. {{ parent() }}
  787. {% endblock inner_content %}
  788. {% block body %}
  789. {{ parent() }}
  790. {% endblock %}
  791. {% block javascripts %}
  792. {% if app.user and currentRoute == \x27front_channel_lesson_show\x27 %}
  793. <script>
  794. var attendanceLessonUrl = \x27{{ url(\x27async_channel_scholar_attendance_lesson\x27, {
  795. \x27channelId\x27: channel.id
  796. }) }}\x27;
  797. </script>
  798. {% endif %}
  799. {{ parent() }}
  800. {% endblock %}
  801. ", "Front/Scholar/Lesson/show.html.twig", "/var/www/html/templates/Front/Scholar/Lesson/show.html.twig");
  802. }
  803. }
  804. /* Front/Scholar/Lesson/show.html.twig */
  805. class __TwigTemplate_b28f8784dd106abdf7a134fffed940f5___8618838181 extends Template
  806. {
  807. private Source $source;
  808. /**
  809. * @var array<string, MacroNamespace>
  810. */
  811. private array $macros = [];
  812. public function __construct(Environment $env)
  813. {
  814. parent::__construct($env);
  815. $this->source = $this->getSourceContext();
  816. $this->blocks = [
  817. 'outer__block_fallback' => [$this, 'block_outer__block_fallback'],
  818. ];
  819. }
  820. protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  821. {
  822. // line 43
  823. return $this->load((isset($context["__parent__"]) || array_key_exists("__parent__", $context) ? $context["__parent__"] : (function () { throw new RuntimeError('Variable "__parent__" does not exist.', 43, $this->source); })()), 43);
  824. }
  825. protected function doDisplay(array $context, array $blocks = []): iterable
  826. {
  827. $macros = $this->macros;
  828. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  829. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Front/Scholar/Lesson/show.html.twig"));
  830. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  831. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Front/Scholar/Lesson/show.html.twig"));
  832. yield from $this->getParent($context)->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  833. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  834. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  835. }
  836. /**
  837. * @return iterable<null|scalar|\Stringable>
  838. */
  839. public function block_outer__block_fallback(array $context, array $blocks = []): iterable
  840. {
  841. $macros = $this->macros;
  842. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  843. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "outer__block_fallback"));
  844. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  845. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "outer__block_fallback"));
  846. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  847. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  848. return; yield;
  849. }
  850. /**
  851. * @codeCoverageIgnore
  852. */
  853. public function getTemplateName(): string
  854. {
  855. return "Front/Scholar/Lesson/show.html.twig";
  856. }
  857. /**
  858. * @codeCoverageIgnore
  859. */
  860. public function isTraitable(): bool
  861. {
  862. return false;
  863. }
  864. /**
  865. * @codeCoverageIgnore
  866. */
  867. public function getDefaultEscapeStrategy(): string|false
  868. {
  869. return "html";
  870. }
  871. /**
  872. * @codeCoverageIgnore
  873. */
  874. public function getDebugInfo(): array
  875. {
  876. return array ( 943 => 43, 673 => 195, 670 => 194, 665 => 191, 663 => 190, 662 => 189, 659 => 188, 656 => 187, 643 => 186, 629 => 183, 616 => 182, 602 => 179, 589 => 178, 576 => 175, 570 => 171, 568 => 170, 563 => 167, 560 => 166, 558 => 164, 557 => 163, 555 => 162, 553 => 161, 550 => 160, 543 => 155, 539 => 153, 535 => 151, 533 => 150, 529 => 149, 523 => 146, 516 => 141, 512 => 139, 508 => 137, 506 => 136, 502 => 135, 496 => 132, 487 => 126, 483 => 125, 477 => 122, 472 => 119, 470 => 118, 467 => 117, 464 => 116, 461 => 115, 458 => 114, 455 => 113, 452 => 112, 449 => 111, 447 => 110, 444 => 109, 440 => 107, 430 => 105, 426 => 104, 422 => 103, 419 => 102, 417 => 101, 414 => 100, 408 => 97, 404 => 96, 401 => 95, 399 => 94, 393 => 91, 387 => 87, 384 => 84, 383 => 83, 380 => 80, 379 => 79, 377 => 78, 373 => 76, 367 => 74, 364 => 73, 361 => 72, 358 => 71, 355 => 70, 352 => 69, 350 => 68, 346 => 66, 344 => 65, 339 => 63, 335 => 61, 327 => 59, 317 => 56, 312 => 55, 308 => 54, 305 => 53, 301 => 52, 294 => 47, 292 => 46, 289 => 45, 286 => 44, 270 => 43, 268 => 42, 265 => 41, 262 => 40, 259 => 39, 256 => 38, 253 => 37, 250 => 36, 237 => 35, 225 => 32, 220 => 30, 216 => 29, 211 => 28, 209 => 27, 200 => 24, 187 => 23, 176 => 19, 175 => 18, 173 => 17, 160 => 16, 147 => 13, 142 => 12, 129 => 11, 104 => 7, 92 => 4, 79 => 3, 68 => 1, 66 => 9, 53 => 1,);
  877. }
  878. public function getSourceContext(): Source
  879. {
  880. return new Source("{% extends \x27base.html.twig\x27 %}
  881. {% block back_to_dashboard %}
  882. {% include \x27Front/Scholar/Partial/_back_to_dashboard.html.twig\x27 %}
  883. {% endblock back_to_dashboard %}
  884. {% block title %}{{ lesson.name }} - {{ parent() }}{% endblock %}
  885. {% set currentRoute = app.request.attributes.get(\x27_route\x27) %}
  886. {% block stylesheets %}
  887. {{ parent() }}
  888. {{ encore_entry_link_tags(\x27styles\x27, \x27core\x27, \x27core\x27) }}
  889. {% endblock %}
  890. {% block before_navbar %}
  891. {% include \x27Front/Scholar/Partial/_preview_manager_heager.html.twig\x27 with {
  892. \x27channel\x27: channel,
  893. \x27currentRoute\x27: currentRoute,
  894. } %}
  895. {% endblock before_navbar %}
  896. {% block body_markup %}
  897. <body class=\"progression lesson-view {% if is_granted(\x27IS_AUTHENTICATED_REMEMBERED\x27) %}logged-in{% endif %}\"
  898. style=\"font-family: \x27Poppins\x27;\"
  899. id=\"page-training-lesson\"
  900. {% if currentRoute == \x27front_channel_lesson_show\x27 %}
  901. data-training_id={{ training.id }}
  902. data-module_id={{ module.id }}
  903. data-lesson_id={{ lesson.id }}
  904. {% endif %}
  905. >
  906. {% endblock body_markup %}
  907. {% block content %}
  908. {% if currentRoute in [\x27front_channel_lesson_show\x27, \x27front_channel_lesson_show_without_training\x27, \x27manager_channel_module_lesson_show\x27, \x27manager_channel_training_module_lesson_show\x27] %}
  909. {% set trainingModuleLessons = module | get_lessons %}
  910. {% elseif currentRoute in [\x27manager_channel_lesson_show\x27] %}
  911. {% set trainingModuleLessons = [lesson] %}
  912. {% endif %}
  913. {% if app.user %}
  914. {% component \x27ChannelUserData:CursusLockout\x27 with { cursus: cursus ?? null } %}{% endcomponent %}
  915. {% endif %}
  916. {% include \x27Front/Scholar/Partial/_menu_lessons_mobile.html.twig\x27 %}
  917. <div class=\"container pt-md-5 pb-md-5 pt-3 pb-3 summary-lesson font-size-14\">
  918. <div class=\"row\">
  919. <div class=\"col-md-9 col-12\">
  920. <div>
  921. {% for key, messageType in app.flashes() %}
  922. <div>
  923. {% for message in messageType %}
  924. <div class=\"alert alert-{{ key|replace({\x27error\x27: \x27danger\x27}) }}\">
  925. {{ message | trans }}
  926. </div>
  927. {% endfor %}
  928. </div>
  929. {% endfor %}
  930. </div>
  931. <h2 class=\"v2-title-big\">{{- \x27front.scholar.lesson.show.summary_title.label\x27|trans({\x27%name%\x27: lesson.name}) -}}</h2>
  932. {% include \x27Front/Scholar/Partial/_content_alert.html.twig\x27 %}
  933. <div class=\"col-12 col-lg-6 d-flex justify-content-between align-items-baseline p-0\">
  934. {% if lesson is lock_by_interface %}
  935. {% set lessonStats = lesson.lockBy.lessonStats %}
  936. {% else %}
  937. {% set lessonStats = lesson.lessonStats %}
  938. {% endif %}
  939. {% if lessonStats is not null %}
  940. {{ get_rating_component(lessonStats.lessonReviewMarkAvg, 5, {\x27class\x27: \x27blue-stars\x27, \x27hide_when_null\x27: true}) }}
  941. {% endif %}
  942. <div>
  943. {% if lesson.updatedAt is not null %}
  944. {{- \x27front.scholar.training.show.createdAt.label\x27|trans({
  945. \x27%date%\x27: lesson.updatedAt|format_date(\x27long\x27, locale=app.request.locale),
  946. })|raw -}}
  947. {% else %}
  948. {{- \x27front.scholar.training.show.createdAt.label\x27|trans({
  949. \x27%date%\x27: lesson.createdAt|format_date(\x27long\x27, locale=app.request.locale),
  950. })|raw -}}
  951. {% endif %}
  952. </div>
  953. </div>
  954. <div class=\"description-lesson mt-4 lesson-content\">
  955. <p class=\"text-subcateg description-style\">{{- lesson.description|raw -}}</p>
  956. </div>
  957. {% if lesson.objective is not null %}
  958. <div class=\"pt-30px\">
  959. <div class=\"font-weight-bold pb-10px\">{{- \x27front.scholar.lesson.show.objectif_cours.label\x27|trans -}}</div>
  960. <p class=\"text-subcateg description-style\">{{- lesson.objective -}}</p>
  961. </div>
  962. {% endif %}
  963. {% if lesson.lessonPrerequisites|length > 0 %}
  964. <div class=\"pt-30px mb-3\">
  965. <div class=\"font-weight-bold pb-10px\">{{- \x27front.scholar.lesson.show.pre_requis.label\x27|trans -}}</div>
  966. {% for prerequisite in lesson.lessonPrerequisites %}
  967. <p class=\"font-size-14 m-0\">{{- \x27- \x27 ~ prerequisite.label -}}</p>
  968. {% endfor %}
  969. </div>
  970. {% endif %}
  971. {% if lesson.minimumTime is not null %}
  972. {% set minimumTime = lesson.minimumTime | format_datetime(pattern = \"HH\x27h\x27mm\", locale=app.request.locale) %}
  973. {% else %}
  974. {% set minimumTime = null %}
  975. {% endif %}
  976. {% set caseStudy = lesson.caseStudy %}
  977. {% set mcq = lesson.exerciseCount %}
  978. {% if minimumTime or caseStudy or mcq %}
  979. <div class=\"row pt-20px\">
  980. <div class=\"col-6 col-md-4 pt-10px\">
  981. <div class=\"d-flex flex-row\">
  982. <img class=\"small-svg\" src=\"{{ asset(\x27build/common/watch.svg\x27, \x27common\x27) }}\"
  983. alt=\"Temps minimum logo\"/>
  984. <div>
  985. <div class=\"font-weight-bold\">{{- \x27front.scholar.lesson.show.temps_minimum.label\x27|trans -}}</div>
  986. <div class=\"text-subcateg\">{{- minimumTime -}}</div>
  987. </div>
  988. </div>
  989. </div>
  990. <div class=\"col-6 col-md-4 pt-10px\">
  991. <div class=\"d-flex flex-row\">
  992. <img class=\"small-svg\" src=\"{{ asset(\x27build/common/sheet-user.svg\x27, \x27common\x27) }}\"
  993. alt=\"Cas pratique logo\"/>
  994. <div>
  995. <div class=\"font-weight-bold\">{{- \x27front.scholar.lesson.show.cas_pratique.label\x27|trans -}}</div>
  996. {% if caseStudy %}
  997. <div class=\"text-subcateg\">Oui</div>
  998. {% else %}
  999. <div class=\"text-subcateg\">Non</div>
  1000. {% endif %}
  1001. </div>
  1002. </div>
  1003. </div>
  1004. <div class=\"col-6 col-md-4 pt-10px\">
  1005. <div class=\"d-flex flex-row\">
  1006. <img class=\"small-svg\" src=\"{{ asset(\x27build/common/sheet-pen.svg\x27, \x27common\x27) }}\"
  1007. alt=\"QCM logo\"/>
  1008. <div>
  1009. <div class=\"font-weight-bold\">{{- \x27front.scholar.lesson.show.qcm.label\x27|trans -}}</div>
  1010. {% if mcq %}
  1011. <div class=\"text-subcateg\">Oui</div>
  1012. {% else %}
  1013. <div class=\"text-subcateg\">Non</div>
  1014. {% endif %}
  1015. </div>
  1016. </div>
  1017. </div>
  1018. </div>
  1019. {% endif %}
  1020. {% if currentRoute == \x27front_channel_lesson_show\x27 %}
  1021. {% include \x27Front/Scholar/Partial/_scholar_navigation_previous_after.html.twig\x27 with {
  1022. next_informations: get_next_informations_lesson_summary(training, module, lesson),
  1023. previous_informations: get_previous_informations_lesson_summary(training, module, lesson),
  1024. } %}
  1025. {% endif %}
  1026. </div>
  1027. <div class=\"col-3 d-none d-md-block\">
  1028. {% include \x27Front/Scholar/Partial/menu_lessons.html.twig\x27 %}
  1029. </div>
  1030. </div>
  1031. </div>
  1032. {{ parent() }}
  1033. {% endblock content %}
  1034. {% block inner_content %}
  1035. {{ parent() }}
  1036. {% endblock inner_content %}
  1037. {% block body %}
  1038. {{ parent() }}
  1039. {% endblock %}
  1040. {% block javascripts %}
  1041. {% if app.user and currentRoute == \x27front_channel_lesson_show\x27 %}
  1042. <script>
  1043. var attendanceLessonUrl = \x27{{ url(\x27async_channel_scholar_attendance_lesson\x27, {
  1044. \x27channelId\x27: channel.id
  1045. }) }}\x27;
  1046. </script>
  1047. {% endif %}
  1048. {{ parent() }}
  1049. {% endblock %}
  1050. ", "Front/Scholar/Lesson/show.html.twig", "/var/www/html/templates/Front/Scholar/Lesson/show.html.twig");
  1051. }
  1052. }