From b42cd95e41764225798235ed635a299bfb057fbc Mon Sep 17 00:00:00 2001 From: Lars Jung Date: Sun, 18 Aug 2013 19:59:57 +0200 Subject: [PATCH] Adds alt attributes to fallback img elements. --- src/_h5ai/server/php/inc/App.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/_h5ai/server/php/inc/App.php b/src/_h5ai/server/php/inc/App.php index f699a823..a7c8e2aa 100644 --- a/src/_h5ai/server/php/inc/App.php +++ b/src/_h5ai/server/php/inc/App.php @@ -209,11 +209,13 @@ class App { $html = ""; $html .= ""; if ($folder->get_parent($cache)) { - $html .= ""; + $html .= ""; } foreach ($items as $item) { + $type = $item->is_folder ? "folder" : "default"; + $html .= ""; - $html .= ""; + $html .= ""; $html .= ""; $html .= ""; $html .= "";
NameLast modifiedSize
app_abs_href . "client/icons/16x16/folder-parent.png\"/>Parent Directory
app_abs_href . "client/icons/16x16/folder-parent.png\" alt=\"folder-parent\"/>Parent Directory
app_abs_href . "client/icons/16x16/" . ($item->is_folder ? "folder" : "default") . ".png\"/>app_abs_href . "client/icons/16x16/" . $type . ".png\" alt=\"" . $type . "\"/>abs_href . "\">" . basename($item->abs_path) . "" . date("Y-m-d H:i", $item->date) . "" . ($item->size !== null ? intval($item->size / 1000) . " KB" : "" ) . "