Index: trunk/core/units/categories/categories_tag_processor.php =================================================================== diff -u -N -r8472 -r8478 --- trunk/core/units/categories/categories_tag_processor.php (.../categories_tag_processor.php) (revision 8472) +++ trunk/core/units/categories/categories_tag_processor.php (.../categories_tag_processor.php) (revision 8478) @@ -162,6 +162,43 @@ } } + function NavigationBar($params) + { + $titles = explode(',', $params['titles']); + $templates = explode(',', $params['templates']); + + array_unshift($titles, $this->Application->ProcessParsedTag('m', 'RootCategoryName', $params)); + array_unshift($templates, ''); + + $block_params = $this->prepareTagParams($params); + $current_template = $this->Application->GetVar('t'); + + $ret = ''; + foreach ($templates as $template_index => $template) { + $block_params['current'] = ($template == $current_template); + $block_params['title'] = $titles[$template_index]; + $block_params['template'] = $template; + + switch ($template) { + case '': + $block_params['name'] = $params['root_cat_render_as']; + break; + + case $current_template: + $block_params['name'] = $params['current_render_as']; + break; + + default: + $block_params['name'] = $params['render_as']; + break; + } + + $ret .= $this->Application->ParseBlock($block_params); + } + + return $ret; + } + function CurrentCategoryName($params) { $cat_object =& $this->Application->recallObject($this->getPrefixSpecial(), $this->Prefix.'_List');