### Eclipse Workspace Patch 1.0
#P wordpress
|
|
|
|
| 2125 | 2125 | if ( $user_can ) { |
| 2126 | 2126 | $actions['approve'] = "<a href='$approve_url' class='dim:the-comment-list:comment-$comment->comment_ID:unapproved:e7e7d3:e7e7d3:new=approved vim-a' title='" . __( 'Approve this comment' ) . "'>" . __( 'Approve' ) . '</a>'; |
| 2127 | 2127 | $actions['unapprove'] = "<a href='$unapprove_url' class='dim:the-comment-list:comment-$comment->comment_ID:unapproved:e7e7d3:e7e7d3:new=unapproved vim-u' title='" . __( 'Unapprove this comment' ) . "'>" . __( 'Unapprove' ) . '</a>'; |
| 2128 | | if ( $comment_status ) { // not looking at all comments |
| | 2128 | if ( $comment_status && 'all' != $comment_status ) { // not looking at all comments |
| 2129 | 2129 | if ( 'approved' == $the_comment_status ) { |
| 2130 | 2130 | $actions['unapprove'] = "<a href='$unapprove_url' class='delete:the-comment-list:comment-$comment->comment_ID:e7e7d3:action=dim-comment&new=unapproved vim-u vim-destructive' title='" . __( 'Unapprove this comment' ) . "'>" . __( 'Unapprove' ) . '</a>'; |
| 2131 | 2131 | unset($actions['approve']); |
| … |
… |
|
| 3453 | 3453 | } |
| 3454 | 3454 | break; |
| 3455 | 3455 | } |
| | 3456 | // TODO: move help output into $extra_metas array. |
| | 3457 | // TODO: move screen options output into $extra_metas array. |
| | 3458 | // TODO: update css and js files to finish |
| | 3459 | $extra_metas = apply_filters('screen_meta_extra_metas', array(), $screen); |
| 3456 | 3460 | ?> |
| 3457 | 3461 | <div id="screen-meta"> |
| 3458 | 3462 | <?php |
| 3459 | | if ( $show_screen ) : |
| | 3463 | if ( $count = count($extra_metas)) : |
| | 3464 | $values = array_values($extra_metas); |
| | 3465 | for($i = 0; $i < $count; $i++) { |
| | 3466 | $extra_meta = $values[$i]; |
| | 3467 | printf('<div id="screen-meta-%d-wrap" class="screen-metas-wrap hidden">%s</div>', $i, $extra_meta[1]); |
| | 3468 | } |
| | 3469 | endif; |
| | 3470 | |
| | 3471 | if ( $show_screen ) : |
| 3460 | 3472 | ?> |
| 3461 | 3473 | <div id="screen-options-wrap" class="hidden"> |
| 3462 | 3474 | <form id="adv-settings" action="" method="post"> |
| … |
… |
|
| 3517 | 3529 | <a href="#screen-options" id="show-settings-link" class="show-settings"><?php _e('Screen Options') ?></a> |
| 3518 | 3530 | </div> |
| 3519 | 3531 | <?php } ?> |
| | 3532 | <?php $i = 0; foreach( $extra_metas as $extra_meta ) { ?> |
| | 3533 | <div id="screen-meta-<?php echo $i; ?>-link-wrap" class="screen-metas-link-wrap hide-if-no-js screen-meta-toggle"> |
| | 3534 | <a href="#screen-meta-<?php echo $i; ?>" id="screen-meta-<?php echo $i; ?>-link" class="screen-metas-link"><?php echo $extra_meta[0] ?></a> |
| 3520 | 3535 | </div> |
| | 3536 | <?php $i++; } ?> |
| | 3537 | </div> |
| 3521 | 3538 | </div> |
| 3522 | 3539 | <?php |
| 3523 | 3540 | } |