mirror of
https://github.com/Karaka-Management/oms-Editor.git
synced 2026-01-27 08:48:41 +00:00
formatting fixes, bug fixes and support impl.
This commit is contained in:
parent
2ad2ba3d7a
commit
d744862c9e
|
|
@ -231,7 +231,7 @@ final class ApiController extends Controller
|
|||
}
|
||||
|
||||
$uploaded = $this->app->moduleManager->get('Media')->uploadFiles(
|
||||
$request->getData('name') ?? '',
|
||||
[$request->getData('name') ?? ''],
|
||||
$uploadedFiles,
|
||||
$request->header->account,
|
||||
__DIR__ . '/../../../Modules/Media/Files/Modules/Editor/' . ($request->getData('doc') ?? '0'),
|
||||
|
|
|
|||
|
|
@ -54,8 +54,18 @@ echo $this->getData('nav')->render(); ?>
|
|||
<?php if (!empty($files)) : ?>
|
||||
<div class="portlet-foot">
|
||||
<ul>
|
||||
<?php foreach ($files as $file) : ?>
|
||||
<li><?= $this->printHtml($file->name); ?>
|
||||
<?php foreach ($files as $file) :
|
||||
$url = $file->extension === 'collection'
|
||||
? UriFactory::build('{/prefix}media/list?path=' . \rtrim($file->getVirtualPath(), '/') . '/' . $file->name)
|
||||
: UriFactory::build('{/prefix}media/single?id=' . $file->getId()
|
||||
. '&path={?path}' . (
|
||||
$file->getId() === 0
|
||||
? '/' . $file->name
|
||||
: ''
|
||||
)
|
||||
);
|
||||
?>
|
||||
<li><a href="<?= $url; ?>"><?= $this->printHtml($file->name); ?></a>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user