Revert "MDL-71915 question: Update the tertiary nav"

This reverts commit 26eabeccf4.
This commit is contained in:
Sujith Haridasan 2022-01-09 13:12:48 +05:30 committed by Tim Hunt
parent ae377f6940
commit 73aeabab0b
7 changed files with 13 additions and 197 deletions

View file

@ -48,13 +48,11 @@ $PAGE->set_title($strexportquestions);
$PAGE->set_heading($COURSE->fullname);
$PAGE->activityheader->disable();
// Print horizontal nav if needed.
$renderer = $PAGE->get_renderer('core_question', 'bank');
echo $OUTPUT->header();
$qbankaction = new \core_question\output\qbank_actionbar($thispageurl);
echo $renderer->qbank_action_menu($qbankaction);
// Print horizontal nav if needed.
$renderer = $PAGE->get_renderer('core_question', 'bank');
echo $renderer->extra_horizontal_navigation();
$exportform = new export_form($thispageurl,
['contexts' => $contexts->having_one_edit_tab_cap('export'), 'defaultcategory' => $pagevars['cat']]);

View file

@ -75,13 +75,12 @@ $PAGE->set_title($txt->importquestions);
$PAGE->set_heading($COURSE->fullname);
$PAGE->activityheader->disable();
// Print horizontal nav if needed.
$renderer = $PAGE->get_renderer('core_question', 'bank');
echo $OUTPUT->header();
$qbankaction = new \core_question\output\qbank_actionbar($thispageurl);
echo $renderer->qbank_action_menu($qbankaction);
// Print horizontal nav if needed.
$renderer = $PAGE->get_renderer('core_question', 'bank');
echo $renderer->extra_horizontal_navigation();
// File upload form submitted.
if ($form = $importform->get_data()) {

View file

@ -152,13 +152,11 @@ $PAGE->set_title(get_string('editcategories', 'question'));
$PAGE->set_heading($COURSE->fullname);
$PAGE->activityheader->disable();
// Print horizontal nav if needed.
$renderer = $PAGE->get_renderer('core_question', 'bank');
echo $OUTPUT->header();
$qbankaction = new \core_question\output\qbank_actionbar($url);
echo $renderer->qbank_action_menu($qbankaction);
// Print horizontal nav if needed.
$renderer = $PAGE->get_renderer('core_question', 'bank');
echo $renderer->extra_horizontal_navigation();
// Display the UI.
if (!empty($param->edit)) {