mirror of
https://github.com/Karaka-Management/oms-Media.git
synced 2026-02-18 10:18:41 +00:00
re-format
This commit is contained in:
parent
2afa4d03a7
commit
67be381416
|
|
@ -20,7 +20,7 @@ use \phpOMS\Uri\UriFactory;
|
|||
include __DIR__ . '/template-functions.php';
|
||||
|
||||
/**
|
||||
* @var \phpOMS\Views\View $this
|
||||
* @var \Modules\Media\Views\MediaView $this
|
||||
* @var \Modules\Media\Models\Media $media
|
||||
*/
|
||||
$media = $this->getData('media');
|
||||
|
|
@ -80,7 +80,7 @@ echo $this->getData('nav')->render();
|
|||
<?php $list = \phpOMS\System\File\Local\Directory::list($path);
|
||||
foreach ($list as $key => $value) :
|
||||
$url = UriFactory::build('{/prefix}media/single?{?}&id=' . $media->getId() . '&sub=' . \substr($value, \strlen($media->getPath())));
|
||||
$icon = $this->fileIconFunction(FileUtils::getExtensionType(!\is_dir($value) ? File::extension($value) : 'collection'));
|
||||
$icon = $fileIconFunction(FileUtils::getExtensionType(!\is_dir($value) ? File::extension($value) : 'collection'));
|
||||
?>
|
||||
<tr data-href="<?= $url; ?>">
|
||||
<td><a href="<?= $url; ?>"><i class="fa fa-<?= $this->printHtml($icon); ?>"></i></a>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user