From c1bc5df576a26f19265be60269f6b3bee3d63edb Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Fri, 24 Jan 2020 15:53:21 +0100 Subject: [PATCH] MDL-67806 tool_mobile: Add Dark mode option in disabled features We must allow site admins to remotely disable that feature in the app --- admin/tool/mobile/classes/api.php | 1 + admin/tool/mobile/lang/en/tool_mobile.php | 1 + 2 files changed, 2 insertions(+) diff --git a/admin/tool/mobile/classes/api.php b/admin/tool/mobile/classes/api.php index a60b8f6b95c..c52ad256c5f 100644 --- a/admin/tool/mobile/classes/api.php +++ b/admin/tool/mobile/classes/api.php @@ -421,6 +421,7 @@ class api { 'NoDelegate_CoreTag' => new lang_string('tags'), '$mmLoginEmailSignup' => new lang_string('startsignup'), 'NoDelegate_ResponsiveMainMenuItems' => new lang_string('responsivemainmenuitems', 'tool_mobile'), + 'NoDelegate_DarkMode' => new lang_string('darkmode', 'tool_mobile'), ), "$mainmenu" => array( '$mmSideMenuDelegate_mmaFrontpage' => new lang_string('sitehome'), diff --git a/admin/tool/mobile/lang/en/tool_mobile.php b/admin/tool/mobile/lang/en/tool_mobile.php index e9d2fd81d0a..15a115d5830 100644 --- a/admin/tool/mobile/lang/en/tool_mobile.php +++ b/admin/tool/mobile/lang/en/tool_mobile.php @@ -51,6 +51,7 @@ App help|https://someurl.xyz/help|inappbrowser My grades|https://someurl.xyz/local/mygrades/index.php|embedded|en Mis calificaciones|https://someurl.xyz/local/mygrades/index.php|embedded|es '; +$string['darkmode'] = 'Dark mode'; $string['disabledfeatures'] = 'Disabled features'; $string['disabledfeatures_desc'] = 'Select here the features you want to disable in the Mobile app for your site. Please note that some features listed here could be already disabled via other site settings. You will have to log out and log in again in the app to see the changes.'; $string['displayerrorswarning'] = 'Display debug messages (debugdisplay) is enabled. It should be disabled.';