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:
parent
c146c3810a
commit
f8320652c6
@ -145,7 +145,12 @@ function display_block( $file )
|
||||
$rtn .= "<a href=\"$file\" class=\"$file_ext\"{$download_att}>";
|
||||
$rtn .= " <div class=\"img $file_ext\"> </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";
|
||||
|
Loading…
Reference in New Issue
Block a user