diff --git a/lib/outputcomponents.php b/lib/outputcomponents.php
index d3235a76ada..27bb8cafa88 100644
--- a/lib/outputcomponents.php
+++ b/lib/outputcomponents.php
@@ -167,9 +167,8 @@ class user_picture implements renderable {
public $link = true;
/**
- * @var int Size in pixels. Special values are (true/1 = 100px) and
- * (false/0 = 35px)
- * for backward compatibility.
+ * @var int Size in pixels. Special values are (true/1 = 100px) and (false/0 = 35px) for backward compatibility.
+ * Recommended values (supporting user initials too): 16, 35, 64 and 100.
*/
public $size = 35;
diff --git a/mod/data/classes/template.php b/mod/data/classes/template.php
index 010aba681a9..1d8b0e57321 100644
--- a/mod/data/classes/template.php
+++ b/mod/data/classes/template.php
@@ -240,9 +240,9 @@ class template {
* @return pix_icon[] icon name => pix_icon
*/
protected function get_icons() {
- $attrs = ['class' => 'iconsmall'];
+ $attrs = ['class' => 'iconsmall dataicon'];
return [
- 'edit' => new pix_icon('t/edit', get_string('edit'), '', $attrs),
+ 'edit' => new pix_icon('t/editinline', get_string('edit'), '', $attrs),
'delete' => new pix_icon('t/delete', get_string('delete'), '', $attrs),
'more' => new pix_icon('t/preview', get_string('more', 'data'), '', $attrs),
'approve' => new pix_icon('t/approve', get_string('approve', 'data'), '', $attrs),
@@ -503,7 +503,7 @@ class template {
if (!isset($user->picture)) {
$user = core_user::get_user($entry->userid);
}
- return $OUTPUT->user_picture($user, ['courseid' => $cm->course]);
+ return $OUTPUT->user_picture($user, ['courseid' => $cm->course, 'size' => 64]);
}
/**
@@ -551,7 +551,11 @@ class template {
* @return string the tag replacement
*/
protected function get_tag_timeadded_replacement(stdClass $entry, bool $canmanageentry): string {
- return userdate($entry->timecreated);
+ return html_writer::tag(
+ 'span',
+ userdate($entry->timecreated, get_string('strftimedatemonthabbr', 'langconfig')),
+ ['title' => userdate($entry->timecreated)]
+ );
}
/**
@@ -562,7 +566,11 @@ class template {
* @return string the tag replacement
*/
protected function get_tag_timemodified_replacement(stdClass $entry, bool $canmanageentry): string {
- return userdate($entry->timemodified);
+ return html_writer::tag(
+ 'span',
+ userdate($entry->timemodified, get_string('strftimedatemonthabbr', 'langconfig')),
+ ['title' => userdate($entry->timecreated)]
+ );
}
/**
diff --git a/mod/data/lang/en/data.php b/mod/data/lang/en/data.php
index 5ba69ebc72b..9d173356c80 100644
--- a/mod/data/lang/en/data.php
+++ b/mod/data/lang/en/data.php
@@ -27,7 +27,6 @@ $string['action'] = 'Action';
$string['actionsmenu'] = 'Actions menu';
$string['add'] = 'Add entry';
$string['addcomment'] = 'Add comment';
-$string['addedby'] = 'Added by';
$string['addentries'] = 'Add entries';
$string['addtemplate'] = 'Add entry template';
$string['advancedsearch'] = 'Advanced search';
@@ -40,8 +39,8 @@ $string['areacontent'] = 'Fields';
$string['ascending'] = 'Ascending';
$string['asearchtemplate'] = 'Advanced search template';
$string['atmaxentry'] = 'You have entered the maximum number of entries allowed!';
-$string['authorfirstname'] = 'Author first name';
-$string['authorlastname'] = 'Author surname';
+$string['authorfirstname'] = 'First name';
+$string['authorlastname'] = 'Last name';
$string['autogenallforms'] = 'Generate all default templates';
$string['autolinkurl'] = 'Autolink the URL';
$string['availablefromdate'] = 'Available from';
@@ -107,9 +106,8 @@ $string['data:viewrating'] = 'View the total rating you received';
$string['data:writeentry'] = 'Write entries';
$string['data:view'] = 'View database activity';
$string['date'] = 'Date';
-$string['dateadded'] = 'Date added';
$string['dateentered'] = 'Date entered';
-$string['datemodified'] = 'Date modified';
+$string['datemodified'] = 'Last modified: ';
$string['defaultfielddelimiter'] = '(default is the comma character)';
$string['defaultfieldenclosure'] = '(default is none)';
$string['defaultsortfield'] = 'Default sort field';
@@ -459,3 +457,4 @@ $string['nolisttemplate'] = 'List template is not yet defined';
$string['nosingletemplate'] = 'Single template is not yet defined';
$string['blank'] = 'Blank';
$string['savetemplate'] = 'Save template';
+$string['addedby'] = 'Added by';
diff --git a/mod/data/lang/en/deprecated.txt b/mod/data/lang/en/deprecated.txt
index 1963b0c3b2b..3bbe0cf1cc1 100644
--- a/mod/data/lang/en/deprecated.txt
+++ b/mod/data/lang/en/deprecated.txt
@@ -4,3 +4,4 @@ nosingletemplate,mod_data
nolisttemplate,mod_data
blank,mod_data
savetemplate,mod_data
+addedby,mod_data
diff --git a/mod/data/preset/imagegallery/addtemplate.html b/mod/data/preset/imagegallery/addtemplate.html
index 0f760c5d9c3..9196b8b7606 100644
--- a/mod/data/preset/imagegallery/addtemplate.html
+++ b/mod/data/preset/imagegallery/addtemplate.html
@@ -1,14 +1,14 @@
diff --git a/mod/data/preset/imagegallery/asearchtemplate.html b/mod/data/preset/imagegallery/asearchtemplate.html
index abb4d612152..24e5db57d43 100644
--- a/mod/data/preset/imagegallery/asearchtemplate.html
+++ b/mod/data/preset/imagegallery/asearchtemplate.html
@@ -1,11 +1,20 @@
diff --git a/mod/data/preset/imagegallery/rsstemplate.html b/mod/data/preset/imagegallery/rsstemplate.html
index 18e25db10ee..48c4b428666 100644
--- a/mod/data/preset/imagegallery/rsstemplate.html
+++ b/mod/data/preset/imagegallery/rsstemplate.html
@@ -1,13 +1,30 @@