PluginProbe
Forumax – AI Powered Advanced Community Forum Plugin / trunk
Forumax – AI Powered Advanced Community Forum Plugin vtrunk
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 / options / options_admin_ui.php

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

66 lines 2.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' => esc_html__( 'Open', 'forumax' ),
5 'closed' => esc_html__( 'Closed', 'forumax' ),
6 'hidden' => esc_html__( 'Hidden', 'forumax' ),
7 'no_reply' => esc_html__( 'No Reply', 'forumax' ),
8 'solved' => esc_html__( 'Solved', 'forumax' ),
9 'unsolved' => esc_html__( 'Unsolved', 'forumax' ),
10 'all' => esc_html__( 'All Topics', 'forumax' ),
11 'trash' => esc_html__( 'Trash', 'forumax' ),
12 ];
13
14 $default_options = [
15 '.open-topics' => esc_html__( 'Open', 'forumax' ),
16 '.closed-topics' => esc_html__( 'Closed', 'forumax' ),
17 '.hidden-topics' => esc_html__( 'Hidden', 'forumax' ),
18 '.no-reply' => esc_html__( 'No Reply', 'forumax' ),
19 '.solved' => esc_html__( 'Solved', 'forumax' ),
20 '.unsolved' => esc_html__( 'Unsolved', 'forumax' ),
21 'all' => esc_html__( 'All Topics', 'forumax' )
22 ];
23
24 $default_filter_options = [ 'open', 'closed', 'hidden', 'no_reply', 'all', 'trash' ];
25
26 CSF::createSection(
27 $prefix,
28 [
29 'title' => esc_html__( 'Forum Builder', 'forumax' ),
30 'icon' => 'dashicons dashicons-dashboard',
31 'fields' => [
32 [
33 'id' => 'is_bbp_post_types_hidden',
34 'type' => 'switcher',
35 'default' => false,
36 'title' => esc_html__( 'Classic post types', 'forumax' ),
37 'subtitle' => esc_html__( 'Toggle the visibility of the native forum post type menus (Forums, Topics, Replies).', 'forumax' ),
38 'desc' => esc_html__( 'Turn OFF (Hide) to remove them and keep your dashboard clean. Turn ON (Show) to make them visible again.', 'forumax' ),
39 'text_on' => esc_html__( 'Show', 'forumax' ),
40 'text_off' => esc_html__( 'Hide', 'forumax' ),
41 'text_width' => 85
42 ],
43
44 [
45 'id' => 'default_filter',
46 'type' => 'select',
47 'title' => esc_html__( 'Choose Default Filter', 'forumax' ),
48 'subtitle' => esc_html__( 'Set the default topic status filter that appears when you first load the Forum Builder.', 'forumax' ),
49 'placeholder' => esc_html__( 'Select an option', 'forumax' ),
50 'options' => $default_options,
51 'default' => '.open-topics',
52 ],
53
54 [
55 'id' => 'filter_buttons',
56 'type' => 'button_set',
57 'title' => esc_html__( 'Filters to Show on Admin Page', 'forumax' ),
58 'subtitle' => esc_html__( 'Select which status filter buttons are visible in the Forum Builder admin header.', 'forumax' ),
59 'class' => 'bbpc-filter-btn-settings',
60 'multiple' => true,
61 'options' => $filter_options,
62 'default' => $default_filter_options,
63 ],
64 ],
65 ]
66 );