Skip to content

Commit 86a06f4

Browse files
committed
show self-extended info in a setting box
1 parent 5daf9cd commit 86a06f4

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

lang/en/local_och5p.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
$string['setting_extended_themes_header'] = 'Themes';
5050
$string['setting_extended_themes_noavailable'] = 'No themes available to extend.';
5151
$string['setting_extended_themes_selfextended'] = 'The following themes already contain the Opencast extension by themselves and can be used directly: <ul><li>{$a}</li></ul>';
52+
$string['setting_extended_themes_selfextended_label'] = 'Self-extended themes';
5253
$string['setting_lti_header'] = 'LTI Configuration';
5354
$string['setting_lti_header_desc'] = 'When "Securing Static Files" in Opencast configuration is enabled, it is necessary to use LTI authentication.';
5455
$string['setting_uselti'] = 'Enable LTI authentication';

settings.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,16 @@
5656
}
5757

5858
if (!empty($selfextendedthemes)) {
59-
\core\notification::add(
59+
$selfextendedthemesinfo = \html_writer::div(
6060
get_string('setting_extended_themes_selfextended', 'local_och5p', implode('</li><li>', $selfextendedthemes)),
61-
\core\notification::INFO
61+
'box py-3 generalbox alert alert-info'
6262
);
63+
$infodescsetting = new admin_setting_description(
64+
'local_och5p/self_extended_themes',
65+
get_string('setting_extended_themes_selfextended_label', 'local_och5p'),
66+
$selfextendedthemesinfo
67+
);
68+
$settings->add($infodescsetting);
6369
}
6470

6571
$extendedthemessetting = new admin_setting_configempty('local_och5p/extended_themes',

0 commit comments

Comments
 (0)