Wrap motd entries in dataclass

This commit is contained in:
2026-01-13 13:28:10 +09:00
parent 189324b87e
commit 9e2fab0ea2
3 changed files with 52 additions and 13 deletions
+2 -2
View File
@@ -119,7 +119,7 @@ $doorTime = $doorEntry->time->format('H:i');
<div class="gridl">
<?php
$title = $motd['title'];
$title = $motd->getTitle();
echo '<h1>';
if ($title == '') {
@@ -130,7 +130,7 @@ $doorTime = $doorEntry->time->format('H:i');
echo '</h1>';
$Parsedown = new Parsedown();
echo $Parsedown->text(implode("\n", $motd['content']));
echo $Parsedown->text($motd->getContentAsString());
?>
</div>
</main>