From e75e54d23d262940acd4c7df2a8cc7b7ab1751d5 Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Wed, 7 Aug 2019 18:10:00 +0200 Subject: media insertion new synthax working --- app/view/templates/media.php | 31 +++++++++++++++++++++++++------ 1 file changed, 25 insertions(+), 6 deletions(-) (limited to 'app/view') diff --git a/app/view/templates/media.php b/app/view/templates/media.php index b8dd094..c75ce68 100644 --- a/app/view/templates/media.php +++ b/app/view/templates/media.php @@ -20,7 +20,7 @@ ' . $dirname . ''; @@ -28,17 +28,17 @@ function treecount(array $dir, string $dirname, int $deepness, string $path, str $folder = '├─📁' . $dirname; } echo ''; - echo '' . str_repeat('  ', $deepness) . $folder . ''; + echo '' . str_repeat('  ', $deepness) . $folder . ''; echo '' . $dir['dirfilecount'] . ''; echo ''; foreach ($dir as $key => $value) { if (is_array($value)) { - treecount($value, $key, $deepness + 1, $path . DIRECTORY_SEPARATOR . $key, $currentdir); + treecount($value, $key, $deepness + 1, $path . DIRECTORY_SEPARATOR . $key, $currentdir, $opt); } } } -treecount($dirlist, 'media', 0, 'media', $dir); +treecount($dirlist, 'media', 0, 'media', $dir, $opt); ?> @@ -53,7 +53,17 @@ treecount($dirlist, 'media', 0, 'media', $dir);

-Print the whole content of the folder using this code : %MEDIA:% + +
+ Print this content on your page + +

+ %MEDIA?path=&sortby=&order=% +

+ +
+ +
@@ -72,7 +82,16 @@ Print the whole content of the folder using this code : %MEDIA: -idexttypesizewidthheightlenghcode + + id + ext + type + size + width + height + lengh + code +