1: | <?php
|
2: | |
3: | |
4: | |
5: | |
6: | |
7: | |
8: | |
9: | |
10: |
|
11: | |
12: | |
13: | |
14: | |
15: | |
16: | |
17: | |
18: | |
19: | |
20: | |
21: |
|
22: |
|
23: | function smarty_compiler_xoModuleIcons16($params, $smarty)
|
24: | {
|
25: | global $xoops, $xoTheme;
|
26: |
|
27: | $argStr = reset($params);
|
28: | $argStr = trim($argStr,"' \t\n\r\0");
|
29: |
|
30: | if (file_exists($xoops->path('Frameworks/moduleclasses/icons/16/index.php'))) {
|
31: | $url = $xoops->url('Frameworks/moduleclasses/icons/16/' . $argStr);
|
32: | } else {
|
33: | if (file_exists($xoops->path('modules/system/images/icons/default/' . $argStr))) {
|
34: | $url = $xoops->url('modules/system/images/icons/default/' . $argStr);
|
35: | } else {
|
36: | $url = $xoops->url('modules/system/images/icons/default/xoops/xoops.png');
|
37: | }
|
38: | }
|
39: |
|
40: | return "<?php echo '" . addslashes($url) . "'; ?>";
|
41: | }
|
42: | |