Skip to content

Commit 7326473

Browse files
committed
[date]: fixes
1 parent 830ae60 commit 7326473

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

app/templates/admin/items.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
<th scope="col" class="small text-uppercase">
7070
<div class="d-flex align-items-center">
7171
<i class="bi bi-calendar me-1"></i>
72-
Data
72+
Publicado
7373
</div>
7474
</th>
7575
<th scope="col"></th>

app/templates/home.php

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,18 @@
6969
</a>
7070
</div>
7171
</div>
72-
<?php if (!empty($item['author'])): ?>
73-
<p class="d-flex align-items-center small mb-0">
72+
73+
<p class="d-flex align-items-center small mb-0">
74+
<?php if (!empty($item['author'])): ?>
7475
<i class="bi bi-person me-1"></i>
7576
<?= $this->e($item['author']) ?>
77+
<?php endif; ?>
78+
<?php if (!empty($item['published_at'])): ?>
7679
<i class="ms-2 bi bi-calendar me-1"></i>
7780
<?= date('j \d\e F \d\e Y', strtotime($item['published_at'])) ?>
78-
</p>
79-
<?php endif; ?>
81+
<?php endif; ?>
82+
</p>
83+
8084
<?php if (!empty($item['content'])): ?>
8185
<div class="mt-2 small">
8286
<?= strip_tags(substr($item['content'], 0, 300)) ?>...

0 commit comments

Comments
 (0)