$show_option_all, 'orderby' => $orderby, 'order' => $order, 'show_last_update' => $show_last_updated, 'style' => 'list', 'show_count' => $show_count, 'hide_empty' => $hide_empty, 'use_desc_for_title' => $use_desc_for_title, 'child_of' => 0, 'feed' => '', 'feed_image' => '', 'exclude' => $exclude, 'include' => $includes, 'hierarchical' => $hierarchical, 'title_li' => '', 'number' => '', 'echo' => 0, 'depth' => $depth ); if ( xpress_is_wp_version('>=','2.3') ) { $block['categories'] = wp_list_categories($param); } else { // not suport echo flag ob_start(); wp_list_categories($param); $block['categories'] = ob_get_contents(); ob_end_clean(); } } else { if (empty($show_option_all)) $optionall = 0; else $optionall = 1; $param = array( 'optionall' => $optionall, 'all' => $show_option_all, 'sort_column' => $orderby, 'sort_order' => $order, 'show_last_update' => $show_last_updated, 'optioncount' => $show_count, 'hide_empty' => $hide_empty, 'use_desc_for_title' => $use_desc_for_title, 'child_of' => 0, 'feed' => '', 'feed_image' => '', 'exclude' => $exclude, 'hierarchical' => $hierarchical, 'recurse' => 1, ); ob_start(); wp_list_cats($param); $block['categories'] = ob_get_contents(); ob_end_clean(); } return $block ; } ?>