| 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 |
'register_menu' => false, |
| 20 |
'show_bar_menu' => false, |
| 21 |
|
| 22 |
// Footer. |
| 23 |
'footer_text' => '', |
| 24 |
'footer_after' => '', |
| 25 |
'footer_credit' => '', |
| 26 |
// customizer |
| 27 |
'show_in_customizer' => forumax_get_opt( 'customizer_visibility' ), |
| 28 |
] |
| 29 |
); |
| 30 |
|
| 31 |
// Widgets Settings. |
| 32 |
define( 'FORUMAX_SETTINGS_PATH', plugin_dir_path( __FILE__ ) ); |
| 33 |
|
| 34 |
include FORUMAX_SETTINGS_PATH . 'options_general.php'; |
| 35 |
include FORUMAX_SETTINGS_PATH . 'options_admin_ui.php'; |
| 36 |
include FORUMAX_SETTINGS_PATH . 'options_topics.php'; |
| 37 |
include FORUMAX_SETTINGS_PATH . 'options_replies.php'; |
| 38 |
include FORUMAX_SETTINGS_PATH . 'options_users.php'; |
| 39 |
include FORUMAX_SETTINGS_PATH . 'options_voting.php'; |
| 40 |
include FORUMAX_SETTINGS_PATH . 'options_attachments.php'; |
| 41 |
include FORUMAX_SETTINGS_PATH . 'options_mini_profile.php'; |
| 42 |
include FORUMAX_SETTINGS_PATH . 'options_notification.php'; |
| 43 |
include FORUMAX_SETTINGS_PATH . 'options_shortcode.php'; |
| 44 |
include FORUMAX_SETTINGS_PATH . 'options_chat.php'; |
| 45 |
include FORUMAX_SETTINGS_PATH . 'options-social-login.php'; |
| 46 |
include FORUMAX_SETTINGS_PATH . 'options_gamification.php'; |
| 47 |
include FORUMAX_SETTINGS_PATH . 'options_backup.php'; |
| 48 |
|
| 49 |
// Additional fields |
| 50 |
do_action('bbpc_additoinal_csf_fields', $prefix); |
| 51 |
|
| 52 |
if ( ! class_exists( 'bbPress' ) ) { |
| 53 |
return; |
| 54 |
} |
| 55 |
} |
| 56 |
|