PluginProbe
Forumax – AI Powered Advanced Community Forum Plugin / 2.2.0
Forumax – AI Powered Advanced Community Forum Plugin v2.2.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
← All changes | includes/admin/options/settings.php +53 -50 1.3.02.2.0 View file →
@@ -1,50 +1,53 @@
1 -<?php
2 -if ( class_exists( 'CSF' ) ) {
3 -
4 - // Set a unique slug-like ID.
5 - $prefix = 'bbp_core_settings';
6 -
7 - // Create options.
8 - CSF::createOptions(
9 - $prefix,
10 - [
11 - 'framework_title' => __( 'BBP Core Settings', 'bbp-core' ),
12 - 'framework_class' => 'bbp-core-settings',
13 - 'theme' => 'dark',
14 -
15 - 'menu_title' => __( 'BBPC Settings', 'bbp-core-pro' ),
16 - 'menu_slug' => 'bbp-core-settings',
17 - 'menu_type' => 'submenu',
18 - 'menu_parent' => 'bbp-core',
19 - 'show_bar_menu' => false,
20 -
21 - // Footer.
22 - 'footer_text' => '',
23 - 'footer_after' => '',
24 - 'footer_credit' => '',
25 - // customizer
26 - 'show_in_customizer' => bbpc_get_opt( 'customizer_visibility' ),
27 - ]
28 - );
29 -
30 - // Widgets Settings.
31 - define( 'BBPC_SETTINGS_PATH', plugin_dir_path( __FILE__ ) );
32 -
33 - include BBPC_SETTINGS_PATH . 'options_general.php';
34 - include BBPC_SETTINGS_PATH . 'options_admin_ui.php';
35 - include BBPC_SETTINGS_PATH . 'options_topics.php';
36 - include BBPC_SETTINGS_PATH . 'options_replies.php';
37 - include BBPC_SETTINGS_PATH . 'options_voting.php';
38 - include BBPC_SETTINGS_PATH . 'options_attachments.php';
39 - include BBPC_SETTINGS_PATH . 'options_mini_profile.php';
40 - include BBPC_SETTINGS_PATH . 'options_notification.php';
41 - include BBPC_SETTINGS_PATH . 'options_shortcode.php';
42 -
43 - // Additional fields
44 - do_action('bbpc_additoinal_csf_fields', $prefix);
45 -
46 - if ( ! class_exists( 'bbPress' ) ) {
47 - return;
48 - }
49 -}
50 -
1 +<?php
2 +if ( class_exists( 'CSF' ) ) {
3 +
4 + // Set a unique slug-like ID.
5 + $prefix = 'bbp_core_settings';
6 +
7 + // Create options.
8 + CSF::createOptions(
9 + $prefix,
10 + [
11 + 'framework_title' => __( 'Forumax Settings', 'forumax' ),
12 + 'framework_class' => 'forumax-settings',
13 + 'theme' => 'dark',
14 +
15 + 'menu_title' => __( 'Settings', 'forumax' ),
16 + 'menu_slug' => 'forumax-settings',
17 + 'menu_type' => 'submenu',
18 + 'menu_parent' => 'forumax',
19 + 'show_bar_menu' => false,
20 +
21 + // Footer.
22 + 'footer_text' => '',
23 + 'footer_after' => '',
24 + 'footer_credit' => '',
25 + // customizer
26 + 'show_in_customizer' => forumax_get_opt( 'customizer_visibility' ),
27 + ]
28 + );
29 +
30 + // Widgets Settings.
31 + define( 'FORUMAX_SETTINGS_PATH', plugin_dir_path( __FILE__ ) );
32 +
33 + include FORUMAX_SETTINGS_PATH . 'options_general.php';
34 + include FORUMAX_SETTINGS_PATH . 'options_admin_ui.php';
35 + include FORUMAX_SETTINGS_PATH . 'options_topics.php';
36 + include FORUMAX_SETTINGS_PATH . 'options_replies.php';
37 + include FORUMAX_SETTINGS_PATH . 'options_users.php';
38 + include FORUMAX_SETTINGS_PATH . 'options_voting.php';
39 + include FORUMAX_SETTINGS_PATH . 'options_attachments.php';
40 + include FORUMAX_SETTINGS_PATH . 'options_mini_profile.php';
41 + include FORUMAX_SETTINGS_PATH . 'options_notification.php';
42 + include FORUMAX_SETTINGS_PATH . 'options_shortcode.php';
43 + include FORUMAX_SETTINGS_PATH . 'options_chat.php';
44 + include FORUMAX_SETTINGS_PATH . 'options-social-login.php';
45 + include FORUMAX_SETTINGS_PATH . 'options_backup.php';
46 +
47 + // Additional fields
48 + do_action('bbpc_additoinal_csf_fields', $prefix);
49 +
50 + if ( ! class_exists( 'bbPress' ) ) {
51 + return;
52 + }
53 +}