2008-08-16 03:27:34 -04:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Edit posts rows table for inclusion in administration panels.
|
|
|
|
*
|
|
|
|
* @package WordPress
|
|
|
|
* @subpackage Administration
|
|
|
|
*/
|
|
|
|
|
|
|
|
if ( ! defined('ABSPATH') ) die();
|
|
|
|
?>
|
2007-08-23 18:19:53 -04:00
|
|
|
<table class="widefat">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
|
2008-02-12 00:51:53 -05:00
|
|
|
<?php $posts_columns = wp_manage_posts_columns(); ?>
|
2008-03-15 02:14:03 -04:00
|
|
|
<?php foreach($posts_columns as $post_column_key => $column_display_name) {
|
|
|
|
if ( 'cb' === $post_column_key )
|
|
|
|
$class = ' class="check-column"';
|
|
|
|
elseif ( 'comments' === $post_column_key )
|
|
|
|
$class = ' class="num"';
|
|
|
|
else
|
|
|
|
$class = '';
|
|
|
|
?>
|
|
|
|
<th scope="col"<?php echo $class; ?>><?php echo $column_display_name; ?></th>
|
2007-08-23 18:19:53 -04:00
|
|
|
<?php } ?>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
</thead>
|
2008-02-26 19:46:27 -05:00
|
|
|
<tbody>
|
2007-08-23 18:19:53 -04:00
|
|
|
<?php
|
|
|
|
if ( have_posts() ) {
|
2008-08-25 16:21:27 -04:00
|
|
|
post_rows();
|
2007-08-23 18:19:53 -04:00
|
|
|
} else {
|
|
|
|
?>
|
2008-08-25 16:21:27 -04:00
|
|
|
<tr>
|
2007-09-03 19:32:58 -04:00
|
|
|
<td colspan="8"><?php _e('No posts found.') ?></td>
|
|
|
|
</tr>
|
2007-08-23 18:19:53 -04:00
|
|
|
<?php
|
|
|
|
} // end if ( have_posts() )
|
|
|
|
?>
|
|
|
|
</tbody>
|
|
|
|
</table>
|