| Conditions | 4 |
| Paths | 4 |
| Total Lines | 21 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | public function pix_url($pixname, $size = 16) |
||
| 28 | { |
||
| 29 | global $_configuration; |
||
| 30 | |||
| 31 | if (file_exists( |
||
| 32 | $_configuration['root_sys'].'/plugin/customplugin/pix/'.$pixname.'.png' |
||
| 33 | )) { |
||
| 34 | return $_configuration['root_web'].'/plugin/customplugin/pix/'.$pixname.'.png'; |
||
| 35 | } |
||
| 36 | if (file_exists( |
||
| 37 | $_configuration['root_sys'].'/plugin/customplugin/pix/'.$pixname.'.jpg' |
||
| 38 | )) { |
||
| 39 | return $_configuration['root_web'].'/plugin/customplugin/pix/'.$pixname.'.jpg'; |
||
| 40 | } |
||
| 41 | if (file_exists( |
||
| 42 | $_configuration['root_sys'].'/plugin/customplugin/pix/'.$pixname.'.gif' |
||
| 43 | )) { |
||
| 44 | return $_configuration['root_web'].'/plugin/customplugin/pix/'.$pixname.'.gif'; |
||
| 45 | } |
||
| 46 | |||
| 47 | return $_configuration['root_web'].'/main/img/icons/'.$size.'/'.$pixname.'.png'; |
||
| 48 | } |
||
| 50 |