From 0b010be0b4f31560dc0ed16499afe78544f5cca6 Mon Sep 17 00:00:00 2001 From: Aaron van Geffen Date: Thu, 11 Jan 2024 20:00:29 +0100 Subject: [PATCH] PhotoPage: change how tags are displayed --- templates/PhotoPage.php | 37 ++++++++++++++++++++++++------------- 1 file changed, 24 insertions(+), 13 deletions(-) diff --git a/templates/PhotoPage.php b/templates/PhotoPage.php index 9554106..e9d9fec 100644 --- a/templates/PhotoPage.php +++ b/templates/PhotoPage.php @@ -39,8 +39,8 @@ class PhotoPage extends Template

', $this->photo->getTitle(), '

'; - $this->taggedPeople(); - $this->linkNewTags(); + $this->printTags('Album', 'Album', false); + $this->printTags('Tagged People', 'Person', true); echo '
@@ -154,26 +154,40 @@ class PhotoPage extends Template '; } - private function taggedPeople() + private function printTags($header, $tagKind, $allowLinkingNewTags) { echo ' -

Tags

-