diff --git a/Theme/Backend/Components/Media/archive.tpl.php b/Theme/Backend/Components/Media/archive.tpl.php
index 7a0bc30..3b8a7d0 100644
--- a/Theme/Backend/Components/Media/archive.tpl.php
+++ b/Theme/Backend/Components/Media/archive.tpl.php
@@ -11,15 +11,18 @@
+
open(($this->media->isAbsolute ? '' : __DIR__ . '/../../../../../../') . $this->media->getPath());
- for( $i = 0; $i < $archive->numFiles; $i++ ){
- $stat = $archive->statIndex( $i );
- print_r( basename( $stat['name'] ) . PHP_EOL );
+ for($i = 0; $i < $archive->numFiles; ++$i) {
+ $stat = $archive->statIndex($i);
+
+ echo '| ' . \str_repeat(' ', (\substr_count(\trim($stat['name'], '/'), '/')) * 8) . $stat['name'];
}
?>
+ |
diff --git a/Theme/Backend/media-list.tpl.php b/Theme/Backend/media-list.tpl.php
index 262d58e..108baa5 100755
--- a/Theme/Backend/media-list.tpl.php
+++ b/Theme/Backend/media-list.tpl.php
@@ -52,12 +52,17 @@ $next = empty($media) ? '{/prefix}media/list' : '{/prefix}media/list?{?}&id=
$subPath = '';
$paths = \explode('/', \ltrim($mediaPath, '/'));
$length = \count($paths);
+ $parentPath = '';
for ($i = 0; $i < $length; ++$i) :
if ($paths[$i] === '') {
continue;
}
+ if ($i === $length - 1) {
+ $parentPath = $subPath === '' ? '/' : $subPath;
+ }
+
$subPath .= '/' . $paths[$i];
$url = UriFactory::build('{/prefix}media/list?path=' . $subPath);
@@ -83,6 +88,16 @@ $next = empty($media) ? '{/prefix}media/list' : '{/prefix}media/list?{?}&id=
= $this->getHtml('Creator'); ?>
| = $this->getHtml('Created'); ?>
|
+
+
+ |
+ | ..
+
+ |
+ |
+ |
+ |
+
$value) :
++$count;
diff --git a/Theme/Backend/template-functions.php b/Theme/Backend/template-functions.php
index ba4d2f7..91d17d2 100755
--- a/Theme/Backend/template-functions.php
+++ b/Theme/Backend/template-functions.php
@@ -25,7 +25,7 @@ $fileIconFunction = function (int $extensionType) : string
} elseif ($extensionType === ExtensionType::PDF) {
return 'file-pdf-o';
} elseif ($extensionType === ExtensionType::ARCHIVE) {
- return 'file-zip';
+ return 'file-zip-o';
} elseif ($extensionType === ExtensionType::AUDIO) {
return 'file-audio-o';
} elseif ($extensionType === ExtensionType::VIDEO) {
|