summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-09-28 06:49:29 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-09-28 06:49:29 +0000
commitcad6aca40feafa7adbe6066772afbe225dbfe30c (patch)
treeb1f95ec59dffefa0c6a07fec3581832bd14cebf3 /lib
parentebdb7573bf4176b81264d2c66dd567fa3c3ee0bd (diff)
downloadampache-cad6aca40feafa7adbe6066772afbe225dbfe30c.tar.gz
ampache-cad6aca40feafa7adbe6066772afbe225dbfe30c.tar.bz2
ampache-cad6aca40feafa7adbe6066772afbe225dbfe30c.zip
removed images that were not being used, added icons and started the iconification!
Diffstat (limited to 'lib')
-rw-r--r--lib/ui.lib.php23
1 files changed, 23 insertions, 0 deletions
diff --git a/lib/ui.lib.php b/lib/ui.lib.php
index 7eec5525..c3be646c 100644
--- a/lib/ui.lib.php
+++ b/lib/ui.lib.php
@@ -1312,4 +1312,27 @@ function show_box_bottom() {
} // show_box_bottom
+/**
+ * get_user_icon
+ * this function takes a name and a returns either a text representation
+ * or an <img /> tag
+ */
+function get_user_icon($name) {
+
+ $icon_name = 'icon_' . $name . '.gif';
+
+ if (file_exists(conf('prefix') . '/themes/' . $GLOBALS['theme']['path'] . '/images/' . $icon_name)) {
+ $img_url = conf('web_path') . conf('theme_path') . '/images/' . $icon_name;
+ }
+ else {
+ $img_url = conf('web_path') . '/images/' . $icon_name;
+ }
+
+ $string = "<img src=\"$img_url\" border=\"0\" alt=\"$name\" title=\"$name\" />";
+
+ return $string;
+
+} // show_icon
+
+
?>