diff options
author | Andrew Dolgov <[email protected]> | 2009-12-21 13:42:02 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2009-12-21 13:42:02 +0300 |
commit | af88c48a3a4f098b5d11b8aaac9a524763ef6d95 (patch) | |
tree | 69a5af8664a67cc2a54928ffb98d99d0bdc3294a /functions.php | |
parent | 37882ef39272299a28496f2bd4c632eb53b23d7c (diff) |
mobile: misc fixes; add getFeedIcon()
Diffstat (limited to 'functions.php')
-rw-r--r-- | functions.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/functions.php b/functions.php index 6708612d6..9fba3c83c 100644 --- a/functions.php +++ b/functions.php @@ -2940,6 +2940,26 @@ } + function getFeedIcon($id) { + switch ($id) { + case -1: + return "images/mark_set.gif"; + break; + case -2: + return "images/pub_set.gif"; + break; + case -3: + return "images/fresh.png"; + break; + case -4: + return "images/tag.png"; + break; + default: + return ICONS_URL . "/$id.ico"; + break; + } + } + function getFeedTitle($link, $id) { if ($id == -1) { return __("Starred articles"); |