Reviewänderungen
This commit is contained in:
+17
-2
@@ -185,38 +185,53 @@ $isEditMode = (isset($_GET["edit"]) && $_GET["edit"] === "1") || !empty($error);
|
|||||||
|
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
|
<!-- Eigener Bereich für die Kommentare des Nutzers -->
|
||||||
|
<div class="comments-section">
|
||||||
|
|
||||||
<h2 class="section-title">Meine Kommentare</h2>
|
<h2 class="section-title">Meine Kommentare</h2>
|
||||||
|
|
||||||
<div class="articles-list">
|
<!-- Liste aller Kommentare des Nutzers -->
|
||||||
|
<div class="comments-list">
|
||||||
|
|
||||||
<?php if (isset($userComments) && count($userComments) > 0): ?>
|
<?php if (isset($userComments) && count($userComments) > 0): ?>
|
||||||
|
|
||||||
<?php foreach ($userComments as $comment): ?>
|
<?php foreach ($userComments as $comment): ?>
|
||||||
<div class="article-item">
|
<div class="article-item">
|
||||||
|
|
||||||
|
<!-- Erstellungsdatum des Kommentars -->
|
||||||
<div class="article-meta">
|
<div class="article-meta">
|
||||||
<span class="article-date">
|
<span class="article-date">
|
||||||
<?php echo htmlspecialchars($comment->getCreated()); ?>
|
<?php echo htmlspecialchars($comment->getCreated()); ?>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- Inhalt des Kommentars -->
|
||||||
<p>
|
<p>
|
||||||
<?php echo nl2br(htmlspecialchars($comment->getContent())); ?>
|
<?php echo nl2br(htmlspecialchars($comment->getContent())); ?>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
<!-- Link zum Beitrag, unter dem der Kommentar geschrieben wurde -->
|
||||||
<a href="index.php?pfad=showArticle&id=<?php echo htmlspecialchars($comment->getArticleId()); ?>"
|
<a href="index.php?pfad=showArticle&id=<?php echo htmlspecialchars($comment->getArticleId()); ?>"
|
||||||
class="edit-link-button">
|
class="edit-link-button">
|
||||||
Zum Beitrag
|
Zum Beitrag
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
|
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
|
|
||||||
<p>Du hast noch keine Kommentare geschrieben.</p>
|
<p>Du hast noch keine Kommentare geschrieben.</p>
|
||||||
|
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
<?php unset($_SESSION["message"]); ?>
|
<?php unset($_SESSION["message"]); ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
|
||||||
</main>
|
</main>
|
||||||
Reference in New Issue
Block a user