b5f62016f5
git-svn-id: https://develop.svn.wordpress.org/trunk@8729 602fd350-edb4-49c9-b593-d223f7449a82
43 lines
806 B
PHP
43 lines
806 B
PHP
<?php
|
|
/**
|
|
* Edit posts rows table for inclusion in administration panels.
|
|
*
|
|
* @package WordPress
|
|
* @subpackage Administration
|
|
*/
|
|
|
|
if ( ! defined('ABSPATH') ) die();
|
|
?>
|
|
<table class="widefat">
|
|
<thead>
|
|
<tr>
|
|
|
|
<?php $posts_columns = wp_manage_posts_columns(); ?>
|
|
<?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>
|
|
<?php } ?>
|
|
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php
|
|
if ( have_posts() ) {
|
|
post_rows();
|
|
} else {
|
|
?>
|
|
<tr>
|
|
<td colspan="8"><?php _e('No posts found.') ?></td>
|
|
</tr>
|
|
<?php
|
|
} // end if ( have_posts() )
|
|
?>
|
|
</tbody>
|
|
</table>
|