mirror of
https://github.com/Karaka-Management/oms-Tag.git
synced 2026-01-25 05:48:41 +00:00
fix urls
This commit is contained in:
parent
dc07454050
commit
11a2cc9c92
|
|
@ -5,7 +5,7 @@
|
|||
"type": 2,
|
||||
"subtype": 1,
|
||||
"name": "Tag",
|
||||
"uri": "{/prefix}tag/list",
|
||||
"uri": "{/lang}/{/app}/tag/list",
|
||||
"target": "self",
|
||||
"icon": null,
|
||||
"order": 75,
|
||||
|
|
@ -19,7 +19,7 @@
|
|||
"type": 3,
|
||||
"subtype": 1,
|
||||
"name": "List",
|
||||
"uri": "{/prefix}tag/list",
|
||||
"uri": "{/lang}/{/app}/tag/list",
|
||||
"target": "self",
|
||||
"icon": null,
|
||||
"order": 1,
|
||||
|
|
@ -34,7 +34,7 @@
|
|||
"type": 3,
|
||||
"subtype": 5,
|
||||
"name": "Create",
|
||||
"uri": "{/prefix}tag/create?{?}",
|
||||
"uri": "{/lang}/{/app}/tag/create?{?}",
|
||||
"target": "self",
|
||||
"icon": null,
|
||||
"order": 15,
|
||||
|
|
|
|||
|
|
@ -20,8 +20,8 @@ use phpOMS\Uri\UriFactory;
|
|||
*/
|
||||
$tags = $this->getData('tags');
|
||||
|
||||
$previous = empty($tags) ? 'tag/list' : 'tag/list?{?}&id=' . \reset($tags)->getId() . '&ptype=p';
|
||||
$next = empty($tags) ? 'tag/list' : 'tag/list?{?}&id=' . \end($tags)->getId() . '&ptype=n';
|
||||
$previous = empty($tags) ? '{/lang}/{/app}/tag/list' : '{/lang}/{/app}/tag/list?{?}&id=' . \reset($tags)->getId() . '&ptype=p';
|
||||
$next = empty($tags) ? '{/lang}/{/app}/tag/list' : '{/lang}/{/app}/tag/list?{?}&id=' . \end($tags)->getId() . '&ptype=n';
|
||||
|
||||
echo $this->getData('nav')->render(); ?>
|
||||
<div class="row">
|
||||
|
|
@ -36,7 +36,7 @@ echo $this->getData('nav')->render(); ?>
|
|||
<td class="wf-100"><?= $this->getHtml('Title'); ?>
|
||||
<tbody>
|
||||
<?php $count = 0; foreach ($tags as $key => $value) : ++$count;
|
||||
$url = UriFactory::build('tag/single?{?}&id=' . $value->getId()); ?>
|
||||
$url = UriFactory::build('{/lang}/{/app}/tag/single?{?}&id=' . $value->getId()); ?>
|
||||
<tr tabindex="0" data-href="<?= $url; ?>">
|
||||
<td data-label="<?= $this->getHtml('Title'); ?>"><a href="<?= $url; ?>"><span class="tag" style="background: <?= $this->printHtml(\substr($value->color, 0, 7)); ?>"> <?= $value->icon !== null ? '<i class="' . $this->printHtml($value->icon ?? '') . '"></i>' : ' '; ?> </span></a>
|
||||
<td data-label="<?= $this->getHtml('Title'); ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->getL11n()); ?></a>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user