Skip to content

Commit

Permalink
Upgrade: Update Bootstrap classes for Moodle 4.4.
Browse files Browse the repository at this point in the history
  • Loading branch information
abias committed Aug 23, 2024
1 parent 0a2de5c commit 5e54e4b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions locallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
}
Expand All @@ -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);
Expand Down

0 comments on commit 5e54e4b

Please sign in to comment.