Forum implementiert #34
+38
-23
@@ -185,38 +185,53 @@ $isEditMode = (isset($_GET["edit"]) && $_GET["edit"] === "1") || !empty($error);
|
||||
|
||||
<br>
|
||||
|
||||
<h2 class="section-title">Meine Kommentare</h2>
|
||||
<!-- Eigener Bereich für die Kommentare des Nutzers -->
|
||||
<div class="comments-section">
|
||||
|
||||
|
caroline.slt marked this conversation as resolved
|
||||
<div class="articles-list">
|
||||
<?php if (isset($userComments) && count($userComments) > 0): ?>
|
||||
<h2 class="section-title">Meine Kommentare</h2>
|
||||
|
||||
<!-- Liste aller Kommentare des Nutzers -->
|
||||
<div class="comments-list">
|
||||
|
||||
<?php if (isset($userComments) && count($userComments) > 0): ?>
|
||||
|
||||
<?php foreach ($userComments as $comment): ?>
|
||||
<div class="article-item">
|
||||
|
||||
<!-- Erstellungsdatum des Kommentars -->
|
||||
<div class="article-meta">
|
||||
<span class="article-date">
|
||||
<?php echo htmlspecialchars($comment->getCreated()); ?>
|
||||
|
niklas.ortmann
commented
Müssen Kommentare auch wieder gelöscht werden dürfen? Müssen Kommentare auch wieder gelöscht werden dürfen?
Ich weiß, dass das schwierig für den Kommentar-Baum ist...
Sonst lassen wir das erst so, wenn es zu umständlich ist.
caroline.slt
commented
Schaffe ich heute nicht mehr Schaffe ich heute nicht mehr
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<!-- Inhalt des Kommentars -->
|
||||
<p>
|
||||
<?php echo nl2br(htmlspecialchars($comment->getContent())); ?>
|
||||
</p>
|
||||
|
||||
<!-- Link zum Beitrag, unter dem der Kommentar geschrieben wurde -->
|
||||
<a href="index.php?pfad=showArticle&id=<?php echo htmlspecialchars($comment->getArticleId()); ?>"
|
||||
class="edit-link-button">
|
||||
Zum Beitrag
|
||||
</a>
|
||||
|
||||
<?php foreach ($userComments as $comment): ?>
|
||||
<div class="article-item">
|
||||
<div class="article-meta">
|
||||
<span class="article-date">
|
||||
<?php echo htmlspecialchars($comment->getCreated()); ?>
|
||||
</span>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
|
||||
<p>
|
||||
<?php echo nl2br(htmlspecialchars($comment->getContent())); ?>
|
||||
</p>
|
||||
<?php else: ?>
|
||||
|
||||
<a href="index.php?pfad=showArticle&id=<?php echo htmlspecialchars($comment->getArticleId()); ?>"
|
||||
class="edit-link-button">
|
||||
Zum Beitrag
|
||||
</a>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
<p>Du hast noch keine Kommentare geschrieben.</p>
|
||||
|
||||
<?php else: ?>
|
||||
<p>Du hast noch keine Kommentare geschrieben.</p>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php unset($_SESSION["message"]); ?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<?php unset($_SESSION["message"]); ?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</main>
|
||||
Reference in New Issue
Block a user
Würde ich in ein eigenes Div packen, nicht in das gleiche Div wie die Beiträge