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: function navigation_top_filter(cApiCategoryLanguage $categoryLanguage) {
31: return $categoryLanguage->get('idcat');
32: }
33: $path = array_map('navigation_top_filter', $categoryHelper->getCategoryPath(cRegistry::getCategoryId(), 1));
34:
35:
36: $tpl = cSmartyFrontend::getInstance();
37: $tpl->assign('tree', $tree);
38: $tpl->assign('path', $path);
39: $tpl->display('get.tpl');
40:
41: ?>