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_main', 'idcat', 1);
22: $depth = getEffectiveSetting('navigation_main', 'depth', 3);
23:
24:
25: $categoryHelper = cCategoryHelper::getInstance();
26: $categoryHelper->setAuth(cRegistry::getAuth());
27: $tree = $categoryHelper->getSubCategories($rootIdcat, $depth);
28:
29:
30: function navigation_main_filter(cApiCategoryLanguage $categoryLanguage) {
31: return $categoryLanguage->get('idcat');
32: }
33: $path = array_map('navigation_main_filter', $categoryHelper->getCategoryPath(cRegistry::getCategoryId(), 1));
34:
35:
36: $tpl = cSmartyFrontend::getInstance();
37: $tpl->assign('ulId', 'navigation');
38: $tpl->assign('tree', $tree);
39: $tpl->assign('path', $path);
40: $tpl->display('get.tpl');
41:
42: ?>