mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-23 18:11:31 +00:00
add hook showVersionComment
This commit is contained in:
parent
6fb4b9b545
commit
86e7b0a13f
|
@ -614,7 +614,12 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
|
||||||
print "<li>".getLongReadableDate($latestContent->getDate())."</li>";
|
print "<li>".getLongReadableDate($latestContent->getDate())."</li>";
|
||||||
|
|
||||||
print "</ul>\n";
|
print "</ul>\n";
|
||||||
|
$txt = $this->callHook('showVersionComment', $latestContent);
|
||||||
|
if($txt) {
|
||||||
|
echo $txt;
|
||||||
|
} else {
|
||||||
print "<p style=\"font-style: italic;\">".htmlspecialchars($latestContent->getComment())."</p>";
|
print "<p style=\"font-style: italic;\">".htmlspecialchars($latestContent->getComment())."</p>";
|
||||||
|
}
|
||||||
print "<ul class=\"actions unstyled\">\n";
|
print "<ul class=\"actions unstyled\">\n";
|
||||||
$attributes = $latestContent->getAttributes();
|
$attributes = $latestContent->getAttributes();
|
||||||
if($attributes) {
|
if($attributes) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user