Skip to content

Commit 5e1960f

Browse files
committed
Show news timestamp in header dropdown
1 parent dfe1580 commit 5e1960f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/templates/header.inc.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ function _header_nav_html($nav)
133133
{
134134
if (!$news->isPublished() && !$acl_news_modify) continue;
135135
$news_class = ($news->isPublished() ? '' : ' text-warning');
136-
_line('<a class="dropdown-item%s" href="%s">%s</a>', $news_class, $news->getURI(), filter_var($news->getTitle(), FILTER_SANITIZE_FULL_SPECIAL_CHARS));
136+
_line('<a class="dropdown-item%s" href="%s">%s<span class="ml-1 small text-muted">%s</span></a>', $news_class, $news->getURI(), filter_var($news->getTitle(), FILTER_SANITIZE_FULL_SPECIAL_CHARS), $news->getCreatedDateTime()->format('Y-m-d'));
137137
}
138138
}
139139
else if (isset($item['recent_packets']) && $item['recent_packets'])

0 commit comments

Comments
 (0)