Changeset View
Changeset View
Standalone View
Standalone View
branches/5.2.x/core/units/helpers/navigation_bar.php
Show First 20 Lines • Show All 201 Lines • ▼ Show 20 Line(s) | |||||
} | } | ||||
$main_category_id = $this->_getCurrentCategoryId(); | $main_category_id = $this->_getCurrentCategoryId(); | ||||
/** @var CategoryHelper $category_helper */ | /** @var CategoryHelper $category_helper */ | ||||
$category_helper = $this->Application->recallObject('CategoryHelper'); | $category_helper = $this->Application->recallObject('CategoryHelper'); | ||||
$module_info = $category_helper->getCategoryModule($this->_params, array_keys($category_path)); | $module_info = $category_helper->getCategoryModule($this->_params, array_keys($category_path)); | ||||
$module_item_id = $this->Application->GetVar($module_info['Var'] . '_id'); | $module_item_id = $module_info ? $this->Application->GetVar($module_info['Var'] . '_id') : false; | ||||
$ret = ''; | $ret = ''; | ||||
$block_params = $this->_getBaseParams(); | $block_params = $this->_getBaseParams(); | ||||
$block_params['category'] = 1; | $block_params['category'] = 1; | ||||
$block_params['template'] = ''; // to prevent warning when category element is rendered using general "render_as" block | $block_params['template'] = ''; // to prevent warning when category element is rendered using general "render_as" block | ||||
if ( isset($this->_params['is_first']) ) { | if ( isset($this->_params['is_first']) ) { | ||||
$block_params['is_first'] = $this->_params['is_first']; | $block_params['is_first'] = $this->_params['is_first']; | ||||
▲ Show 20 Lines • Show All 161 Lines • Show Last 20 Lines |