mirror of
https://github.com/p08dev/Bloggr.git
synced 2026-06-17 12:43:56 +02:00
Fixed minor bugs
Fixed spelling Fixed layout
This commit is contained in:
10
index.php
10
index.php
@ -17,13 +17,17 @@ require_once(__DIR__."/inc/head.php");
|
||||
if ($posts) {
|
||||
foreach($posts as $post) {
|
||||
?>
|
||||
<p>
|
||||
<article class="card">
|
||||
<header>
|
||||
<h2><a href="/post.php?view=<?= $post['id'] ?>"><?= $post['title'] ?></a></h2>
|
||||
</header>
|
||||
<p>
|
||||
<?= substr($post['text'], 0, 512) ?><?= (substr($post['text'], 0, 512) !== $post['text']) ? '... <br><a href="/post.php?view='.$post["id"].'">Weiterlesen...</a>' : '' ?>
|
||||
</p>
|
||||
<p><small>von <?= $post['user'] ?> am <?= date('H:i d.m.Y', $post['created_at']) ?></p>
|
||||
</p>
|
||||
<footer>
|
||||
<p><small>von <?= $post['user'] ?> am <?= date('H:i d.m.Y', $post['created_at']) ?></small></p>
|
||||
</footer>
|
||||
</article>
|
||||
<?php
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user