From a1e268da756546647f3e15827d11b5f61f985167 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Mon, 8 May 2023 09:41:45 +0200 Subject: [PATCH] fix action page header and footer --- src/FeedsActions.php | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) 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