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