Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

add page heading

  • Loading branch information...
commit c93fdc7b7170e83c311302f710182f758d6532b5 1 parent 92ff623
Rossiani Wijaya authored
2  auth/email/auth.php
@@ -99,7 +99,7 @@ function user_signup($user, $notify=true) {
99 99 $emailconfirm = get_string('emailconfirm');
100 100 $PAGE->navbar->add($emailconfirm);
101 101 $PAGE->set_title($emailconfirm);
102   - $PAGE->set_heading($emailconfirm);
  102 + $PAGE->set_heading($PAGE->course->fullname);
103 103 echo $OUTPUT->header();
104 104 notice(get_string('emailconfirmsent', '', $user->email), "$CFG->wwwroot/index.php");
105 105 } else {
4 login/change_password.php
@@ -110,7 +110,7 @@
110 110 $PAGE->navbar->add($fullname, new moodle_url('/user/view.php', array('id'=>$USER->id, 'course'=>$course->id)));
111 111 $PAGE->navbar->add($strpasswordchanged);
112 112 $PAGE->set_title($strpasswordchanged);
113   - $PAGE->set_heading($strpasswordchanged);
  113 + $PAGE->set_heading($COURSE->fullname);
114 114 echo $OUTPUT->header();
115 115
116 116 if (empty($SESSION->wantsurl) or $SESSION->wantsurl == $CFG->httpswwwroot.'/login/change_password.php') {
@@ -133,7 +133,7 @@
133 133 $PAGE->navbar->add($fullname, new moodle_url('/user/view.php', array('id'=>$USER->id, 'course'=>$course->id)));
134 134 $PAGE->navbar->add($strchangepassword);
135 135 $PAGE->set_title($strchangepassword);
136   -$PAGE->set_heading($strchangepassword);
  136 +$PAGE->set_heading($COURSE->fullname);
137 137 echo $OUTPUT->header();
138 138
139 139 if (get_user_preferences('auth_forcepasswordchange')) {
6 login/confirm.php
@@ -33,8 +33,9 @@
33 33
34 34 if ($confirmed == AUTH_CONFIRM_ALREADY) {
35 35 $user = get_complete_user_data('username', $username);
  36 + $PAGE->navbar->add(get_string("alreadyconfirmed"));
36 37 $PAGE->set_title(get_string("alreadyconfirmed"));
37   - $PAGE->set_heading(get_string("alreadyconfirmed"));
  38 + $PAGE->set_heading($COURSE->fullname);
38 39 echo $OUTPUT->header();
39 40 echo $OUTPUT->box_start('generalbox centerpara boxwidthnormal boxaligncenter');
40 41 echo "<h3>".get_string("thanks").", ". fullname($user) . "</h3>\n";
@@ -60,8 +61,9 @@
60 61 redirect($goto);
61 62 }
62 63
  64 + $PAGE->navbar->add(get_string("confirmed"));
63 65 $PAGE->set_title(get_string("confirmed"));
64   - $PAGE->set_heading(get_string("confirmed"));
  66 + $PAGE->set_heading($COURSE->fullname);
65 67 echo $OUTPUT->header();
66 68 echo $OUTPUT->box_start('generalbox centerpara boxwidthnormal boxaligncenter');
67 69 echo "<h3>".get_string("thanks").", ". fullname($USER) . "</h3>\n";
6 login/forgot_password.php
@@ -40,7 +40,7 @@
40 40 update_login_count();
41 41
42 42 $PAGE->set_title($strforgotten);
43   - $PAGE->set_heading($strforgotten);
  43 + $PAGE->set_heading($COURSE->fullname);
44 44
45 45 $user = get_complete_user_data('username', $p_username);
46 46 if (!empty($user) and $user->secret === '') {
@@ -133,7 +133,7 @@
133 133 }
134 134
135 135 $PAGE->set_title($strforgotten);
136   - $PAGE->set_heading($strforgotten);
  136 + $PAGE->set_heading($COURSE->fullname);
137 137 echo $OUTPUT->header();
138 138
139 139 if (empty($user->email) or !empty($CFG->protectusernames)) {
@@ -153,7 +153,7 @@
153 153
154 154 /// DISPLAY FORM
155 155 $PAGE->set_title($strforgotten);
156   -$PAGE->set_heading($strforgotten);
  156 +$PAGE->set_heading($COURSE->fullname);
157 157 $PAGE->set_focuscontrol('id_email');
158 158
159 159 echo $OUTPUT->header();
6 login/signup.php
@@ -48,7 +48,7 @@ function signup_captcha_enabled() {
48 48
49 49 //HTTPS is potentially required in this page
50 50 httpsrequired();
51   -
  51 +$PAGE->set_url('/login/signup.php');
52 52 $mform_signup = new login_signup_form();
53 53
54 54 if ($mform_signup->is_cancelled()) {
@@ -72,9 +72,9 @@ function signup_captcha_enabled() {
72 72
73 73 $PAGE->navbar->add($login);
74 74 $PAGE->navbar->add($newaccount);
75   -$PAGE->set_url('/login/signup.php');
  75 +
76 76 $PAGE->set_title($newaccount);
77   -$PAGE->set_heading($newaccount);
  77 +$PAGE->set_heading($SITE->fullname);
78 78 $PAGE->set_focuscontrol($mform_signup->focus());
79 79
80 80 echo $OUTPUT->header();

0 comments on commit c93fdc7

Please sign in to comment.
Something went wrong with that request. Please try again.