PluginProbe
Forumax – AI Powered Advanced Community Forum Plugin / 1.1.0
Forumax – AI Powered Advanced Community Forum Plugin v1.1.0
2.5.0 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 All 30 releases
bbp-core / includes / admin / settings / options / options_attachments.php

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

145 lines 3.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 CSF::createSection(
4 $prefix,
5 [
6 'title' => __( 'Attachments', 'bbp-core' ),
7 'fields' => [
8 [
9 'id' => 'is_attachment',
10 'type' => 'switcher',
11 'default' => true,
12 'title' => __( 'Show attachments on topic replies.', 'bbp-core' ),
13 ],
14
15 [
16 'id' => 'max_file_size',
17 'type' => 'number',
18 'title' => _x( 'Maximum File Size', 'bbp core maximum file size upload', 'bbp-core' ),
19 'subtitle' => __( 'Input the values in Kilo Bytes (KB)', 'bbp-core' ),
20 'default' => 512,
21 'unit' => 'KB',
22 'class' => 'st-pro-notice',
23 ],
24
25 [
26 'id' => 'max_file_uploads',
27 'type' => 'number',
28 'title' => _x( 'Maximum number of file to upload at once', 'bbp core maximum file size upload', 'bbp-core' ),
29 'default' => 4,
30 'class' => 'st-pro-notice',
31 ],
32
33 [
34 'id' => 'is_hide_attachment',
35 'type' => 'switcher',
36 'default' => true,
37 'title' => __( 'Hide Attachment from visitors', 'bbp-core' ),
38 'text_on' => 'Hide',
39 'text_off' => 'Show',
40 ],
41
42 [
43 'type' => 'subheading',
44 'content' => __( 'Who can upload files ', 'bbp-core' ),
45 ],
46
47 [
48 'id' => 'users_can_upload',
49 'type' => 'checkbox',
50 'title' => __( 'Users who can upload attachments.', 'bbp-core' ),
51 'options' => [
52 'keymaster' => 'Keymaster',
53 'moderator' => 'Moderator',
54 'participant' => 'Participant',
55 'spectator' => 'Spectator',
56 'blocked' => 'Blocked',
57 ],
58 'default' => [ 'keymaster', 'moderator', 'participant', 'spectator', 'blocked' ],
59 ],
60
61 [
62 'type' => 'subheading',
63 'content' => __( 'When an associated Topic or Reply has been deleted', 'bbp-core' ),
64 ],
65
66 [
67 'id' => 'is_attachment_deletion',
68 'type' => 'switcher',
69 'default' => false,
70 'title' => __( 'Delete the attachment along with forum/topic.', 'bbp-core' ),
71 'class' => 'st-pro-notice',
72 ],
73
74 [
75 'type' => 'subheading',
76 'content' => __( 'Forums Integration', 'bbp-core' ),
77 ],
78
79 [
80 'type' => 'content',
81 'content' => __(
82 'With these options you can modify the forums to include attachment elements.',
83 'bbp-core'
84 ),
85 ],
86
87 [
88 'id' => 'is_attachment_icon',
89 'type' => 'switcher',
90 'title' => __( 'Attachment Icon', 'bbp-core' ),
91 'default' => true,
92 ],
93
94 [
95 'id' => 'is_file_type_icon',
96 'type' => 'switcher',
97 'title' => __( 'File type Icons', 'bbp-core' ),
98 'default' => true,
99 ],
100
101 [
102 'type' => 'subheading',
103 'content' => __( 'Display of image attachments', 'bbp-core' ),
104 ],
105
106 [
107 'type' => 'content',
108 'content' => __( 'Attached images can be displayed as thumbnails, and from here you can control this.', 'bbp-core' ),
109 ],
110
111 [
112 'id' => 'image_thumbnail_caption',
113 'type' => 'switcher',
114 'title' => __( 'With Caption', 'bbp-core' ),
115 'default' => true,
116 ],
117
118 // Thumbnail
119 [
120 'type' => 'subheading',
121 'content' => __( 'Image thumbnails size.', 'bbp-core' ),
122 ],
123
124 [
125 'type' => 'content',
126 'content' => __( 'Changing thumbnails size affects only new image attachments. To use new size for old attachments, resize them using Regenerate Thumbnails plugin.', 'bbp-core' ),
127 ],
128
129 [
130 'id' => 'attachment_image_x',
131 'type' => 'number',
132 'title' => __( 'Thumbnail width', 'bbp-core' ),
133 'unit' => 'px',
134 ],
135
136 [
137 'id' => 'attachment_image_y',
138 'type' => 'number',
139 'title' => __( 'Thumbnail height', 'bbp-core' ),
140 'unit' => 'px',
141 ],
142 ],
143 ]
144 );
145