32 | | |
33 | | $img = IMG_URL."/items/".$size."_".$size."/".$this->row_['itm_icon'].".png"; |
34 | | if (substr($this->getName(), strlen($this->getName()) - 2, 2) == "II") |
35 | | { |
36 | | $icon .= IMG_URL."/items/32_32/t2.gif"; |
37 | | } |
38 | | else |
39 | | { |
40 | | $icon= IMG_URL."/items/32_32/blank.gif"; |
41 | | } |
42 | | global $config, $smarty; |
43 | | $smarty->assign('img',$img); |
44 | | $smarty->assign('icon',$icon); |
45 | | return $smarty->fetch('icon.tpl'); |
| 32 | global $smarty; |
47 | | } |
| 34 | // slot 6 is dronebay |
| 35 | if ($this->row_['itt_slot'] == 6) |
| 36 | { |
| 37 | $img = IMG_URL.'/drones/'.$size.'_'.$size.'/'.$this->row_['itm_externalid'].'.png'; |
| 38 | } |
| 39 | else |
| 40 | { |
| 41 | // fix for new db structure, just make sure old clients dont break |
| 42 | if (!strstr($this->row_['itm_icon'], 'icon')) |
| 43 | { |
| 44 | $this->row_['itm_icon'] = 'icon'.$this->row_['itm_icon']; |
| 45 | } |
| 46 | $img = IMG_URL.'/items/'.$size.'_'.$size.'/'.$this->row_['itm_icon'].'.png'; |
| 47 | } |
| 48 | |
| 49 | if (substr($this->getName(), strlen($this->getName()) - 2, 2) == "II") |
| 50 | { |
| 51 | $icon .= IMG_URL.'/items/32_32/t2.gif'; |
| 52 | } |
| 53 | else |
| 54 | { |
| 55 | $icon= IMG_URL.'/items/32_32/blank.gif'; |
| 56 | } |
| 57 | |
| 58 | $smarty->assign('img', $img); |
| 59 | $smarty->assign('icon', $icon); |
| 60 | return $smarty->fetch('icon.tpl'); |
| 61 | } |