1: <?php
2:
3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13:
14:
15:
16: defined('CON_FRAMEWORK') || die('Illegal call: Missing framework initialization - request aborted.');
17:
18:
19: $rootIdcat = getEffectiveSetting('navigation_top', 'idcat', 1);
20: $depth = getEffectiveSetting('navigation_top', 'depth', 3);
21:
22:
23: $categoryHelper = cCategoryHelper::getInstance();
24: $categoryHelper->setAuth(cRegistry::getAuth());
25: $tree = $categoryHelper->getSubCategories($rootIdcat, $depth);
26:
27:
28: if (!function_exists("navigation_top_filter")) {
29: 30: 31: 32: 33:
34: function navigation_top_filter(cApiCategoryLanguage $categoryLanguage) {
35: return $categoryLanguage->get('idcat');
36: }
37: }
38: $path = array_map('navigation_top_filter', $categoryHelper->getCategoryPath(cRegistry::getCategoryId(), 1));
39:
40:
41: $tpl = cSmartyFrontend::getInstance();
42: $tpl->assign('tree', $tree);
43: $tpl->assign('path', $path);
44: $tpl->display('get.tpl');
45:
46: ?>