mirror of
https://github.com/Karaka-Management/oms-Navigation.git
synced 2026-02-13 15:28:41 +00:00
fix urls
This commit is contained in:
parent
3ce2109a86
commit
aa1a47a056
|
|
@ -5,7 +5,7 @@
|
||||||
"type": 3,
|
"type": 3,
|
||||||
"subtype": 1,
|
"subtype": 1,
|
||||||
"name": "Navigation",
|
"name": "Navigation",
|
||||||
"uri": "{/prefix}admin/module/navigation/list?{?}",
|
"uri": "{/lang}/{/app}/admin/module/navigation/list?{?}",
|
||||||
"target": "self",
|
"target": "self",
|
||||||
"icon": null,
|
"icon": null,
|
||||||
"order": 10,
|
"order": 10,
|
||||||
|
|
|
||||||
|
|
@ -20,8 +20,8 @@ use phpOMS\Uri\UriFactory;
|
||||||
*/
|
*/
|
||||||
$navs = $this->getData('navigation') ?? [];
|
$navs = $this->getData('navigation') ?? [];
|
||||||
|
|
||||||
$previous = empty($navs) ? 'admin/nav/list' : 'admin/nav/list?{?}&id=' . \reset($navs)->id . '&ptype=p';
|
$previous = empty($navs) ? 'admin/nav/list' : '{/lang}/{/app}/admin/nav/list?{?}&id=' . \reset($navs)->id . '&ptype=p';
|
||||||
$next = empty($navs) ? 'admin/nav/list' : 'admin/nav/list?{?}&id=' . \end($navs)->id . '&ptype=n';
|
$next = empty($navs) ? 'admin/nav/list' : '{/lang}/{/app}/admin/nav/list?{?}&id=' . \end($navs)->id . '&ptype=n';
|
||||||
|
|
||||||
echo $this->getData('nav')->render(); ?>
|
echo $this->getData('nav')->render(); ?>
|
||||||
|
|
||||||
|
|
@ -132,7 +132,7 @@ echo $this->getData('nav')->render(); ?>
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php $count = 0;
|
<?php $count = 0;
|
||||||
foreach ($navs as $key => $nav) : ++$count;
|
foreach ($navs as $key => $nav) : ++$count;
|
||||||
$url = UriFactory::build('admin/module/settings?id=Navigation&nav=' . $nav->id); ?>
|
$url = UriFactory::build('{/lang}/{/app}/admin/module/settings?id=Navigation&nav=' . $nav->id); ?>
|
||||||
<tr tabindex="0" data-href="<?= $url; ?>">
|
<tr tabindex="0" data-href="<?= $url; ?>">
|
||||||
<td><a href="<?= $url; ?>"><?= $nav->id; ?></a>
|
<td><a href="<?= $url; ?>"><?= $nav->id; ?></a>
|
||||||
<td><a href="<?= $url; ?>"><?= $nav->pidRaw; ?></a>
|
<td><a href="<?= $url; ?>"><?= $nav->pidRaw; ?></a>
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@
|
||||||
},
|
},
|
||||||
"creator": {
|
"creator": {
|
||||||
"name": "Karaka",
|
"name": "Karaka",
|
||||||
"website": "www.spl1nes.com"
|
"website": "jingga.app"
|
||||||
},
|
},
|
||||||
"description": "The navigation module.",
|
"description": "The navigation module.",
|
||||||
"directory": "Navigation",
|
"directory": "Navigation",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user