mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 20:50:21 +01:00
add page heading
This commit is contained in:
parent
c93fdc7b71
commit
bd08a24a8a
@ -94,7 +94,7 @@ $strcalendar = get_string('calendar', 'calendar');
|
||||
$PAGE->navbar->add($strcalendar, $viewcalendarurl);
|
||||
$PAGE->navbar->add($title);
|
||||
$PAGE->set_title($site->shortname.': '.$strcalendar.': '.$title);
|
||||
$PAGE->set_heading($strcalendar);
|
||||
$PAGE->set_heading($COURSE->fullname);
|
||||
|
||||
echo $OUTPUT->header();
|
||||
echo $OUTPUT->box_start('eventlist');
|
||||
|
@ -203,7 +203,7 @@ if ($data) {
|
||||
$PAGE->navbar->add($strcalendar, $link);
|
||||
$PAGE->navbar->add($title);
|
||||
$PAGE->set_title($site->shortname.': '.$strcalendar.': '.$title);
|
||||
$PAGE->set_heading($strcalendar);
|
||||
$PAGE->set_heading($COURSE->fullname);
|
||||
|
||||
echo $OUTPUT->header();
|
||||
|
||||
|
@ -67,7 +67,7 @@ if ($course->id != SITEID) {
|
||||
$PAGE->navbar->add($strpreferences, new moodle_url('/calendar/view.php'));
|
||||
|
||||
$PAGE->set_title("$site->shortname: $strcalendar: $strpreferences");
|
||||
$PAGE->set_heading($strcalendar);
|
||||
$PAGE->set_heading($COURSE->fullname);
|
||||
|
||||
echo $OUTPUT->header();
|
||||
|
||||
|
@ -151,7 +151,7 @@ $prefsbutton = calendar_preferences_button();
|
||||
|
||||
// Print title and header
|
||||
$PAGE->set_title("$site->shortname: $strcalendar: $pagetitle");
|
||||
$PAGE->set_heading($strcalendar);
|
||||
$PAGE->set_heading($COURSE->fullname);
|
||||
$PAGE->set_button($prefsbutton);
|
||||
|
||||
echo $OUTPUT->header();
|
||||
|
@ -56,6 +56,8 @@ if ($context->contextlevel == CONTEXT_COURSECAT) {
|
||||
}
|
||||
$PAGE->navbar->add(get_string('cohorts', 'cohort'), new moodle_url('/cohort/', array('contextid'=>$context->id)));
|
||||
$PAGE->navbar->add(get_string('assign', 'cohort'));
|
||||
$PAGE->set_title(get_string('cohort:assign', 'cohort'));
|
||||
$PAGE->set_heading($COURSE->fullname);
|
||||
|
||||
echo $OUTPUT->header();
|
||||
echo $OUTPUT->heading(get_string('assignto', 'cohort', format_string($cohort->name)));
|
||||
|
@ -80,6 +80,7 @@ if ($delete and $cohort->id) {
|
||||
$strheading = get_string('delcohort', 'cohort');
|
||||
$PAGE->navbar->add($strheading);
|
||||
$PAGE->set_title($strheading);
|
||||
$PAGE->set_heading($COURSE->fullname);
|
||||
echo $OUTPUT->header();
|
||||
echo $OUTPUT->heading($strheading);
|
||||
$yesurl = new moodle_url('/cohort/edit.php', array('id'=>$cohort->id, 'delete'=>1, 'confirm'=>1,'sesskey'=>sesskey()));
|
||||
@ -102,6 +103,7 @@ if ($cohort->id) {
|
||||
}
|
||||
|
||||
$PAGE->set_title($strheading);
|
||||
$PAGE->set_heading($COURSE->fullname);
|
||||
$PAGE->navbar->add($strheading);
|
||||
|
||||
$editform = new cohort_edit_form(null, array('editoroptions'=>$editoroptions, 'data'=>$cohort));
|
||||
|
@ -53,10 +53,11 @@ if (!$manager) {
|
||||
|
||||
$strcohorts = get_string('cohorts', 'cohort');
|
||||
|
||||
if ($category) {
|
||||
if ($category) {
|
||||
$PAGE->set_context($context);
|
||||
$PAGE->set_url('/cohort/index.php', array('contextid'=>$context->id));
|
||||
$PAGE->set_title($strcohorts);
|
||||
$PAGE->set_heading($COURSE->fullname);
|
||||
$PAGE->navbar->add($category->name, new moodle_url('/course/index.php', array('categoryedit'=>'1')));
|
||||
$PAGE->navbar->add($strcohorts);
|
||||
} else {
|
||||
|
@ -223,7 +223,7 @@ $PAGE->navbar->add($strautocreategroups);
|
||||
|
||||
/// Print header
|
||||
$PAGE->set_title($strgroups);
|
||||
$PAGE->set_heading(': '.$strgroups);
|
||||
$PAGE->set_heading($course->fullname. ': '.$strgroups);
|
||||
echo $OUTPUT->header();
|
||||
echo $OUTPUT->heading($strautocreategroups);
|
||||
|
||||
|
@ -57,7 +57,7 @@ if ($confirm && data_submitted()) {
|
||||
redirect($returnurl);
|
||||
} else {
|
||||
$PAGE->set_title(get_string('deleteselectedgroup', 'group'));
|
||||
$PAGE->set_heading(get_string('deleteselectedgroup', 'group'));
|
||||
$PAGE->set_heading($course->fullname . ': '. get_string('deleteselectedgroup', 'group'));
|
||||
echo $OUTPUT->header();
|
||||
$optionsyes = array('courseid'=>$courseid, 'groups'=>$groupids, 'sesskey'=>sesskey(), 'confirm'=>1);
|
||||
$optionsno = array('id'=>$courseid);
|
||||
|
@ -63,7 +63,7 @@ $returnurl = $CFG->wwwroot.'/group/index.php?id='.$course->id.'&group='.$id;
|
||||
if ($id and $delete) {
|
||||
if (!$confirm) {
|
||||
$PAGE->set_title(get_string('deleteselectedgroup', 'group'));
|
||||
$PAGE->set_heading(get_string('deleteselectedgroup', 'group'));
|
||||
$PAGE->set_heading($course->fullname . ': '. get_string('deleteselectedgroup', 'group'));
|
||||
echo $OUTPUT->header();
|
||||
$optionsyes = array('id'=>$id, 'delete'=>1, 'courseid'=>$courseid, 'sesskey'=>sesskey(), 'confirm'=>1);
|
||||
$optionsno = array('id'=>$courseid);
|
||||
@ -124,7 +124,7 @@ $PAGE->navbar->add($strheading);
|
||||
|
||||
/// Print header
|
||||
$PAGE->set_title($strgroups);
|
||||
$PAGE->set_heading(': '.$strgroups);
|
||||
$PAGE->set_heading($course->fullname . ': '.$strgroups);
|
||||
echo $OUTPUT->header();
|
||||
echo '<div id="grouppicture">';
|
||||
if ($id) {
|
||||
|
@ -58,7 +58,7 @@ $returnurl = $CFG->wwwroot.'/group/groupings.php?id='.$course->id;
|
||||
if ($id and $delete) {
|
||||
if (!$confirm) {
|
||||
$PAGE->set_title(get_string('deletegrouping', 'group'));
|
||||
$PAGE->set_heading(get_string('deletegrouping', 'group'));
|
||||
$PAGE->set_heading($course->fullname. ': '. get_string('deletegrouping', 'group'));
|
||||
echo $OUTPUT->header();
|
||||
$optionsyes = array('id'=>$id, 'delete'=>1, 'courseid'=>$courseid, 'sesskey'=>sesskey(), 'confirm'=>1);
|
||||
$optionsno = array('id'=>$courseid);
|
||||
@ -120,7 +120,7 @@ $PAGE->navbar->add($strheading);
|
||||
|
||||
/// Print header
|
||||
$PAGE->set_title($strgroupings);
|
||||
$PAGE->set_heading(': '.$strgroupings);
|
||||
$PAGE->set_heading($course->fullname. ': '.$strgroupings);
|
||||
echo $OUTPUT->header();
|
||||
echo $OUTPUT->heading($strheading);
|
||||
$editform->display();
|
||||
|
Loading…
x
Reference in New Issue
Block a user