mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
MDL-20447 - bulk upload: add page heading
This commit is contained in:
parent
5dd61a54b7
commit
0f56fde284
9 changed files with 15 additions and 12 deletions
|
@ -80,6 +80,7 @@ if (!empty($appendqnumstring)) {
|
|||
$PAGE->set_url('/question/addquestion.php', $hiddenparams);
|
||||
|
||||
$chooseqtype = get_string('chooseqtypetoadd', 'question');
|
||||
$PAGE->set_heading($COURSE->fullname);
|
||||
if ($cm !== null) {
|
||||
if (stripos($returnurl, "$CFG->wwwroot/mod/{$cm->modname}/view.php")!== 0) {
|
||||
//don't need this link if returnurl returns to view.php
|
||||
|
|
|
@ -91,7 +91,7 @@
|
|||
}
|
||||
|
||||
$PAGE->set_title($streditingcategories);
|
||||
$PAGE->set_heading($streditingcategories);
|
||||
$PAGE->set_heading($COURSE->fullname);
|
||||
echo $OUTPUT->header();
|
||||
|
||||
// display UI
|
||||
|
|
|
@ -193,7 +193,7 @@
|
|||
$PAGE->set_url($thispageurl->out());
|
||||
$PAGE->navbar->add($streditingcategories, $thispageurl->out());
|
||||
$PAGE->navbar->add(get_string('movingcategory', 'question'));
|
||||
$PAGE->set_title($streditingcategories);
|
||||
$PAGE->set_header($COURSE->fullname);
|
||||
echo $OUTPUT->header();
|
||||
|
||||
//parameter for get_string
|
||||
|
|
|
@ -173,6 +173,7 @@ $strmovingquestions = get_string('movingquestions', 'question');
|
|||
$PAGE->set_url($thispageurl->out());
|
||||
$PAGE->navbar->add($strmovingquestions);
|
||||
$PAGE->set_title($strmovingquestions);
|
||||
$PAGE->set_heading($COURSE->fullname);
|
||||
echo $OUTPUT->header();
|
||||
|
||||
//parameter for get_string
|
||||
|
|
|
@ -68,7 +68,7 @@
|
|||
$context = $contexts->lowest();
|
||||
$streditingquestions = get_string('editquestions', "quiz");
|
||||
$PAGE->set_title($streditingquestions);
|
||||
$PAGE->set_heading($streditingquestions);
|
||||
$PAGE->set_heading($COURSE->fullname);
|
||||
echo $OUTPUT->header();
|
||||
|
||||
echo '<div class="questionbankwindow boxwidthwide boxaligncenter">';
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
/// Header
|
||||
$PAGE->set_url($thispageurl->out());
|
||||
$PAGE->set_title($strexportquestions);
|
||||
$PAGE->set_heading($strexportquestions);
|
||||
$PAGE->set_heading($COURSE->fullname);
|
||||
echo $OUTPUT->header();
|
||||
|
||||
$exportfilename = default_export_filename($COURSE, $category);
|
||||
|
|
|
@ -58,7 +58,7 @@
|
|||
// PAGE HEADER
|
||||
//==========
|
||||
$PAGE->set_title($txt->importquestions);
|
||||
$PAGE->set_heading($txt->importquestions);
|
||||
$PAGE->set_heading($COURSE->fullname);
|
||||
echo $OUTPUT->header();
|
||||
|
||||
// file upload form sumitted
|
||||
|
|
|
@ -209,8 +209,8 @@
|
|||
$questionlist = array($id);
|
||||
get_html_head_contributions($questionlist, $questions, $states[$historylength]);
|
||||
$PAGE->set_title($strpreview);
|
||||
$PAGE->set_heading($COURSE->fullname);
|
||||
echo $OUTPUT->header();
|
||||
echo $OUTPUT->heading($strpreview);
|
||||
|
||||
if (!empty($quizid)) {
|
||||
echo '<p class="quemodname">'.get_string('modulename', 'quiz') . ': ';
|
||||
|
|
|
@ -287,6 +287,7 @@ if ($mform->is_cancelled()){
|
|||
|
||||
$streditingquestion = $QTYPES[$question->qtype]->get_heading();
|
||||
$PAGE->set_title($streditingquestion);
|
||||
$PAGE->set_heading($COURSE->fullname);
|
||||
if ($cm !== null) {
|
||||
$strmodule = get_string('modulename', $cm->modname);
|
||||
$streditingmodule = get_string('editinga', 'moodle', $strmodule);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue