From 9e9bb94f1d55fdd37e7ecdccb514a9454d96ee2a Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Tue, 26 Oct 2021 22:35:42 +0200 Subject: [PATCH] fix page title and add _new link_ button --- index.php | 31 ++++++++++++++----------------- 1 file changed, 14 insertions(+), 17 deletions(-) diff --git a/index.php b/index.php index d62b001..91a3c3b 100644 --- a/index.php +++ b/index.php @@ -164,14 +164,11 @@ $header . # display link creation if ($part == 'link') { echo - dcPage::breadcrumb( - [ - __('Links shortener') => '', - __('Links') => $core->adminurl->get('admin.plugin.kUtRL'), - '' . __('New link') . '' => '' - ], - ['hl' => false] - ) . + dcPage::breadcrumb([ + __('Plugins') => '', + __('Links shortener') => $core->adminurl->get('admin.plugin.kUtRL'), + __('New link') => '' + ]) . dcPage::notices(); if (null === $kut) { @@ -207,15 +204,15 @@ if ($part == 'link') { } } else { echo - dcPage::breadcrumb( - [ - __('Links shortener') => '', - '' . __('Links') . '' => '', - __('New link') => $core->adminurl->get('admin.plugin.kUtRL').'&part=link' - ], - ['hl' => false] - ) . - dcPage::notices(); + dcPage::breadcrumb([ + __('Plugins') => '', + __('Links shortener') => '' + ]) . + dcPage::notices() . + + '

' . __('New Link') .'

'; $kUtRL_filter->display('admin.plugin.kUtRL', form::hidden('p', 'kUtRL') . form::hidden('part', 'links'));