content.php
14.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
<?php
if (!defined("ABSPATH")) {
exit();
}
if (!$isMuExists) {
?>
<div style="width:100%;">
<h3 style="padding:5px 10px 10px 10px; margin:0px; text-align:right; border-bottom:1px solid #ddd; max-width:60%; margin:0px 0px 20px auto; font-weight:normal;">
Addon - Media Uploader Settings
</h3>
<p style="border: 1px dotted #07B290; padding: 15px; font-size: 14px; text-align: center; margin: 10px; background: #EFFFF5">
wpDiscuz Media Uploader is an extended comment attachment system. Allows to upload images, videos, audios and other file types.
This is a demo admin page of the wpDiscuz Media Uploader addon. You can buy this addon on gVectors Team Store.
<br>
<a href="https://gvectors.com/product/wpdiscuz-media-uploader/" target="_blank"
style="padding: 6px 15px; background: #07B290; color: #fff; display: inline-block; margin: 15px 5px 5px 5px;">
Addon Details and Screenshots »</a>
</p>
<table class="widefat wpdiscuz-mu" style="margin-top:10px; border:none; width:100%; opacity: 0.6">
<tbody>
<tr scope="row">
<th valign="top" style="width:42%;">Post types supports uploading:</th>
<td>
<div style="float:left; display:inline-block; padding:3px 5px 3px 7px; min-width:25%;">
<input type="checkbox" checked='checked' value="post" name="" id="wmupost" style="margin:0px; vertical-align: middle;"/>
<label for="wmupost" style="white-space:nowrap; font-size:13px;">post</label>
</div>
<div style="float:left; display:inline-block; padding:3px 5px 3px 7px; min-width:25%;">
<input type="checkbox" checked='checked' value="page" name="" id="wmupage" style="margin:0px; vertical-align: middle;"/>
<label for="wmupage" style="white-space:nowrap; font-size:13px;">page</label>
</div>
<div style="float:left; display:inline-block; padding:3px 5px 3px 7px; min-width:25%;">
<input type="checkbox" checked='checked' value="attachment" name="" id="wmuattachment" style="margin:0px; vertical-align: middle;"/>
<label for="wmuattachment" style="white-space:nowrap; font-size:13px;">attachment</label>
</div>
</td>
</tr>
<tr scope="row">
<th valign="top" style="width:42%;">User roles allowed to upload files:</th>
<td>
<div style="float:left; display:inline-block; padding:3px 5px 3px 7px; min-width:25%;">
<input type="checkbox" checked='checked' value="administrator" name="" id="wmuadministrator" style="margin:0px; vertical-align: middle;"/>
<label for="wmuadministrator" style="white-space:nowrap; font-size:13px;">Administrator</label>
</div>
<div style="float:left; display:inline-block; padding:3px 5px 3px 7px; min-width:25%;">
<input type="checkbox" checked='checked' value="editor" name="" id="wmueditor" style="margin:0px; vertical-align: middle;"/>
<label for="wmueditor" style="white-space:nowrap; font-size:13px;">Editor</label>
</div>
<div style="float:left; display:inline-block; padding:3px 5px 3px 7px; min-width:25%;">
<input type="checkbox" checked='checked' value="author" name="" id="wmuauthor" style="margin:0px; vertical-align: middle;"/>
<label for="wmuauthor" style="white-space:nowrap; font-size:13px;">Author</label>
</div>
<div style="float:left; display:inline-block; padding:3px 5px 3px 7px; min-width:25%;">
<input type="checkbox" checked='checked' value="contributor" name="" id="wmucontributor" style="margin:0px; vertical-align: middle;"/>
<label for="wmucontributor" style="white-space:nowrap; font-size:13px;">Contributor</label>
</div>
<div style="float:left; display:inline-block; padding:3px 5px 3px 7px; min-width:25%;">
<input type="checkbox" checked='checked' value="subscriber" name="" id="wmusubscriber" style="margin:0px; vertical-align: middle;"/>
<label for="wmusubscriber" style="white-space:nowrap; font-size:13px;">Subscriber</label>
</div>
<div style="float:left; display:inline-block; padding:3px 5px 3px 7px; min-width:25%;">
<input type="checkbox" value="customer" name="" id="wmucustomer" style="margin:0px; vertical-align: middle;"/>
<label for="wmucustomer" style="white-space:nowrap; font-size:13px;">Customer</label>
</div>
<div style="float:left; display:inline-block; padding:3px 5px 3px 7px; min-width:25%;">
<input type="checkbox" value="shop_manager" name="" id="wmushop_manager" style="margin:0px; vertical-align: middle;"/>
<label for="wmushop_manager" style="white-space:nowrap; font-size:13px;">Shop manager</label>
</div>
</td>
</tr>
<tr scope="row">
<th><label for="wmuIsShowFilesDashboard">Show uploaded files in dashboard comments</label>
</th>
<td><input type="checkbox" checked='checked' value="1" name="" id="wmuIsShowFilesDashboard"/>
</td>
</tr>
<tr scope="row">
<th><label for="wmuIsGuestAllowed">Allow guests to upload files</label>
</th>
<td><input type="checkbox" checked='checked' value="1" name="" id="wmuIsGuestAllowed"/>
</td>
</tr>
<tr scope="row">
<th><label for="wmuIsImagesAllowed">Enable Image uploader</label>
</th>
<td><input type="checkbox" checked='checked' value="1" name="" id="wmuIsImagesAllowed"/> <img src="<?php echo plugins_url(WPDISCUZ_DIR_NAME . "/options/addons/images/image.png") ?>"/>
</td>
</tr>
<tr scope="row">
<th><label for="wmuIsVideosAllowed">Enable Video and Audio uploader</label>
</th>
<td><input type="checkbox" checked='checked' value="1" name="" id="wmuIsVideosAllowed"/> <img src="<?php echo plugins_url(WPDISCUZ_DIR_NAME . "/options/addons/images/video.png") ?>"/>
</td>
</tr>
<tr scope="row">
<th>
<label for="wmuIsFilesAllowed">Enable other files uploader</label>
<p style="font-size:13px; color:#999999; width:98%; padding-left:0px; margin-left:0px;">This uploader allows to attach non-image and non-video files like zip, doc, pdf, txt...</p>
</th>
<td><input type="checkbox" checked='checked' value="1" name="" id="wmuIsFilesAllowed"/> <img src="<?php echo plugins_url(WPDISCUZ_DIR_NAME . "/options/addons/images/file.png") ?>"/>
</td>
</tr>
<tr scope="row">
<th>
<label for="wmuIsEmbed">Allow media embedding function</label>
<p style="font-size:13px; color:#999999; width:98%; padding-left:0px; margin-left:0px;">This is the auto-embed function which converts e.g. <strong>YouTube</strong> video URL to Embedded Player and so on...</p>
</th>
<td><input type="checkbox" checked='checked' value="1" name="" id="wmuIsEmbed"/> <img src="<?php echo plugins_url(WPDISCUZ_DIR_NAME . "/options/addons/images/html5-youtub-player.png") ?>" style="vertical-align:middle; height:65px;" title="Player Screenshot"/>
</td>
</tr>
<tr scope="row" class="tr-wmuIsEmbedContent">
<th>
<label for="wmuIsEmbedContent">Allow content embedding function</label>
<p style="font-size:13px; color:#999999; width:98%; padding-left:0px; margin-left:0px;">This is the auto-embed function which converts site content</p>
</th>
<td><input type="checkbox" value="1" name="" id="wmuIsEmbedContent"/> <img src="<?php echo plugins_url(WPDISCUZ_DIR_NAME . "/options/addons/images/embedded-content.png") ?>" style="vertical-align:middle; height:250px;" title="Embedded Content Screenshot"/>
</td>
</tr>
<tr scope="row">
<th>
<label for="wmuIsHtml5Video">Enable HTML5 video player</label>
<p style="font-size:13px; color:#999999; width:98%; padding-left:0px; margin-left:0px;">Uploaded video files will be added as a download link under comment text. However if file format is .mp4, .webm or .ogg, it'll convert link to HTML5 video player.</p>
</th>
<td><input type="checkbox" checked='checked' value="1" name="" id="wmuIsHtml5Video"/> <img src="<?php echo plugins_url(WPDISCUZ_DIR_NAME . "/options/addons/images/html5-video-player.png") ?>" style="vertical-align:middle; height:70px;" title="Player Screenshot"/>
</td>
</td>
</tr>
<tr scope="row">
<th><label for="wmuIsHtml5Audio">Enable HTML5 audio player</label>
</th>
<td><input type="checkbox" checked='checked' value="1" name="" id="wmuIsHtml5Audio"/> <img src="<?php echo plugins_url(WPDISCUZ_DIR_NAME . "/options/addons/images/html5-audio-player.png") ?>" style="vertical-align:middle;" title="Player Screenshot"/>
</td>
</tr>
<tr scope="row">
<th><label for="wmuIsLightbox">Enable Lightbox for images</label>
</th>
<td><input type="checkbox" checked='checked' value="1" name="" id="wmuIsLightbox"/>
</td>
</tr>
<tr scope="row">
<th><label>File attachment mode</label>
</th>
<td>
<fieldset>
<label for="wmuAttachSingle"><input type="radio" value="0" id="wmuAttachSingle" class="wmuAttachSingle wmuAttachMethod" name="" /> <span>Single</span></label>
<label for="wmuAttachMultiple"><input checked='checked' type="radio" value="1" id="wmuAttachMultiple" class="wmuAttachMultiple wmuAttachMethod" name="" /> <span>Multiple</span></label>
</fieldset>
</td>
</tr>
<tr scope="row" class="tr-wmuMaxFileCount">
<th><label for="wmuMaxFileCount">Max number of files per type</label>
</th>
<td><input type="number" value="3" name="" id="wmuMaxFileCount" class="wmu-number"/>
</td>
</tr>
<tr scope="row">
<th>
<label for="wmuMaxFileSize">Max allowed files size</label>
<p style="font-size:13px; color:#999999; width:98%; padding-left:0px; margin-left:0px;">You can not set this value more than "upload_max_filesize" and "post_max_size". If you want to increase server parameters please contact to your hosting service support.</p>
</th>
<td>
<input type="number" value="30" name="" id="wmuMaxFileSize" class="wmu-number"/>
<p style="padding-top:5px;">
Server "upload_max_filesize" is 1000M<br/>Server "post_max_size" is 1000M </p>
</td>
</tr>
<tr scope="row">
<th><label for="wmuVideoWidth">Video player sizes</label>
</th>
<td>
<input type="number" value="320" name="" id="wmuVideoWidth" class="wmu-number"/><span> width (px) </span>
<input type="number" value="200" name="" id="wmuVideoHeight" class="wmu-number"/><span> height (px) </span>
</td>
</tr>
<tr scope="row">
<th><label for="wmuEmbedVideoWidth">Embed Video player sizes</label>
</th>
<td>
<input type="number" value="400" name="" id="wmuEmbedVideoWidth" class="wmu-number"/><span> width (px) </span>
<input type="number" value="300" name="" id="wmuEmbedVideoHeight" class="wmu-number"/><span> height (px) </span>
</td>
</tr>
<tr scope="row">
<th><label for="wmuSingleImageWidth">Single Image sizes on comment</label>
</th>
<td>
<input type="number" value="320" name="" id="wmuSingleImageWidth" class="wmu-number"/><span> width (px) </span>
<input type="number" value="200" name="" id="wmuSingleImageHeight" class="wmu-number"/><span> height (px) </span>
</td>
</tr>
<tr scope="row">
<th><label for="wmuImageWidth">Image sizes on comment</label>
</th>
<td>
<input type="number" value="90" name="" id="wmuImageWidth" class="wmu-number"/><span> width (px) </span>
<input type="number" value="90" name="" id="wmuImageHeight" class="wmu-number"/><span> height (px) </span>
</td>
</tr>
</tbody>
</table>
</div>
<?php
}