print_course($course, '80%');
if ($course->password) {
- print_heading(get_string('choosemethod', 'enrol_authorize'), 'center');
+ echo $OUTPUT->heading(get_string('choosemethod', 'enrol_authorize'), null, 'mdl-align');
}
if ($USER->username == 'guest') { // only real guest user, not for users with guest role
/// Override the base print_entry() function
function print_entry($course) {
- global $CFG, $USER;
+ global $CFG, $USER, $OUTPUT;
$strloginto = get_string("loginto", "", $course->shortname);
print_course($course, "80%");
if ($course->password) { // Presenting two options
- print_heading(get_string('costorkey', 'enrol_paypal'), 'center');
+ echo $OUTPUT->heading(get_string('costorkey', 'enrol_paypal'), null, 'mdl-align');
}
print_simple_box_start("center");