Example #1
0
                $recordingstring = get_string('recordingnone', 'elluminate');
                break;
        }
        if (!empty($recordingstring)) {
            echo '<p class="elluminaterecordingmode">' . $recordingstring . '</p>';
        }
    }
}
if ($participant && !$hasfinished) {
    //Create and display join session link
    if ($hasstarted) {
        $link = '<a href="' . $CFG->wwwroot . '/mod/elluminate/loadmeeting.php?id=' . $elluminate->id . '" target="_blank">' . get_string('joinsession', 'elluminate') . '</a>';
        echo '<p class="elluminatejoinmeeting">' . $link . '</p>';
        echo '<p class="elluminatesupportlink">';
        echo get_string('supportlinktext', 'elluminate');
        echo '<a href="' . elluminate_support_link() . '" target="_blank"> here </a></p>';
    }
    //Create and display external guest link
    if ($canviewguestlink) {
        $guest_link_text = elluminate_get_external_link_from_email_body($elluminate->meetingid);
        if ($guest_link_text !== false) {
            $guest_link = '<a href="' . $guest_link_text . '" target = "_blank">' . $guest_link_text . '</a>';
            echo '<p class="elluminateguestlink">' . get_string('guestlink', 'elluminate') . ': ' . $guest_link . '</p>';
        } else {
            if ($groupmode != 0) {
                //This is a group/grouping session. If we cannot retrieve the link, it may be because they have to join the session first to have it created.
                echo '<p class="elluminateguestlink">' . get_string('guestlinkgrouperror', 'elluminate') . '</p>';
            } else {
                echo '<p class="elluminateguestlink">' . get_string('guestlinkerror', 'elluminate') . '</p>';
            }
        }
            case ELLUMINATELIVE_RECORDING_AUTOMATIC:
                $recordingstring = get_string('recordingautomatic', 'elluminate');
                break;
            case ELLUMINATELIVE_RECORDING_NONE:
                $recordingstring = get_string('recordingnone', 'elluminate');
                break;
        }
        if (!empty($recordingstring)) {
            echo '<p class="elluminaterecordingmode">' . $recordingstring . '</p>';
        }
    }
}
if ($participant && $hasstarted && !$hasfinished) {
    $link = '<a href="' . $CFG->wwwroot . '/mod/elluminate/loadmeeting.php?id=' . $elluminate->id . '" target="_blank">' . get_string('joinsession', 'elluminate') . '</a>';
    echo '<p class="elluminatejoinmeeting">' . $link . '</p>';
    echo '<p class="elluminateverifysetup">' . get_string('supportlinktext', 'elluminate', elluminate_support_link()) . '</a>';
}
/// Display a link to play the recording if one exists.
if ($participant && $canviewrecordings && ($recordings = get_records('elluminate_recordings', 'meetingid', $elluminate->meetingid, 'created ASC'))) {
    $displayrecordings = array();
    $hasedit = false;
    foreach ($recordings as $recording) {
        /// Is this recording visible for non-managing users?
        if (!$canmanageanyrecordings && !$canmanagerecordings && !$recording->visible) {
            continue;
        }
        /// If the activity is using separate groups and this user isn't a member of the specific
        /// group the recording is for, has this recording been made available to them?
        if ($groupmode == VISIBLEGROUPS && ($currentgroup == 0 || $currentgroup != 0 && !groups_is_member($currentgroup, $USER->id)) && empty($recording->groupvisible)) {
            continue;
        }