news-item tags for news feed

Signed-off-by: deepend <deepend@tilde.club>
This commit is contained in:
keyboardan 2025-07-01 22:07:23 +01:00 committed by deepend
parent 1eb933f5f2
commit 371f9efb7f
1 changed files with 8 additions and 0 deletions

View File

@ -80,8 +80,14 @@ if (isset($_GET['notice'])) {
// Display news items // Display news items
foreach ($filteredNews as $newsItem) { foreach ($filteredNews as $newsItem) {
echo '<div class="news-item">';
echo '<div class="news-item-title">';
echo '<h2>' . htmlspecialchars($newsItem['title']) . ':</h2>'; echo '<h2>' . htmlspecialchars($newsItem['title']) . ':</h2>';
echo '<h3>' . htmlspecialchars($newsItem['heading']) . '</h3>'; echo '<h3>' . htmlspecialchars($newsItem['heading']) . '</h3>';
echo '</div>';
echo '<div class="news-item-body">';
echo '<p>' . htmlspecialchars($newsItem['content']) . '</p>'; echo '<p>' . htmlspecialchars($newsItem['content']) . '</p>';
if (isset($newsItem['details']) && is_array($newsItem['details'])) { if (isset($newsItem['details']) && is_array($newsItem['details'])) {
@ -99,7 +105,9 @@ if (isset($_GET['notice'])) {
if (isset($newsItem['additional_content'])) { if (isset($newsItem['additional_content'])) {
echo '<p>' . htmlspecialchars($newsItem['additional_content']) . '</p>'; echo '<p>' . htmlspecialchars($newsItem['additional_content']) . '</p>';
} }
echo '</div>';
echo '</div>';
echo '<hr>'; echo '<hr>';
} }