Merge branch 'MDL-71187-master' of git://github.com/lucaboesch/moodle
This commit is contained in:
@@ -530,11 +530,15 @@ class quizaccess_seb extends quiz_access_rule_base {
|
||||
* @return string A link to launch Safe Exam Browser.
|
||||
*/
|
||||
private function get_launch_seb_button() : string {
|
||||
global $OUTPUT;
|
||||
|
||||
// Rendering as a href and not as button in a form to circumvent browser warnings for sending to URL with unknown protocol.
|
||||
$seblink = \quizaccess_seb\link_generator::get_link($this->quiz->cmid, true, is_https());
|
||||
|
||||
return $OUTPUT->single_button($seblink, get_string('seblinkbutton', 'quizaccess_seb'), 'get');
|
||||
$buttonlink = html_writer::start_tag('div', array('class' => 'singlebutton'));
|
||||
$buttonlink .= html_writer::link($seblink, get_string('seblinkbutton', 'quizaccess_seb'),
|
||||
['class' => 'btn btn-secondary', 'title' => get_string('seblinkbutton', 'quizaccess_seb')]);
|
||||
$buttonlink .= html_writer::end_tag('div');
|
||||
|
||||
return $buttonlink;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -543,11 +547,15 @@ class quizaccess_seb extends quiz_access_rule_base {
|
||||
* @return string A link to launch Safe Exam Browser.
|
||||
*/
|
||||
private function get_download_config_button() : string {
|
||||
global $OUTPUT;
|
||||
|
||||
// Rendering as a href and not as button in a form to circumvent browser warnings for sending to URL with unknown protocol.
|
||||
$httplink = \quizaccess_seb\link_generator::get_link($this->quiz->cmid, false, is_https());
|
||||
|
||||
return $OUTPUT->single_button($httplink, get_string('httplinkbutton', 'quizaccess_seb'), 'get');
|
||||
$buttonlink = html_writer::start_tag('div', array('class' => 'singlebutton'));
|
||||
$buttonlink .= html_writer::link($httplink, get_string('httplinkbutton', 'quizaccess_seb'),
|
||||
['class' => 'btn btn-secondary', 'title' => get_string('httplinkbutton', 'quizaccess_seb')]);
|
||||
$buttonlink .= html_writer::end_tag('div');
|
||||
|
||||
return $buttonlink;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user