Changeset 15847 for trunk/wp-includes/classes.php
- Timestamp:
- 10/19/2010 10:10:11 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/classes.php
r15825 r15847 1557 1557 $link .= $cat_name . '</a>'; 1558 1558 1559 if ( (! empty($feed_image)) || (! empty($feed)) ) {1559 if ( !empty($feed_image) || !empty($feed) ) { 1560 1560 $link .= ' '; 1561 1561 … … 1565 1565 $link .= '<a href="' . get_term_feed_link( $category->term_id, $category->taxonomy, $feed_type ) . '"'; 1566 1566 1567 if ( empty($feed) ) 1567 if ( empty($feed) ) { 1568 1568 $alt = ' alt="' . sprintf(__( 'Feed for all posts filed under %s' ), $cat_name ) . '"'; 1569 else {1569 } else { 1570 1570 $title = ' title="' . $feed . '"'; 1571 1571 $alt = ' alt="' . $feed . '"'; … … 1580 1580 else 1581 1581 $link .= "<img src='$feed_image'$alt$title" . ' />'; 1582 1582 1583 $link .= '</a>'; 1584 1583 1585 if ( empty($feed_image) ) 1584 1586 $link .= ')'; 1585 1587 } 1586 1588 1587 if ( isset($show_count) && $show_count)1589 if ( !empty($show_count) ) 1588 1590 $link .= ' (' . intval($category->count) . ')'; 1589 1591 1590 if ( isset($show_date) && $show_date ) {1592 if ( !empty($show_date) ) 1591 1593 $link .= ' ' . gmdate('Y-m-d', $category->last_update_timestamp); 1592 }1593 1594 if ( isset($current_category) && $current_category )1595 $_current_category = get_category( $current_category );1596 1594 1597 1595 if ( 'list' == $args['style'] ) { 1598 1596 $output .= "\t<li"; 1599 $class = 'cat-item cat-item-'.$category->term_id; 1600 if ( isset($current_category) && $current_category && ($category->term_id == $current_category) ) 1601 $class .= ' current-cat'; 1602 elseif ( isset($_current_category) && $_current_category && ($category->term_id == $_current_category->parent) ) 1603 $class .= ' current-cat-parent'; 1604 $output .= ' class="'.$class.'"'; 1597 $class = 'cat-item cat-item-' . $category->term_id; 1598 if ( !empty($current_category) ) { 1599 $_current_category = get_term( $current_category, $category->taxonomy ); 1600 if ( $category->term_id == $current_category ) 1601 $class .= ' current-cat'; 1602 elseif ( $category->term_id == $_current_category->parent ) 1603 $class .= ' current-cat-parent'; 1604 } 1605 $output .= ' class="' . $class . '"'; 1605 1606 $output .= ">$link\n"; 1606 1607 } else {
Note: See TracChangeset
for help on using the changeset viewer.