fix action page header and footer

master
Jean-Christian Paul Denis 2023-05-08 09:41:45 +02:00
parent 45b7653498
commit a1e268da75
Signed by: JcDenis
GPG Key ID: 1B5B8C5B90B6C951
1 changed files with 17 additions and 8 deletions

View File

@ -19,6 +19,10 @@ use dcActions;
use dcCore; use dcCore;
use dcPage; use dcPage;
use Dotclear\Database\MetaRecord; use Dotclear\Database\MetaRecord;
use Dotclear\Helper\Html\Form\{
Link,
Para
};
use Dotclear\Helper\Html\Html; use Dotclear\Helper\Html\Html;
use Exception; use Exception;
@ -57,19 +61,24 @@ class FeedsActions extends dcActions
public function beginPage(string $breadcrumb = '', string $head = ''): void public function beginPage(string $breadcrumb = '', string $head = ''): void
{ {
echo dcPage::openModule(
'<html><head><title>' . __('Feeds server') . '</title>' . My::name(),
dcPage::jsLoad('js/_posts_actions.js') . dcPage::jsLoad('js/_posts_actions.js') .
$head . $head
'</script></head><body>' . );
echo
$breadcrumb . $breadcrumb .
'<p><a class="back" href="' . $this->getRedirection(true) . '">' . (new Para())->items([
__('Back to feeds list') . '</a></p>'; (new Link())
->class('back')
->href($this->getRedirection(true))
->text(__('Back to feeds list'))
])->render();
} }
public function endPage(): void public function endPage(): void
{ {
echo '</body></html>'; dcPage::closeModule();
} }
public function error(Exception $e): void public function error(Exception $e): void