From 711366c3512f79e2754b4bbc57dddd76e871267e Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Tue, 31 Jan 2023 22:36:52 +0100 Subject: Remove venue filter from shortcode. I don't really see a need for filtering by venue as well as city. This makes it easier, both for us and the visitors. --- includes/templates/giglogadmin-concerts-table.php | 43 +++++++++-------------- 1 file changed, 17 insertions(+), 26 deletions(-) (limited to 'includes/templates') diff --git a/includes/templates/giglogadmin-concerts-table.php b/includes/templates/giglogadmin-concerts-table.php index 93f5366..f38db3d 100644 --- a/includes/templates/giglogadmin-concerts-table.php +++ b/includes/templates/giglogadmin-concerts-table.php @@ -26,32 +26,23 @@ }
-
- - Filters - -
- array( $c, $c ), GiglogAdmin_Venue::all_cities() ), - $filters['city'] ?? null, - 'City' - ); - - // phpcs:disable WordPress.Security.EscapeOutput.OutputNotEscaped - echo EternalTerror\ViewHelpers\select_field( - 'venue', - array_map( fn( $v ) => array( $v->name(), "{$v->name()}, {$v->city()}" ), GiglogAdmin_Venue::all_venues() ), - $filters['venue'] ?? null, - 'Venue' - ); - ?> - - Clear filters -
-
+
+
+ + array( $c, $c ), GiglogAdmin_Venue::all_cities() ), + $filters['city'] ?? null + ); + ?> + + Clear filters +
+
-- cgit v1.2.3