mirror of
https://github.com/VladPolskiy/dokuwiki.git
synced 2025-08-01 07:39:05 +00:00
Time markup for Last Changed field
This adds semantic markup to the "last change" date in the article footer. This change should not have any impact on the rendering of the page.
This commit is contained in:
@ -948,7 +948,8 @@ function tpl_pageinfo($ret = false)
|
||||
}
|
||||
}
|
||||
$fn = utf8_decodeFN($fn);
|
||||
$date = dformat($INFO['lastmod']);
|
||||
$dateLocal = dformat($INFO['lastmod']);
|
||||
$dateIso = date(DATE_ISO8601, $INFO['lastmod']);
|
||||
|
||||
// print it
|
||||
if ($INFO['exists']) {
|
||||
@ -956,7 +957,7 @@ function tpl_pageinfo($ret = false)
|
||||
$out .= ' · ';
|
||||
$out .= $lang['lastmod'];
|
||||
$out .= ' ';
|
||||
$out .= $date;
|
||||
$out .= '<time datetime="' . $dateIso . '">' . $dateLocal . '</time>';
|
||||
if ($INFO['editor']) {
|
||||
$out .= ' ' . $lang['by'] . ' ';
|
||||
$out .= '<bdi>' . editorinfo($INFO['editor']) . '</bdi>';
|
||||
|
Reference in New Issue
Block a user