fix page title and add _new link_ button

This commit is contained in:
Jean-Christian Denis 2021-10-26 22:35:42 +02:00
parent e1d3500fc9
commit 9e9bb94f1d
Signed by: JcDenis
GPG key ID: 1B5B8C5B90B6C951

View file

@ -164,14 +164,11 @@ $header .
# display link creation # display link creation
if ($part == 'link') { if ($part == 'link') {
echo echo
dcPage::breadcrumb( dcPage::breadcrumb([
[ __('Plugins') => '',
__('Links shortener') => '', __('Links shortener') => $core->adminurl->get('admin.plugin.kUtRL'),
__('Links') => $core->adminurl->get('admin.plugin.kUtRL'), __('New link') => ''
'<span class="page-title">' . __('New link') . '</span>' => '' ]) .
],
['hl' => false]
) .
dcPage::notices(); dcPage::notices();
if (null === $kut) { if (null === $kut) {
@ -207,15 +204,15 @@ if ($part == 'link') {
} }
} else { } else {
echo echo
dcPage::breadcrumb( dcPage::breadcrumb([
[ __('Plugins') => '',
__('Links shortener') => '', __('Links shortener') => ''
'<span class="page-title">' . __('Links') . '</span>' => '', ]) .
__('New link') => $core->adminurl->get('admin.plugin.kUtRL').'&amp;part=link' dcPage::notices() .
],
['hl' => false] '<p class="top-add"><a class="button add" href="' .
) . $core->adminurl->get('admin.plugin.kUtRL', ['part' => 'link']) .
dcPage::notices(); '">' . __('New Link') .'</a></p>';
$kUtRL_filter->display('admin.plugin.kUtRL', form::hidden('p', 'kUtRL') . form::hidden('part', 'links')); $kUtRL_filter->display('admin.plugin.kUtRL', form::hidden('p', 'kUtRL') . form::hidden('part', 'links'));