From 0984abda6026750f2eddb7a1c76c158848d90007 Mon Sep 17 00:00:00 2001 From: Andrew Nicols Date: Sat, 3 Mar 2018 20:21:38 +0800 Subject: [PATCH] MDL-61566 theme: Add Privacy providers for all core themes --- theme/boost/classes/privacy/provider.php | 46 +++++++++++++++++++ theme/boost/lang/en/theme_boost.php | 1 + .../classes/privacy/provider.php | 46 +++++++++++++++++++ .../lang/en/theme_bootstrapbase.php | 1 + theme/clean/classes/privacy/provider.php | 46 +++++++++++++++++++ theme/clean/lang/en/theme_clean.php | 2 +- theme/more/classes/privacy/provider.php | 46 +++++++++++++++++++ theme/more/lang/en/theme_more.php | 2 +- 8 files changed, 188 insertions(+), 2 deletions(-) create mode 100644 theme/boost/classes/privacy/provider.php create mode 100644 theme/bootstrapbase/classes/privacy/provider.php create mode 100644 theme/clean/classes/privacy/provider.php create mode 100644 theme/more/classes/privacy/provider.php diff --git a/theme/boost/classes/privacy/provider.php b/theme/boost/classes/privacy/provider.php new file mode 100644 index 00000000000..bf755b73fa0 --- /dev/null +++ b/theme/boost/classes/privacy/provider.php @@ -0,0 +1,46 @@ +. + +/** + * Privacy Subsystem implementation for theme_boost. + * + * @package theme_boost + * @copyright 2018 Andrew Nicols + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +namespace theme_boost\privacy; + +defined('MOODLE_INTERNAL') || die(); + +/** + * The boost theme does not store any data. + * + * @copyright 2018 Andrew Nicols + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ +class provider implements \core_privacy\local\metadata\null_provider { + + /** + * Get the language string identifier with the component's language + * file to explain why this plugin stores no data. + * + * @return string + */ + public static function get_reason() : string { + return 'privacy:metadata'; + } +} diff --git a/theme/boost/lang/en/theme_boost.php b/theme/boost/lang/en/theme_boost.php index d3941ee9ae2..10be3d8bc66 100644 --- a/theme/boost/lang/en/theme_boost.php +++ b/theme/boost/lang/en/theme_boost.php @@ -38,6 +38,7 @@ $string['presetfiles'] = 'Additional theme preset files'; $string['presetfiles_desc'] = 'Preset files can be used to dramatically alter the appearance of the theme. See Boost presets for information on creating and sharing your own preset files, and see the Presets repository for presets that others have shared.'; $string['preset'] = 'Theme preset'; $string['preset_desc'] = 'Pick a preset to broadly change the look of the theme.'; +$string['privacy:metadata'] = 'The Boost theme does not store any personal data about any user.'; $string['rawscss'] = 'Raw SCSS'; $string['rawscss_desc'] = 'Use this field to provide SCSS or CSS code which will be injected at the end of the style sheet.'; $string['rawscsspre'] = 'Raw initial SCSS'; diff --git a/theme/bootstrapbase/classes/privacy/provider.php b/theme/bootstrapbase/classes/privacy/provider.php new file mode 100644 index 00000000000..84816bc6aeb --- /dev/null +++ b/theme/bootstrapbase/classes/privacy/provider.php @@ -0,0 +1,46 @@ +. + +/** + * Privacy Subsystem implementation for theme_bootstrapbase. + * + * @package theme_bootstrapbase + * @copyright 2018 Andrew Nicols + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +namespace theme_bootstrapbase\privacy; + +defined('MOODLE_INTERNAL') || die(); + +/** + * The bootstrapbase theme does not store any data. + * + * @copyright 2018 Andrew Nicols + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ +class provider implements \core_privacy\local\metadata\null_provider { + + /** + * Get the language string identifier with the component's language + * file to explain why this plugin stores no data. + * + * @return string + */ + public static function get_reason() : string { + return 'privacy:metadata'; + } +} diff --git a/theme/bootstrapbase/lang/en/theme_bootstrapbase.php b/theme/bootstrapbase/lang/en/theme_bootstrapbase.php index daa40e13606..604c03e2622 100644 --- a/theme/bootstrapbase/lang/en/theme_bootstrapbase.php +++ b/theme/bootstrapbase/lang/en/theme_bootstrapbase.php @@ -23,6 +23,7 @@ */ $string['pluginname'] = 'Bootstrap Base'; +$string['privacy:metadata'] = 'The bootstrapbase theme does not store any personal data about any user.'; $string['region-side-post'] = 'Right'; $string['region-side-pre'] = 'Left'; diff --git a/theme/clean/classes/privacy/provider.php b/theme/clean/classes/privacy/provider.php new file mode 100644 index 00000000000..bcc17b84e94 --- /dev/null +++ b/theme/clean/classes/privacy/provider.php @@ -0,0 +1,46 @@ +. + +/** + * Privacy Subsystem implementation for theme_clean. + * + * @package theme_clean + * @copyright 2018 Andrew Nicols + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +namespace theme_clean\privacy; + +defined('MOODLE_INTERNAL') || die(); + +/** + * The clean theme does not store any data. + * + * @copyright 2018 Andrew Nicols + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ +class provider implements \core_privacy\local\metadata\null_provider { + + /** + * Get the language string identifier with the component's language + * file to explain why this plugin stores no data. + * + * @return string + */ + public static function get_reason() : string { + return 'privacy:metadata'; + } +} diff --git a/theme/clean/lang/en/theme_clean.php b/theme/clean/lang/en/theme_clean.php index 1394e338bfb..becb3afea65 100644 --- a/theme/clean/lang/en/theme_clean.php +++ b/theme/clean/lang/en/theme_clean.php @@ -60,7 +60,7 @@ $string['logo'] = 'Logo'; $string['logodesc'] = 'The logo is only displayed in the header of the front page and login page.
If the height of your logo is more than 75px add div.logo {height: 100px;} to the Custom CSS box below, amending accordingly if the height is other than 100px. If a logo is not added here, the logo in Appearance > Logos will be used.'; $string['pluginname'] = 'Clean'; - +$string['privacy:metadata'] = 'The Clean theme does not store any personal data about any user.'; $string['region-side-post'] = 'Right'; $string['region-side-pre'] = 'Left'; diff --git a/theme/more/classes/privacy/provider.php b/theme/more/classes/privacy/provider.php new file mode 100644 index 00000000000..c74f2cfe196 --- /dev/null +++ b/theme/more/classes/privacy/provider.php @@ -0,0 +1,46 @@ +. + +/** + * Privacy Subsystem implementation for theme_more. + * + * @package theme_more + * @copyright 2018 Andrew Nicols + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +namespace theme_more\privacy; + +defined('MOODLE_INTERNAL') || die(); + +/** + * The more theme does not store any data. + * + * @copyright 2018 Andrew Nicols + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ +class provider implements \core_privacy\local\metadata\null_provider { + + /** + * Get the language string identifier with the component's language + * file to explain why this plugin stores no data. + * + * @return string + */ + public static function get_reason() : string { + return 'privacy:metadata'; + } +} diff --git a/theme/more/lang/en/theme_more.php b/theme/more/lang/en/theme_more.php index 113ffad9af0..361867f5528 100644 --- a/theme/more/lang/en/theme_more.php +++ b/theme/more/lang/en/theme_more.php @@ -67,7 +67,7 @@ $string['logo'] = 'Logo'; $string['logodesc'] = 'The logo is only displayed in the header of the front page and login page.
If the height of your logo is more than 75px add div.logo {height: 100px;} to the Custom CSS box below, amending accordingly if the height is other than 100px. If a logo is not added here, the logo in Appearance > Logos will be used.'; $string['pluginname'] = 'More'; - +$string['privacy:metadata'] = 'The More theme does not store any personal data about any user.'; $string['region-side-post'] = 'Right'; $string['region-side-pre'] = 'Left'; $string['secondarybackground'] = 'Secondary background colour';