Skip to content

Commit

Permalink
Show news timestamp in header dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
carlbennett committed Jul 10, 2021
1 parent dfe1580 commit 5e1960f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/templates/header.inc.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ function _header_nav_html($nav)
{
if (!$news->isPublished() && !$acl_news_modify) continue;
$news_class = ($news->isPublished() ? '' : ' text-warning');
_line('<a class="dropdown-item%s" href="%s">%s</a>', $news_class, $news->getURI(), filter_var($news->getTitle(), FILTER_SANITIZE_FULL_SPECIAL_CHARS));
_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'));
}
}
else if (isset($item['recent_packets']) && $item['recent_packets'])
Expand Down

0 comments on commit 5e1960f

Please sign in to comment.