Simplify author metadata display by removing nickname fallback
This commit is contained in:
1 parent
8b6df80e59
commit
d04f2279e9
1 file changed
+1
-5
+1
-5
@@ -17,14 +17,10 @@
|
|||||||
|
|
||||||
<?php if (!$page->isStatic() && !$url->notFound()): ?>
|
<?php if (!$page->isStatic() && !$url->notFound()): ?>
|
||||||
<!-- Creation date, reading time and author -->
|
<!-- Creation date, reading time and author -->
|
||||||
<?php
|
|
||||||
$_authorUser = $users->getUser($page->username());
|
|
||||||
$_authorName = ($_authorUser && $_authorUser->nickname()) ? $_authorUser->nickname() : $page->username();
|
|
||||||
?>
|
|
||||||
<div class="metadata mb-4">
|
<div class="metadata mb-4">
|
||||||
<span><i class="bi bi-calendar3"></i><?php echo $page->date(); ?></span>
|
<span><i class="bi bi-calendar3"></i><?php echo $page->date(); ?></span>
|
||||||
<span><i class="bi bi-clock-history"></i><?php echo $L->get('Reading time') . ': ' . $page->readingTime() ?></span>
|
<span><i class="bi bi-clock-history"></i><?php echo $L->get('Reading time') . ': ' . $page->readingTime() ?></span>
|
||||||
<span><i class="bi bi-person"></i><?php echo $L->get('Author') . ': ' . htmlspecialchars($_authorName) ?></span>
|
<span><i class="bi bi-person"></i><?php echo $L->get('Author') . ': ' . htmlspecialchars($page->username()) ?></span>
|
||||||
</div>
|
</div>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user