PluginProbe
Forumax – AI Powered Advanced Community Forum Plugin / 1.1.0
Forumax – AI Powered Advanced Community Forum Plugin v1.1.0
2.4.4 2.4.3 2.4.2 2.4.1 2.4.0 trunk 1.0.8 1.1.0 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.3.0 1.3.1 1.3.2 1.3.3 1.4.0 1.4.1 2.0.0 2.1.0 All 29 releases
bbp-core / includes / admin / settings / options / options_admin_ui.php

options_admin_ui.php in Forumax – AI Powered Advanced Community Forum Plugin 1.1.0, at includes/admin/settings/options/options_admin_ui.php

60 lines 1.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 // Create a section.
3 $filter_options = [
4 'open' => 'Open',
5 'closed' => 'Closed',
6 'hidden' => 'Hidden',
7 'no_reply' => 'No Reply',
8 'solved' => 'Solved',
9 'unsolved' => 'Unsolved',
10 'all' => 'All Topics',
11 'trash' => 'Trash',
12 ];
13
14 $default_options = [
15 '.open-topics' => 'Open',
16 '.closed-topics' => 'Closed',
17 '.hidden-topics' => 'Hidden',
18 '.no-reply' => 'No Reply',
19 '.solved' => 'Solved',
20 '.unsolved' => 'Unsolved',
21 'all' => 'All Topics'
22 ];
23
24 $default_filter_options = [ 'open', 'closed', 'hidden', 'no_reply', 'all', 'trash' ];
25
26 CSF::createSection(
27 $prefix,
28 [
29 'title' => __( 'Admin UI', 'bbp-core' ),
30 'fields' => [
31 [
32 'id' => 'is_bbp_post_types_hidden',
33 'type' => 'switcher',
34 'default' => false,
35 'title' => __( 'Hide bbPress post types', 'bbp-core' ),
36 'subtitle' => __( 'Native Forum, Topics and Replies post types menus will be hidden.', 'bbp-core' ),
37 ],
38
39 [
40 'id' => 'default_filter',
41 'type' => 'select',
42 'title' => __( 'Choose default filter', 'bbp-core' ),
43 'placeholder' => 'Select an option',
44 'options' => $default_options,
45 'default' => '.open-topics',
46 ],
47
48 [
49 'id' => 'filter_buttons',
50 'type' => 'button_set',
51 'title' => __( 'Filters to show on admin page.', 'bbp-core' ),
52 'class' => 'bbpc-filter-btn-settings',
53 'multiple' => true,
54 'options' => $filter_options,
55 'default' => $default_filter_options,
56 ],
57 ],
58 ]
59 );
60