Minor - Plugins: Zoom - Fix links

BT#17288
pull/3433/head
Julio Montoya 5 years ago
parent 8c4a907a6b
commit 9feff2d04b
  1. 15
      plugin/zoom/lib/ZoomPlugin.php
  2. 6
      plugin/zoom/meeting.php
  3. 1
      plugin/zoom/meetings.php
  4. 59
      plugin/zoom/view/meeting.tpl

@ -139,15 +139,18 @@ class ZoomPlugin extends Plugin
public function getProfileBlockItems() public function getProfileBlockItems()
{ {
$elements = $this->meetingsToWhichCurrentUserIsRegisteredComingSoon(); $elements = $this->meetingsToWhichCurrentUserIsRegisteredComingSoon();
/*if (self::currentUserCanJoinGlobalMeeting()) { $addMeetingLink = false;
$elements[$this->get_lang('CreateGlobalVideoConference')] = api_get_path(WEB_PLUGIN_PATH).'zoom/global.php'; if (self::currentUserCanJoinGlobalMeeting()) {
$addMeetingLink = true;
} }
if (self::currentUserCanCreateUserMeeting()) { if (self::currentUserCanCreateUserMeeting()) {
$elements[$this->get_lang('CreateUserVideoConference')] = api_get_path(WEB_PLUGIN_PATH).'zoom/user.php'; $addMeetingLink = true;
}*/ }
if ($addMeetingLink) {
$elements[$this->get_lang('Meetings')] = api_get_path(WEB_PLUGIN_PATH).'zoom/meetings.php'; $elements[$this->get_lang('Meetings')] = api_get_path(WEB_PLUGIN_PATH).'zoom/meetings.php';
}
$items = []; $items = [];
foreach ($elements as $title => $link) { foreach ($elements as $title => $link) {
@ -892,7 +895,7 @@ class ZoomPlugin extends Plugin
$durationNumeric = $form->addNumeric('duration', $this->get_lang('DurationInMinutes')); $durationNumeric = $form->addNumeric('duration', $this->get_lang('DurationInMinutes'));
$form->setRequired($durationNumeric); $form->setRequired($durationNumeric);
/*if (null === $course) { if (null === $course) {
$options = []; $options = [];
if ('true' === $this->get('enableGlobalConference')) { if ('true' === $this->get('enableGlobalConference')) {
$options['everyone'] = $this->get_lang('ForEveryone'); $options['everyone'] = $this->get_lang('ForEveryone');
@ -914,6 +917,7 @@ class ZoomPlugin extends Plugin
$form->addHidden('type', 'course'); $form->addHidden('type', 'course');
} }
/*
// $passwordText = $form->addText('password', get_lang('Password'), false, ['maxlength' => '10']); // $passwordText = $form->addText('password', get_lang('Password'), false, ['maxlength' => '10']);
if (null !== $course) { if (null !== $course) {
$registrationOptions = [ $registrationOptions = [
@ -1329,7 +1333,6 @@ class ZoomPlugin extends Plugin
$actionsLeft = ''; $actionsLeft = '';
$back = ''; $back = '';
$courseId = api_get_course_id(); $courseId = api_get_course_id();
if (empty($courseId)) { if (empty($courseId)) {
$actionsLeft .= $actionsLeft .=
Display::url( Display::url(

@ -21,11 +21,12 @@ if (null === $meeting) {
$course_plugin = 'zoom'; // needed in order to load the plugin lang variables $course_plugin = 'zoom'; // needed in order to load the plugin lang variables
$returnURL = 'meetings.php'; $returnURL = 'meetings.php';
$urlExtra = '';
if ($meeting->isCourseMeeting()) { if ($meeting->isCourseMeeting()) {
api_protect_course_script(true); api_protect_course_script(true);
$this_section = SECTION_COURSES; $this_section = SECTION_COURSES;
$returnURL = 'start.php?cId='.api_get_course_id().'&sessionId='.api_get_session_id(); $returnURL = 'start.php?'.api_get_cidreq();
$urlExtra = api_get_cidreq();
} }
$logInfo = [ $logInfo = [
@ -75,5 +76,6 @@ if ($plugin->userIsConferenceManager($meeting)) {
$tpl->assign('actions', $plugin->getToolbar()); $tpl->assign('actions', $plugin->getToolbar());
$tpl->assign('meeting', $meeting); $tpl->assign('meeting', $meeting);
$tpl->assign('url_extra', $urlExtra);
$tpl->assign('content', $tpl->fetch('zoom/view/meeting.tpl')); $tpl->assign('content', $tpl->fetch('zoom/view/meeting.tpl'));
$tpl->display_one_col_template(); $tpl->display_one_col_template();

@ -4,6 +4,7 @@
$course_plugin = 'zoom'; // needed in order to load the plugin lang variables $course_plugin = 'zoom'; // needed in order to load the plugin lang variables
$cidReset = true;
require_once __DIR__.'/config.php'; require_once __DIR__.'/config.php';
if (!ZoomPlugin::currentUserCanCreateUserMeeting()) { if (!ZoomPlugin::currentUserCanCreateUserMeeting()) {

@ -5,7 +5,7 @@
<div class="btn-group" role="group"> <div class="btn-group" role="group">
{% if meeting.meetingInfoGet.status != 'finished' %} {% if meeting.meetingInfoGet.status != 'finished' %}
<a class="btn btn-primary" href="join_meeting.php?meetingId={{ meeting.meetingId }}"> <a class="btn btn-primary" href="join_meeting.php?meetingId={{ meeting.meetingId }}&{{ url_extra }}">
{{ 'ViewMeeting'|get_plugin_lang('ZoomPlugin') }} {{ 'ViewMeeting'|get_plugin_lang('ZoomPlugin') }}
</a> </a>
{% endif %} {% endif %}
@ -17,12 +17,36 @@
</a> </a>
{% endif %} {% endif %}
<a class="btn btn-default" href="activity.php?meetingId={{ meeting.meetingId }}"> <a class="btn btn-default" href="activity.php?meetingId={{ meeting.meetingId }}&{{ url_extra }}">
{{ 'Activity'|get_plugin_lang('ZoomPlugin') }} {{ 'Activity'|get_plugin_lang('ZoomPlugin') }}
</a> </a>
{% endif %} {% endif %}
</div>
{% if isConferenceManager %}
<br />
<br />
<div class="panel panel-default conference">
<div class="panel-body">
<div class="share">
{{ 'JoinURLToSendToParticipants'| get_plugin_lang('ZoomPlugin') }}
</div> </div>
<div class="form-inline">
<div class="form-group">
<input id="share_button_flash" type="text"
style="width:460px"
class="form-control" readonly
value="{{ _p.web_main }}plugin/zoom/join_meeting.php?meetingId={{ meeting.meetingId }}&{{ url_extra }}"
>
<button onclick="copyTextToClipBoard('share_button_flash');" class="btn btn-default">
<span class="fa fa-copy"></span> {{ 'CopyTextToClipboard' | get_lang }}
</button>
</div>
</div>
</div>
</div>
{% endif %}
{% if currentUserJoinURL %} {% if currentUserJoinURL %}
{#<p>#} {#<p>#}
{# <a href="{{ currentUserJoinURL }}" target="_blank">#} {# <a href="{{ currentUserJoinURL }}" target="_blank">#}
@ -31,19 +55,6 @@
{#</p>#} {#</p>#}
{% endif %} {% endif %}
{% if meeting.meetingInfoGet.settings.approval_type == 2 %}
<label>
{{ 'JoinURLToSendToParticipants'|get_plugin_lang('ZoomPlugin') }}
</label>
<div class="form-inline">
<div class="form-group">
<input
class="form-control" type="text" style="width:300px" readonly
value="{{ meeting.meetingInfoGet.join_url }}" />
</div>
</div>
{% endif %}
{% if isConferenceManager %} {% if isConferenceManager %}
{{ editMeetingForm }} {{ editMeetingForm }}
{{ deleteMeetingForm }} {{ deleteMeetingForm }}
@ -73,15 +84,15 @@
{{ registrant.fullName }} {{ registrant.fullName }}
</td> </td>
<td> <td>
{% if registrant.joinUrl %} {# {% if registrant.joinUrl %}#}
<a class="btn btn-primary" onclick="copyJoinURL(event, '{{ registrant.joinUrl }}')"> {# <a class="btn btn-primary" onclick="copyJoinURL(event, '{{ registrant.joinUrl }}')">#}
{{ 'CopyJoinAsURL'|get_plugin_lang('ZoomPlugin') }} {# {{ 'CopyJoinAsURL'|get_plugin_lang('ZoomPlugin') }}#}
</a> {# </a>#}
{% else %} {# {% else %}#}
<a class="btn btn-primary disabled" > {# <a class="btn btn-primary disabled" >#}
{{ 'JoinURLNotAvailable'|get_plugin_lang('ZoomPlugin') }} {# {{ 'JoinURLNotAvailable'|get_plugin_lang('ZoomPlugin') }}#}
</a> {# </a>#}
{% endif %} {# {% endif %}#}
</td> </td>
</tr> </tr>
{% endfor %} {% endfor %}

Loading…
Cancel
Save