mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 17:06:53 +02:00
quiz editing: MDL-17730 skip links
This commit is contained in:
parent
bb937d3f3e
commit
5669badfaf
1 changed files with 5 additions and 1 deletions
|
@ -566,7 +566,9 @@ $localcss= '<link rel="stylesheet" type="text/css" href="'.$CFG->wwwroot.
|
||||||
'/lib/yui/container/assets/container.css" />';
|
'/lib/yui/container/assets/container.css" />';
|
||||||
print_header_simple($pagetitle, '', $navigation, "", $localcss,true,
|
print_header_simple($pagetitle, '', $navigation, "", $localcss,true,
|
||||||
$questionbankmanagement.$strupdatemodule);
|
$questionbankmanagement.$strupdatemodule);
|
||||||
|
//TODO: these skip links really need to be right after the opening of the body element,
|
||||||
|
// and preferably implemented in an <ul> element. See MDL-17730.
|
||||||
|
echo '<a href="#quizcontentsblock" class="skip">Question bank</a> <a href="#quizcontentsblock" class="skip">Quiz contents</a>';
|
||||||
// Initialise the JavaScript.
|
// Initialise the JavaScript.
|
||||||
$quizeditconfig = new stdClass;
|
$quizeditconfig = new stdClass;
|
||||||
$quizeditconfig->url = $thispageurl->out(false, array('qbanktool' => '0'));
|
$quizeditconfig->url = $thispageurl->out(false, array('qbanktool' => '0'));
|
||||||
|
@ -602,6 +604,8 @@ $thispageurl->out(false,array('qbanktool'=>'1')).
|
||||||
'" id="hidebankcmd">['.get_string("hide").
|
'" id="hidebankcmd">['.get_string("hide").
|
||||||
']</a>
|
']</a>
|
||||||
', array("class"=>"questionbankwindow $bankclass"));
|
', array("class"=>"questionbankwindow $bankclass"));
|
||||||
|
|
||||||
|
echo '<span id="questionbank"></span>';
|
||||||
echo '<div class="container">';
|
echo '<div class="container">';
|
||||||
echo '<div id="module" class="module">';
|
echo '<div id="module" class="module">';
|
||||||
echo '<div class="bd">';
|
echo '<div class="bd">';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue