From ef16890f38bd4256da1b873a89dfadc5067d63a9 Mon Sep 17 00:00:00 2001 From: winter Date: Tue, 24 Dec 2024 00:33:02 +0000 Subject: hook up the interaction buttons to a dummy thing --- templates/interaction_button.php | 15 +++++++++++++++ templates/note.php | 6 +++--- 2 files changed, 18 insertions(+), 3 deletions(-) create mode 100644 templates/interaction_button.php (limited to 'templates') diff --git a/templates/interaction_button.php b/templates/interaction_button.php new file mode 100644 index 0000000..a1fb3b0 --- /dev/null +++ b/templates/interaction_button.php @@ -0,0 +1,15 @@ + 'Like', + 'dislike' => 'Dislike', + 'reshare' => 'Reshare' +}; +$icon = match ($action) { + 'like' => 'favorite', + 'dislike' => 'heart_broken', + 'reshare' => $active ? 'repeat_on' : 'repeat' +}; +?> + \ No newline at end of file diff --git a/templates/note.php b/templates/note.php index 31795e4..6e718f5 100644 --- a/templates/note.php +++ b/templates/note.php @@ -20,9 +20,9 @@ getFormattedContent('text/html') ?? htmlspecialchars($note->plainContent) ?>
- - - + $action, 'note' => $note]); + } ?>
\ No newline at end of file -- cgit v1.3