diff --git a/lib/zin/func.php b/lib/zin/func.php index 1eb4968a24..322f2044a4 100644 --- a/lib/zin/func.php +++ b/lib/zin/func.php @@ -1839,3 +1839,11 @@ function mailto(): mailto { return createWg('mailto', func_get_args()); } + +/** + * whitelist widget. + */ +function whitelist(): whitelist +{ + return createWg('whitelist', func_get_args()); +} diff --git a/lib/zin/wg/whitelist/v1.php b/lib/zin/wg/whitelist/v1.php new file mode 100644 index 0000000000..f71109debb --- /dev/null +++ b/lib/zin/wg/whitelist/v1.php @@ -0,0 +1,21 @@ + + * @package zin + * @link http://www.zentao.net + */ +namespace zin; + +requireWg('users'); + +class whitelist extends users +{ + protected static array $defaultProps = array( + 'name' => 'whitelist[]' + ); +}