| @@ -2,9 +2,9 @@ | ||
| 2 | 2 | // Create a section. |
| 3 | 3 | CSF::createSection( |
| 4 | 4 | $prefix, |
| 5 | 5 | [ |
| 6 | - 'title' => __( 'Voting', 'bbp-core' ), | |
| 6 | + 'title' => __( 'Voting', 'forumax' ), | |
| 7 | 7 | 'icon' => 'dashicons dashicons-thumbs-up', |
| 8 | 8 | 'fields' => [ |
| 9 | 9 | [ |
| 10 | 10 | 'id' => 'is_votes', |
| @@ -9,55 +9,22 @@ | ||
| 9 | 9 | [ |
| 10 | 10 | 'id' => 'is_votes', |
| 11 | 11 | 'type' => 'switcher', |
| 12 | 12 | 'default' => 1, |
| 13 | - 'title' => __( 'Enable BBP Voting Features?', 'bbp-core' ), | |
| 13 | + 'title' => __( 'Enable BBP Voting Features?', 'forumax' ), | |
| 14 | 14 | ], |
| 15 | 15 | |
| 16 | 16 | [ |
| 17 | - 'type' => 'subheading', | |
| 18 | - 'content' => __( 'Voting Labels', 'bbp-core' ), | |
| 19 | - 'dependency' => [ 'is_votes', '==', 'true' ] | |
| 20 | - ], | |
| 21 | - | |
| 22 | - [ | |
| 23 | - 'id' => 'is_label', | |
| 24 | - 'type' => 'switcher', | |
| 25 | - 'default' => false, | |
| 26 | - 'title' => __( 'Show Labels', 'bbp-core' ), | |
| 27 | - 'subtitle' => __( 'Show the labels that describe what up and down mean?', 'bbp-core' ), | |
| 28 | - 'dependency' => [ 'is_votes', '==', 'true' ] | |
| 29 | - ], | |
| 30 | - | |
| 31 | - [ | |
| 32 | - 'id' => 'upvote_label', | |
| 33 | - 'type' => 'text', | |
| 34 | - 'title' => __( 'Upvote Label.', 'bbp-core' ), | |
| 35 | - 'default' => __( 'Upvote', 'bbp-core' ), | |
| 36 | - 'subtitle' => __( 'Change the upvote label from "Upvote" to something else.', 'bbp-core' ), | |
| 37 | - 'dependency' => [ 'is_votes', '==', 'true' ] | |
| 38 | - ], | |
| 39 | - | |
| 40 | - [ | |
| 41 | - 'id' => 'downvote_label', | |
| 42 | - 'type' => 'text', | |
| 43 | - 'title' => __( 'Downvote Label.', 'bbp-core' ), | |
| 44 | - 'default' => __( 'Downvote', 'bbp-core' ), | |
| 45 | - 'subtitle' => __( 'Change the downvote label from "Downvote" to something else.', 'bbp-core' ), | |
| 46 | - 'dependency' => [ 'is_votes', '==', 'true' ] | |
| 47 | - ], | |
| 48 | - | |
| 49 | - [ | |
| 50 | 17 | 'id' => 'vote_numbers_display', |
| 51 | 18 | 'type' => 'select', |
| 52 | - 'title' => __( 'Display Vote Numbers', 'bbp-core' ), | |
| 53 | - 'sub' => __( 'Choose how to display the number of up votes and down votes', 'bbp-core' ), | |
| 19 | + 'title' => __( 'Display Vote Numbers', 'forumax' ), | |
| 20 | + 'sub' => __( 'Choose how to display the number of up votes and down votes', 'forumax' ), | |
| 54 | 21 | 'chosen' => true, |
| 55 | - 'placeholder' => __( 'Select an option', 'bbp-core' ), | |
| 22 | + 'placeholder' => __( 'Select an option', 'forumax' ), | |
| 56 | 23 | 'options' => [ |
| 57 | - 'hover' => __( 'Hover', 'bbp-core' ), | |
| 58 | - 'always-show' => __( 'Always Show', 'bbp-core' ), | |
| 59 | - 'hide' => __( 'Hide', 'bbp-core' ), | |
| 24 | + 'hover' => __( 'Hover', 'forumax' ), | |
| 25 | + 'always-show' => __( 'Always Show', 'forumax' ), | |
| 26 | + 'hide' => __( 'Hide', 'forumax' ), | |
| 60 | 27 | ], |
| 61 | 28 | 'default' => 'hover', |
| 62 | 29 | 'dependency' => [ 'is_votes', '==', 'true' ] |
| 63 | 30 | ], |
| @@ -63,9 +30,9 @@ | ||
| 63 | 30 | ], |
| 64 | 31 | |
| 65 | 32 | [ |
| 66 | 33 | 'type' => 'subheading', |
| 67 | - 'content' => __( 'Voting Buttons', 'bbp-core' ), | |
| 34 | + 'content' => __( 'Voting Buttons', 'forumax' ), | |
| 68 | 35 | 'dependency' => [ 'is_votes', '==', 'true', ] |
| 69 | 36 | ], |
| 70 | 37 | |
| 71 | 38 | [ |
| @@ -71,10 +38,10 @@ | ||
| 71 | 38 | [ |
| 72 | 39 | 'id' => 'is_voting_disabled_topics', |
| 73 | 40 | 'type' => 'switcher', |
| 74 | 41 | 'default' => 0, |
| 75 | - 'title' => __( 'Voting on Topics', 'bbp-core' ), | |
| 76 | - 'subtitle' => __( 'You can override this at the forum level', 'bbp-core' ), | |
| 42 | + 'title' => __( 'Voting on Topics', 'forumax' ), | |
| 43 | + 'subtitle' => __( 'You can override this at the forum level', 'forumax' ), | |
| 77 | 44 | 'dependency' => [ 'is_votes', '==', 'true', ] |
| 78 | 45 | ], |
| 79 | 46 | |
| 80 | 47 | [ |
| @@ -80,10 +47,10 @@ | ||
| 80 | 47 | [ |
| 81 | 48 | 'id' => 'is_voting_disabled_replies', |
| 82 | 49 | 'type' => 'switcher', |
| 83 | 50 | 'default' => 0, |
| 84 | - 'title' => __( 'Voting on Replies', 'bbp-core' ), | |
| 85 | - 'subtitle' => __( 'You can override this at the forum level', 'bbp-core' ), | |
| 51 | + 'title' => __( 'Voting on Replies', 'forumax' ), | |
| 52 | + 'subtitle' => __( 'You can override this at the forum level', 'forumax' ), | |
| 86 | 53 | 'dependency' => [ 'is_votes', '==', 'true', ] |
| 87 | 54 | ], |
| 88 | 55 | |
| 89 | 56 | [ |
| @@ -89,16 +56,16 @@ | ||
| 89 | 56 | [ |
| 90 | 57 | 'id' => 'is_down_votes_disabled', |
| 91 | 58 | 'type' => 'switcher', |
| 92 | 59 | 'default' => 0, |
| 93 | - 'title' => __( 'Down Votes', 'bbp-core' ), | |
| 94 | - 'subtitle' => __( 'Only Allow Up Votes', 'bbp-core' ), | |
| 60 | + 'title' => __( 'Down Votes', 'forumax' ), | |
| 61 | + 'subtitle' => __( 'Only Allow Up Votes', 'forumax' ), | |
| 95 | 62 | 'dependency' => [ 'is_votes', '==', 'true', ] |
| 96 | 63 | ], |
| 97 | 64 | |
| 98 | 65 | [ |
| 99 | 66 | 'type' => 'subheading', |
| 100 | - 'content' => __( 'View-Only Scores', 'bbp-core' ), | |
| 67 | + 'content' => __( 'View-Only Scores', 'forumax' ), | |
| 101 | 68 | 'dependency' => [ 'is_votes', '==', 'true', ] |
| 102 | 69 | ], |
| 103 | 70 | |
| 104 | 71 | [ |
| @@ -104,10 +71,10 @@ | ||
| 104 | 71 | [ |
| 105 | 72 | 'id' => 'is_disabled_voting_for_non_logged_users', |
| 106 | 73 | 'type' => 'switcher', |
| 107 | 74 | 'default' => 0, |
| 108 | - 'title' => __( 'Disable voting for visitors who are not logged in', 'bbp-core' ), | |
| 109 | - 'subtitle' => __( 'Scores will display (if configured to), but voting will be disabled if not logged in', 'bbp-core' ), | |
| 75 | + 'title' => __( 'Disable voting for visitors who are not logged in', 'forumax' ), | |
| 76 | + 'subtitle' => __( 'Scores will display (if configured to), but voting will be disabled if not logged in', 'forumax' ), | |
| 110 | 77 | 'class' => 'st-pro-notice', |
| 111 | 78 | 'dependency' => [ 'is_votes', '==', 'true', ] |
| 112 | 79 | ], |
| 113 | 80 | |
| @@ -114,10 +81,10 @@ | ||
| 114 | 81 | [ |
| 115 | 82 | 'id' => 'is_disabled_voting_closed_topics', |
| 116 | 83 | 'type' => 'switcher', |
| 117 | 84 | 'default' => 0, |
| 118 | - 'title' => __( 'Disable adding new votes after a topic is closed', 'bbp-core' ), | |
| 119 | - 'subtitle' => __( 'Scores will display (if configured to), but new votes for the topic or the topic\'s replies will be disabled', 'bbp-core' ), | |
| 85 | + 'title' => __( 'Disable adding new votes after a topic is closed', 'forumax' ), | |
| 86 | + 'subtitle' => __( 'Scores will display (if configured to), but new votes for the topic or the topic\'s replies will be disabled', 'forumax' ), | |
| 120 | 87 | 'class' => 'st-pro-notice', |
| 121 | 88 | 'dependency' => [ 'is_votes', '==', 'true', ] |
| 122 | 89 | ], |
| 123 | 90 | |
| @@ -124,10 +91,10 @@ | ||
| 124 | 91 | [ |
| 125 | 92 | 'id' => 'is_disabled_voting_own_topic_reply', |
| 126 | 93 | 'type' => 'switcher', |
| 127 | 94 | 'default' => 0, |
| 128 | - 'title' => __( 'Don\'t allow authors to vote on their own topic/reply', 'bbp-core' ), | |
| 129 | - 'subtitle' => __( 'They can still vote on other people\'s topics/replies', 'bbp-core' ), | |
| 95 | + 'title' => __( 'Don\'t allow authors to vote on their own topic/reply', 'forumax' ), | |
| 96 | + 'subtitle' => __( 'They can still vote on other people\'s topics/replies', 'forumax' ), | |
| 130 | 97 | 'class' => 'st-pro-notice', |
| 131 | 98 | 'dependency' => [ 'is_votes', '==', 'true', ] |
| 132 | 99 | ], |
| 133 | 100 | |
| @@ -132,9 +99,9 @@ | ||
| 132 | 99 | ], |
| 133 | 100 | |
| 134 | 101 | [ |
| 135 | 102 | 'type' => 'subheading', |
| 136 | - 'content' => __( 'Admin Voting', 'bbp-core' ), | |
| 103 | + 'content' => __( 'Admin Voting', 'forumax' ), | |
| 137 | 104 | 'dependency' => [ 'is_votes', '==', 'true', ] |
| 138 | 105 | ], |
| 139 | 106 | |
| 140 | 107 | [ |
| @@ -140,9 +107,9 @@ | ||
| 140 | 107 | [ |
| 141 | 108 | 'id' => 'is_admin_can_vote_unlimited', |
| 142 | 109 | 'type' => 'switcher', |
| 143 | 110 | 'default' => 0, |
| 144 | - 'title' => __( 'Allow any administrator user to vote as much as they want?', 'bbp-core' ), | |
| 111 | + 'title' => __( 'Allow any administrator user to vote as much as they want?', 'forumax' ), | |
| 145 | 112 | 'class' => 'st-pro-notice', |
| 146 | 113 | 'dependency' => [ 'is_votes', '==', 'true', ] |
| 147 | 114 | ], |
| 148 | 115 | |
| @@ -147,9 +114,9 @@ | ||
| 147 | 114 | ], |
| 148 | 115 | |
| 149 | 116 | [ |
| 150 | 117 | 'type' => 'subheading', |
| 151 | - 'content' => __( 'Sort by Voting Scores', 'bbp-core' ), | |
| 118 | + 'content' => __( 'Sort by Voting Scores', 'forumax' ), | |
| 152 | 119 | 'dependency' => [ 'is_votes', '==', 'true', ] |
| 153 | 120 | ], |
| 154 | 121 | |
| 155 | 122 | [ |
| @@ -154,11 +121,11 @@ | ||
| 154 | 121 | |
| 155 | 122 | [ |
| 156 | 123 | 'id' => 'is_sort_topic_by_votes', |
| 157 | 124 | 'type' => 'switcher', |
| 158 | - 'default' => 1, | |
| 159 | - 'title' => __( 'Sort topics in a forum using their voting scores?', 'bbp-core' ), | |
| 160 | - 'subtitle' => __( 'Highest voted topics on top', 'bbp-core' ), | |
| 125 | + 'default' => false, | |
| 126 | + 'title' => __( 'Sort topics in a forum using their voting scores?', 'forumax' ), | |
| 127 | + 'subtitle' => __( 'Highest voted topics on top', 'forumax' ), | |
| 161 | 128 | 'class' => 'st-pro-notice', |
| 162 | 129 | 'dependency' => [ 'is_votes', '==', 'true', ] |
| 163 | 130 | ], |
| 164 | 131 | |
| @@ -164,11 +131,11 @@ | ||
| 164 | 131 | |
| 165 | 132 | [ |
| 166 | 133 | 'id' => 'is_sort_reply_by_votes', |
| 167 | 134 | 'type' => 'switcher', |
| 168 | - 'default' => 1, | |
| 169 | - 'title' => __( 'Sort replies on a topic using their voting scores?', 'bbp-core' ), | |
| 170 | - 'subtitle' => __( 'Highest voted replies on top', 'bbp-core' ), | |
| 135 | + 'default' => false, | |
| 136 | + 'title' => __( 'Sort replies on a topic using their voting scores?', 'forumax' ), | |
| 137 | + 'subtitle' => __( 'Highest voted replies on top', 'forumax' ), | |
| 171 | 138 | 'class' => 'st-pro-notice', |
| 172 | 139 | 'dependency' => [ 'is_votes', '==', 'true', ] |
| 173 | 140 | ], |
| 174 | 141 | |
| @@ -175,10 +142,10 @@ | ||
| 175 | 142 | [ |
| 176 | 143 | 'id' => 'is_lead_topic_broken', |
| 177 | 144 | 'type' => 'switcher', |
| 178 | 145 | 'default' => 1, |
| 179 | - 'title' => __( ' Break out the lead topic to separate it from the replies', 'bbp-core' ), | |
| 180 | - 'subtitle' => __( 'Simply enabled the built-in bbPress hook, bbp_show_lead_topic. This is useful to resolve a bug in bbPress when sort order is messed up when Threaded Replies are enabled in bbPress.', 'bbp-core' ), | |
| 146 | + 'title' => __( ' Break out the lead topic to separate it from the replies', 'forumax' ), | |
| 147 | + 'subtitle' => __( 'Simply enabled the built-in hook, bbp_show_lead_topic. This is useful to resolve a bug when sort order is messed up when Threaded Replies are enabled.', 'forumax' ), | |
| 181 | 148 | 'dependency' => [ 'is_votes', '==', 'true', ] |
| 182 | 149 | ], |
| 183 | 150 | ], |
| 184 | 151 | ] |