From 8a1861356c73437de08a55a733f36dcd83b86e33 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sat, 10 Dec 2022 22:17:54 +0100 Subject: [PATCH] fix urls --- Admin/Install/Navigation.install.json | 4 +-- Admin/Settings/Theme/Backend/settings.tpl.php | 2 +- .../InlinePreview/inline-preview.tpl.php | 4 +-- Theme/Backend/Components/Media/list.tpl.php | 4 +-- Theme/Backend/media-collection-create.tpl.php | 2 +- Theme/Backend/media-file-create.tpl.php | 2 +- Theme/Backend/media-list.tpl.php | 30 +++++++++---------- Theme/Backend/media-single.tpl.php | 12 ++++---- Theme/Backend/media-upload.tpl.php | 2 +- info.json | 2 +- 10 files changed, 32 insertions(+), 32 deletions(-) diff --git a/Admin/Install/Navigation.install.json b/Admin/Install/Navigation.install.json index 2d2045c..881db0b 100755 --- a/Admin/Install/Navigation.install.json +++ b/Admin/Install/Navigation.install.json @@ -5,7 +5,7 @@ "type": 2, "subtype": 1, "name": "Media", - "uri": "{/prefix}media/list", + "uri": "{/lang}/{/app}/media/list", "target": "self", "icon": null, "order": 20, @@ -21,7 +21,7 @@ "type": 2, "subtype": 2, "name": "Media", - "uri": "{/prefix}profile/single/media?{?}", + "uri": "{/lang}/{/app}/profile/single/media?{?}", "target": "self", "icon": null, "order": 3, diff --git a/Admin/Settings/Theme/Backend/settings.tpl.php b/Admin/Settings/Theme/Backend/settings.tpl.php index 4c5b5c3..4c2b230 100755 --- a/Admin/Settings/Theme/Backend/settings.tpl.php +++ b/Admin/Settings/Theme/Backend/settings.tpl.php @@ -69,7 +69,7 @@ echo $this->getData('nav')->render(); ?> $type) : ++$count; - $url = UriFactory::build('admin/module/settings?id=Media&type=' . $type->getId()); ?> + $url = UriFactory::build('{/lang}/{/app}/admin/module/settings?id=Media&type=' . $type->getId()); ?> getId(); ?> printHtml($type->name); ?> diff --git a/Theme/Backend/Components/InlinePreview/inline-preview.tpl.php b/Theme/Backend/Components/InlinePreview/inline-preview.tpl.php index 0f37c03..d41a033 100755 --- a/Theme/Backend/Components/InlinePreview/inline-preview.tpl.php +++ b/Theme/Backend/Components/InlinePreview/inline-preview.tpl.php @@ -5,9 +5,9 @@ { "key": 1, "listener": "click", "action": [ {"key": 1, "type": "dom.popup", "selector": "#acc-grp-tpl", "aniIn": "fadeIn", "id": "getId(); ?>"}, - {"key": 2, "type": "message.request", "uri": "", "method": "GET", "request_type": "json"}, + {"key": 2, "type": "message.request", "uri": "", "method": "GET", "request_type": "json"}, {"key": 3, "type": "dom.table.append", "id": "acc-table", "aniIn": "fadeIn", "data": [], "bindings": {"id": "id", "name": "name/0"}, "position": -1}, - {"key": 4, "type": "message.request", "uri": "", "method": "GET", "request_type": "json"}, + {"key": 4, "type": "message.request", "uri": "", "method": "GET", "request_type": "json"}, {"key": 5, "type": "dom.table.append", "id": "grp-table", "aniIn": "fadeIn", "data": [], "bindings": {"id": "id", "name": "name/0"}, "position": -1} ] } diff --git a/Theme/Backend/Components/Media/list.tpl.php b/Theme/Backend/Components/Media/list.tpl.php index ca14449..eb5f7be 100755 --- a/Theme/Backend/Components/Media/list.tpl.php +++ b/Theme/Backend/Components/Media/list.tpl.php @@ -38,7 +38,7 @@ $next = empty($this->media) getHtml('Created', 'Media'); ?> media as $key => $value) : ++$count; - $url = UriFactory::build('media/single?{?}&id=' . $value->getId()); + $url = UriFactory::build('{/lang}/{/app}/media/single?{?}&id=' . $value->getId()); $icon = ''; $extensionType = FileUtils::getExtensionType($value->extension); @@ -46,7 +46,7 @@ $next = empty($this->media) ?> - printHtml($value->getVirtualPath()); ?> + printHtml($value->getVirtualPath()); ?> printHtml($value->name); ?> printHtml($value->extension); ?> size; ?> diff --git a/Theme/Backend/media-collection-create.tpl.php b/Theme/Backend/media-collection-create.tpl.php index 43a92dd..382b64b 100755 --- a/Theme/Backend/media-collection-create.tpl.php +++ b/Theme/Backend/media-collection-create.tpl.php @@ -22,7 +22,7 @@ use phpOMS\Uri\UriFactory;
diff --git a/Theme/Backend/media-file-create.tpl.php b/Theme/Backend/media-file-create.tpl.php index f7ef4df..46bd0d4 100755 --- a/Theme/Backend/media-file-create.tpl.php +++ b/Theme/Backend/media-file-create.tpl.php @@ -39,7 +39,7 @@ use phpOMS\Uri\UriFactory;
diff --git a/Theme/Backend/media-list.tpl.php b/Theme/Backend/media-list.tpl.php index 1f9abe8..a713989 100755 --- a/Theme/Backend/media-list.tpl.php +++ b/Theme/Backend/media-list.tpl.php @@ -30,20 +30,20 @@ $media = $this->getData('media') ?? []; $account = $this->getData('account'); $accountDir = $account->getId() . ' ' . $account->login; -$previous = empty($media) ? 'media/list' : 'media/list?{?}&id=' . \reset($media)->getId() . '&ptype=p'; -$next = empty($media) ? 'media/list' : 'media/list?{?}&id=' . \end($media)->getId() . '&ptype=n'; +$previous = empty($media) ? '{/lang}/{/app}/media/list' : '{/lang}/{/app}/media/list?{?}&id=' . \reset($media)->getId() . '&ptype=p'; +$next = empty($media) ? '{/lang}/{/app}/media/list' : '{/lang}/{/app}/media/list?{?}&id=' . \end($media)->getId() . '&ptype=n'; ?>
@@ -54,9 +54,9 @@ $next = empty($media) ? 'media/list' : 'media/list?{?}&id=' . \end($media)->