PluginProbe
Forumax – AI Powered Advanced Community Forum Plugin / 1.2.8
Forumax – AI Powered Advanced Community Forum Plugin v1.2.8
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.2.8, at includes/admin/settings/options/options_admin_ui.php

64 lines 1.9 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' => __( 'Classic bbPress post types', 'bbp-core' ),
36 'subtitle' => __( 'Since you can manage the Forums from our unified forums UI, you can hide or disable the classic bbPress menus.', 'bbp-core' ),
37 'desc' => __( 'Native Forum, Topics and Replies post types menus will be hidden. ', 'bbp-core' ),
38 'text_on' => __( 'Show', 'bbp-core' ),
39 'text_off' => __( 'Hide', 'bbp-core' ),
40 'text_width' => 85
41 ],
42
43 [
44 'id' => 'default_filter',
45 'type' => 'select',
46 'title' => __( 'Choose default filter', 'bbp-core' ),
47 'placeholder' => 'Select an option',
48 'options' => $default_options,
49 'default' => '.open-topics',
50 ],
51
52 [
53 'id' => 'filter_buttons',
54 'type' => 'button_set',
55 'title' => __( 'Filters to show on admin page.', 'bbp-core' ),
56 'class' => 'bbpc-filter-btn-settings',
57 'multiple' => true,
58 'options' => $filter_options,
59 'default' => $default_filter_options,
60 ],
61 ],
62 ]
63 );
64