remove magic
This commit is contained in:
parent
73bd0522d4
commit
18d2bda75a
@ -68,19 +68,25 @@ class BackendBehaviors
|
|||||||
);
|
);
|
||||||
|
|
||||||
echo
|
echo
|
||||||
(new Form('plocd'))->method('post')->action($pa->getURI())->fields([
|
(new Form('plocd'))
|
||||||
(new Text('', $pa->getCheckboxes())),
|
->__call('method', ['post'])
|
||||||
(new Text('p', __('Are you sure you want to delete all comments?'))),
|
->__call('action', [$pa->getURI()])
|
||||||
(new Para())->items(array_merge(
|
->__call('fields', [[
|
||||||
[
|
(new Text('', $pa->getCheckboxes())),
|
||||||
(new Submit(['do']))->value(__('yes')),
|
(new Text('p', __('Are you sure you want to delete all comments?'))),
|
||||||
dcCore::app()->formNonce(false),
|
(new Para())
|
||||||
(new Hidden(['action'], 'commentsdelete')),
|
->__call('items', [array_merge(
|
||||||
(new Hidden(['confirmdeletecomments'], '1')),
|
[
|
||||||
],
|
(new Submit(['do']))
|
||||||
$pa->hiddenFields(),
|
->__call('value', [__('yes')]),
|
||||||
)),
|
dcCore::app()->formNonce(false),
|
||||||
])->render();
|
(new Hidden(['action'], 'commentsdelete')),
|
||||||
|
(new Hidden(['confirmdeletecomments'], '1')),
|
||||||
|
],
|
||||||
|
$pa->hiddenFields(),
|
||||||
|
)]),
|
||||||
|
]])
|
||||||
|
->render();
|
||||||
|
|
||||||
$pa->endPage();
|
$pa->endPage();
|
||||||
} else {
|
} else {
|
||||||
@ -130,19 +136,22 @@ class BackendBehaviors
|
|||||||
);
|
);
|
||||||
|
|
||||||
echo
|
echo
|
||||||
(new Form('plotd'))->method('post')->action($pa->getURI())->fields([
|
(new Form('plotd'))
|
||||||
(new Text('', $pa->getCheckboxes())),
|
->__call('method', ['post'])
|
||||||
(new Text('p', __('Are you sure you want to delete all trackbacks?'))),
|
->__call('action', [$pa->getURI()])
|
||||||
(new Para())->items(array_merge(
|
->__call('fields', [[
|
||||||
[
|
(new Text('', $pa->getCheckboxes())),
|
||||||
(new Submit(['do']))->value(__('yes')),
|
(new Text('p', __('Are you sure you want to delete all trackbacks?'))),
|
||||||
dcCore::app()->formNonce(false),
|
(new Para())
|
||||||
(new Hidden(['action'], 'trackbacksdelete')),
|
->__call('items', [array_merge([
|
||||||
(new Hidden(['confirmdeletetrackbacks'], '1')),
|
(new Submit(['do']))
|
||||||
],
|
->__call('value', [__('yes')]),
|
||||||
$pa->hiddenFields(),
|
dcCore::app()->formNonce(false),
|
||||||
)),
|
(new Hidden(['action'], 'trackbacksdelete')),
|
||||||
])->render();
|
(new Hidden(['confirmdeletetrackbacks'], '1')),
|
||||||
|
], $pa->hiddenFields())]),
|
||||||
|
]])
|
||||||
|
->render();
|
||||||
|
|
||||||
$pa->endPage();
|
$pa->endPage();
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user