- Timestamp:
- Jun 4, 2009, 2:02:54 PM (16 years ago)
- Location:
- trunk/xpressme_integration_kit/wp-content/themes/xpress_default/blocks
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/xpressme_integration_kit/wp-content/themes/xpress_default/blocks/category_block_theme.php
r122 r252 17 17 $depth = !is_numeric( $options[12] ) ? 0 : $options[12] ; 18 18 19 $param = array( 20 'show_option_all' => $show_option_all, 21 'orderby' => $orderby, 22 'order' => $order, 23 'show_last_update' => $show_last_updated, 24 'style' => 'list', 25 'show_count' => $show_count, 26 'hide_empty' => $hide_empty, 27 'use_desc_for_title' => $use_desc_for_title, 28 'child_of' => 0, 29 'feed' => '', 30 'feed_image' => '', 31 'exclude' => $exclude, 32 'include' => $includes, 33 'hierarchical' => $hierarchical, 34 'title_li' => '', 35 'number' => '', 36 'echo' => 0, 37 'depth' => $depth 38 ); 39 $block['categories'] = wp_list_categories($param); 19 if (function_exists('wp_list_categories')){ 20 $param = array( 21 'show_option_all' => $show_option_all, 22 'orderby' => $orderby, 23 'order' => $order, 24 'show_last_update' => $show_last_updated, 25 'style' => 'list', 26 'show_count' => $show_count, 27 'hide_empty' => $hide_empty, 28 'use_desc_for_title' => $use_desc_for_title, 29 'child_of' => 0, 30 'feed' => '', 31 'feed_image' => '', 32 'exclude' => $exclude, 33 'include' => $includes, 34 'hierarchical' => $hierarchical, 35 'title_li' => '', 36 'number' => '', 37 'echo' => 0, 38 'depth' => $depth 39 ); 40 $block['categories'] = wp_list_categories($param); 41 } else { 42 if (empty($show_option_all)) 43 $optionall = 0; 44 else 45 $optionall = 1; 46 $param = array( 47 'optionall' => $optionall, 48 'all' => $show_option_all, 49 'sort_column' => $orderby, 50 'sort_order' => $order, 51 'show_last_update' => $show_last_updated, 52 'optioncount' => $show_count, 53 'hide_empty' => $hide_empty, 54 'use_desc_for_title' => $use_desc_for_title, 55 'child_of' => 0, 56 'feed' => '', 57 'feed_image' => '', 58 'exclude' => $exclude, 59 'hierarchical' => $hierarchical, 60 'recurse' => 1, 61 ); 62 $block['categories'] = wp_list_cats($param); 63 64 } 40 65 return $block ; 41 66 } -
trunk/xpressme_integration_kit/wp-content/themes/xpress_default/blocks/tag_cloud_block_theme.php
r122 r252 25 25 'include' => $wp_include 26 26 ); 27 ob_start(); 28 wp_tag_cloud($param); 29 $output = ob_get_contents(); 30 ob_end_clean(); 31 27 if (function_exists('wp_tag_cloud')) { 28 ob_start(); 29 wp_tag_cloud($param); 30 $output = ob_get_contents(); 31 ob_end_clean(); 32 } else { 33 $output = 'not function wp_tag_cloud()'; 34 } 32 35 $block['tag_cloud'] = $output; 33 36 return $block ; -
trunk/xpressme_integration_kit/wp-content/themes/xpress_default/blocks/widget_block_theme.php
r136 r252 38 38 } 39 39 } 40 40 if (!function_exists('wp_get_sidebars_widgets')) { 41 echo 'Not support sidebar widget'; 42 return; 43 } 41 44 $sidebars_widgets = wp_get_sidebars_widgets(); 42 45 $registered_sidebars = $wp_registered_sidebars[$index];
Note: See TracChangeset
for help on using the changeset viewer.