Changeset 3881
- Timestamp:
- 06/17/2006 12:05:00 AM (19 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/themes/classic/sidebar.php
r3880 r3881 4 4 5 5 <ul> 6 <?php wp_list_pages(); ?> 7 <?php wp_list_bookmarks(); ?> 8 <li id="categories"><?php _e('Categories:'); ?> 9 <ul> 10 <?php wp_list_cats(); ?> 11 </ul> 12 </li> 6 <?php wp_list_pages('title_li=' . __('Pages:')); ?> 7 <?php wp_list_bookmarks('title_after=&title_before='); ?> 8 <?php wp_list_categories('title_li=' . __('Categories:')); ?> 13 9 <li id="search"> 14 10 <label for="s"><?php _e('Search:'); ?></label> -
trunk/wp-content/themes/default/sidebar.php
r3880 r3881 47 47 </li> 48 48 49 <li><h2>Categories</h2> 50 <ul> 51 <?php wp_list_cats('sort_column=name&optioncount=1&hierarchical=0'); ?> 52 </ul> 53 </li> 49 <?php wp_list_categories('sort_column=name&optioncount=1&hierarchical=0&title_li=<h2>Categories</h2>'); ?> 54 50 55 51 <?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?> -
trunk/wp-includes/category-template.php
r3843 r3881 213 213 parse_str($args, $r); 214 214 215 $defaults = array('show_option_all' => '', 'orderby' => ' ID',216 'order' => ' asc', 'style' => 'list', 'show_last_update' => 0,215 $defaults = array('show_option_all' => '', 'orderby' => 'name', 216 'order' => 'ASC', 'show_last_update' => 0, 'style' => 'list', 217 217 'show_count' => 0, 'hide_empty' => 1, 'use_desc_for_title' => 1, 218 218 'child_of' => 0, 'feed' => '', 'feed_image' => '', 'exclude' => '', 219 'hierarchical' => true, 'title_li' => '');219 'hierarchical' => true, 'title_li' => __('Categories')); 220 220 $r = array_merge($defaults, $r); 221 221 $r['include_last_update_time'] = $r['show_date']; … … 225 225 226 226 $output = ''; 227 if ( $title_li && $list)227 if ( $title_li && 'list' == $style ) 228 228 $output = '<li class="categories">' . $r['title_li'] . '<ul>'; 229 229 … … 244 244 } 245 245 246 if ( $title_li && $list)246 if ( $title_li && 'list' == $style ) 247 247 $output .= '</ul></li>'; 248 248 -
trunk/wp-includes/deprecated.php
r3878 r3881 431 431 if ( !empty($r['list']) ) 432 432 $r['style'] = 'break'; 433 $r['title_li'] = ''; 433 434 434 435 return wp_list_categories($r);
Note: See TracChangeset
for help on using the changeset viewer.