1 <?php if ( ! defined('ABSPATH') ) die(); ?>
2 <table class="widefat">
6 <?php foreach($posts_columns as $column_display_name) { ?>
7 <th scope="col"><?php echo $column_display_name; ?></th>
16 add_filter('the_title','wp_specialchars');
17 while (have_posts()) : the_post();
18 $class = ('alternate' == $class) ? '' : 'alternate';
20 $post_owner = ( $current_user->ID == $post->post_author ? 'self' : 'other' );
22 <tr id='post-<?php echo $id; ?>' class='<?php echo trim( $class . ' author-' . $post_owner . ' status-' . $post->post_status ); ?>'>
26 foreach($posts_columns as $column_name=>$column_display_name) {
28 switch($column_name) {
32 <th scope="row" style="text-align: center"><?php echo $id ?></th>
37 <td><?php if ( '0000-00-00 00:00:00' ==$post->post_modified ) _e('Never'); else the_modified_time(__('Y-m-d \<\b\r \/\> g:i:s a')); ?></td>
42 <td><?php if ( '0000-00-00 00:00:00' ==$post->post_date) _e('Unpublished'); else the_time(__('Y-m-d \<\b\r \/\> g:i:s a')); ?></td>
47 <td><?php the_title() ?>
48 <?php if ('private' == $post->post_status) _e(' - <strong>Private</strong>'); ?></td>
54 <td><?php the_category(','); ?></td>
60 <td style="text-align: center">
62 $left = get_pending_comments_num( $post->ID );
63 $pending_phrase = sprintf( __('%s pending'), number_format( $left ) );
66 comments_number("<a href='edit.php?p=$id&c=1' title='$pending_phrase'>" . __('0') . '</a>', "<a href='edit.php?p=$id&c=1' title='$pending_phrase'>" . __('1') . '</a>', "<a href='edit.php?p=$id&c=1' title='$pending_phrase'>" . __('%') . '</a>');
76 <td><?php the_author() ?></td>
82 <td><a href="<?php the_permalink(); ?>" rel="permalink" class="view"><?php _e('View'); ?></a></td>
88 <td><?php if ( current_user_can('edit_post',$post->ID) ) { echo "<a href='post.php?action=edit&post=$id' class='edit'>" . __('Edit') . "</a>"; } ?></td>
92 case 'control_delete':
94 <td><?php if ( current_user_can('delete_post',$post->ID) ) { echo "<a href='" . wp_nonce_url("post.php?action=delete&post=$id", 'delete-post_' . $post->ID) . "' class='delete' onclick=\"return deleteSomething( 'post', " . $id . ", '" . js_escape(sprintf(__("You are about to delete this post '%s'.\n'OK' to delete, 'Cancel' to stop."), get_the_title())) . "' );\">" . __('Delete') . "</a>"; } ?></td>
100 <td><?php do_action('manage_posts_custom_column', $column_name, $id); ?></td>
111 <tr style='background-color: <?php echo $bgcolor; ?>'>
112 <td colspan="8"><?php _e('No posts found.') ?></td>
115 } // end if ( have_posts() )