mirror of
https://github.com/Karaka-Management/oms-Editor.git
synced 2026-02-16 10:18:41 +00:00
fix urls
This commit is contained in:
parent
08e4fa6c0f
commit
9b22829650
|
|
@ -5,7 +5,7 @@
|
||||||
"type": 2,
|
"type": 2,
|
||||||
"subtype": 1,
|
"subtype": 1,
|
||||||
"name": "Editor",
|
"name": "Editor",
|
||||||
"uri": "{/prefix}editor/list",
|
"uri": "{/lang}/{/app}/editor/list",
|
||||||
"target": "self",
|
"target": "self",
|
||||||
"icon": null,
|
"icon": null,
|
||||||
"order": 75,
|
"order": 75,
|
||||||
|
|
@ -19,7 +19,7 @@
|
||||||
"type": 3,
|
"type": 3,
|
||||||
"subtype": 1,
|
"subtype": 1,
|
||||||
"name": "List",
|
"name": "List",
|
||||||
"uri": "{/prefix}editor/list",
|
"uri": "{/lang}/{/app}/editor/list",
|
||||||
"target": "self",
|
"target": "self",
|
||||||
"icon": null,
|
"icon": null,
|
||||||
"order": 1,
|
"order": 1,
|
||||||
|
|
@ -34,7 +34,7 @@
|
||||||
"type": 3,
|
"type": 3,
|
||||||
"subtype": 5,
|
"subtype": 5,
|
||||||
"name": "Create",
|
"name": "Create",
|
||||||
"uri": "{/prefix}editor/create?{?}",
|
"uri": "{/lang}/{/app}/editor/create?{?}",
|
||||||
"target": "self",
|
"target": "self",
|
||||||
"icon": null,
|
"icon": null,
|
||||||
"order": 15,
|
"order": 15,
|
||||||
|
|
|
||||||
|
|
@ -27,8 +27,8 @@ $account = $this->getData('account');
|
||||||
|
|
||||||
$accountDir = $account->getId() . ' ' . $account->login;
|
$accountDir = $account->getId() . ' ' . $account->login;
|
||||||
|
|
||||||
$previous = empty($docs) ? 'editor/list' : 'editor/list?{?}&id=' . \reset($docs)->getId() . '&ptype=p';
|
$previous = empty($docs) ? '{/lang}/{/app}/editor/list' : '{/lang}/{/app}/editor/list?{?}&id=' . \reset($docs)->getId() . '&ptype=p';
|
||||||
$next = empty($docs) ? 'editor/list' : 'editor/list?{?}&id=' . \end($docs)->getId() . '&ptype=n';
|
$next = empty($docs) ? '{/lang}/{/app}/editor/list' : '{/lang}/{/app}/editor/list?{?}&id=' . \end($docs)->getId() . '&ptype=n';
|
||||||
|
|
||||||
$docs = $this->getData('docs');
|
$docs = $this->getData('docs');
|
||||||
|
|
||||||
|
|
@ -37,8 +37,8 @@ echo $this->getData('nav')->render(); ?>
|
||||||
<div class="col-xs-12">
|
<div class="col-xs-12">
|
||||||
<div class="box">
|
<div class="box">
|
||||||
<ul class="crumbs-2">
|
<ul class="crumbs-2">
|
||||||
<li data-href="<?= UriFactory::build('editor/list?path=/Accounts/' . $accountDir); ?>"><a href="<?= UriFactory::build('editor/list?path=/Accounts/' . $accountDir); ?>"><i class="fa fa-home"></i></a>
|
<li data-href="<?= UriFactory::build('{/lang}/{/app}/editor/list?path=/Accounts/' . $accountDir); ?>"><a href="<?= UriFactory::build('{/lang}/{/app}/editor/list?path=/Accounts/' . $accountDir); ?>"><i class="fa fa-home"></i></a>
|
||||||
<li data-href="<?= UriFactory::build('editor/list?path=/'); ?>"><a href="<?= UriFactory::build('editor/list?path=/'); ?>">/</a></li>
|
<li data-href="<?= UriFactory::build('{/lang}/{/app}/editor/list?path=/'); ?>"><a href="<?= UriFactory::build('{/lang}/{/app}/editor/list?path=/'); ?>">/</a></li>
|
||||||
<?php
|
<?php
|
||||||
$subPath = '';
|
$subPath = '';
|
||||||
$paths = \explode('/', \ltrim($mediaPath, '/'));
|
$paths = \explode('/', \ltrim($mediaPath, '/'));
|
||||||
|
|
@ -56,7 +56,7 @@ echo $this->getData('nav')->render(); ?>
|
||||||
|
|
||||||
$subPath .= '/' . $paths[$i];
|
$subPath .= '/' . $paths[$i];
|
||||||
|
|
||||||
$url = UriFactory::build('editor/list?path=' . $subPath);
|
$url = UriFactory::build('{/lang}/{/app}/editor/list?path=' . $subPath);
|
||||||
?>
|
?>
|
||||||
<li data-href="<?= $url; ?>"<?= $i === $length - 1 ? 'class="active"' : ''; ?>><a href="<?= $url; ?>"><?= $this->printHtml($paths[$i]); ?></a></li>
|
<li data-href="<?= $url; ?>"<?= $i === $length - 1 ? 'class="active"' : ''; ?>><a href="<?= $url; ?>"><?= $this->printHtml($paths[$i]); ?></a></li>
|
||||||
<?php endfor; ?>
|
<?php endfor; ?>
|
||||||
|
|
@ -115,7 +115,7 @@ echo $this->getData('nav')->render(); ?>
|
||||||
<i class="filter fa fa-filter"></i>
|
<i class="filter fa fa-filter"></i>
|
||||||
</label>
|
</label>
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php if (!empty($parentPath)) : $url = UriFactory::build('editor/list?path=' . $parentPath); ?>
|
<?php if (!empty($parentPath)) : $url = UriFactory::build('{/lang}/{/app}/editor/list?path=' . $parentPath); ?>
|
||||||
<tr tabindex="0" data-href="<?= $url; ?>">
|
<tr tabindex="0" data-href="<?= $url; ?>">
|
||||||
<td>
|
<td>
|
||||||
<td data-label="<?= $this->getHtml('Type'); ?>"><a href="<?= $url; ?>"><i class="fa fa-folder-open-o"></i></a>
|
<td data-label="<?= $this->getHtml('Type'); ?>"><a href="<?= $url; ?>"><i class="fa fa-folder-open-o"></i></a>
|
||||||
|
|
@ -125,7 +125,7 @@ echo $this->getData('nav')->render(); ?>
|
||||||
<td>
|
<td>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php $count = 0; foreach ($collections as $key => $value) : ++$count;
|
<?php $count = 0; foreach ($collections as $key => $value) : ++$count;
|
||||||
$url = UriFactory::build('editor/list?path=' . \rtrim($value->getVirtualPath(), '/') . '/' . $value->name);
|
$url = UriFactory::build('{/lang}/{/app}/editor/list?path=' . \rtrim($value->getVirtualPath(), '/') . '/' . $value->name);
|
||||||
?>
|
?>
|
||||||
<tr data-href="<?= $url; ?>">
|
<tr data-href="<?= $url; ?>">
|
||||||
<td><label class="checkbox" for="editorList-<?= $key; ?>">
|
<td><label class="checkbox" for="editorList-<?= $key; ?>">
|
||||||
|
|
@ -134,11 +134,11 @@ echo $this->getData('nav')->render(); ?>
|
||||||
</label>
|
</label>
|
||||||
<td><a href="<?= $url; ?>"><i class="fa fa-folder-open-o"></i></a>
|
<td><a href="<?= $url; ?>"><i class="fa fa-folder-open-o"></i></a>
|
||||||
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->name); ?></a>
|
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->name); ?></a>
|
||||||
<td><a class="content" href="<?= UriFactory::build('profile/single?{?}&for=' . $value->createdBy->getId()); ?>"><?= $this->printHtml($value->createdBy->name1); ?></a>
|
<td><a class="content" href="<?= UriFactory::build('{/lang}/{/app}/profile/single?{?}&for=' . $value->createdBy->getId()); ?>"><?= $this->printHtml($value->createdBy->name1); ?></a>
|
||||||
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->createdAt->format('Y-m-d')); ?></a>
|
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->createdAt->format('Y-m-d')); ?></a>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
<?php foreach ($docs as $key => $value) : ++$count;
|
<?php foreach ($docs as $key => $value) : ++$count;
|
||||||
$url = UriFactory::build('editor/single?{?}&id=' . $value->getId()); ?>
|
$url = UriFactory::build('{/lang}/{/app}/editor/single?{?}&id=' . $value->getId()); ?>
|
||||||
<tr tabindex="0" data-href="<?= $url; ?>">
|
<tr tabindex="0" data-href="<?= $url; ?>">
|
||||||
<td><label class="checkbox" for="editorList-<?= $key; ?>">
|
<td><label class="checkbox" for="editorList-<?= $key; ?>">
|
||||||
<input type="checkbox" id="editorList-<?= $key; ?>" name="editorselect">
|
<input type="checkbox" id="editorList-<?= $key; ?>" name="editorselect">
|
||||||
|
|
@ -146,7 +146,7 @@ echo $this->getData('nav')->render(); ?>
|
||||||
</label>
|
</label>
|
||||||
<td><i class="fa fa-file-o"></i>
|
<td><i class="fa fa-file-o"></i>
|
||||||
<td data-label="<?= $this->getHtml('Title'); ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->title); ?></a>
|
<td data-label="<?= $this->getHtml('Title'); ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->title); ?></a>
|
||||||
<td data-label="<?= $this->getHtml('Creator'); ?>"><a class="content" href="<?= UriFactory::build('profile/single?{?}&for=' . $value->createdBy->getId()); ?>"><?= $this->printHtml($this->renderUserName('%3$s %2$s %1$s', [$value->createdBy->name1, $value->createdBy->name2, $value->createdBy->name3, $value->createdBy->login ?? ''])); ?></a>
|
<td data-label="<?= $this->getHtml('Creator'); ?>"><a class="content" href="<?= UriFactory::build('{/lang}/{/app}/profile/single?{?}&for=' . $value->createdBy->getId()); ?>"><?= $this->printHtml($this->renderUserName('%3$s %2$s %1$s', [$value->createdBy->name1, $value->createdBy->name2, $value->createdBy->name3, $value->createdBy->login ?? ''])); ?></a>
|
||||||
<td data-label="<?= $this->getHtml('Created'); ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->createdAt->format('Y-m-d')); ?></a>
|
<td data-label="<?= $this->getHtml('Created'); ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->createdAt->format('Y-m-d')); ?></a>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
<?php if ($count === 0) : ?>
|
<?php if ($count === 0) : ?>
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,7 @@ echo $this->getData('nav')->render(); ?>
|
||||||
</div>
|
</div>
|
||||||
<?php if ($editable) : ?>
|
<?php if ($editable) : ?>
|
||||||
<div class="col-xs-6 end-xs plain-grid">
|
<div class="col-xs-6 end-xs plain-grid">
|
||||||
<a tabindex="0" class="button" href="<?= UriFactory::build('editor/edit?id=' . $doc->getId()); ?>"><?= $this->getHtml('Edit', '0', '0'); ?></a>
|
<a tabindex="0" class="button" href="<?= UriFactory::build('{/lang}/{/app}/editor/edit?id=' . $doc->getId()); ?>"><?= $this->getHtml('Edit', '0', '0'); ?></a>
|
||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -56,8 +56,8 @@ echo $this->getData('nav')->render(); ?>
|
||||||
<ul>
|
<ul>
|
||||||
<?php foreach ($files as $file) :
|
<?php foreach ($files as $file) :
|
||||||
$url = $file->extension === 'collection'
|
$url = $file->extension === 'collection'
|
||||||
? UriFactory::build('media/list?path=' . \rtrim($file->getVirtualPath(), '/') . '/' . $file->name)
|
? UriFactory::build('{/lang}/{/app}/media/list?path=' . \rtrim($file->getVirtualPath(), '/') . '/' . $file->name)
|
||||||
: UriFactory::build('media/single?id=' . $file->getId()
|
: UriFactory::build('{/lang}/{/app}/media/single?id=' . $file->getId()
|
||||||
. '&path={?path}' . (
|
. '&path={?path}' . (
|
||||||
$file->getId() === 0
|
$file->getId() === 0
|
||||||
? '/' . $file->name
|
? '/' . $file->name
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@
|
||||||
},
|
},
|
||||||
"creator": {
|
"creator": {
|
||||||
"name": "Karaka",
|
"name": "Karaka",
|
||||||
"website": "www.spl1nes.com"
|
"website": "jingga.app"
|
||||||
},
|
},
|
||||||
"description": "The administration module.",
|
"description": "The administration module.",
|
||||||
"directory": "Editor",
|
"directory": "Editor",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user