diff --git a/blog/edit.php b/blog/edit.php index 24612dd7d1a..d82b24479bb 100644 --- a/blog/edit.php +++ b/blog/edit.php @@ -134,6 +134,9 @@ if ($action === 'delete') { $PAGE->set_heading($SITE->fullname); echo $OUTPUT->header(); + // Output edit mode title. + echo $OUTPUT->heading($strblogs . ': ' . get_string('deleteentry', 'blog'), 2); + // Output the entry. $entry->prepare_render(); echo $output->render($entry); @@ -146,10 +149,12 @@ if ($action === 'delete') { die; } } else if ($action == 'add') { - $PAGE->set_title("$SITE->shortname: $strblogs: " . get_string('addnewentry', 'blog')); + $editmodetitle = $strblogs . ': ' . get_string('addnewentry', 'blog'); + $PAGE->set_title("$SITE->shortname: $editmodetitle"); $PAGE->set_heading(fullname($USER)); } else if ($action == 'edit') { - $PAGE->set_title("$SITE->shortname: $strblogs: " . get_string('editentry', 'blog')); + $editmodetitle = $strblogs . ': ' . get_string('editentry', 'blog'); + $PAGE->set_title("$SITE->shortname: $editmodetitle"); $PAGE->set_heading(fullname($USER)); } @@ -270,6 +275,10 @@ $entry->modid = $modid; $entry->courseid = $courseid; echo $OUTPUT->header(); +// Output title for editing mode. +if (isset($editmodetitle)) { + echo $OUTPUT->heading($editmodetitle, 2); +} $blogeditform->display(); echo $OUTPUT->footer(); diff --git a/lang/en/blog.php b/lang/en/blog.php index f1ba2de1c57..a37b84af24f 100644 --- a/lang/en/blog.php +++ b/lang/en/blog.php @@ -68,6 +68,7 @@ $string['courseblogdisable'] = 'Course blogs are not enabled'; $string['courseblogs'] = 'Users can only see blogs for people who share a course'; $string['deleteblogassociations'] = 'Delete blog associations'; $string['deleteblogassociations_help'] = 'If ticked then blog entries will no longer be associated with this course or any course activities or resources. The blog entries themselves will not be deleted.'; +$string['deleteentry'] = 'Delete entry'; $string['deleteexternalblog'] = 'Unregister this external blog'; $string['deleteotagswarn'] = 'Are you sure you want to remove these tags from all blog posts and remove it from the system?'; $string['description'] = 'Description';