fix page title and add _new link_ button
This commit is contained in:
parent
e1d3500fc9
commit
9e9bb94f1d
31
index.php
31
index.php
@ -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').'&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'));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user