@@ -116,7 +116,7 @@ public function col_type($data) {
116
116
$ type = \theme_boost_union \smartmenu_item::get_types ($ data ->type );
117
117
118
118
// Return the type as badge.
119
- return \html_writer::tag ('span ' , $ type , ['class ' => 'badge badge -primary ' ]);
119
+ return \html_writer::tag ('span ' , $ type , ['class ' => 'badge bg -primary text-light ' ]);
120
120
}
121
121
122
122
/**
@@ -138,7 +138,7 @@ public function col_restrictions($data) {
138
138
$ rolelist = $ DB ->get_records_list ('role ' , 'id ' , $ roles );
139
139
$ rolenames = role_fix_names ($ rolelist );
140
140
array_walk ($ rolenames , function (&$ value ) {
141
- $ value = \html_writer::tag ('span ' , $ value ->localname , ['class ' => 'badge badge -primary ' ]);
141
+ $ value = \html_writer::tag ('span ' , $ value ->localname , ['class ' => 'badge bg -primary text-light ' ]);
142
142
});
143
143
144
144
// Amend rule list.
@@ -154,7 +154,7 @@ public function col_restrictions($data) {
154
154
$ cohorts = json_decode ($ data ->cohorts );
155
155
$ cohortlist = $ DB ->get_records_list ('cohort ' , 'id ' , $ cohorts );
156
156
array_walk ($ cohortlist , function (&$ value ) {
157
- $ value = \html_writer::tag ('span ' , $ value ->name , ['class ' => 'badge badge -primary ' ]);
157
+ $ value = \html_writer::tag ('span ' , $ value ->name , ['class ' => 'badge bg -primary text-light ' ]);
158
158
});
159
159
160
160
// Amend rule list.
@@ -172,7 +172,7 @@ public function col_restrictions($data) {
172
172
$ languagelist = [];
173
173
foreach ($ languages as $ lang ) {
174
174
if (isset ($ options [$ lang ])) {
175
- $ languagelist [] = \html_writer::tag ('span ' , $ options [$ lang ], ['class ' => 'badge badge -primary ' ]);
175
+ $ languagelist [] = \html_writer::tag ('span ' , $ options [$ lang ], ['class ' => 'badge bg -primary text-light ' ]);
176
176
}
177
177
}
178
178
@@ -198,7 +198,7 @@ public function col_restrictions($data) {
198
198
}
199
199
200
200
array_walk ($ datelist , function (&$ value ) {
201
- $ value = \html_writer::tag ('span ' , $ value , ['class ' => 'badge badge -primary ' ]);
201
+ $ value = \html_writer::tag ('span ' , $ value , ['class ' => 'badge bg -primary text-light ' ]);
202
202
});
203
203
204
204
// Amend rule list.
0 commit comments