From e5fa9fbf7dd3c6f7b7d6bec79fef434da914af80 Mon Sep 17 00:00:00 2001 From: Andy Date: Sun, 27 Jun 2021 14:31:06 +1000 Subject: [PATCH 1/4] artists_view to use albm-row class for consistent highlighting of table row. --- artists_view.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artists_view.php b/artists_view.php index d92c40a..ac4d667 100644 --- a/artists_view.php +++ b/artists_view.php @@ -93,7 +93,7 @@ //Loop through the artists to display each on a table row for ($i = 0; $i < $cnt; $i++){ - echo ''; // Start of the artist listing row + echo ''; // Start of the artist listing row echo ''; echo $artist_results['artist'][$i]['name'] . ''; From 372b509b7821016ca3876b8cb93970743ee025b5 Mon Sep 17 00:00:00 2001 From: Andy Date: Sun, 29 Aug 2021 09:12:27 +1000 Subject: [PATCH 2/4] Added pagination for the artist_albums view. Fixed header colour. --- artist_albums.php | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/artist_albums.php b/artist_albums.php index 1b5133b..9e92093 100644 --- a/artist_albums.php +++ b/artist_albums.php @@ -3,6 +3,21 @@ $uid = $_GET["uid"]; + // Check if we have an offset value passed for pagination + if (!empty($_GET["ofst"])) { + $offset = $_GET["ofst"]; + } else { + $offset = 0; + } + + //Set up some offset values for our next and prev buttons + if ($offset == 0) { + $poffset = 0; + } else { + $poffset = $offset - 25; + } + $noffset = $offset + 25; + $get_data = handshakeAPI(); $hshake = json_decode($get_data, true); @@ -21,9 +36,19 @@
- ' . $artistresults['name'] . ''; +
+
+

+
+
+ 0) echo '   '; + if ($total == 24) echo ''; + ?> +
+
+ "; //Loop 4 rows From 3537c8117b59e641297f509ebace0c37c7b5a565 Mon Sep 17 00:00:00 2001 From: Andy Date: Sun, 29 Aug 2021 09:30:52 +1000 Subject: [PATCH 3/4] Updated text colour of filter tag to be brighter and more readable on bright backgrounds. --- css/main.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/css/main.css b/css/main.css index 9328396..cebd774 100644 --- a/css/main.css +++ b/css/main.css @@ -65,7 +65,7 @@ /** icons & labels styling **/ .ui.label.filter { background-color: var(--colrbgd1) !important; - color: var(--colrfnt1) !important; + color: var(--colrfnt2) !important; } .icon { From 3eb2df95d1387131de15e5264a93393abc0a51e9 Mon Sep 17 00:00:00 2001 From: Andy Date: Sun, 29 Aug 2021 10:29:59 +1000 Subject: [PATCH 4/4] Change filter field to have persistent value after search. --- albums_view.php | 2 +- artists_view.php | 2 +- tracks_view.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/albums_view.php b/albums_view.php index 170f4d1..f8aa375 100644 --- a/albums_view.php +++ b/albums_view.php @@ -57,7 +57,7 @@
- +
diff --git a/artists_view.php b/artists_view.php index ac4d667..234b0df 100644 --- a/artists_view.php +++ b/artists_view.php @@ -71,7 +71,7 @@ echo '
'; echo '
'; echo '
'; - echo ''; + echo ''; echo '
'; echo '
'; echo '
'; diff --git a/tracks_view.php b/tracks_view.php index 25f1b84..969c693 100644 --- a/tracks_view.php +++ b/tracks_view.php @@ -77,7 +77,7 @@ echo '
' . "\r\n"; echo '
' . "\r\n"; echo '
' . "\r\n"; - echo '' . "\r\n"; + echo ''; echo '
' . "\r\n"; echo '
' . "\r\n"; echo '
' . "\r\n";