From 5b4a28b00df2e4b4051baa2046675c9df2958676 Mon Sep 17 00:00:00 2001 From: Kumi Date: Fri, 5 Jul 2024 12:31:26 +0200 Subject: [PATCH] fix: adjust script order and import Bootstrap Reordered modal and script content to ensure proper functionality and added Bootstrap's JS bundle for enhanced UI components. Updated URL to use a CDN for better performance and integrity checks. --- classes/output/renderer.php | 4 ++-- lib.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/classes/output/renderer.php b/classes/output/renderer.php index 77f43aa..a681052 100644 --- a/classes/output/renderer.php +++ b/classes/output/renderer.php @@ -1,4 +1,4 @@ -"; + $script = ""; return $script; } diff --git a/lib.php b/lib.php index 5ac58af..9884454 100644 --- a/lib.php +++ b/lib.php @@ -56,7 +56,7 @@ function mod_exp360_cm_info_dynamic(cm_info $cm) $script = $renderer->render_activity($cm->id); $cm->set_no_view_link(); - $cm->set_content($script . $modals); + $cm->set_content($modals . $script); } /**