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_attachments.php

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

155 lines 4.1 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', 'bbp-core' ),
39 'text_off' => __( 'Show', 'bbp-core' ),
40 'text_width' => 85
41 ],
42
43 [
44 'type' => 'subheading',
45 'content' => __( 'Who can upload files ', 'bbp-core' ),
46 ],
47
48 [
49 'id' => 'users_can_upload',
50 'type' => 'checkbox',
51 'title' => __( 'Users who can upload attachments.', 'bbp-core' ),
52 'options' => [
53 'keymaster' => 'Keymaster',
54 'moderator' => 'Moderator',
55 'participant' => 'Participant',
56 'spectator' => 'Spectator',
57 'blocked' => 'Blocked',
58 ],
59 'default' => [ 'keymaster', 'moderator', 'participant', 'spectator', 'blocked' ],
60 ],
61
62 [
63 'type' => 'subheading',
64 'content' => __( 'When an associated Topic or Reply has been deleted', 'bbp-core' ),
65 ],
66
67 [
68 'id' => 'is_attachment_deletion',
69 'type' => 'switcher',
70 'default' => false,
71 'title' => __( 'Delete the attachment along with forum/topic.', 'bbp-core' ),
72 'class' => 'st-pro-notice',
73 ],
74
75 [
76 'type' => 'subheading',
77 'content' => __( 'Forums integration', 'bbp-core' ),
78 ],
79
80 [
81 'type' => 'content',
82 'content' => __( 'With these options you can modify the forums to include attachment elements.', 'bbp-core' ),
83 ],
84
85 [
86 'id' => 'is_attachment_icon',
87 'type' => 'switcher',
88 'title' => __( 'Attachment Icon', 'bbp-core' ),
89 'default' => true,
90 ],
91
92 [
93 'id' => 'is_file_type_icon',
94 'type' => 'switcher',
95 'title' => __( 'File type Icons', 'bbp-core' ),
96 'default' => true,
97 ],
98
99 [
100 'type' => 'subheading',
101 'content' => __( 'Display of image attachments', 'bbp-core' ),
102 ],
103
104 [
105 'type' => 'content',
106 'content' => __( 'Attached images can be displayed as thumbnails, and from here you can control this.', 'bbp-core' ),
107 ],
108
109 [
110 'id' => 'image_thumbnail_caption',
111 'type' => 'switcher',
112 'title' => __( 'With Caption', 'bbp-core' ),
113 'default' => true,
114 ],
115
116 [
117 'id' => 'image_link_type',
118 'type' => 'select',
119 'title' => __( 'Image Link Type', 'bbp-core' ),
120 'options' => [
121 'download' => __( 'Download', 'bbp-core' ),
122 'lightbox' => __( 'Lightbox', 'bbp-core' ),
123 ],
124 'default' => 'download',
125 'class' => 'st-pro-notice',
126 'chosen' => true
127 ],
128
129 [
130 'type' => 'subheading',
131 'content' => __( 'Image thumbnails size', 'bbp-core' ),
132 ],
133
134 [
135 'type' => 'content',
136 'content' => __( 'Changing thumbnails size affects only new image attachments. To use new size for old attachments, resize them using Regenerate Thumbnails plugin.', 'bbp-core' ),
137 ],
138
139 [
140 'id' => 'attachment_image_x',
141 'type' => 'number',
142 'title' => __( 'Thumbnail width', 'bbp-core' ),
143 'unit' => 'px',
144 ],
145
146 [
147 'id' => 'attachment_image_y',
148 'type' => 'number',
149 'title' => __( 'Thumbnail height', 'bbp-core' ),
150 'unit' => 'px',
151 ],
152 ],
153 ]
154 );
155