Skip to content

Commit

Permalink
add page heading
Browse files Browse the repository at this point in the history
  • Loading branch information
rwijaya committed May 27, 2010
1 parent c93fdc7 commit bd08a24
Show file tree
Hide file tree
Showing 11 changed files with 16 additions and 11 deletions.
2 changes: 1 addition & 1 deletion calendar/delete.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
$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');
Expand Down
2 changes: 1 addition & 1 deletion calendar/event.php
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@
$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();

Expand Down
2 changes: 1 addition & 1 deletion calendar/preferences.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
$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();

Expand Down
2 changes: 1 addition & 1 deletion calendar/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@

// 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();
Expand Down
2 changes: 2 additions & 0 deletions cohort/assign.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@
}
$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)));
Expand Down
2 changes: 2 additions & 0 deletions cohort/edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
$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()));
Expand All @@ -102,6 +103,7 @@
}

$PAGE->set_title($strheading);
$PAGE->set_heading($COURSE->fullname);
$PAGE->navbar->add($strheading);

$editform = new cohort_edit_form(null, array('editoroptions'=>$editoroptions, 'data'=>$cohort));
Expand Down
3 changes: 2 additions & 1 deletion cohort/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,11 @@

$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 {
Expand Down
2 changes: 1 addition & 1 deletion group/autogroup.php
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@

/// Print header
$PAGE->set_title($strgroups);
$PAGE->set_heading(': '.$strgroups);
$PAGE->set_heading($course->fullname. ': '.$strgroups);
echo $OUTPUT->header();
echo $OUTPUT->heading($strautocreategroups);

Expand Down
2 changes: 1 addition & 1 deletion group/delete.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
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);
Expand Down
4 changes: 2 additions & 2 deletions group/group.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
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);
Expand Down Expand Up @@ -124,7 +124,7 @@

/// 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) {
Expand Down
4 changes: 2 additions & 2 deletions group/grouping.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
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);
Expand Down Expand Up @@ -120,7 +120,7 @@

/// 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();
Expand Down

0 comments on commit bd08a24

Please sign in to comment.