Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add page heading

  • Loading branch information...
commit c93fdc7b7170e83c311302f710182f758d6532b5 1 parent 92ff623
Rossiani Wijaya authored
View
2  auth/email/auth.php
@@ -99,7 +99,7 @@ function user_signup($user, $notify=true) {
$emailconfirm = get_string('emailconfirm');
$PAGE->navbar->add($emailconfirm);
$PAGE->set_title($emailconfirm);
- $PAGE->set_heading($emailconfirm);
+ $PAGE->set_heading($PAGE->course->fullname);
echo $OUTPUT->header();
notice(get_string('emailconfirmsent', '', $user->email), "$CFG->wwwroot/index.php");
} else {
View
4 login/change_password.php
@@ -110,7 +110,7 @@
$PAGE->navbar->add($fullname, new moodle_url('/user/view.php', array('id'=>$USER->id, 'course'=>$course->id)));
$PAGE->navbar->add($strpasswordchanged);
$PAGE->set_title($strpasswordchanged);
- $PAGE->set_heading($strpasswordchanged);
+ $PAGE->set_heading($COURSE->fullname);
echo $OUTPUT->header();
if (empty($SESSION->wantsurl) or $SESSION->wantsurl == $CFG->httpswwwroot.'/login/change_password.php') {
@@ -133,7 +133,7 @@
$PAGE->navbar->add($fullname, new moodle_url('/user/view.php', array('id'=>$USER->id, 'course'=>$course->id)));
$PAGE->navbar->add($strchangepassword);
$PAGE->set_title($strchangepassword);
-$PAGE->set_heading($strchangepassword);
+$PAGE->set_heading($COURSE->fullname);
echo $OUTPUT->header();
if (get_user_preferences('auth_forcepasswordchange')) {
View
6 login/confirm.php
@@ -33,8 +33,9 @@
if ($confirmed == AUTH_CONFIRM_ALREADY) {
$user = get_complete_user_data('username', $username);
+ $PAGE->navbar->add(get_string("alreadyconfirmed"));
$PAGE->set_title(get_string("alreadyconfirmed"));
- $PAGE->set_heading(get_string("alreadyconfirmed"));
+ $PAGE->set_heading($COURSE->fullname);
echo $OUTPUT->header();
echo $OUTPUT->box_start('generalbox centerpara boxwidthnormal boxaligncenter');
echo "<h3>".get_string("thanks").", ". fullname($user) . "</h3>\n";
@@ -60,8 +61,9 @@
redirect($goto);
}
+ $PAGE->navbar->add(get_string("confirmed"));
$PAGE->set_title(get_string("confirmed"));
- $PAGE->set_heading(get_string("confirmed"));
+ $PAGE->set_heading($COURSE->fullname);
echo $OUTPUT->header();
echo $OUTPUT->box_start('generalbox centerpara boxwidthnormal boxaligncenter');
echo "<h3>".get_string("thanks").", ". fullname($USER) . "</h3>\n";
View
6 login/forgot_password.php
@@ -40,7 +40,7 @@
update_login_count();
$PAGE->set_title($strforgotten);
- $PAGE->set_heading($strforgotten);
+ $PAGE->set_heading($COURSE->fullname);
$user = get_complete_user_data('username', $p_username);
if (!empty($user) and $user->secret === '') {
@@ -133,7 +133,7 @@
}
$PAGE->set_title($strforgotten);
- $PAGE->set_heading($strforgotten);
+ $PAGE->set_heading($COURSE->fullname);
echo $OUTPUT->header();
if (empty($user->email) or !empty($CFG->protectusernames)) {
@@ -153,7 +153,7 @@
/// DISPLAY FORM
$PAGE->set_title($strforgotten);
-$PAGE->set_heading($strforgotten);
+$PAGE->set_heading($COURSE->fullname);
$PAGE->set_focuscontrol('id_email');
echo $OUTPUT->header();
View
6 login/signup.php
@@ -48,7 +48,7 @@ function signup_captcha_enabled() {
//HTTPS is potentially required in this page
httpsrequired();
-
+$PAGE->set_url('/login/signup.php');
$mform_signup = new login_signup_form();
if ($mform_signup->is_cancelled()) {
@@ -72,9 +72,9 @@ function signup_captcha_enabled() {
$PAGE->navbar->add($login);
$PAGE->navbar->add($newaccount);
-$PAGE->set_url('/login/signup.php');
+
$PAGE->set_title($newaccount);
-$PAGE->set_heading($newaccount);
+$PAGE->set_heading($SITE->fullname);
$PAGE->set_focuscontrol($mform_signup->focus());
echo $OUTPUT->header();
Please sign in to comment.
Something went wrong with that request. Please try again.