From b13701f7c0acab3ea57c2b57f67b6eb5b9732687 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 3f34e3df..f68acf52 100644 --- a/templates/PhotoPage.php +++ b/templates/PhotoPage.php @@ -32,8 +32,8 @@ class PhotoPage extends Template echo '

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

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

Tags

-