diff options
| author | winter | 2024-12-23 18:20:25 +0000 |
|---|---|---|
| committer | winter | 2024-12-23 18:20:25 +0000 |
| commit | bccad1118364427ea5c97c08d132fd128368760b (patch) | |
| tree | 449a4f5b36309e1e80694718f72ebc6e136e0140 /templates/note.php | |
| parent | 094b1d010253f1a9a114303d823739e513834742 (diff) | |
make a crummy template system and use it for global timeline
Diffstat (limited to 'templates/note.php')
| -rw-r--r-- | templates/note.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/templates/note.php b/templates/note.php new file mode 100644 index 0000000..c3ec9fd --- /dev/null +++ b/templates/note.php @@ -0,0 +1,11 @@ +<article class="note"> + <img class="authorAvatar" src="<?= $note->author->avatar ?>"> + <div> + <a class="authorName" <?= isset($note->author->homepage) ? 'href="' . $note->author->homepage . '"' : '' ?>> + <?= $note->author->displayName ?> + </a> + <div class="postContent"> + <?= $note->plainContent ?> + </div> + </div> +</article>
\ No newline at end of file |
