XPressME Integration Kit

Trac


Ignore:
Timestamp:
Jun 4, 2009, 2:02:54 PM (15 years ago)
Author:
toemon
Message:

WordPressME2.0.11への対応,(ブロック周りは未完)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xpressme_integration_kit/wp-content/themes/xpress_default/blocks/category_block_theme.php

    r122 r252  
    1717        $depth  = !is_numeric( $options[12] ) ? 0 : $options[12] ; 
    1818         
    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        } 
    4065        return $block ;  
    4166} 
Note: See TracChangeset for help on using the changeset viewer.