From 5e54e4b4b0c9f31f9d37016262775828fedcb278 Mon Sep 17 00:00:00 2001 From: Alexander Bias Date: Fri, 23 Aug 2024 06:38:37 +0200 Subject: [PATCH] Upgrade: Update Bootstrap classes for Moodle 4.4. --- locallib.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/locallib.php b/locallib.php index ea8fe93..2ef7eec 100644 --- a/locallib.php +++ b/locallib.php @@ -205,12 +205,12 @@ function block_cohortspecifichtml_get_restrictioninfo($blockinstance) { if (!empty($configedcohorts)) { if ($invertselection != 1) { $info .= html_writer::tag('span', get_string('restricted', 'moodle'), - ['class' => 'badge badge-info']); + ['class' => 'badge bg-info text-light']); $info .= html_writer::tag('span', get_string('visibletocohorts', 'block_cohortspecifichtml'), ['class' => 'small']); } else { $info .= html_writer::tag('span', get_string('restricted', 'moodle'), - ['class' => 'badge badge-info']); + ['class' => 'badge bg-info text-light']); $info .= html_writer::tag('span', get_string('notvisibletocohorts', 'block_cohortspecifichtml'), ['class' => 'small']); } @@ -221,13 +221,13 @@ function block_cohortspecifichtml_get_restrictioninfo($blockinstance) { } else { if ($invertselection != 1) { $info .= html_writer::tag('span', get_string('restricted', 'moodle'), - ['class' => 'badge badge-info']); + ['class' => 'badge bg-info text-light']); $info .= html_writer::tag('span', get_string('notvisibletoall', 'block_cohortspecifichtml'), ['class' => 'small']); $info .= html_writer::tag('hr', null); } else { $info .= html_writer::tag('span', get_string('unrestricted', - 'block_cohortspecifichtml'), ['class' => 'badge badge-info']); + 'block_cohortspecifichtml'), ['class' => 'badge bg-info text-light']); $info .= html_writer::tag('span', get_string('visibletoall', 'block_cohortspecifichtml'), ['class' => 'small']); $info .= html_writer::tag('hr', null);