diff --git a/lang/en/board.php b/lang/en/board.php index 2b5f2b6..7970d71 100755 --- a/lang/en/board.php +++ b/lang/en/board.php @@ -277,3 +277,6 @@ $string['settings:addheadingtolog'] = 'Add heading to log'; $string['settings:addattachmenttolog'] = 'Add attachment to log'; $string['settings:addratingtolog'] = 'Add rating to log'; +$string['settings:enableprivacystatement'] = 'Enable privacy statement'; +$string['settings:enableprivacystatement_desc'] = 'Show privacy statement as part of Board description.'; +$string['privacystatement'] = 'Board Privacy Statement: Please note that editing teachers, and those with appropriate permissions, are able to view exported data as to which users have created these Board posts and comments.'; diff --git a/settings.php b/settings.php index abec4ec..a9cc747 100755 --- a/settings.php +++ b/settings.php @@ -38,6 +38,13 @@ $settings->add(new admin_setting_configtext('mod_board/new_note_icon', get_string('new_note_icon', 'mod_board'), get_string('new_note_icon_desc', 'mod_board'), 'fa-plus', PARAM_RAW_TRIMMED)); + $settings->add(new admin_setting_configcheckbox( + 'mod_board/enableprivacystatement', + get_string('settings:enableprivacystatement', 'mod_board'), + get_string('settings:enableprivacystatement_desc', 'mod_board'), + '0' + )); + $options = array( 1 => get_string('media_selection_buttons', 'mod_board'), 2 => get_string('media_selection_dropdown', 'mod_board') diff --git a/version.php b/version.php index 276cc03..d0cedf8 100755 --- a/version.php +++ b/version.php @@ -25,7 +25,7 @@ defined('MOODLE_INTERNAL') || die; $plugin->component = 'mod_board'; // Full name of the plugin (used for diagnostics). -$plugin->version = 2022040115; // The current module version Use 2022.04.01 as base for 4.00. +$plugin->version = 2022040116; // The current module version Use 2022.04.01 as base for 4.00. $plugin->requires = 2022041900; // Moodle 4.00 and up. $plugin->release = '1.401.03 (Build 2022040112)'; $plugin->maturity = MATURITY_STABLE; diff --git a/view.php b/view.php index 1b29474..f109a89 100755 --- a/view.php +++ b/view.php @@ -100,6 +100,10 @@ echo html_writer::tag('div', get_string('blanktargetenabled', 'mod_board'), ['class' => 'small']); } +if (get_config('mod_board', 'enableprivacystatement')) { + echo html_writer::tag('div', get_string('privacystatement', 'mod_board'), ['class' => 'normal']); +} + echo $OUTPUT->box_start('mod_introbox', 'group_menu'); echo groups_print_activity_menu($cm, $pageurl, true); echo $OUTPUT->box_end();