var/cache/dev/twig/f7/f73173666ea3dc3e8359ce8c5793f92d.php line 45

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. use Twig\TemplateWrapper;
  15. /* layout/base.html.twig */
  16. class __TwigTemplate_50509fdc1c07d8d005877a1e8660f74f extends Template
  17. {
  18. private Source $source;
  19. /**
  20. * @var array<string, Template>
  21. */
  22. private array $macros = [];
  23. public function __construct(Environment $env)
  24. {
  25. parent::__construct($env);
  26. $this->source = $this->getSourceContext();
  27. $this->parent = false;
  28. $this->blocks = [
  29. 'title' => [$this, 'block_title'],
  30. 'stylesheets' => [$this, 'block_stylesheets'],
  31. 'main' => [$this, 'block_main'],
  32. 'partials' => [$this, 'block_partials'],
  33. 'body' => [$this, 'block_body'],
  34. 'footer' => [$this, 'block_footer'],
  35. 'javascripts' => [$this, 'block_javascripts'],
  36. ];
  37. }
  38. protected function doDisplay(array $context, array $blocks = []): iterable
  39. {
  40. $macros = $this->macros;
  41. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  42. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "layout/base.html.twig"));
  43. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  44. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "layout/base.html.twig"));
  45. // line 1
  46. yield "<!DOCTYPE html>
  47. <html lang=\"fr\">
  48. \t<head>
  49. \t\t<meta charset=\"UTF-8\">
  50. \t\t<title>
  51. \t\t\t";
  52. // line 6
  53. yield from $this->unwrap()->yieldBlock('title', $context, $blocks);
  54. // line 7
  55. yield "\t\t</title>
  56. \t\t<meta
  57. \t\tname=\"viewport\" content=\"width=device-width, initial-scale=1, user-scalable=no\"/>
  58. \t\t<!-- Basic -->
  59. \t\t<meta
  60. \t\thttp-equiv=\"X-UA-Compatible\" content=\"IE=edge\">
  61. \t\t<!-- Site Metas -->
  62. \t\t<meta name=\"keywords\" content=\"bethesda isbb\">
  63. \t\t<meta name=\"description\" content=\"Institut secondaire bilingue bethesda\">
  64. \t\t<meta
  65. \t\tname=\"author\" content=\"Arsene Fokam Poka, Ing\">
  66. \t\t<!-- Site Icons -->
  67. \t\t";
  68. // line 23
  69. yield from $this->unwrap()->yieldBlock('stylesheets', $context, $blocks);
  70. // line 38
  71. yield "
  72. \t</head>
  73. \t<body class=\"host_version\">
  74. \t\t";
  75. // line 43
  76. yield from $this->unwrap()->yieldBlock('main', $context, $blocks);
  77. // line 46
  78. yield "\t\t";
  79. yield from $this->unwrap()->yieldBlock('partials', $context, $blocks);
  80. // line 61
  81. yield "
  82. \t\t<div>
  83. \t\t\t";
  84. // line 64
  85. yield from $this->unwrap()->yieldBlock('body', $context, $blocks);
  86. // line 67
  87. yield "\t\t\t";
  88. yield from $this->unwrap()->yieldBlock('footer', $context, $blocks);
  89. // line 72
  90. yield "\t\t</div>
  91. \t\t<!-- in order to record the current route -->
  92. \t\t";
  93. // line 75
  94. yield "\t\t";
  95. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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.', 75, $this->source); })()), "session", [], "any", false, false, false, 75), "set", ["referer", 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.', 75, $this->source); })()), "request", [], "any", false, false, false, 75), "get", ["_route"], "method", false, false, false, 75)], "method", false, false, false, 75), "html", null, true);
  96. yield "
  97. \t\t";
  98. // line 77
  99. yield from $this->unwrap()->yieldBlock('javascripts', $context, $blocks);
  100. // line 210
  101. yield "
  102. \t</body>
  103. </html>
  104. ";
  105. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  106. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  107. yield from [];
  108. }
  109. // line 6
  110. /**
  111. * @return iterable<null|scalar|\Stringable>
  112. */
  113. public function block_title(array $context, array $blocks = []): iterable
  114. {
  115. $macros = $this->macros;
  116. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  117. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
  118. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  119. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
  120. yield "BETHESDA";
  121. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  122. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  123. yield from [];
  124. }
  125. // line 23
  126. /**
  127. * @return iterable<null|scalar|\Stringable>
  128. */
  129. public function block_stylesheets(array $context, array $blocks = []): iterable
  130. {
  131. $macros = $this->macros;
  132. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  133. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
  134. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  135. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
  136. // line 24
  137. yield "\t\t\t";
  138. // line 25
  139. yield "\t\t\t<link rel=\"icon\" type=\"image/png\" href=\"";
  140. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/BethesdaLogo.png"), "html", null, true);
  141. yield "\"/>
  142. \t\t\t<link rel=\"apple-touch-icon\" href=\"";
  143. // line 26
  144. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/BethesdaLogo.png"), "html", null, true);
  145. yield "\">
  146. \t\t\t<link href=\"";
  147. // line 27
  148. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/css/style.css"), "html", null, true);
  149. yield "\" rel=\"stylesheet\">
  150. \t\t\t<link href=\"";
  151. // line 28
  152. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/css/font-awesome.min.css"), "html", null, true);
  153. yield "\" rel=\"stylesheet\">
  154. \t\t\t<link rel=\"stylesheet\" href=\"";
  155. // line 29
  156. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/css/bootstrap.min.css"), "html", null, true);
  157. yield "\"/>
  158. \t\t\t<link href=\"";
  159. // line 30
  160. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/css/bootstrap-grid.min.css"), "html", null, true);
  161. yield "\" rel=\"stylesheet\" type=\"text/css\"/>
  162. \t\t\t<link href=\"";
  163. // line 31
  164. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/css/bootstrap-reboot.min.css"), "html", null, true);
  165. yield "\" rel=\"stylesheet\" type=\"text/css\"/>
  166. \t\t\t<link href=\"";
  167. // line 33
  168. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/css/custom.css"), "html", null, true);
  169. yield "\" rel=\"stylesheet\">
  170. <link href=\"";
  171. // line 35
  172. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/css/navbar-fix.css"), "html", null, true);
  173. yield "\" rel=\"stylesheet\" type=\"text/css\" />
  174. \t\t";
  175. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  176. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  177. yield from [];
  178. }
  179. // line 43
  180. /**
  181. * @return iterable<null|scalar|\Stringable>
  182. */
  183. public function block_main(array $context, array $blocks = []): iterable
  184. {
  185. $macros = $this->macros;
  186. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  187. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
  188. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  189. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
  190. // line 44
  191. yield "\t\t\t<!-- JUST FOR BACKEND -->
  192. \t\t";
  193. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  194. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  195. yield from [];
  196. }
  197. // line 46
  198. /**
  199. * @return iterable<null|scalar|\Stringable>
  200. */
  201. public function block_partials(array $context, array $blocks = []): iterable
  202. {
  203. $macros = $this->macros;
  204. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  205. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "partials"));
  206. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  207. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "partials"));
  208. // line 47
  209. yield "
  210. \t\t\t<!-- Flash Messages -->
  211. \t\t\t";
  212. // line 49
  213. yield from $this->load("layout/partials/flash_messages.html.twig", 49)->unwrap()->yield($context);
  214. // line 50
  215. yield "
  216. \t\t\t";
  217. // line 51
  218. 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.', 51, $this->source); })()), "user", [], "any", false, false, false, 51)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  219. // line 52
  220. yield "\t\t\t\t<!-- Modal -->
  221. \t\t\t\t";
  222. // line 53
  223. yield from $this->load("layout/partials/modal.html.twig", 53)->unwrap()->yield($context);
  224. // line 54
  225. yield "\t\t\t\t<!-- LOADER -->
  226. \t\t\t\t";
  227. // line 55
  228. yield from $this->load("layout/partials/loader.html.twig", 55)->unwrap()->yield($context);
  229. // line 56
  230. yield "\t\t\t\t<!-- HEADER -->
  231. \t\t\t\t";
  232. // line 57
  233. yield from $this->load("layout/partials/header.html.twig", 57)->unwrap()->yield($context);
  234. // line 58
  235. yield "\t\t\t";
  236. }
  237. // line 59
  238. yield "
  239. \t\t";
  240. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  241. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  242. yield from [];
  243. }
  244. // line 64
  245. /**
  246. * @return iterable<null|scalar|\Stringable>
  247. */
  248. public function block_body(array $context, array $blocks = []): iterable
  249. {
  250. $macros = $this->macros;
  251. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  252. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
  253. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  254. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
  255. // line 65
  256. yield "\t\t\t\t<!-- JUST FOR FRONTEND -->
  257. \t\t\t";
  258. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  259. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  260. yield from [];
  261. }
  262. // line 67
  263. /**
  264. * @return iterable<null|scalar|\Stringable>
  265. */
  266. public function block_footer(array $context, array $blocks = []): iterable
  267. {
  268. $macros = $this->macros;
  269. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  270. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "footer"));
  271. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  272. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "footer"));
  273. // line 68
  274. yield "\t\t\t\t<!-- Header -->
  275. \t\t\t\t";
  276. // line 69
  277. yield from $this->load("layout/partials/partners.html.twig", 69)->unwrap()->yield($context);
  278. // line 70
  279. yield "\t\t\t\t";
  280. yield from $this->load("layout/partials/footer.html.twig", 70)->unwrap()->yield($context);
  281. // line 71
  282. yield "\t\t\t";
  283. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  284. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  285. yield from [];
  286. }
  287. // line 77
  288. /**
  289. * @return iterable<null|scalar|\Stringable>
  290. */
  291. public function block_javascripts(array $context, array $blocks = []): iterable
  292. {
  293. $macros = $this->macros;
  294. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  295. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
  296. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  297. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
  298. // line 78
  299. yield "
  300. \t\t\t<!-- 1. jQuery EN PREMIER -->
  301. \t\t\t<script src=\"https://code.jquery.com/jquery-3.7.1.min.js\" integrity=\"sha256-/JqT3SQfawRcv/BIHPThkBvs0OEvtFFmqPF/lYI/Cxo=\" crossorigin=\"anonymous\"></script>
  302. \t\t\t<!-- 2. jQuery UI -->
  303. \t\t\t<script type=\"text/javascript\" src=\"";
  304. // line 83
  305. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/js/jquery-ui.min.js"), "html", null, true);
  306. yield "\"></script>
  307. \t\t\t<!-- 3. Bootstrap 4.6.0 (compatible avec votre CSS) -->
  308. \t\t\t<script src=\"https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.6.0/js/bootstrap.bundle.min.js\"></script>
  309. \t\t\t<!-- 4. Chart.js -->
  310. \t\t\t<script src=\"https://cdnjs.cloudflare.com/ajax/libs/Chart.js/3.7.0/chart.min.js\"></script>
  311. \t\t\t<!-- 5. Vos scripts personnalisés -->
  312. \t\t\t<script type=\"text/javascript\" src=\"";
  313. // line 92
  314. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/js/jquery.mCustomScrollbar.concat.min.js"), "html", null, true);
  315. yield "\"></script>
  316. \t\t\t<script type=\"text/javascript\" src=\"";
  317. // line 93
  318. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/js/menu.js"), "html", null, true);
  319. yield "\"></script>
  320. \t\t\t<script type=\"text/javascript\" src=\"";
  321. // line 94
  322. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/js/all.js"), "html", null, true);
  323. yield "\"></script>
  324. \t\t\t<script type=\"text/javascript\" src=\"";
  325. // line 95
  326. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/js/front.js"), "html", null, true);
  327. yield "\"></script>
  328. \t\t\t<script type=\"text/javascript\" src=\"";
  329. // line 96
  330. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/js/custom.js"), "html", null, true);
  331. yield "\"></script>
  332. \t\t\t<script type=\"text/javascript\" src=\"";
  333. // line 97
  334. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/js/timeline.min.js"), "html", null, true);
  335. yield "\"></script>
  336. \t\t\t<script src=\"";
  337. // line 98
  338. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/js/d3.v4.min.js"), "html", null, true);
  339. yield "\"></script>
  340. <script>
  341. \$(document).ready(function() {
  342. console.log('jQuery version:', \$.fn.jquery);
  343. console.log('Bootstrap loaded:', typeof \$.fn.modal);
  344. \$('#toggle-btn').on('click', function(e) {
  345. e.preventDefault();
  346. console.log('Toggle button clicked!');
  347. \$('body').toggleClass('sidebar-collapsed');
  348. \$('.side-navbar').toggleClass('shrinked');
  349. \$('.page').toggleClass('active');
  350. });
  351. });
  352. // Remplacez le script existant dans admin.html.twig par celui-ci
  353. \$(document).ready(function() {
  354. // Toggle sidebar menu
  355. \$('#toggle-btn').on('click', function(e) {
  356. e.preventDefault();
  357. // Vérifier si on est sur mobile ou desktop
  358. var windowWidth = \$(window).width();
  359. if (windowWidth > 1199) {
  360. // Desktop: toggle entre 200px et 70px
  361. \$('body').toggleClass('sidebar-collapsed');
  362. \$('.side-navbar').toggleClass('shrinked');
  363. \$('.page').toggleClass('active');
  364. console.log('Desktop toggle - sidebar-collapsed:', \$('body').hasClass('sidebar-collapsed'));
  365. } else {
  366. // Mobile: afficher/masquer complètement
  367. \$('.side-navbar').toggleClass('show-sm');
  368. \$('.page').toggleClass('active-sm');
  369. console.log('Mobile toggle - show-sm:', \$('.side-navbar').hasClass('show-sm'));
  370. }
  371. });
  372. // Fermer le sidebar en cliquant en dehors sur mobile
  373. \$(document).on('click', function(e) {
  374. if (\$(window).width() <= 1199) {
  375. if (!\$(e.target).closest('.side-navbar, #toggle-btn').length) {
  376. \$('.side-navbar').removeClass('show-sm');
  377. \$('.page').removeClass('active-sm');
  378. }
  379. }
  380. });
  381. // Change school year
  382. \$('#select_year').on('change', function() {
  383. var postData = {
  384. \"selectedSchoolYear\": \$(this).val()
  385. };
  386. \$.ajax({
  387. type: \"POST\",
  388. url: \"";
  389. // line 160
  390. yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("update_school_year");
  391. yield "\",
  392. data: postData,
  393. datatype: \"json\",
  394. success: function(data) {
  395. console.log(\"Changement d'annee.\");
  396. location.reload();
  397. },
  398. error: function(e) {
  399. console.log(e.message);
  400. alert(\"Echec.\");
  401. }
  402. });
  403. });
  404. // Debug: afficher l'état actuel
  405. console.log('Initial state:');
  406. console.log('- Sidebar width:', \$('.side-navbar').width());
  407. console.log('- Page width:', \$('.page').width());
  408. console.log('- Window width:', \$(window).width());
  409. });
  410. </script>
  411. \t\t\t<script>
  412. \t\t\t\ttimeline(document.querySelectorAll('.timeline'), {
  413. forceVerticalMode: 700,
  414. mode: 'horizontal',
  415. verticalStartPosition: 'left',
  416. visibleItems: 4
  417. });
  418. \t\t\t</script>
  419. \t\t\t<!-- Global site tag (gtag.js) - Google Analytics -->
  420. \t\t\t<script async src=\"https://www.googletagmanager.com/gtag/js?id=UA-208287842-1\"></script>
  421. \t\t\t<script>
  422. \t\t\t\twindow.dataLayer = window.dataLayer || [];
  423. function gtag() {
  424. dataLayer.push(arguments);
  425. }
  426. gtag('js', new Date());
  427. gtag('config', 'UA-208287842-1');
  428. \t\t\t</script>
  429. \t\t";
  430. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  431. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  432. yield from [];
  433. }
  434. /**
  435. * @codeCoverageIgnore
  436. */
  437. public function getTemplateName(): string
  438. {
  439. return "layout/base.html.twig";
  440. }
  441. /**
  442. * @codeCoverageIgnore
  443. */
  444. public function isTraitable(): bool
  445. {
  446. return false;
  447. }
  448. /**
  449. * @codeCoverageIgnore
  450. */
  451. public function getDebugInfo(): array
  452. {
  453. return array ( 477 => 160, 412 => 98, 408 => 97, 404 => 96, 400 => 95, 396 => 94, 392 => 93, 388 => 92, 376 => 83, 369 => 78, 356 => 77, 345 => 71, 342 => 70, 340 => 69, 337 => 68, 324 => 67, 312 => 65, 299 => 64, 287 => 59, 284 => 58, 282 => 57, 279 => 56, 277 => 55, 274 => 54, 272 => 53, 269 => 52, 267 => 51, 264 => 50, 262 => 49, 258 => 47, 245 => 46, 233 => 44, 220 => 43, 206 => 35, 201 => 33, 196 => 31, 192 => 30, 188 => 29, 184 => 28, 180 => 27, 176 => 26, 171 => 25, 169 => 24, 156 => 23, 133 => 6, 118 => 210, 116 => 77, 110 => 75, 106 => 72, 103 => 67, 101 => 64, 96 => 61, 93 => 46, 91 => 43, 84 => 38, 82 => 23, 64 => 7, 62 => 6, 55 => 1,);
  454. }
  455. public function getSourceContext(): Source
  456. {
  457. return new Source("<!DOCTYPE html>
  458. <html lang=\"fr\">
  459. \t<head>
  460. \t\t<meta charset=\"UTF-8\">
  461. \t\t<title>
  462. \t\t\t{% block title 'BETHESDA' %}
  463. \t\t</title>
  464. \t\t<meta
  465. \t\tname=\"viewport\" content=\"width=device-width, initial-scale=1, user-scalable=no\"/>
  466. \t\t<!-- Basic -->
  467. \t\t<meta
  468. \t\thttp-equiv=\"X-UA-Compatible\" content=\"IE=edge\">
  469. \t\t<!-- Site Metas -->
  470. \t\t<meta name=\"keywords\" content=\"bethesda isbb\">
  471. \t\t<meta name=\"description\" content=\"Institut secondaire bilingue bethesda\">
  472. \t\t<meta
  473. \t\tname=\"author\" content=\"Arsene Fokam Poka, Ing\">
  474. \t\t<!-- Site Icons -->
  475. \t\t{% block stylesheets %}
  476. \t\t\t{# {{encore_entry_link_tags('main')}} #}
  477. \t\t\t<link rel=\"icon\" type=\"image/png\" href=\"{{ asset('assets/images/BethesdaLogo.png') }}\"/>
  478. \t\t\t<link rel=\"apple-touch-icon\" href=\"{{ asset('assets/images/BethesdaLogo.png') }}\">
  479. \t\t\t<link href=\"{{ asset('assets/css/style.css') }}\" rel=\"stylesheet\">
  480. \t\t\t<link href=\"{{ asset('assets/css/font-awesome.min.css') }}\" rel=\"stylesheet\">
  481. \t\t\t<link rel=\"stylesheet\" href=\"{{ asset('assets/css/bootstrap.min.css') }}\"/>
  482. \t\t\t<link href=\"{{ asset('assets/css/bootstrap-grid.min.css') }}\" rel=\"stylesheet\" type=\"text/css\"/>
  483. \t\t\t<link href=\"{{ asset('assets/css/bootstrap-reboot.min.css') }}\" rel=\"stylesheet\" type=\"text/css\"/>
  484. \t\t\t<link href=\"{{ asset('assets/css/custom.css') }}\" rel=\"stylesheet\">
  485. <link href=\"{{ asset('assets/css/navbar-fix.css') }}\" rel=\"stylesheet\" type=\"text/css\" />
  486. \t\t{% endblock %}
  487. \t</head>
  488. \t<body class=\"host_version\">
  489. \t\t{% block main %}
  490. \t\t\t<!-- JUST FOR BACKEND -->
  491. \t\t{% endblock %}
  492. \t\t{% block partials %}
  493. \t\t\t<!-- Flash Messages -->
  494. \t\t\t{% include 'layout/partials/flash_messages.html.twig' %}
  495. \t\t\t{% if not app.user %}
  496. \t\t\t\t<!-- Modal -->
  497. \t\t\t\t{% include 'layout/partials/modal.html.twig' %}
  498. \t\t\t\t<!-- LOADER -->
  499. \t\t\t\t{% include 'layout/partials/loader.html.twig' %}
  500. \t\t\t\t<!-- HEADER -->
  501. \t\t\t\t{% include 'layout/partials/header.html.twig' %}
  502. \t\t\t{% endif %}
  503. \t\t{% endblock %}
  504. \t\t<div>
  505. \t\t\t{% block body %}
  506. \t\t\t\t<!-- JUST FOR FRONTEND -->
  507. \t\t\t{% endblock %}
  508. \t\t\t{% block footer %}
  509. \t\t\t\t<!-- Header -->
  510. \t\t\t\t{% include 'layout/partials/partners.html.twig' %}
  511. \t\t\t\t{% include 'layout/partials/footer.html.twig' %}
  512. \t\t\t{% endblock footer %}
  513. \t\t</div>
  514. \t\t<!-- in order to record the current route -->
  515. \t\t{# {{ app.session.set('referer', path(app.request.attributes.get('_route')) ) }} #}
  516. \t\t{{ app.session.set('referer', app.request.get('_route') ) }}
  517. \t\t{% block javascripts %}
  518. \t\t\t<!-- 1. jQuery EN PREMIER -->
  519. \t\t\t<script src=\"https://code.jquery.com/jquery-3.7.1.min.js\" integrity=\"sha256-/JqT3SQfawRcv/BIHPThkBvs0OEvtFFmqPF/lYI/Cxo=\" crossorigin=\"anonymous\"></script>
  520. \t\t\t<!-- 2. jQuery UI -->
  521. \t\t\t<script type=\"text/javascript\" src=\"{{ asset('assets/js/jquery-ui.min.js') }}\"></script>
  522. \t\t\t<!-- 3. Bootstrap 4.6.0 (compatible avec votre CSS) -->
  523. \t\t\t<script src=\"https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.6.0/js/bootstrap.bundle.min.js\"></script>
  524. \t\t\t<!-- 4. Chart.js -->
  525. \t\t\t<script src=\"https://cdnjs.cloudflare.com/ajax/libs/Chart.js/3.7.0/chart.min.js\"></script>
  526. \t\t\t<!-- 5. Vos scripts personnalisés -->
  527. \t\t\t<script type=\"text/javascript\" src=\"{{ asset('assets/js/jquery.mCustomScrollbar.concat.min.js') }}\"></script>
  528. \t\t\t<script type=\"text/javascript\" src=\"{{ asset('assets/js/menu.js') }}\"></script>
  529. \t\t\t<script type=\"text/javascript\" src=\"{{ asset('assets/js/all.js') }}\"></script>
  530. \t\t\t<script type=\"text/javascript\" src=\"{{ asset('assets/js/front.js') }}\"></script>
  531. \t\t\t<script type=\"text/javascript\" src=\"{{ asset('assets/js/custom.js') }}\"></script>
  532. \t\t\t<script type=\"text/javascript\" src=\"{{ asset('assets/js/timeline.min.js') }}\"></script>
  533. \t\t\t<script src=\"{{ asset('assets/js/d3.v4.min.js') }}\"></script>
  534. <script>
  535. \$(document).ready(function() {
  536. console.log('jQuery version:', \$.fn.jquery);
  537. console.log('Bootstrap loaded:', typeof \$.fn.modal);
  538. \$('#toggle-btn').on('click', function(e) {
  539. e.preventDefault();
  540. console.log('Toggle button clicked!');
  541. \$('body').toggleClass('sidebar-collapsed');
  542. \$('.side-navbar').toggleClass('shrinked');
  543. \$('.page').toggleClass('active');
  544. });
  545. });
  546. // Remplacez le script existant dans admin.html.twig par celui-ci
  547. \$(document).ready(function() {
  548. // Toggle sidebar menu
  549. \$('#toggle-btn').on('click', function(e) {
  550. e.preventDefault();
  551. // Vérifier si on est sur mobile ou desktop
  552. var windowWidth = \$(window).width();
  553. if (windowWidth > 1199) {
  554. // Desktop: toggle entre 200px et 70px
  555. \$('body').toggleClass('sidebar-collapsed');
  556. \$('.side-navbar').toggleClass('shrinked');
  557. \$('.page').toggleClass('active');
  558. console.log('Desktop toggle - sidebar-collapsed:', \$('body').hasClass('sidebar-collapsed'));
  559. } else {
  560. // Mobile: afficher/masquer complètement
  561. \$('.side-navbar').toggleClass('show-sm');
  562. \$('.page').toggleClass('active-sm');
  563. console.log('Mobile toggle - show-sm:', \$('.side-navbar').hasClass('show-sm'));
  564. }
  565. });
  566. // Fermer le sidebar en cliquant en dehors sur mobile
  567. \$(document).on('click', function(e) {
  568. if (\$(window).width() <= 1199) {
  569. if (!\$(e.target).closest('.side-navbar, #toggle-btn').length) {
  570. \$('.side-navbar').removeClass('show-sm');
  571. \$('.page').removeClass('active-sm');
  572. }
  573. }
  574. });
  575. // Change school year
  576. \$('#select_year').on('change', function() {
  577. var postData = {
  578. \"selectedSchoolYear\": \$(this).val()
  579. };
  580. \$.ajax({
  581. type: \"POST\",
  582. url: \"{{ path('update_school_year') }}\",
  583. data: postData,
  584. datatype: \"json\",
  585. success: function(data) {
  586. console.log(\"Changement d'annee.\");
  587. location.reload();
  588. },
  589. error: function(e) {
  590. console.log(e.message);
  591. alert(\"Echec.\");
  592. }
  593. });
  594. });
  595. // Debug: afficher l'état actuel
  596. console.log('Initial state:');
  597. console.log('- Sidebar width:', \$('.side-navbar').width());
  598. console.log('- Page width:', \$('.page').width());
  599. console.log('- Window width:', \$(window).width());
  600. });
  601. </script>
  602. \t\t\t<script>
  603. \t\t\t\ttimeline(document.querySelectorAll('.timeline'), {
  604. forceVerticalMode: 700,
  605. mode: 'horizontal',
  606. verticalStartPosition: 'left',
  607. visibleItems: 4
  608. });
  609. \t\t\t</script>
  610. \t\t\t<!-- Global site tag (gtag.js) - Google Analytics -->
  611. \t\t\t<script async src=\"https://www.googletagmanager.com/gtag/js?id=UA-208287842-1\"></script>
  612. \t\t\t<script>
  613. \t\t\t\twindow.dataLayer = window.dataLayer || [];
  614. function gtag() {
  615. dataLayer.push(arguments);
  616. }
  617. gtag('js', new Date());
  618. gtag('config', 'UA-208287842-1');
  619. \t\t\t</script>
  620. \t\t{% endblock javascripts %}
  621. \t</body>
  622. </html>
  623. ", "layout/base.html.twig", "/var/www/bethesda/templates/layout/base.html.twig");
  624. }
  625. }