main_plugin_settings.php
19.6 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
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
<?php defined('ABSPATH') or die('Access denied.'); ?>
<?php
/**
* User: Miljko Milosevic
* Date: 1/20/17
* Time: 1:08 PM
*/
?>
<div role="tabpanel" class="tab-pane active" id="main-plugin-settings">
<div class="row">
<div class="col-sm-4 interface-language">
<h4 class="c-black m-b-20">
<?php _e('Interface language', 'wpdatatables'); ?>
<i class="zmdi zmdi-help-outline" data-toggle="tooltip" data-placement="right"
title="<?php _e('Pick the language which will be used in tables interface.', 'wpdatatables'); ?>"></i>
</h4>
<div class="form-group">
<div class="fg-line">
<div class="select">
<select class="selectpicker" id="wdt-interface-language">
<option value=""><?php _e('English (default)', 'wpdatatables'); ?></option>
<?php foreach (WDTSettingsController::getInterfaceLanguages() as $language) { ?>
<option value="<?php echo $language['file'] ?>">
<?php echo $language['name']; ?>
</option>
<?php } ?>
</select>
</div>
</div>
</div>
</div>
<div class="col-sm-4 date-format">
<h4 class="c-black m-b-20">
<?php _e('Date format', 'wpdatatables'); ?>
<i class="zmdi zmdi-help-outline" data-toggle="tooltip" data-placement="right"
title="<?php _e('Pick the date format to use in date column type.', 'wpdatatables'); ?>"></i>
</h4>
<div class="form-group">
<div class="fg-line">
<div class="select">
<select class="selectpicker" name="wdt-date-format" id="wdt-date-format">
<option value="d/m/Y"> 15/07/2005 (d/m/Y)</option>
<option value="m/d/Y"> 07/15/2005 (m/d/Y)</option>
<option value="d.m.Y"> 15.07.2005 (d.m.Y)</option>
<option value="m.d.Y"> 07.15.2005 (m.d.Y)</option>
<option value="d-m-Y"> 15-07-2005 (d-m-Y)</option>
<option value="m-d-Y"> 07-15-2005 (m-d-Y)</option>
<option value="d.m.y"> 15.07.05 (d.m.y)</option>
<option value="m.d.y"> 07.15.05 (m.d.y)</option>
<option value="d-m-y"> 15-07-05 (d-m-y)</option>
<option value="m-d-y"> 07-15-05 (m-d-y)</option>
<option value="d M Y"> 15 July 2005 (d Mon Y)</option>
</select>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-4 time-format">
<h4 class="c-black m-b-20">
<?php _e('Time format', 'wpdatatables'); ?>
<i class="zmdi zmdi-help-outline" data-toggle="tooltip" data-placement="right"
title="<?php _e('Pick the time format to use in datetime and time column type.', 'wpdatatables'); ?>"></i>
</h4>
<div class="form-group">
<div class="fg-line">
<div class="select">
<select class="selectpicker" name="wdt-time-format" id="wdt-time-format">
<option value="h:i A">1:25 PM (12h)</option>
<option value="H:i">13:25 (24h)</option>
</select>
</div>
</div>
</div>
</div>
<div class="col-sm-4 wdt-parse-shortcodes">
<h4 class="c-black m-b-20">
<?php _e('Parse shortcodes', 'wpdatatables'); ?>
<i class="zmdi zmdi-help-outline" data-toggle="tooltip" data-placement="right"
title="<?php _e('Parse shortcodes in strings', 'wpdatatables'); ?>"></i>
</h4>
<div class="toggle-switch" data-ts-color="blue">
<label for="wdt-parse-shortcodes" class="ts-label">Parse shortcodes in strings</label>
<input type="checkbox" name="wdt-parse-shortcodes" id="wdt-parse-shortcodes"/>
<label for="wdt-parse-shortcodes" class="ts-helper"></label>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-4 base-skin">
<h4 class="c-black m-b-20">
<?php _e('Base skin', 'wpdatatables'); ?>
<i class="zmdi zmdi-help-outline" data-toggle="tooltip" data-placement="right"
title="<?php _e('Choose the base skin for the plugin.', 'wpdatatables'); ?>"></i>
</h4>
<div class="form-group">
<div class="fg-line">
<div class="select">
<select class="selectpicker" name="wdt-base-skin" id="wdt-base-skin">
<option value="skin0"><?php _e('Material', 'wpdatatables'); ?></option>
<option value="skin1"><?php _e('Light', 'wpdatatables'); ?></option>
<option value="skin2"><?php _e('Graphite', 'wpdatatables'); ?></option>
</select>
</div>
</div>
</div>
</div>
<div class="col-sm-4 number-format">
<h4 class="c-black m-b-20">
<?php _e('Number format', 'wpdatatables'); ?>
<i class="zmdi zmdi-help-outline" data-toggle="tooltip" data-placement="right"
title="<?php _e('Pick the number format (thousands and decimals separator)', 'wpdatatables'); ?>"></i>
</h4>
<div class="form-group">
<div class="fg-line">
<div class="select">
<select class="selectpicker" id="wdt-number-format">
<option value="1">15.000,00</option>
<option value="2">15,000.00</option>
</select>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-4 filter-position">
<h4 class="c-black m-b-20">
<?php _e('Render advanced filter', 'wpdatatables'); ?>
<i class="zmdi zmdi-help-outline" data-toggle="tooltip" data-placement="right"
title="<?php _e('Choose where you would like to render the advanced filter for tables where enabled.', 'wpdatatables'); ?>"></i>
</h4>
<div class="form-group">
<div class="fg-line">
<div class="select">
<select class="selectpicker" id="wp-render-filter">
<option value="header"><?php _e('In the header', 'wpdatatables'); ?></option>
<option value="footer"><?php _e('In the footer', 'wpdatatables'); ?></option>
</select>
</div>
</div>
</div>
</div>
<div class="col-sm-4 decimal-places">
<h4 class="c-black m-b-20">
<?php _e('Decimal places', 'wpdatatables'); ?>
<i class="zmdi zmdi-help-outline" data-toggle="tooltip" data-placement="right"
title="<?php _e('Define the amount of decimal places for the float numbers.', 'wpdatatables'); ?>"></i>
</h4>
<div class="form-group">
<div class="fg-line">
<div class="row">
<div class="col-sm-12">
<input type="number" name="wdt-decimal-places" id="wdt-decimal-places"
class="form-control input-sm" min="1" value=""/>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-4 csv-delimiter">
<h4 class="c-black m-b-20">
<?php _e('CSV delimiter', 'wpdatatables'); ?>
<i class="zmdi zmdi-help-outline" data-toggle="tooltip" data-placement="right"
title="<?php _e('Pick the CSV delimiter', 'wpdatatables'); ?>"></i>
</h4>
<div class="form-group">
<div class="fg-line">
<div class="select">
<select class="selectpicker" id="wdt-csv-delimiter">
<option value=""></option>
<option value=",">,</option>
<option value=":">:</option>
<option value=";">;</option>
<option value="|">|</option>
<option value="\t">TAB</option>
</select>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-4 tablet-width">
<h4 class="c-black m-b-20">
<?php _e('Tablet width', 'wpdatatables'); ?>
<i class="zmdi zmdi-help-outline" data-toggle="tooltip" data-placement="right"
title="<?php _e('Here you can specify width of the screen (in pixels) that will be treated as a tablet. You can set it wider if you want responsive effect on desktops.', 'wpdatatables'); ?>"></i>
</h4>
<div class="form-group">
<div class="fg-line">
<div class="row">
<div class="col-sm-12">
<input type="number" name="wdt-tablet-width" id="wdt-tablet-width"
class="form-control input-sm" placeholder="Set tablet width in px" value=""/>
</div>
</div>
</div>
</div>
</div>
<div class="col-sm-4 mobile-width">
<h4 class="c-black m-b-20">
<?php _e('Mobile width', 'wpdatatables'); ?>
<i class="zmdi zmdi-help-outline" data-toggle="tooltip" data-placement="right"
title="<?php _e('Here you can specify width (in pixels) will be treated as a mobile..', 'wpdatatables'); ?>"></i>
</h4>
<div class="form-group">
<div class="fg-line">
<div class="row">
<div class="col-sm-12">
<input type="number" name="wdt-mobile-width" id="wdt-mobile-width"
class="form-control input-sm" placeholder="Set mobile width in px" value=""/>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-4 tables-on-browse">
<h4 class="c-black m-b-20">
<?php _e('Tables per admin page', 'wpdatatables'); ?>
<i class="zmdi zmdi-help-outline" data-toggle="tooltip" data-placement="right"
title="<?php _e('How many tables to show in the browse page.', 'wpdatatables'); ?>"></i>
</h4>
<div class="form-group">
<div class="fg-line">
<div class="select">
<select class="selectpicker" id="wdt-tables-per-page">
<?php for ($i = 10; $i <= 50; $i += 10) { ?>
<option value="<?php echo $i ?>"><?php echo $i ?></option>
<?php } ?>
</select>
</div>
</div>
</div>
</div>
<div class="col-sm-4 align-numbers">
<h4 class="c-black m-b-20">
<?php _e('Align numbers', 'wpdatatables'); ?>
<i class="zmdi zmdi-help-outline" data-toggle="tooltip" data-placement="right"
title="<?php _e('How Integer and Float column types will be aligned in the cell', 'wpdatatables'); ?>"></i>
</h4>
<div class="toggle-switch" data-ts-color="blue">
<label for="wdt-numbers-align" class="ts-label">Align numbers to the right</label>
<input type="checkbox" name="wdt-numbers-align" id="wdt-numbers-align" checked="checked"/>
<label for="wdt-numbers-align" class="ts-helper"></label>
</div>
</div>
</div>
<!-- SUM and AVG label settings -->
<div class="row">
<div class="col-sm-4 wdt-sum-function-label-block">
<h4 class="c-black m-b-20">
<?php _e('Sum functions label', 'wpdatatables'); ?>
<i class="zmdi zmdi-help-outline" data-toggle="tooltip" data-placement="right"
title="<?php _e('Enter a label that will be used for Sum functions. If you leave it blank default label will be Σ =', 'wpdatatables'); ?>"></i>
</h4>
<div class="form-group">
<div class="fg-line">
<div class="row">
<div class="col-sm-12">
<input type="text" name="wdt-sum-function-label" id="wdt-sum-function-label"
class="form-control input-sm" placeholder="Enter the default SUM functions label"
value=""/>
</div>
</div>
</div>
</div>
</div>
<div class="col-sm-4 wdt-avg-function-label-block">
<h4 class="c-black m-b-20">
<?php _e('Average functions label', 'wpdatatables'); ?>
<i class="zmdi zmdi-help-outline" data-toggle="tooltip" data-placement="right"
title="<?php _e('Enter a label that will be used for Average functions. If you leave it blank default label will be Avg =', 'wpdatatables'); ?>"></i>
</h4>
<div class="form-group">
<div class="fg-line">
<div class="row">
<div class="col-sm-12">
<input type="text" name="wdt-avg-function-label" id="wdt-avg-function-label"
class="form-control input-sm" placeholder="Enter the default AVG functions label"
value=""/>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- /.row -->
<!-- MIN and MAX label settings -->
<div class="row">
<div class="col-sm-4 wdt-min-function-label-block">
<h4 class="c-black m-b-20">
<?php _e('Minimum functions label', 'wpdatatables'); ?>
<i class="zmdi zmdi-help-outline" data-toggle="tooltip" data-placement="right"
title="<?php _e('Enter a label that will be used for Minimum functions. If you leave it blank default label will be Min =', 'wpdatatables'); ?>"></i>
</h4>
<div class="form-group">
<div class="fg-line">
<div class="row">
<div class="col-sm-12">
<input type="text" name="wdt-min-function-label" id="wdt-min-function-label"
class="form-control input-sm" placeholder="Enter the default MIN functions label"
value=""/>
</div>
</div>
</div>
</div>
</div>
<div class="col-sm-4 wdt-max-function-label-block">
<h4 class="c-black m-b-20">
<?php _e('Maximum functions label', 'wpdatatables'); ?>
<i class="zmdi zmdi-help-outline" data-toggle="tooltip" data-placement="right"
title="<?php _e('Enter a label that will be used for Maximum functions. If you leave it blank default label will be Max =', 'wpdatatables'); ?>"></i>
</h4>
<div class="form-group">
<div class="fg-line">
<div class="row">
<div class="col-sm-12">
<input type="text" name="wdt-max-function-label" id="wdt-max-function-label"
class="form-control input-sm" placeholder="Enter the default MAX functions label"
value=""/>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- /.row -->
<!-- Include bootstrap on front and back settings -->
<div class="row">
<div class="col-sm-4 wdt-include-bootstrap-block">
<h4 class="c-black m-b-20">
<?php _e('Include full bootstrap front-end', 'wpdatatables'); ?>
<i class="zmdi zmdi-help-outline" data-toggle="tooltip" data-placement="right"
title="<?php _e('It is recommended to uncheck this option if bootstrap.js is already included in one of the theme files. Unchecked option means that there is still bootstrap.js included just in noconflict mode which should prevent errors.', 'wpdatatables'); ?>"></i>
</h4>
<div class="toggle-switch" data-ts-color="blue">
<label for="wdt-include-bootstrap" class="ts-label">Include full bootstrap.js on the front-end</label>
<input type="checkbox" name="wdt-include-bootstrap" id="wdt-include-bootstrap"/>
<label for="wdt-include-bootstrap" class="ts-helper"></label>
</div>
</div>
<div class="col-sm-4 wdt-include-bootstrap-back-end-block">
<h4 class="c-black m-b-20">
<?php _e('Include full bootstrap back-end', 'wpdatatables'); ?>
<i class="zmdi zmdi-help-outline" data-toggle="tooltip" data-placement="right"
title="<?php _e('It is recommended to uncheck this option if bootstrap.js is already included in one of the theme files. Unchecked option means that there is still bootstrap.js included just in noconflict mode which should prevent errors.', 'wpdatatables'); ?>"></i>
</h4>
<div class="toggle-switch" data-ts-color="blue">
<label for="wdt-include-bootstrap-back-end" class="ts-label">Include full bootstrap.js on the back-end</label>
<input type="checkbox" name="wdt-include-bootstrap-back-end" id="wdt-include-bootstrap-back-end"/>
<label for="wdt-include-bootstrap-back-end" class="ts-helper"></label>
</div>
</div>
</div>
<!-- /.row -->
<!-- Purchase code settings -->
<div class="row">
<div class="col-sm-4 purchase-code">
<h4 class="c-black m-b-20">
<?php _e('Purchase code', 'wpdatatables'); ?>
<i class="zmdi zmdi-help-outline" data-toggle="tooltip" data-placement="right"
title="<?php _e('Please enter your Envato purchase code to enable plugin auto-updates. Leave blank if you do not want the plugin to auto-update.', 'wpdatatables'); ?>"></i>
</h4>
<div class="form-group">
<div class="fg-line">
<div class="row">
<div class="col-sm-12">
<input type="text" name="wdt-purchase-code" id="wdt-purchase-code"
class="form-control input-sm" placeholder="Please enter your code" value=""/>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- /.row -->
</div>