From: moodler Date: Sat, 14 Feb 2004 16:19:48 +0000 (+0000) Subject: MOved the file icons into the proper place (at last) X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=241f6f306bfe72091e7e4b736611cab3b2e385f0;p=moodle.git MOved the file icons into the proper place (at last) --- diff --git a/files/index.php b/files/index.php index 7e86ae6721..53332d4d81 100644 --- a/files/index.php +++ b/files/index.php @@ -135,7 +135,7 @@ displaydir($wdir); } else { - $upload_max_filesize = get_max_upload_file_size($CFG->maxbytes); + $upload_max_filesize = get_max_upload_file_size($CFG->maxbytes); // Restricted by site setting $filesize = display_size($upload_max_filesize); $struploadafile = get_string("uploadafile"); @@ -618,11 +618,11 @@ function clearfilelist() { function printfilelist($filelist) { - global $basedir; + global $CFG, $basedir; foreach ($filelist as $file) { if (is_dir($basedir.$file)) { - echo " $file
"; + echo "pixpath/f/folder.gif\" height=16 width=16> $file
"; $subfilelist = array(); $currdir = opendir($basedir.$file); while ($subfile = readdir($currdir)) { @@ -634,7 +634,7 @@ function printfilelist($filelist) { } else { $icon = mimeinfo("icon", $file); - echo " $file
"; + echo "pixpath/f/$icon\" height=16 width=16> $file
"; } } } @@ -720,7 +720,7 @@ function displaydir ($wdir) { echo ""; print_cell("center", ""); - print_cell("left", "\"Folder\" ".htmlspecialchars($dir).""); + print_cell("left", "pixpath/f/folder.gif\" HEIGHT=16 WIDTH=16 BORDER=0 ALT=\"Folder\"> ".htmlspecialchars($dir).""); print_cell("right", "-"); print_cell("right", $filedate); print_cell("right", "$strrename"); @@ -753,7 +753,7 @@ function displaydir ($wdir) { $ffurl = "/file.php?file=/$id$fileurl"; } link_to_popup_window ($ffurl, "display", - "\"File\"", + "pixpath/f/$icon\" HEIGHT=16 WIDTH=16 BORDER=0 ALT=\"File\">", 480, 640); echo ""; link_to_popup_window ($ffurl, "display", diff --git a/lib/editor/courseimages.php b/lib/editor/courseimages.php index 15984c7e9d..254b1f1068 100644 --- a/lib/editor/courseimages.php +++ b/lib/editor/courseimages.php @@ -646,7 +646,7 @@ function printfilelist($filelist) { foreach ($filelist as $file) { if (is_dir($basedir.$file)) { - echo "wwwroot/files/pix/folder.gif\" HEIGHT=16 WIDTH=16> $file
"; + echo "pixpath/f/folder.gif\" height=16 width=16> $file
"; $subfilelist = array(); $currdir = opendir($basedir.$file); while ($subfile = readdir($currdir)) { @@ -658,7 +658,7 @@ function printfilelist($filelist) { } else { $icon = mimeinfo("icon", $file); - echo "wwwroot/files/pix/$icon\" HEIGHT=16 WIDTH=16> $file
"; + echo "pixpath/f/$icon\" height=16 width=16> $file
"; } } } @@ -743,7 +743,7 @@ function displaydir ($wdir) { echo ""; print_cell("center", ""); - print_cell("left", "wwwroot/files/pix/folder.gif\" HEIGHT=16 WIDTH=16 BORDER=0 ALT=\"Folder\"> ".htmlspecialchars($dir).""); + print_cell("left", "pixpath/f/folder.gif\" HEIGHT=16 WIDTH=16 BORDER=0 ALT=\"Folder\"> ".htmlspecialchars($dir).""); print_cell("right", "-"); print_cell("right", $filedate); print_cell("right", "$strrename"); @@ -776,7 +776,7 @@ function displaydir ($wdir) { $ffurl = "/file.php?file=/$id$fileurl"; } link_to_popup_window ($ffurl, "display", - "wwwroot/files/pix/$icon\" HEIGHT=16 WIDTH=16 BORDER=0 ALT=\"File\">", + "pixpath/f/$icon\" HEIGHT=16 WIDTH=16 BORDER=0 ALT=\"File\">", 480, 640); echo ""; link_to_popup_window ($ffurl, "display", diff --git a/mod/resource/coursefiles.php b/mod/resource/coursefiles.php index c443bbbfb4..2bd11c335f 100644 --- a/mod/resource/coursefiles.php +++ b/mod/resource/coursefiles.php @@ -639,7 +639,7 @@ function printfilelist($filelist) { foreach ($filelist as $file) { if (is_dir($basedir.$file)) { - echo "wwwroot/files/pix/folder.gif\" HEIGHT=16 WIDTH=16> $file
"; + echo "pixpath/f/folder.gif\" height=16 width=16> $file
"; $subfilelist = array(); $currdir = opendir($basedir.$file); while ($subfile = readdir($currdir)) { @@ -651,7 +651,7 @@ function printfilelist($filelist) { } else { $icon = mimeinfo("icon", $file); - echo "wwwroot/files/pix/$icon\" HEIGHT=16 WIDTH=16> $file
"; + echo "pixpath/f/$icon\" height=16 width=16> $file
"; } } } @@ -736,7 +736,7 @@ function displaydir ($wdir) { echo ""; print_cell("center", ""); - print_cell("left", "wwwroot/files/pix/folder.gif\" HEIGHT=16 WIDTH=16 BORDER=0 ALT=\"Folder\"> ".htmlspecialchars($dir).""); + print_cell("left", "pixpath/f/folder.gif\" HEIGHT=16 WIDTH=16 BORDER=0 ALT=\"Folder\"> ".htmlspecialchars($dir).""); print_cell("right", "-"); print_cell("right", $filedate); print_cell("right", "$strrename"); @@ -776,7 +776,7 @@ function displaydir ($wdir) { echo ""; link_to_popup_window ($ffurl, "display", - "wwwroot/files/pix/$icon\" height=16 width=16 border=0 alt=\"file\">", + "pixpath/f/$icon\" height=16 width=16 border=0 alt=\"file\">", 480, 640); echo ""; link_to_popup_window ($ffurl, "display", htmlspecialchars($file), 480, 640); diff --git a/files/pix/audio.gif b/pix/f/audio.gif similarity index 100% rename from files/pix/audio.gif rename to pix/f/audio.gif diff --git a/files/pix/avi.gif b/pix/f/avi.gif similarity index 100% rename from files/pix/avi.gif rename to pix/f/avi.gif diff --git a/files/pix/edit.gif b/pix/f/edit.gif similarity index 100% rename from files/pix/edit.gif rename to pix/f/edit.gif diff --git a/files/pix/env.gif b/pix/f/env.gif similarity index 100% rename from files/pix/env.gif rename to pix/f/env.gif diff --git a/files/pix/excel.gif b/pix/f/excel.gif similarity index 100% rename from files/pix/excel.gif rename to pix/f/excel.gif diff --git a/files/pix/explore.gif b/pix/f/explore.gif similarity index 100% rename from files/pix/explore.gif rename to pix/f/explore.gif diff --git a/files/pix/flash.gif b/pix/f/flash.gif similarity index 100% rename from files/pix/flash.gif rename to pix/f/flash.gif diff --git a/files/pix/folder.gif b/pix/f/folder.gif similarity index 100% rename from files/pix/folder.gif rename to pix/f/folder.gif diff --git a/files/pix/help.gif b/pix/f/help.gif similarity index 100% rename from files/pix/help.gif rename to pix/f/help.gif diff --git a/files/pix/html.gif b/pix/f/html.gif similarity index 100% rename from files/pix/html.gif rename to pix/f/html.gif diff --git a/files/pix/image.gif b/pix/f/image.gif similarity index 100% rename from files/pix/image.gif rename to pix/f/image.gif diff --git a/files/pix/move.gif b/pix/f/move.gif similarity index 100% rename from files/pix/move.gif rename to pix/f/move.gif diff --git a/files/pix/parent.gif b/pix/f/parent.gif similarity index 100% rename from files/pix/parent.gif rename to pix/f/parent.gif diff --git a/files/pix/pdf.gif b/pix/f/pdf.gif similarity index 100% rename from files/pix/pdf.gif rename to pix/f/pdf.gif diff --git a/files/pix/powerpoint.gif b/pix/f/powerpoint.gif similarity index 100% rename from files/pix/powerpoint.gif rename to pix/f/powerpoint.gif diff --git a/files/pix/text.gif b/pix/f/text.gif similarity index 100% rename from files/pix/text.gif rename to pix/f/text.gif diff --git a/files/pix/unknown.gif b/pix/f/unknown.gif similarity index 100% rename from files/pix/unknown.gif rename to pix/f/unknown.gif diff --git a/files/pix/video.gif b/pix/f/video.gif similarity index 100% rename from files/pix/video.gif rename to pix/f/video.gif diff --git a/files/pix/word.gif b/pix/f/word.gif similarity index 100% rename from files/pix/word.gif rename to pix/f/word.gif diff --git a/files/pix/xml.gif b/pix/f/xml.gif similarity index 100% rename from files/pix/xml.gif rename to pix/f/xml.gif diff --git a/files/pix/zip.gif b/pix/f/zip.gif similarity index 100% rename from files/pix/zip.gif rename to pix/f/zip.gif diff --git a/theme/cordoroyblue/pix/f/audio.gif b/theme/cordoroyblue/pix/f/audio.gif new file mode 100755 index 0000000000..7b4e7cc626 Binary files /dev/null and b/theme/cordoroyblue/pix/f/audio.gif differ diff --git a/theme/cordoroyblue/pix/f/avi.gif b/theme/cordoroyblue/pix/f/avi.gif new file mode 100644 index 0000000000..117706c71f Binary files /dev/null and b/theme/cordoroyblue/pix/f/avi.gif differ diff --git a/theme/cordoroyblue/pix/f/edit.gif b/theme/cordoroyblue/pix/f/edit.gif new file mode 100644 index 0000000000..cd3aaec787 Binary files /dev/null and b/theme/cordoroyblue/pix/f/edit.gif differ diff --git a/theme/cordoroyblue/pix/f/env.gif b/theme/cordoroyblue/pix/f/env.gif new file mode 100644 index 0000000000..3f8221390f Binary files /dev/null and b/theme/cordoroyblue/pix/f/env.gif differ diff --git a/theme/cordoroyblue/pix/f/excel.gif b/theme/cordoroyblue/pix/f/excel.gif new file mode 100644 index 0000000000..86c5e13bd1 Binary files /dev/null and b/theme/cordoroyblue/pix/f/excel.gif differ diff --git a/theme/cordoroyblue/pix/f/explore.gif b/theme/cordoroyblue/pix/f/explore.gif new file mode 100644 index 0000000000..a19c9bea17 Binary files /dev/null and b/theme/cordoroyblue/pix/f/explore.gif differ diff --git a/theme/cordoroyblue/pix/f/flash.gif b/theme/cordoroyblue/pix/f/flash.gif new file mode 100644 index 0000000000..deb1347d36 Binary files /dev/null and b/theme/cordoroyblue/pix/f/flash.gif differ diff --git a/theme/cordoroyblue/pix/f/folder.gif b/theme/cordoroyblue/pix/f/folder.gif new file mode 100755 index 0000000000..e75b283b47 Binary files /dev/null and b/theme/cordoroyblue/pix/f/folder.gif differ diff --git a/theme/cordoroyblue/pix/f/help.gif b/theme/cordoroyblue/pix/f/help.gif new file mode 100644 index 0000000000..1600716b17 Binary files /dev/null and b/theme/cordoroyblue/pix/f/help.gif differ diff --git a/theme/cordoroyblue/pix/f/html.gif b/theme/cordoroyblue/pix/f/html.gif new file mode 100644 index 0000000000..550df5db8c Binary files /dev/null and b/theme/cordoroyblue/pix/f/html.gif differ diff --git a/theme/cordoroyblue/pix/f/image.gif b/theme/cordoroyblue/pix/f/image.gif new file mode 100644 index 0000000000..deb1347d36 Binary files /dev/null and b/theme/cordoroyblue/pix/f/image.gif differ diff --git a/theme/cordoroyblue/pix/f/move.gif b/theme/cordoroyblue/pix/f/move.gif new file mode 100644 index 0000000000..776d89eb05 Binary files /dev/null and b/theme/cordoroyblue/pix/f/move.gif differ diff --git a/theme/cordoroyblue/pix/f/parent.gif b/theme/cordoroyblue/pix/f/parent.gif new file mode 100755 index 0000000000..885b2f99a8 Binary files /dev/null and b/theme/cordoroyblue/pix/f/parent.gif differ diff --git a/theme/cordoroyblue/pix/f/pdf.gif b/theme/cordoroyblue/pix/f/pdf.gif new file mode 100644 index 0000000000..fbead2fdb2 Binary files /dev/null and b/theme/cordoroyblue/pix/f/pdf.gif differ diff --git a/theme/cordoroyblue/pix/f/powerpoint.gif b/theme/cordoroyblue/pix/f/powerpoint.gif new file mode 100755 index 0000000000..cc132873a3 Binary files /dev/null and b/theme/cordoroyblue/pix/f/powerpoint.gif differ diff --git a/theme/cordoroyblue/pix/f/text.gif b/theme/cordoroyblue/pix/f/text.gif new file mode 100644 index 0000000000..dc681ddf9c Binary files /dev/null and b/theme/cordoroyblue/pix/f/text.gif differ diff --git a/theme/cordoroyblue/pix/f/unknown.gif b/theme/cordoroyblue/pix/f/unknown.gif new file mode 100644 index 0000000000..fd34f3866b Binary files /dev/null and b/theme/cordoroyblue/pix/f/unknown.gif differ diff --git a/theme/cordoroyblue/pix/f/video.gif b/theme/cordoroyblue/pix/f/video.gif new file mode 100755 index 0000000000..117706c71f Binary files /dev/null and b/theme/cordoroyblue/pix/f/video.gif differ diff --git a/theme/cordoroyblue/pix/f/word.gif b/theme/cordoroyblue/pix/f/word.gif new file mode 100644 index 0000000000..ca4fecafa2 Binary files /dev/null and b/theme/cordoroyblue/pix/f/word.gif differ diff --git a/theme/cordoroyblue/pix/f/xml.gif b/theme/cordoroyblue/pix/f/xml.gif new file mode 100755 index 0000000000..dc681ddf9c Binary files /dev/null and b/theme/cordoroyblue/pix/f/xml.gif differ diff --git a/theme/cordoroyblue/pix/f/zip.gif b/theme/cordoroyblue/pix/f/zip.gif new file mode 100755 index 0000000000..854946fa6a Binary files /dev/null and b/theme/cordoroyblue/pix/f/zip.gif differ