Skip to content

Commit

Permalink
Merge branch 'MDL-70274-master-2' of https://github.com/lameze/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
junpataleta committed Nov 29, 2021
2 parents 267fd27 + b179f74 commit 16b42a2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
2 changes: 2 additions & 0 deletions lang/en/moodle.php
Expand Up @@ -2263,6 +2263,7 @@
$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';
Expand All @@ -2278,6 +2279,7 @@
$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';
Expand Down
16 changes: 9 additions & 7 deletions lib/outputrenderers.php
Expand Up @@ -898,13 +898,15 @@ public function debug_footer_html() {
$output .= $this->render_from_template('core/local/reactive/debugpanel', []);
}
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;
}
Expand Down

0 comments on commit 16b42a2

Please sign in to comment.