diff --git a/plugin/zoom/lang/english.php b/plugin/zoom/lang/english.php index 8710b6b3a0..e317d5a0fa 100755 --- a/plugin/zoom/lang/english.php +++ b/plugin/zoom/lang/english.php @@ -134,3 +134,5 @@ $strings['Recordings'] = "Recordings"; $strings['CreateGlobalVideoConference'] = "Create global video conference"; $strings['ConferenceNotStarted'] = "Conference not started"; $strings['MeetingNotFound'] = "Meeting not found"; +$strings['JoinURLNotAvailable'] = "URL not available"; + diff --git a/plugin/zoom/lang/french.php b/plugin/zoom/lang/french.php index 94a1722a0e..56cddc4e6b 100755 --- a/plugin/zoom/lang/french.php +++ b/plugin/zoom/lang/french.php @@ -132,3 +132,4 @@ $strings['YouAreNotRegisteredToThisMeeting'] = "Vous n'êtes pas inscrit à cett $strings['ZoomVideoConferences'] = "Conférences vidéo Zoom"; $strings['Recordings'] = "Enregistrements"; $strings['CreateGlobalVideoConference'] = "Créer une conférence global"; +$strings['JoinURLNotAvailable'] = "URL pas disponible"; diff --git a/plugin/zoom/lang/spanish.php b/plugin/zoom/lang/spanish.php index 9725236db6..abe0956031 100644 --- a/plugin/zoom/lang/spanish.php +++ b/plugin/zoom/lang/spanish.php @@ -132,3 +132,4 @@ $strings['YouAreNotRegisteredToThisMeeting'] = "No estás registrado en esta reu $strings['ZoomVideoConferences'] = "Videoconferencias Zoom"; $strings['Recordings'] = "Grabaciones"; $strings['CreateGlobalVideoConference'] = "Crear una videoconferencia global"; +$strings['JoinURLNotAvailable'] = "URL no disponible"; diff --git a/plugin/zoom/lib/zoom_plugin.class.php b/plugin/zoom/lib/zoom_plugin.class.php index 7f95801e1a..01fa68911f 100755 --- a/plugin/zoom/lib/zoom_plugin.class.php +++ b/plugin/zoom/lib/zoom_plugin.class.php @@ -855,7 +855,7 @@ class ZoomPlugin extends Plugin // the participant must be registered $participant = api_get_user_entity(api_get_user_id()); $registrant = $meeting->getRegistrant($participant); - if (!is_null($registrant)) { + if (null != $registrant) { // the participant is registered return $registrant->getCreatedRegistration()->join_url; } diff --git a/plugin/zoom/view/meeting.tpl b/plugin/zoom/view/meeting.tpl index ca51129b58..74a9763ab4 100644 --- a/plugin/zoom/view/meeting.tpl +++ b/plugin/zoom/view/meeting.tpl @@ -58,20 +58,29 @@ } - - {% for registrant in registrants %} - - - - - {% endfor %} + {% if registrants.count > 0 %} +

{{ 'Users' | get_lang }}

+
- {{ registrant.fullName }} - - - {{ 'CopyJoinAsURL'|get_plugin_lang('ZoomPlugin') }} - -
+ {% for registrant in registrants %} + + + + + {% endfor %}
+ {{ registrant.fullName }} + + {% if registrant.join_url %} + + {{ 'CopyJoinAsURL'|get_plugin_lang('ZoomPlugin') }} + + {% else %} + + {{ 'JoinURLNotAvailable'|get_plugin_lang('ZoomPlugin') }} + + {% endif %} +
+ {% endif %} {% endif %} {% else %}