From cad6aca40feafa7adbe6066772afbe225dbfe30c Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Thu, 28 Sep 2006 06:49:29 +0000 Subject: removed images that were not being used, added icons and started the iconification! --- lib/ui.lib.php | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'lib') 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 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 = "\"$name\""; + + return $string; + +} // show_icon + + ?> -- cgit