getData('path') ?? '/'); /** @var \Modules\Media\Models\Media[] $media */ $media = $this->getData('media') ?? []; /** @var \Modules\Admin\Models\Account $account */ $account = $this->getData('account'); $accountDir = $account->getId() . ' ' . $account->login; $previous = empty($media) ? '{/prefix}media/list' : '{/prefix}media/list?{?}&id=' . \reset($media)->getId() . '&ptype=p'; $next = empty($media) ? '{/prefix}media/list' : '{/prefix}media/list?{?}&id=' . \end($media)->getId() . '&ptype=n'; ?>
| = $this->getHtml('Name'); ?> | = $this->getHtml('Tag'); ?> | = $this->getHtml('Type'); ?> | = $this->getHtml('Size'); ?> | = $this->getHtml('Creator'); ?> | = $this->getHtml('Created'); ?> | ||
| .. | $value) : ++$count; $url = $value->extension === 'collection' ? UriFactory::build('{/prefix}media/list?path=' . \rtrim($value->getVirtualPath(), '/') . '/' . $value->name) : UriFactory::build('{/prefix}media/single?id=' . $value->getId() . '&path={?path}' . ( $value->getId() === 0 ? '/' . $value->name : '' ) ); $icon = $fileIconFunction(FileUtils::getExtensionType($value->extension)); ?> | ||||||
| = $this->printHtml($value->name); ?> | getTags(); foreach ($tags as $tag) : ?> = $tag->icon !== null ? '' : ''; ?>= $this->printHtml($tag->getL11n()); ?> | = $this->printHtml($value->extension); ?> | size); echo $this->printHtml($value->extension !== 'collection' ? \number_format($size[0], 1, '.', ',') . $size[1] : ''); ?> | = $this->printHtml($value->createdBy->name1); ?> | = $this->printHtml($value->createdAt->format('Y-m-d')); ?> | ||
| = $this->getHtml('Empty', '0', '0'); ?> | |||||||