fix page title and add _new link_ button

master
Jean-Christian Paul Denis 2021-10-26 22:35:42 +02:00
parent e1d3500fc9
commit 9e9bb94f1d
Signed by: JcDenis
GPG Key ID: 1B5B8C5B90B6C951
1 changed files with 14 additions and 17 deletions

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'));