1: <?php
2: 3: 4: 5: 6: 7: 8: 9: 10:
11: 12: 13: 14: 15: 16: 17: 18:
19:
20: function smarty_compiler_xoAdminNav($argStr, &$smarty)
21: {
22: $xoops = Xoops::getInstance();
23:
24: $icons = $xoops->getModuleConfig('typebreadcrumb', 'system');
25: if ($icons == '') {
26: $icons = 'default';
27: }
28:
29: $url = '';
30: if (XoopsLoad::fileExists($xoops->path('modules/system/images/breadcrumb/' . $icons . '/index.html'))) {
31: $url = $xoops->url('modules/system/images/breadcrumb/' . $icons . '/' . $argStr);
32: } else {
33: if (XoopsLoad::fileExists($xoops->path('modules/system/images/breadcrumb/default/' . $argStr))) {
34: $url = $xoops->url('modules/system/images/icons/default/' . $argStr);
35: }
36: }
37: return "\necho '" . addslashes($url) . "';";
38: }
39: