Merge branch 'MDL-70274-39-2' of https://github.com/lameze/moodle into MOODLE_39_STABLE

This commit is contained in:
Jun Pataleta
2021-11-29 12:25:37 +08:00
2 changed files with 11 additions and 7 deletions
+2
View File
@@ -2200,6 +2200,7 @@ $string['useruploadtype'] = 'User upload type: {$a}';
$string['userzones'] = 'User zones';
$string['usetheme'] = 'Use theme';
$string['usingexistingcourse'] = 'Using existing course';
$string['validatehtml'] = 'Validate HTML';
$string['valuealreadyused'] = 'This value has already been used.';
$string['version'] = 'Version';
$string['view'] = 'View';
@@ -2215,6 +2216,7 @@ $string['viewsolution'] = 'view solution';
$string['visible'] = 'Visible';
$string['visible_help'] = 'This setting determines whether the course appears in the list of courses. Apart from teachers and administrators, users are not allowed to enter the course.';
$string['visibletostudents'] = 'Visible to {$a}';
$string['wcagcheck'] = 'Web Content Accessibility Guidelines (WCAG) check';
$string['warning'] = 'Warning';
$string['warningdeleteresource'] = 'Warning: {$a} is referred in a resource. Would you like to update the resource?';
$string['webpage'] = 'Web page';
+9 -7
View File
@@ -872,13 +872,15 @@ class core_renderer extends renderer_base {
html_writer::link($purgeurl, get_string('purgecaches', 'admin')) . '</div>';
}
if (!empty($CFG->debugvalidators)) {
// NOTE: this is not a nice hack, $this->page->url is not always accurate and
// $FULLME neither, it is not a bug if it fails. --skodak.
$output .= '<div class="validators"><ul class="list-unstyled ml-1">
<li><a href="http://validator.w3.org/check?verbose=1&amp;ss=1&amp;uri=' . urlencode(qualified_me()) . '">Validate HTML</a></li>
<li><a href="http://www.contentquality.com/mynewtester/cynthia.exe?rptmode=-1&amp;url1=' . urlencode(qualified_me()) . '">Section 508 Check</a></li>
<li><a href="http://www.contentquality.com/mynewtester/cynthia.exe?rptmode=0&amp;warnp2n3e=1&amp;url1=' . urlencode(qualified_me()) . '">WCAG 1 (2,3) Check</a></li>
</ul></div>';
$siteurl = qualified_me();
$nuurl = new moodle_url('https://validator.w3.org/nu/', ['doc' => $siteurl, 'showsource' => 'yes']);
$waveurl = new moodle_url('https://wave.webaim.org/report#/' . urlencode($siteurl));
$validatorlinks = [
html_writer::link($nuurl, get_string('validatehtml')),
html_writer::link($waveurl, get_string('wcagcheck'))
];
$validatorlinkslist = html_writer::alist($validatorlinks, ['class' => 'list-unstyled ml-1']);
$output .= html_writer::div($validatorlinkslist, 'validators');
}
return $output;
}