mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
MDL-58220 block_login: Update icon rendering of idp list
This commit is contained in:
parent
13b449f4a5
commit
f59d81f487
@ -114,8 +114,13 @@ class block_login extends block_base {
|
||||
$this->content->text .= '<h6>' . get_string('potentialidps', 'auth') . '</h6>';
|
||||
$this->content->text .= '<div class="potentialidplist">';
|
||||
foreach ($potentialidps as $idp) {
|
||||
$this->content->text .= '<div class="potentialidp"><a href="' . $idp['url']->out() . '" title="' . s($idp['name']) . '">';
|
||||
$this->content->text .= $OUTPUT->render($idp['icon'], $idp['name']) . s($idp['name']) . '</a></div>';
|
||||
$this->content->text .= '<div class="potentialidp">';
|
||||
$this->content->text .= '<a class="btn btn-secondary btn-block" ';
|
||||
$this->content->text .= 'href="' . $idp['url']->out() . '" title="' . s($idp['name']) . '">';
|
||||
if (!empty($idp['iconurl'])) {
|
||||
$this->content->text .= '<img src="' . s($idp['iconurl']) . '" width="24" height="24" class="m-r-1"/>';
|
||||
}
|
||||
$this->content->text .= s($idp['name']) . '</a></div>';
|
||||
}
|
||||
$this->content->text .= '</div>';
|
||||
$this->content->text .= '</div>';
|
||||
|
@ -1,6 +1,8 @@
|
||||
This files describes API changes in core libraries and APIs,
|
||||
information provided here is intended especially for developers.
|
||||
=== 3.3 ===
|
||||
* The information returned by the idp list has changed. This is usually only rendered by the login page and login block.
|
||||
The icon attribute is removed and an iconurl attribute has been added.
|
||||
* Support added for a new type of external file: FILE_CONTROLLED_LINK. This is an external file that Moodle can control
|
||||
the permissions. Moodle makes files read-only but can grant temporary write access.
|
||||
When accessing a URL, the info from file_browser::get_file_info will be checked to determine if the user has write access,
|
||||
|
Loading…
x
Reference in New Issue
Block a user