diff --git a/src/FeedsActions.php b/src/FeedsActions.php index 35412f2..2bbfb9d 100644 --- a/src/FeedsActions.php +++ b/src/FeedsActions.php @@ -19,6 +19,10 @@ use dcActions; use dcCore; use dcPage; use Dotclear\Database\MetaRecord; +use Dotclear\Helper\Html\Form\{ + Link, + Para +}; use Dotclear\Helper\Html\Html; use Exception; @@ -57,19 +61,24 @@ class FeedsActions extends dcActions public function beginPage(string $breadcrumb = '', string $head = ''): void { - echo - '' . __('Feeds server') . '' . - dcPage::jsLoad('js/_posts_actions.js') . - $head . - '' . + dcPage::openModule( + My::name(), + dcPage::jsLoad('js/_posts_actions.js') . + $head + ); + echo $breadcrumb . - '

' . - __('Back to feeds list') . '

'; + (new Para())->items([ + (new Link()) + ->class('back') + ->href($this->getRedirection(true)) + ->text(__('Back to feeds list')) + ])->render(); } public function endPage(): void { - echo ''; + dcPage::closeModule(); } public function error(Exception $e): void