PluginProbe
Forumax – AI Powered Advanced Community Forum Plugin / 2.4.2
Forumax – AI Powered Advanced Community Forum Plugin v2.4.2
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 / options / options_gamification.php

options_gamification.php in Forumax – AI Powered Advanced Community Forum Plugin 2.4.2, at includes/admin/options/options_gamification.php

154 lines 4.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Gamification Settings
4 *
5 * CSF settings section for Points, Badges & Achievements.
6 *
7 * @package Forumax
8 * @since 2.3.0
9 */
10
11 if ( ! defined( 'ABSPATH' ) ) {
12 exit;
13 }
14
15 CSF::createSection(
16 $prefix,
17 array(
18 'title' => __( 'Gamification', 'forumax' ),
19 'icon' => 'dashicons dashicons-awards',
20 'fields' => array(
21
22 // Main Toggle.
23 array(
24 'type' => 'subheading',
25 'content' => __( 'Badges, Achievements & Points', 'forumax' ),
26 ),
27
28 array(
29 'id' => 'frmx_gamification_enabled',
30 'type' => 'switcher',
31 'title' => __( 'Enable Gamification', 'forumax' ),
32 'subtitle' => __( 'Enable the points, badges and achievements system for your forum.', 'forumax' ),
33 'default' => false,
34 'class' => 'st-promax-notice',
35 ),
36
37 // Points Configuration.
38 array(
39 'type' => 'subheading',
40 'content' => __( 'Points Configuration', 'forumax' ),
41 'dependency' => array( 'frmx_gamification_enabled', '==', true ),
42 ),
43
44 array(
45 'id' => 'frmx_points_new_topic',
46 'type' => 'spinner',
47 'title' => __( 'New Topic Points', 'forumax' ),
48 'subtitle' => __( 'Points awarded when a user creates a new topic.', 'forumax' ),
49 'default' => 10,
50 'min' => 0,
51 'max' => 100,
52 'step' => 1,
53 'dependency' => array( 'frmx_gamification_enabled', '==', true ),
54 'class' => 'st-promax-notice',
55 ),
56
57 array(
58 'id' => 'frmx_points_new_reply',
59 'type' => 'spinner',
60 'title' => __( 'New Reply Points', 'forumax' ),
61 'subtitle' => __( 'Points awarded when a user posts a reply.', 'forumax' ),
62 'default' => 5,
63 'min' => 0,
64 'max' => 100,
65 'step' => 1,
66 'dependency' => array( 'frmx_gamification_enabled', '==', true ),
67 'class' => 'st-promax-notice',
68 ),
69
70 array(
71 'id' => 'frmx_points_received_vote',
72 'type' => 'spinner',
73 'title' => __( 'Received Vote Points', 'forumax' ),
74 'subtitle' => __( 'Points awarded when a user receives an upvote.', 'forumax' ),
75 'default' => 2,
76 'min' => 0,
77 'max' => 50,
78 'step' => 1,
79 'dependency' => array( 'frmx_gamification_enabled', '==', true ),
80 'class' => 'st-promax-notice',
81 ),
82
83 array(
84 'id' => 'frmx_points_topic_solved',
85 'type' => 'spinner',
86 'title' => __( 'Topic Solved Points', 'forumax' ),
87 'subtitle' => __( 'Points awarded when a topic is marked as solved.', 'forumax' ),
88 'default' => 15,
89 'min' => 0,
90 'max' => 100,
91 'step' => 1,
92 'dependency' => array( 'frmx_gamification_enabled', '==', true ),
93 'class' => 'st-promax-notice',
94 ),
95
96 array(
97 'id' => 'frmx_points_best_answer',
98 'type' => 'spinner',
99 'title' => __( 'Best Answer Points', 'forumax' ),
100 'subtitle' => __( 'Points awarded when a reply is selected as the best answer.', 'forumax' ),
101 'default' => 20,
102 'min' => 0,
103 'max' => 100,
104 'step' => 1,
105 'dependency' => array( 'frmx_gamification_enabled', '==', true ),
106 'class' => 'st-promax-notice',
107 ),
108
109 array(
110 'id' => 'frmx_points_received_fav',
111 'type' => 'spinner',
112 'title' => __( 'Received Favorite Points', 'forumax' ),
113 'subtitle' => __( 'Points awarded when a user favorites your topic.', 'forumax' ),
114 'default' => 1,
115 'min' => 0,
116 'max' => 50,
117 'step' => 1,
118 'dependency' => array( 'frmx_gamification_enabled', '==', true ),
119 'class' => 'st-promax-notice',
120 ),
121
122 array(
123 'id' => 'frmx_points_daily_login',
124 'type' => 'spinner',
125 'title' => __( 'Daily Login Points', 'forumax' ),
126 'subtitle' => __( 'Points awarded once per day when a user logs in.', 'forumax' ),
127 'default' => 1,
128 'min' => 0,
129 'max' => 50,
130 'step' => 1,
131 'dependency' => array( 'frmx_gamification_enabled', '==', true ),
132 'class' => 'st-promax-notice',
133 ),
134
135 // Display Settings.
136 array(
137 'type' => 'subheading',
138 'content' => __( 'Display Settings', 'forumax' ),
139 'dependency' => array( 'frmx_gamification_enabled', '==', true ),
140 ),
141
142 array(
143 'id' => 'frmx_show_badges_profile',
144 'type' => 'switcher',
145 'title' => __( 'Show on User Profile', 'forumax' ),
146 'subtitle' => __( 'Display points, level and badges on the Forumax user profile page.', 'forumax' ),
147 'default' => true,
148 'dependency' => array( 'frmx_gamification_enabled', '==', true ),
149 'class' => 'st-promax-notice',
150 ),
151 ),
152 )
153 );
154