Index: branches/RC/core/units/admin/admin_tag_processor.php =================================================================== diff -u -N -r11538 -r11576 --- branches/RC/core/units/admin/admin_tag_processor.php (.../admin_tag_processor.php) (revision 11538) +++ branches/RC/core/units/admin/admin_tag_processor.php (.../admin_tag_processor.php) (revision 11576) @@ -445,6 +445,31 @@ } /** + * Renders inividual catalog tab based on prefix and title_property given + * + * @param Array $params + * @return string + */ + function CatalogTab($params) + { + $icon = $this->Application->getUnitOption($params['prefix'], 'CatalogTabIcon'); + if (strpos($icon, ':') !== false) { + list ($icon_module, $icon) = explode(':', $icon, 2); + } + else { + $icon_module = 'core'; + } + + $block_params = $this->prepareTagParams($params); + $block_params['name'] = $params['render_as']; + $block_params['icon_module'] = $icon_module; + $block_params['icon'] = $icon; + $block_params['title'] = $this->Application->getUnitOption($params['prefix'], $params['title_property']); + + return $this->Application->ParseBlock($block_params); + } + + /** * Allows to construct link for opening any type of catalog item selector * * @param Array $params