Changeset 4953 for trunk/wp-includes/classes.php
- Timestamp:
- 02/27/2007 03:24:54 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/classes.php
r4893 r4953 415 415 $output = call_user_func_array(array(&$this, 'start_el'), $cb_args); 416 416 } 417 417 418 418 // End the element. 419 419 if ( isset($element->$id_field) && $element->$id_field != 0 ) { … … 421 421 $output = call_user_func_array(array(&$this, 'end_el'), $cb_args); 422 422 } 423 424 continue; 425 } 426 423 424 continue; 425 } 426 427 427 // Walk the tree. 428 428 if ( !empty($previous_element) && ($element->$parent_field == $previous_element->$id_field) ) { … … 513 513 514 514 $output .= $indent . '<li class="' . $css_class . '"><a href="' . get_page_link($page->ID) . '" title="' . attribute_escape($page->post_title) . '">' . $page->post_title . '</a>'; 515 515 516 516 if ( !empty($show_date) ) { 517 517 if ( 'modified' == $show_date ) … … 519 519 else 520 520 $time = $page->post_date; 521 521 522 522 $output .= " " . mysql2date($date_format, $time); 523 523 } … … 525 525 return $output; 526 526 } 527 527 528 528 function end_el($output, $page, $depth) { 529 529 $output .= "</li>\n"; … … 614 614 $link .= ')'; 615 615 } 616 616 617 617 if ( isset($show_count) && $show_count ) 618 618 $link .= ' (' . intval($category->category_count) . ')'; 619 619 620 620 if ( isset($show_date) && $show_date ) { 621 621 $link .= ' ' . gmdate('Y-m-d', $category->last_update_timestamp);
Note: See TracChangeset
for help on using the changeset viewer.