| 1 |
<?php |
| 2 |
// Create a section. |
| 3 |
CSF::createSection( |
| 4 |
$prefix, |
| 5 |
[ |
| 6 |
'title' => __( 'Topic Replies', 'bbp-core' ), |
| 7 |
'icon' => 'dashicons dashicons-format-chat', |
| 8 |
'fields' => [ |
| 9 |
[ |
| 10 |
'id' => 'is_private_replies', |
| 11 |
'type' => 'switcher', |
| 12 |
'default' => 1, |
| 13 |
'title' => __( 'Private Replies', 'bbp-core' ), |
| 14 |
'subtitle' => __( 'Enable/ Disable Private Replies feature.', 'bbp-core' ), |
| 15 |
], |
| 16 |
[ |
| 17 |
'id' => 'anonymous_reply', |
| 18 |
'type' => 'switcher', |
| 19 |
'title' => __( 'Anonymous Reply', 'bbp-core' ), |
| 20 |
'subtitle' => __( 'Allow anonymous to reply a topic.', 'bbp-core' ), |
| 21 |
'class' => 'st-pro-notice' |
| 22 |
], |
| 23 |
[ |
| 24 |
'id' => 'anonymous_reply_label', |
| 25 |
'type' => 'text', |
| 26 |
'title' => __( 'Anonymous Label', 'bbp-core' ), |
| 27 |
'default' => __( 'Post Anonymously', 'bbp-core' ), |
| 28 |
'dependency' => [ 'anonymous_reply', '==', 'true', ], |
| 29 |
'class' => 'st-pro-notice' |
| 30 |
] |
| 31 |
], |
| 32 |
] |
| 33 |
); |