mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 12:40:01 +01:00
MDL-51296 blog: Added title that reflects the blog's editing mode
This commit is contained in:
parent
1dabedeedf
commit
0b3ed7f777
@ -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();
|
||||
|
||||
|
@ -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';
|
||||
|
Loading…
x
Reference in New Issue
Block a user