| @@ -1,41 +1,94 @@ | ||
| 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_bbpc_insert_media', | |
| 11 | - 'type' => 'switcher', | |
| 12 | - 'default' => 1, | |
| 13 | - 'title' => __( 'BBPC Insert Media', 'bbp-core' ), | |
| 14 | - 'subtitle' => __( 'Enable/Disable the custom image insert button with upload & URL modal for bbPress editors.', 'bbp-core' ), | |
| 15 | - 'class' => 'st-pro-notice' | |
| 16 | - ], | |
| 17 | - [ | |
| 18 | - 'id' => 'is_private_replies', | |
| 19 | - 'type' => 'switcher', | |
| 20 | - 'default' => 1, | |
| 21 | - 'title' => __( 'Private Replies', 'bbp-core' ), | |
| 22 | - 'subtitle' => __( 'Enable/ Disable Private Replies feature.', 'bbp-core' ), | |
| 23 | - ], | |
| 24 | - [ | |
| 25 | - 'id' => 'anonymous_reply', | |
| 26 | - 'type' => 'switcher', | |
| 27 | - 'title' => __( 'Anonymous Reply', 'bbp-core' ), | |
| 28 | - 'subtitle' => __( 'Allow anonymous to reply a topic.', 'bbp-core' ), | |
| 29 | - 'class' => 'st-pro-notice' | |
| 30 | - ], | |
| 31 | - [ | |
| 32 | - 'id' => 'anonymous_reply_label', | |
| 33 | - 'type' => 'text', | |
| 34 | - 'title' => __( 'Anonymous Label', 'bbp-core' ), | |
| 35 | - 'default' => __( 'Post Anonymously', 'bbp-core' ), | |
| 36 | - 'dependency' => [ 'anonymous_reply', '==', 'true', ], | |
| 37 | - 'class' => 'st-pro-notice' | |
| 38 | - ] | |
| 39 | - ], | |
| 40 | - ] | |
| 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_ajax_reply', | |
| 11 | + 'type' => 'switcher', | |
| 12 | + 'default' => false, | |
| 13 | + 'title' => __( 'AJAX Reply', 'forumax' ), | |
| 14 | + 'subtitle' => __( 'Enable instant reply submission without page reload. Replies appear in real-time via AJAX.', 'forumax' ), | |
| 15 | + 'class' => 'st-promax-notice' | |
| 16 | + ], | |
| 17 | + [ | |
| 18 | + 'id' => 'is_bbpc_insert_media', | |
| 19 | + 'type' => 'switcher', | |
| 20 | + 'default' => false, | |
| 21 | + 'title' => __( 'Insert Media', 'forumax' ), | |
| 22 | + 'subtitle' => __( 'Enable/Disable the custom image insert button with upload & URL modal for editors.', 'forumax' ), | |
| 23 | + 'class' => 'st-pro-notice' | |
| 24 | + ], | |
| 25 | + [ | |
| 26 | + 'id' => 'is_auto_approval_replies', | |
| 27 | + 'type' => 'switcher', | |
| 28 | + 'default' => false, | |
| 29 | + 'title' => __( 'Auto Approval', 'forumax' ), | |
| 30 | + 'subtitle' => __( 'Enable/ Disable Auto Approval feature.', 'forumax' ), | |
| 31 | + 'class' => 'st-pro-notice' | |
| 32 | + ], | |
| 33 | + [ | |
| 34 | + 'id' => 'is_attachment_replies', | |
| 35 | + 'type' => 'button_set', | |
| 36 | + 'title' => __( 'Replies with Attachments', 'forumax' ), | |
| 37 | + 'subtitle' => __( 'Approve or Unapprove if attachment is added with the reply', 'forumax' ), | |
| 38 | + 'class' => 'st-pro-notice', | |
| 39 | + 'options' => array( | |
| 40 | + '1' => 'Approve', | |
| 41 | + '0' => 'Unapprove', | |
| 42 | + ), | |
| 43 | + 'default' => '1', | |
| 44 | + 'dependency' => [ 'is_auto_approval_replies', '==', 'true', ], | |
| 45 | + ], | |
| 46 | + [ | |
| 47 | + 'id' => 'is_private_replies', | |
| 48 | + 'type' => 'switcher', | |
| 49 | + 'default' => 1, | |
| 50 | + 'title' => __( 'Private Replies', 'forumax' ), | |
| 51 | + 'subtitle' => __( 'Enable/ Disable Private Replies feature.', 'forumax' ), | |
| 52 | + ], | |
| 53 | + [ | |
| 54 | + 'id' => 'anonymous_reply', | |
| 55 | + 'type' => 'switcher', | |
| 56 | + 'title' => __( 'Anonymous Reply', 'forumax' ), | |
| 57 | + 'subtitle' => __( 'Allow anonymous to reply a topic.', 'forumax' ), | |
| 58 | + 'class' => 'st-pro-notice' | |
| 59 | + ], | |
| 60 | + [ | |
| 61 | + 'id' => 'anonymous_reply_label', | |
| 62 | + 'type' => 'text', | |
| 63 | + 'title' => __( 'Anonymous Label', 'forumax' ), | |
| 64 | + 'default' => __( 'Post Anonymously', 'forumax' ), | |
| 65 | + 'dependency' => [ 'anonymous_reply', '==', 'true', ], | |
| 66 | + 'class' => 'st-pro-notice' | |
| 67 | + ], | |
| 68 | + [ | |
| 69 | + 'id' => 'replies_react_voting', | |
| 70 | + 'type' => 'switcher', | |
| 71 | + 'title' => __( 'React Reactions', 'forumax' ), | |
| 72 | + 'subtitle' => __( 'To enable or disable the react reactions.', 'forumax' ), | |
| 73 | + 'class' => 'st-promax-notice', | |
| 74 | + 'default' => false | |
| 75 | + ], | |
| 76 | + [ | |
| 77 | + 'id' => 'replies_react_label', | |
| 78 | + 'type' => 'text', | |
| 79 | + 'title' => __( 'React Button Text', 'forumax' ), | |
| 80 | + 'default' => __( 'React', 'forumax' ), | |
| 81 | + 'class' => 'st-promax-notice', | |
| 82 | + 'dependency' => [ 'replies_react_voting', '==', 'true', ] | |
| 83 | + ], | |
| 84 | + [ | |
| 85 | + 'id' => 'reply_timeline_enabled', | |
| 86 | + 'type' => 'switcher', | |
| 87 | + 'title' => __( 'Reply Timeline Navigation', 'forumax' ), | |
| 88 | + 'subtitle' => __( 'Enable/Disable Discourse-style vertical timeline navigation for replies.', 'forumax' ), | |
| 89 | + 'class' => 'st-promax-notice', | |
| 90 | + 'default' => false | |
| 91 | + ] | |
| 92 | + ] | |
| 93 | + ] | |
| 41 | 94 | ); |