use dcPage open/close module

This commit is contained in:
Jean-Christian Denis 2023-03-05 23:36:01 +01:00
parent 5c4d067d41
commit 0e267a8299
Signed by: JcDenis
GPG key ID: 1B5B8C5B90B6C951

View file

@ -300,17 +300,16 @@ class Manage extends dcNsProcess
);
# Display
echo
'<html><head><title>' . __('pacKman') . '</title>' .
dcPage::jsPageTabs() .
dcPage::jsModuleLoad(self::$pid . '/js/packman.js');
dcPage::openModule(
__('pacKman'),
dcPage::jsPageTabs() .
dcPage::jsModuleLoad(self::$pid . '/js/packman.js') .
# --BEHAVIOR-- packmanAdminHeader
dcCore::app()->callBehavior('packmanAdminHeader');
echo
'</head><body>' .
# --BEHAVIOR-- packmanAdminHeader
dcCore::app()->callBehavior('packmanAdminHeader')
);
echo
dcPage::breadcrumb([
__('Plugins') => '',
__('pacKman') => '',
@ -365,8 +364,6 @@ class Manage extends dcNsProcess
dcCore::app()->callBehavior('packmanAdminTabs');
dcPage::helpBlock('pacKman');
echo
'</body></html>';
dcPage::closeModule();
}
}