Changeset 6546
- Timestamp:
- 06/14/2017 10:31:57 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/admin/classes/class-bbp-topic-replies-list-table.php
r6287 r6546 300 300 <?php 301 301 } 302 303 /** 304 * Generates content for a single row of the table 305 * 306 * @since 2.6.0 307 * @access public 308 * 309 * @param object $item The current item 310 */ 311 public function single_row( $item ) { 312 313 // Author 314 $classes = 'author-' . ( get_current_user_id() == $item->post_author ? 'self' : 'other' ); 315 316 // Locked 317 if ( wp_check_post_lock( $item->ID ) ) { 318 $classes .= ' wp-locked'; 319 } 320 321 // Hierarchy 322 if ( ! empty( $item->post_parent ) ) { 323 $count = count( get_post_ancestors( $item->ID ) ); 324 $classes .= ' level-'. $count; 325 } else { 326 $classes .= ' level-0'; 327 } ?> 328 329 <tr id="post-<?php echo esc_attr( $item->ID ); ?>" class="<?php echo implode( ' ', get_post_class( $classes, $item->ID ) ); ?>"> 330 <?php $this->single_row_columns( $item ); ?> 331 </tr> 332 333 <?php 334 } 302 335 } 303 336 endif;
Note: See TracChangeset
for help on using the changeset viewer.