Proyectos de Subversion Moodle

Rev

Rev 1 | Rev 986 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 985
Línea 486... Línea 486...
486
 
486
 
487
    // Output table.
487
    // Output table.
488
    echo html_writer::table($table);
488
    echo html_writer::table($table);
Línea -... Línea 489...
-
 
489
}
-
 
490
 
-
 
491
$description;
-
 
492
 
-
 
493
$modules = get_fast_modinfo($course->id)->get_cms();
-
 
494
 
-
 
495
foreach ($modules as $module) {
-
 
496
 
-
 
497
    if ($module->section  != $section->id) {
-
 
498
        continue;
-
 
499
    }
-
 
500
 
-
 
501
    if (!$module->uservisible || $module->is_stealth()) {
-
 
502
        // if (!$module->uservisible || $module->is_stealth() || empty($module->url)) {
-
 
503
        continue;
-
 
504
    }
-
 
505
 
-
 
506
    $modname = $module->get_formatted_name();
-
 
507
 
-
 
508
    if (str_contains(strtolower($modname), 'zoom')) {
-
 
509
        $modcontent = $module->get_formatted_content();
-
 
510
        $description = $modcontent;
-
 
511
    }
-
 
512
}
-
 
513
 
489
}
514
 
490
 
515
 
491
// Supplementary feature: All meetings link.
516
// Supplementary feature: All meetings link.
492
// Only show if the admin did not disable this feature completely.
517
// Only show if the admin did not disable this feature completely.
493
if ($config->showallmeetings != ZOOM_ALLMEETINGS_DISABLE) {
518
if ($config->showallmeetings != ZOOM_ALLMEETINGS_DISABLE) {
494
    $urlall = new moodle_url('/mod/zoom/index.php', ['id' => $course->id]);
519
    $urlall = new moodle_url('/mod/zoom/index.php', ['id' => $course->id]);
495
    $linkall = html_writer::link($urlall, $strall);
520
    $linkall = html_writer::link($urlall, $strall);
-
 
521
    echo $OUTPUT->box_start('generalbox mt-4 pt-4 border-top text-center');
496
    echo $OUTPUT->box_start('generalbox mt-4 pt-4 border-top text-center');
522
    echo $linkall;
497
    echo $linkall;
523
    echo $description;
Línea 498... Línea 524...
498
    echo $OUTPUT->box_end();
524
    echo $OUTPUT->box_end();
499
}
525
}