Changed the way folders are shown.

Changed the way directories are listed so you can visibly see folders more so over files. Folders will be shown in bold text surrounded with brackets, like this: [ Folder ]

For a visual, visit my demo page here: https://c1935.paas2.tx.modxcloud.com/dirListing/
This commit is contained in:
demon.devin 2017-10-20 14:14:05 -05:00 committed by GitHub
parent c146c3810a
commit f8320652c6
1 changed files with 6 additions and 1 deletions

View File

@ -145,7 +145,12 @@ function display_block( $file )
$rtn .= "<a href=\"$file\" class=\"$file_ext\"{$download_att}>";
$rtn .= " <div class=\"img $file_ext\">&nbsp;</div>";
$rtn .= " <div class=\"name\">\n";
$rtn .= " <div class=\"file\">" . basename($file) . "</div>\n";
if ($file_ext === "dir") {
$rtn .= " <div class=\"file\"><strong>[ " . basename($file) . " ]</strong></div>\n";
} else {
$rtn .= " <div class=\"file\">" . basename($file) . "</div>\n";
}
//$rtn .= " <div class=\"file\">" . basename($file) . "</div>\n";
$rtn .= " <div class=\"date\">Size: " . format_size($file) . "<br />Last modified: " . date("D. F jS, Y - h:ia", filemtime($file)) . "</div>\n";
$rtn .= " </div>\n";
$rtn .= " </a>\n";