diff --git a/plugin/zoom/lang/english.php b/plugin/zoom/lang/english.php index 74b7b5bb89..78d36753c2 100755 --- a/plugin/zoom/lang/english.php +++ b/plugin/zoom/lang/english.php @@ -10,6 +10,9 @@ $strings['apiKey'] = 'API Key'; $strings['apiSecret'] = 'API Secret'; $strings['enableParticipantRegistration'] = 'Enable participant registration'; $strings['enableCloudRecording'] = 'Enable cloud recording'; +$strings['enableGlobalConference'] = 'Enable global conference'; +$strings['enableGlobalConferencePerUser'] = 'Enable global conference per user'; +$strings['globalConferenceAllowRoles'] = "Global conference link only visible for these user roles"; $strings['tool_enable_help'] = "Choose whether you want to enable the Zoom videoconference tool. Once enabled, it will show as an additional course tool in all courses' homepage : diff --git a/plugin/zoom/lang/french.php b/plugin/zoom/lang/french.php index eb30595555..95fc9dbb81 100755 --- a/plugin/zoom/lang/french.php +++ b/plugin/zoom/lang/french.php @@ -10,6 +10,9 @@ $strings['apiKey'] = "Clé d'API (API Key)"; $strings['apiSecret'] = "Code secret d'API (API Secret)"; $strings['enableParticipantRegistration'] = "Activer l'inscription des participants"; $strings['enableCloudRecording'] = "Activer l'enregistrement sur les serveurs de Zoom"; +$strings['enableGlobalConference'] = "Activer les conférences globales"; +$strings['enableGlobalConferencePerUser'] = "Activer les conférences globales par utilisateur"; +$strings['globalConferenceAllowRoles'] = "Visibilité du lien de vidéo conférence global pour les profils suivant"; $strings['tool_enable_help'] = "Choisissez si vous voulez activer l'outil de conférence vidéo Zoom. Une fois activé, il apparaitra dans les pages d'accueil de tous les cours : diff --git a/plugin/zoom/lib/zoom_plugin.class.php b/plugin/zoom/lib/zoom_plugin.class.php index fe0cd15be4..5c377b7884 100755 --- a/plugin/zoom/lib/zoom_plugin.class.php +++ b/plugin/zoom/lib/zoom_plugin.class.php @@ -36,6 +36,18 @@ class ZoomPlugin extends Plugin 'apiSecret' => 'text', 'enableParticipantRegistration' => 'boolean', 'enableCloudRecording' => 'boolean', + 'enableGlobalConference' => 'boolean', + 'enableGlobalConferencePerUser' => 'boolean', + 'globalConferenceAllowRoles' => [ + 'type' => 'select', + 'options' => [ + PLATFORM_ADMIN => get_lang('Administrator'), + COURSEMANAGER => get_lang('Teacher'), + STUDENT => get_lang('Student'), + STUDENT_BOSS => get_lang('StudentBoss'), + ], + 'attributes' => ['multiple' => 'multiple'], + ], ] );