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 92ff623 commit c93fdc7
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 11 deletions.
2 changes: 1 addition & 1 deletion auth/email/auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions login/change_password.php
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand All @@ -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')) {
Expand Down
6 changes: 4 additions & 2 deletions login/confirm.php
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand All @@ -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";
Expand Down
6 changes: 3 additions & 3 deletions login/forgot_password.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 === '') {
Expand Down Expand Up @@ -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)) {
Expand All @@ -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();
Expand Down
6 changes: 3 additions & 3 deletions login/signup.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand All @@ -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();
Expand Down

0 comments on commit c93fdc7

Please sign in to comment.