diff --git a/src/Backend.php b/src/Backend.php index 2297c88..628658c 100644 --- a/src/Backend.php +++ b/src/Backend.php @@ -47,10 +47,10 @@ class Backend extends dcNsProcess echo '
' . '

' . __('Optional e-mail address') . '

' . - (new Para())->items([ - (new Checkbox(My::SETTING_NAME, (bool) dcCore::app()->blog->settings->get(My::SETTING_NAME)->get('enabled')))->value(1), - (new Label(__('Make e-mail address optional in comments'), Label::OUTSIDE_LABEL_AFTER))->for(My::SETTING_NAME)->class('classic'), - ])->render() . + (new Para())->__call('items', [[ + (new Checkbox(My::SETTING_NAME, (bool) dcCore::app()->blog->settings->get(My::SETTING_NAME)->get('enabled')))->__call('value', [1]), + (new Label(__('Make e-mail address optional in comments'), Label::OUTSIDE_LABEL_AFTER))->__call('for', [My::SETTING_NAME])->__call('class', ['classic']), + ]])->render() . '
'; });