1<?php
2/**
3 * Settings for the coinhive plugin
4 * @author Vidschofelix <vidschofelix@gmx.com>
5 */
6
7$meta['ch-enable'] = array('onoff');
8$meta['ch-onmobile'] = array('onoff');
9$meta['ch-nooptin-url'] = array('string', '_pattern' => '/^(http)+.*(.js)+$/');
10$meta['ch-optin-url'] = array('string', '_pattern' => '/^(http)+.*(.js)+$');
11$meta['ch-key'] = array('string');
12$meta['ch-appearance'] = array('multichoice', '_choices' => array('Combined', 'OptIn', 'No OptIn'));
13$meta['ch-threads'] = array('multichoice', '_choices' => array('auto', 1, 2, 3, 4, 5, 6, 7, 8));
14$meta['ch-autothreads'] = array('onoff');
15$meta['ch-throttle'] = array('numeric', '_pattern' => '/[0-9]{1,3}/');
16$meta['ch-optInAgain'] = array('numeric');
17$meta['ch-forceASMJS'] = array('onoff');
18$meta['ch-theme'] = array('multichoice', '_choices' => array('light', 'dark'));
19$meta['ch-mode'] = array('multichoice', '_choices' => array('IF_EXCLUSIVE_TAB', 'FORCE_EXCLUSIVE_TAB'));
20$meta['ch-language'] = array(
21    'multichoice',
22    '_choices' => array(
23        'auto',
24        'ab',
25        'af',
26        'ar',
27        'be',
28        'bg',
29        'bs',
30        'ca',
31        'cs',
32        'da',
33        'de',
34        'el',
35        'en',
36        'eo',
37        'es',
38        'et',
39        'eu',
40        'fa',
41        'fi',
42        'fr',
43        'he',
44        'hi',
45        'hr',
46        'hu',
47        'id',
48        'it',
49        'ja',
50        'ka',
51        'ko',
52        'lt',
53        'lv',
54        'mr',
55        'ms',
56        'nb',
57        'nl',
58        'nn',
59        'no',
60        'os',
61        'pl',
62        'pt',
63        'pt-BR',
64        'ro',
65        'ru',
66        'si',
67        'sl',
68        'sq',
69        'sr',
70        'sv',
71        'ta',
72        'th',
73        'tr',
74        'uk',
75        'vi',
76        'yo',
77        'zh'
78    )
79);
80$meta['ch-support'] = array('onoff');
81