Skip to content

Commit

Permalink
Releases radio buttons to all users
Browse files Browse the repository at this point in the history
  • Loading branch information
wilson1000 committed Nov 1, 2023
1 parent a276f1e commit af0bbfa
Showing 1 changed file with 22 additions and 49 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 '<input type="submit" value="Search" id="ff_button_submit"/><br><br><br><hr><br>';

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

echo '<input type="submit" value="Search" id="ff_button_submit"/><br><br><br><hr><br>';

form_builder(
'radio-group',
'',
'Filter by',
'post_types',
null,
$selected_value,
null,
'js-radios-onChange',
false,
null,
[
['All', 'any', $any],
['Pages', 'page', $page],
['Documents &amp; 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 &amp; forms', 'document', $document],
['Events', 'event', $event],
['News', 'news', $news],
['Pages', 'page', $page]
]
);

echo '<input type="submit" value="Filter" id="ff_button_submit"/>';
}
?>
</form>
</section>
Expand Down

0 comments on commit af0bbfa

Please sign in to comment.