-</div>
-
-<br class="clear" />
-</div>
-
-<div class="clear"></div>
-
-<?php if ( isset($orphans) ) { ?>
-<table class="widefat" cellspacing="0">
-<thead>
-<tr>
- <th scope="col" class="check-column"><input type="checkbox" /></th>
- <th scope="col"></th>
- <th scope="col"><?php echo _c('Media|media column header'); ?></th>
- <th scope="col"><?php echo _c('Date Added|media column header'); ?></th>
-</tr>
-</thead>
-
-<tfoot>
-<tr>
- <th scope="col" class="check-column"><input type="checkbox" /></th>
- <th scope="col"></th>
- <th scope="col"><?php echo _c('Media|media column header'); ?></th>
- <th scope="col"><?php echo _c('Date Added|media column header'); ?></th>
-</tr>
-</tfoot>
-
-<tbody id="the-list" class="list:post">
-<?php
- if ( $orphans ) {
- foreach ( $orphans as $post ) {
- $class = 'alternate' == $class ? '' : 'alternate';
- $att_title = wp_specialchars( _draft_or_post_title($post->ID) );
-?>
- <tr id='post-<?php echo $post->ID; ?>' class='<?php echo $class; ?>' valign="top">
- <th scope="row" class="check-column"><input type="checkbox" name="media[]" value="<?php echo $post->ID; ?>" /></th>
-
- <td class="media-icon"><?php
- if ( $thumb = wp_get_attachment_image( $post->ID, array(80, 60), true ) ) { ?>
- <a href="media.php?action=edit&attachment_id=<?php echo $post->ID; ?>" title="<?php echo attribute_escape(sprintf(__('Edit "%s"'), $att_title)); ?>"><?php echo $thumb; ?></a>
-<?php } ?></td>
-
- <td><strong><a href="<?php echo get_edit_post_link( $post->ID ); ?>" title="<?php echo attribute_escape(sprintf(__('Edit "%s"'), $att_title)); ?>"><?php echo $att_title; ?></a></strong><br />
- <?php echo strtoupper(preg_replace('/^.*?\.(\w+)$/', '$1', get_attached_file($post->ID))); ?>
-
- <p>
- <?php
- $actions = array();
- if ( current_user_can('edit_post', $post->ID) )
- $actions['edit'] = '<a href="' . get_edit_post_link($post->ID, true) . '">' . __('Edit') . '</a>';
- if ( current_user_can('delete_post', $post->ID) )
- $actions['delete'] = "<a class='submitdelete' href='" . wp_nonce_url("post.php?action=delete&post=$post->ID", 'delete-post_' . $post->ID) . "' onclick=\"if ( confirm('" . js_escape(sprintf( ('draft' == $post->post_status) ? __("You are about to delete this attachment '%s'\n 'Cancel' to stop, 'OK' to delete.") : __("You are about to delete this attachment '%s'\n 'Cancel' to stop, 'OK' to delete."), $post->post_title )) . "') ) { return true;}return false;\">" . __('Delete') . "</a>";
- $actions['view'] = '<a href="' . get_permalink($post->ID) . '" title="' . attribute_escape(sprintf(__('View "%s"'), $title)) . '" rel="permalink">' . __('View') . '</a>';
- if ( current_user_can('edit_post', $post->ID) )
- $actions['attach'] = '<a href="#the-list" onclick="findPosts.open(\'media[]\',\''.$post->ID.'\');return false;">'.__('Attach').'</a>';
- $action_count = count($actions);
- $i = 0;
- foreach ( $actions as $action => $link ) {
- ++$i;
- ( $i == $action_count ) ? $sep = '' : $sep = ' | ';
- echo "<span class='$action'>$link$sep</span>";
- } ?>
- </p></td>
-
-<?php if ( '0000-00-00 00:00:00' == $post->post_date && 'date' == $column_name ) {
- $t_time = $h_time = __('Unpublished');
- } else {
- $t_time = get_the_time(__('Y/m/d g:i:s A'));
- $m_time = $post->post_date;
- $time = get_post_time( 'G', true );
- if ( ( abs($t_diff = time() - $time) ) < 86400 ) {
- if ( $t_diff < 0 )
- $h_time = sprintf( __('%s from now'), human_time_diff( $time ) );
- else
- $h_time = sprintf( __('%s ago'), human_time_diff( $time ) );
- } else {
- $h_time = mysql2date(__('Y/m/d'), $m_time);
- }
- } ?>
- <td><?php echo $h_time ?></td>
- </tr>
-<?php }