PluginProbe
Forumax – AI Powered Advanced Community Forum Plugin / 1.2.8
Forumax – AI Powered Advanced Community Forum Plugin v1.2.8
2.4.4 2.4.3 2.4.2 2.4.1 2.4.0 trunk 1.0.8 1.1.0 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.3.0 1.3.1 1.3.2 1.3.3 1.4.0 1.4.1 2.0.0 2.1.0 All 29 releases
bbp-core / includes / admin / settings / options / options_voting.php

options_voting.php in Forumax – AI Powered Advanced Community Forum Plugin 1.2.8, at includes/admin/settings/options/options_voting.php

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