diff --git a/web/app/themes/clarity/src/components/c-search-results-filter/view.php b/web/app/themes/clarity/src/components/c-search-results-filter/view.php index c2c7ae673..728976be6 100644 --- a/web/app/themes/clarity/src/components/c-search-results-filter/view.php +++ b/web/app/themes/clarity/src/components/c-search-results-filter/view.php @@ -29,56 +29,29 @@ // Keyword input field form_builder('text', '', false, 's', null, $keyword_query, $placeholder, null, false, null, null); - if ($activeAgency['shortcode'] === 'hmcts') { + echo '




'; + + form_builder( + 'radio-group', + '', + 'Filter by', + 'post_types', + null, + $selected_value, + null, + 'js-radios-onChange', + false, + null, + [ + ['All', 'any', $any], + ['Pages', 'page', $page], + ['Documents & forms', 'document', $document], + ['News', 'news', $news], + ['Blogs', 'post', $post], + ['Events', 'event', $event] + ] + ); - echo '




'; - - form_builder( - 'radio-group', - '', - 'Filter by', - 'post_types', - null, - $selected_value, - null, - 'js-radios-onChange', - false, - null, - [ - ['All', 'any', $any], - ['Pages', 'page', $page], - ['Documents & forms', 'document', $document], - ['News', 'news', $news], - ['Blogs', 'post', $post], - ['Events', 'event', $event] - ] - ); - - } else { - - form_builder( - 'select', - '', - 'Filter by', - 'post_types', - null, - $selected_value, - null, - null, - false, - null, - [ - ['All', 'any', $any], - ['Blogs', 'post', $post], - ['Documents & forms', 'document', $document], - ['Events', 'event', $event], - ['News', 'news', $news], - ['Pages', 'page', $page] - ] - ); - - echo ''; - } ?>