in block_microsoft.php [461:486]
protected function get_user_content_not_connected() {
global $USER;
$html = html_writer::tag('h5', get_string('notconnected', 'block_microsoft'));
$connecturl = new moodle_url('/local/o365/ucp.php');
$connectstr = get_string('connecttoo365', 'block_microsoft');
$items = [];
if (auth_oidc_connectioncapability($USER->id, 'connect') === true || local_o365_connectioncapability($USER->id, 'link')) {
if (!empty($this->globalconfig->settings_showo365connect)) {
$items[] = html_writer::link($connecturl, $connectstr, ['class' => 'servicelink block_microsoft_connection']);
}
}
$items[] = $this->render_onenote();
$downloadlinks = $this->get_content_o365download();
foreach ($downloadlinks as $link) {
$items[] = $link;
}
$html .= html_writer::alist($items);
return $html;
}