From 27e7a426b1c7ba7ec878204a937a0ecfff5214ed Mon Sep 17 00:00:00 2001 From: Thomas Lange Date: Thu, 22 Jul 2021 22:44:34 +0200 Subject: Add user and category filter on post search Add a user and category filter option for the post search in the administration area. Filter on default theme is followed later. --- theme/admin/html/post/search.php | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) (limited to 'theme/admin/html/post') diff --git a/theme/admin/html/post/search.php b/theme/admin/html/post/search.php index 10aa43d..ff4cf59 100644 --- a/theme/admin/html/post/search.php +++ b/theme/admin/html/post/search.php @@ -1,3 +1,18 @@ +%s%s [%d]'; + $select = ($category['ID'] == $selected) ? ' selected' : ''; + + printf($option, $category['ID'], $select, $prefix, escapeHTML($category['NAME']), $category['ID']); + + if(isset($category['CHILDS'])) { + # If there are children, call self and pass children array. + (__FUNCTION__)($category['CHILDS'], $selected, $prefix.'– '); + } + } +} +?>
>

text('title_post_search')?>

text('search_post_desc')?>

@@ -20,6 +35,28 @@
+ + + +
+ +
+ + + +
+ +
-- cgit v1.2.3