remove magic

This commit is contained in:
Jean-Christian Paul Denis 2023-04-23 15:09:34 +02:00
parent 4c43c76263
commit 23f9a1fb36
Signed by: JcDenis
GPG Key ID: 1B5B8C5B90B6C951

View File

@ -47,10 +47,10 @@ class Backend extends dcNsProcess
echo echo
'<div class="fieldset">' . '<div class="fieldset">' .
'<h4 id="emailOptionnelParam">' . __('Optional e-mail address') . '</h4>' . '<h4 id="emailOptionnelParam">' . __('Optional e-mail address') . '</h4>' .
(new Para())->items([ (new Para())->__call('items', [[
(new Checkbox(My::SETTING_NAME, (bool) dcCore::app()->blog->settings->get(My::SETTING_NAME)->get('enabled')))->value(1), (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))->for(My::SETTING_NAME)->class('classic'), (new Label(__('Make e-mail address optional in comments'), Label::OUTSIDE_LABEL_AFTER))->__call('for', [My::SETTING_NAME])->__call('class', ['classic']),
])->render() . ]])->render() .
'</div>'; '</div>';
}); });