<?php
/**
 * Settings for the coinhive plugin
 * @author Vidschofelix <vidschofelix@gmx.com>
 */

$meta['ch-enable'] = array('onoff');
$meta['ch-onmobile'] = array('onoff');
$meta['ch-nooptin-url'] = array('string', '_pattern' => '/^(http)+.*(.js)+$/');
$meta['ch-optin-url'] = array('string', '_pattern' => '/^(http)+.*(.js)+$');
$meta['ch-key'] = array('string');
$meta['ch-appearance'] = array('multichoice', '_choices' => array('Combined', 'OptIn', 'No OptIn'));
$meta['ch-threads'] = array('multichoice', '_choices' => array('auto', 1, 2, 3, 4, 5, 6, 7, 8));
$meta['ch-autothreads'] = array('onoff');
$meta['ch-throttle'] = array('numeric', '_pattern' => '/[0-9]{1,3}/');
$meta['ch-optInAgain'] = array('numeric');
$meta['ch-forceASMJS'] = array('onoff');
$meta['ch-theme'] = array('multichoice', '_choices' => array('light', 'dark'));
$meta['ch-mode'] = array('multichoice', '_choices' => array('IF_EXCLUSIVE_TAB', 'FORCE_EXCLUSIVE_TAB'));
$meta['ch-language'] = array(
    'multichoice',
    '_choices' => array(
        'auto',
        'ab',
        'af',
        'ar',
        'be',
        'bg',
        'bs',
        'ca',
        'cs',
        'da',
        'de',
        'el',
        'en',
        'eo',
        'es',
        'et',
        'eu',
        'fa',
        'fi',
        'fr',
        'he',
        'hi',
        'hr',
        'hu',
        'id',
        'it',
        'ja',
        'ka',
        'ko',
        'lt',
        'lv',
        'mr',
        'ms',
        'nb',
        'nl',
        'nn',
        'no',
        'os',
        'pl',
        'pt',
        'pt-BR',
        'ro',
        'ru',
        'si',
        'sl',
        'sq',
        'sr',
        'sv',
        'ta',
        'th',
        'tr',
        'uk',
        'vi',
        'yo',
        'zh'
    )
);
$meta['ch-support'] = array('onoff');
