| 1 |
<?php |
| 2 |
// Create a section. |
| 3 |
CSF::createSection( |
| 4 |
$prefix, |
| 5 |
[ |
| 6 |
'title' => __( 'Topic Replies', 'forumax' ), |
| 7 |
'icon' => 'dashicons dashicons-format-chat', |
| 8 |
'fields' => [ |
| 9 |
[ |
| 10 |
'id' => 'is_bbpc_insert_media', |
| 11 |
'type' => 'switcher', |
| 12 |
'default' => 1, |
| 13 |
'title' => __( 'BBPC Insert Media', 'forumax' ), |
| 14 |
'subtitle' => __( 'Enable/Disable the custom image insert button with upload & URL modal for editors.', 'forumax' ), |
| 15 |
'class' => 'st-pro-notice' |
| 16 |
], |
| 17 |
[ |
| 18 |
'id' => 'is_auto_approval_replies', |
| 19 |
'type' => 'switcher', |
| 20 |
'default' => true, |
| 21 |
'title' => __( 'Auto Approval', 'forumax' ), |
| 22 |
'subtitle' => __( 'Enable/ Disable Auto Approval feature.', 'forumax' ), |
| 23 |
'class' => 'st-pro-notice' |
| 24 |
], |
| 25 |
[ |
| 26 |
'id' => 'is_attachment_replies', |
| 27 |
'type' => 'button_set', |
| 28 |
'title' => __( 'Replies with Attachments', 'forumax' ), |
| 29 |
'subtitle' => __( 'Approve or Unapprove if attachment is added with the reply', 'forumax' ), |
| 30 |
'class' => 'st-pro-notice', |
| 31 |
'options' => array( |
| 32 |
'1' => 'Approve', |
| 33 |
'0' => 'Unapprove', |
| 34 |
), |
| 35 |
'default' => '1', |
| 36 |
'dependency' => [ 'is_auto_approval_replies', '==', 'true', ], |
| 37 |
], |
| 38 |
[ |
| 39 |
'id' => 'is_private_replies', |
| 40 |
'type' => 'switcher', |
| 41 |
'default' => 1, |
| 42 |
'title' => __( 'Private Replies', 'forumax' ), |
| 43 |
'subtitle' => __( 'Enable/ Disable Private Replies feature.', 'forumax' ), |
| 44 |
], |
| 45 |
[ |
| 46 |
'id' => 'anonymous_reply', |
| 47 |
'type' => 'switcher', |
| 48 |
'title' => __( 'Anonymous Reply', 'forumax' ), |
| 49 |
'subtitle' => __( 'Allow anonymous to reply a topic.', 'forumax' ), |
| 50 |
'class' => 'st-pro-notice' |
| 51 |
], |
| 52 |
[ |
| 53 |
'id' => 'anonymous_reply_label', |
| 54 |
'type' => 'text', |
| 55 |
'title' => __( 'Anonymous Label', 'forumax' ), |
| 56 |
'default' => __( 'Post Anonymously', 'forumax' ), |
| 57 |
'dependency' => [ 'anonymous_reply', '==', 'true', ], |
| 58 |
'class' => 'st-pro-notice' |
| 59 |
] |
| 60 |
], |
| 61 |
] |
| 62 |
); |