From 1f53689e4bbdb795ca32eefe1d770bb406485b46 Mon Sep 17 00:00:00 2001 From: Aaron van Geffen Date: Mon, 15 Jan 2024 00:55:33 +0100 Subject: [PATCH] AlbumButtonBox: add visual cue to indicate a filter is active --- controllers/ViewPhotoAlbum.php | 1 + templates/AlbumButtonBox.php | 11 ++++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/controllers/ViewPhotoAlbum.php b/controllers/ViewPhotoAlbum.php index 55c72b7..f4e7f77 100644 --- a/controllers/ViewPhotoAlbum.php +++ b/controllers/ViewPhotoAlbum.php @@ -55,6 +55,7 @@ class ViewPhotoAlbum extends HTMLController { $filters[$contributor['slug']] = [ 'id_user' => $contributor['id_user'], + 'label' => $contributor['first_name'], 'caption' => sprintf('By %s (%s photos)', $contributor['first_name'], $contributor['num_assets']), 'link' => $tag->getUrl() . '/?by=' . $contributor['slug'], diff --git a/templates/AlbumButtonBox.php b/templates/AlbumButtonBox.php index ea631ea..7626fa3 100644 --- a/templates/AlbumButtonBox.php +++ b/templates/AlbumButtonBox.php @@ -33,7 +33,16 @@ class AlbumButtonBox extends Template echo '