Permalink
Browse files

add page heading

  • Loading branch information...
1 parent c93fdc7 commit bd08a24a8ad01d774475e28d6fa3eb06c9bd2e92 @rwijaya rwijaya committed May 27, 2010
Showing with 16 additions and 11 deletions.
  1. +1 −1 calendar/delete.php
  2. +1 −1 calendar/event.php
  3. +1 −1 calendar/preferences.php
  4. +1 −1 calendar/view.php
  5. +2 −0 cohort/assign.php
  6. +2 −0 cohort/edit.php
  7. +2 −1 cohort/index.php
  8. +1 −1 group/autogroup.php
  9. +1 −1 group/delete.php
  10. +2 −2 group/group.php
  11. +2 −2 group/grouping.php
View
@@ -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');
View
@@ -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();
View
@@ -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();
View
@@ -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();
View
@@ -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)));
View
@@ -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()));
@@ -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));
View
@@ -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 {
View
@@ -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);
View
@@ -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);
View
@@ -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);
@@ -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) {
View
@@ -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);
@@ -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();

0 comments on commit bd08a24

Please sign in to comment.