mirror of
https://github.com/tildeclub/site.git
synced 2026-01-23 21:40:18 +00:00
news-item tags for news feed
Signed-off-by: deepend <deepend@tilde.club>
This commit is contained in:
@@ -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>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user