getData('media'); /** @var \Modules\Media\Views\MediaView $this */ echo $this->getData('nav')->render(); ?>
| = $this->getHtml('Name'); ?> | = $this->printHtml($media->name); ?> |
| = $this->getHtml('Size'); ?> | = $this->printHtml($media->size); ?> |
| = $this->getHtml('Created'); ?> | = $this->printHtml($media->createdAt->format('Y-m-d')); ?> |
| = $this->getHtml('Creator'); ?> | = $this->printHtml( \ltrim($media->createdBy->name2 . ', ' . $media->createdBy->name1, ', ') ); ?> |
| = $this->getHtml('Description'); ?> | |
| = $media->description; ?> | |
| = $this->getHtml('Name'); ?> | = $this->getHtml('Type'); ?> | = $this->getHtml('Size'); ?> | = $this->getHtml('Creator'); ?> | = $this->getHtml('Created'); ?> | |
| = $this->printHtml($value->name); ?> | = $this->printHtml($value->extension); ?> | = $this->printHtml($value->size); ?> | = $this->printHtml($value->createdBy->name1); ?> | = $this->printHtml($value->createdAt->format('Y-m-d H:i:s')); ?> dirPathFunction($media, $this->request->getData('sub') ?? ''); ?> $value) : $url = UriFactory::build('{/prefix}media/single?{?}&id=' . $media->getId() . '&sub=' . \substr($value, \strlen($media->getPath()))); $icon = $fileIconFunction(FileUtils::getExtensionType(!\is_dir($value) ? File::extension($value) : 'collection')); ?> | |
| = \substr($value, \strlen($media->getPath())); ?> | = !\is_dir($value) ? File::extension($value) : 'collection'; ?> | = !\is_dir($value) ? File::size($value) : ''; ?> | = File::owner($value); ?> | = File::created($value)->format('Y-m-d'); ?> |
= $this->printHtml(
$this->getFileContent(($media->isAbsolute ? '' : __DIR__ . '/../../../../') . $media->getPath())
); ?>