Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes on: wp-admin/images/lock16.png
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
|
|
|
472 | 472 | $title = _draft_or_post_title(); |
473 | 473 | $post_type_object = get_post_type_object( $post->post_type ); |
474 | 474 | $can_edit_post = current_user_can( $post_type_object->cap->edit_post, $post->ID ); |
| 475 | $post_is_locked = wp_check_post_lock( $post->ID ); |
| 476 | $lock_holder = ''; |
475 | 477 | |
476 | 478 | $alternate = 'alternate' == $alternate ? '' : 'alternate'; |
477 | 479 | $classes = $alternate . ' iedit author-' . ( get_current_user_id() == $post->post_author ? 'self' : 'other' ); |
| 480 | |
| 481 | if ( $post_is_locked ) { |
| 482 | $classes .= ' wp-locked'; |
| 483 | $lock_holder_data = get_user_by( 'id', $post_is_locked ); |
| 484 | |
| 485 | if ( $lock_holder_data ) |
| 486 | $lock_holder = esc_html( sprintf( __('Currently edited by %s'), $lock_holder_data->data->display_name ) ); |
| 487 | } |
478 | 488 | ?> |
479 | 489 | <tr id="post-<?php echo $post->ID; ?>" class="<?php echo implode( ' ', get_post_class( $classes, $post->ID ) ); ?>" valign="top"> |
480 | 490 | <?php |
… |
… |
|
495 | 505 | case 'cb': |
496 | 506 | ?> |
497 | 507 | <th scope="row" class="check-column"> |
498 | | <?php if ( $can_edit_post ) { ?> |
| 508 | <?php |
| 509 | if ( $can_edit_post ) { |
| 510 | |
| 511 | ?> |
499 | 512 | <label class="screen-reader-text" for="cb-select-<?php the_ID(); ?>"><?php printf( __( 'Select %s' ), $title ); ?></label> |
500 | 513 | <input id="cb-select-<?php the_ID(); ?>" type="checkbox" name="post[]" value="<?php the_ID(); ?>" /> |
501 | | <?php } ?> |
| 514 | <div class="locked-indicator"></div> |
| 515 | <?php |
| 516 | } |
| 517 | ?> |
502 | 518 | </th> |
503 | 519 | <?php |
504 | 520 | break; |
… |
… |
|
525 | 541 | } |
526 | 542 | |
527 | 543 | $pad = str_repeat( '— ', $level ); |
528 | | ?> |
529 | | <td <?php echo $attributes ?>><strong><?php if ( $can_edit_post && $post->post_status != 'trash' ) { ?><a class="row-title" href="<?php echo $edit_link; ?>" title="<?php echo esc_attr( sprintf( __( 'Edit “%s”' ), $title ) ); ?>"><?php echo $pad; echo $title ?></a><?php } else { echo $pad; echo $title; }; _post_states( $post ); echo isset( $parent_name ) ? ' | ' . $post_type_object->labels->parent_item_colon . ' ' . esc_html( $parent_name ) : ''; ?></strong> |
530 | | <?php |
531 | | } |
532 | | else { |
| 544 | |
| 545 | ?> |
| 546 | <td <?php echo $attributes ?>><strong><?php if ( $can_edit_post && $post->post_status != 'trash' ) { ?><a class="row-title" href="<?php echo $edit_link; ?>" title="<?php echo esc_attr( sprintf( __( 'Edit “%s”' ), $title ) ); ?>"><?php echo $pad; echo $title ?></a><?php } else { echo $pad; echo $title; }; _post_states( $post ); echo isset( $parent_name ) ? ' | ' . $post_type_object->labels->parent_item_colon . ' ' . esc_html( $parent_name ) : ''; ?></strong> |
| 547 | <?php |
| 548 | |
| 549 | if ( $can_edit_post && $post->post_status != 'trash' ) { |
| 550 | ?> |
| 551 | <span class="post-lock-holder"><?php echo $lock_holder; ?></span> |
| 552 | <?php |
| 553 | } |
| 554 | } else { |
533 | 555 | $attributes = 'class="post-title page-title column-title"' . $style; |
534 | 556 | |
535 | 557 | $pad = str_repeat( '— ', $level ); |
536 | | ?> |
537 | | <td <?php echo $attributes ?>><strong><?php if ( $can_edit_post && $post->post_status != 'trash' ) { ?><a class="row-title" href="<?php echo $edit_link; ?>" title="<?php echo esc_attr( sprintf( __( 'Edit “%s”' ), $title ) ); ?>"><?php echo $pad; echo $title ?></a><?php } else { echo $pad; echo $title; }; _post_states( $post ); ?></strong> |
538 | | <?php |
| 558 | |
| 559 | ?> |
| 560 | <td <?php echo $attributes ?>><strong><?php if ( $can_edit_post && $post->post_status != 'trash' ) { ?><a class="row-title" href="<?php echo $edit_link; ?>" title="<?php echo esc_attr( sprintf( __( 'Edit “%s”' ), $title ) ); ?>"><?php echo $pad; echo $title ?></a><?php } else { echo $pad; echo $title; }; _post_states( $post ); ?></strong> |
| 561 | <?php |
| 562 | |
| 563 | if ( $can_edit_post && $post->post_status != 'trash' ) { |
| 564 | ?> |
| 565 | <span class="post-lock-holder"><?php echo $lock_holder; ?></span> |
| 566 | <?php |
| 567 | } |
| 568 | |
539 | 569 | if ( 'excerpt' == $mode && current_user_can( 'read_post', $post->ID ) ) |
540 | 570 | the_excerpt(); |
541 | 571 | } |