Changeset 8682 for trunk/wp-admin/edit-attachment-rows.php
- Timestamp:
- 08/20/2008 04:06:36 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-attachment-rows.php
r8656 r8682 51 51 case 'cb': 52 52 ?> 53 <th scope="row" class="check-column"><input type="checkbox" name=" delete[]" value="<?php the_ID(); ?>" /></th>53 <th scope="row" class="check-column"><input type="checkbox" name="media[]" value="<?php the_ID(); ?>" /></th> 54 54 <?php 55 55 break; … … 57 57 case 'icon': 58 58 ?> 59 <td class="media-icon"><?php echo wp_get_attachment_link($post->ID, array(80, 60), false, true); ?></td> 59 <td class="media-icon"><?php 60 if ( $thumb = wp_get_attachment_image( $post->ID, array(80, 60), true ) ) { 61 ?> 62 63 <a href="media.php?action=edit&attachment_id=<?php the_ID(); ?>" title="<?php echo attribute_escape(sprintf(__('Edit "%s"'), $att_title)); ?>"> 64 <?php echo $thumb; ?> 65 </a> 66 67 <?php } 68 ?></td> 60 69 <?php 61 70 // TODO … … 66 75 <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 /> 67 76 <?php echo strtoupper(preg_replace('/^.*?\.(\w+)$/', '$1', get_attached_file($post->ID))); ?> 77 <p> 78 <a href="media.php?action=edit&attachment_id=<?php the_ID(); ?>" title="<?php echo attribute_escape(sprintf(__('Edit "%s"'), $att_title)); ?>"><?php _e('Edit'); ?></a> | 79 <a href="<?php the_permalink(); ?>"><?php _e('Get permalink'); ?></a> | 80 <a href="#" class="delete"><?php _e('Delete'); ?></a> 81 </p> 68 82 <?php do_action('manage_media_media_column', $post->ID); ?> 69 83 </td> 84 <?php 85 break; 86 87 case 'tags': 88 ?> 89 <td><?php 90 $tags = get_the_tags(); 91 if ( !empty( $tags ) ) { 92 $out = array(); 93 foreach ( $tags as $c ) 94 $out[] = "<a href='edit.php?tag=$c->slug'> " . wp_specialchars(sanitize_term_field('name', $c->name, $c->term_id, 'post_tag', 'display')) . "</a>"; 95 echo join( ', ', $out ); 96 } else { 97 _e('No Tags'); 98 } 99 ?></td> 70 100 <?php 71 101 break; … … 107 137 } 108 138 ?> 109 <td><strong><a href="<?php echo get_edit_post_link( $post->post_parent ); ?>"><?php echo $title ?></a></strong> </td>139 <td><strong><a href="<?php echo get_edit_post_link( $post->post_parent ); ?>"><?php echo $title ?></a></strong>, <?php echo get_the_time(__('Y/m/d')); ?></td> 110 140 <?php 111 141 } else { … … 133 163 break; 134 164 135 case ' location':165 case 'actions': 136 166 ?> 137 <td><a href="<?php the_permalink(); ?>"><?php _e('Permalink'); ?></a></td> 167 <td> 168 <a href="media.php?action=edit&attachment_id=<?php the_ID(); ?>" title="<?php echo attribute_escape(sprintf(__('Edit "%s"'), $att_title)); ?>"><?php _e('Edit'); ?></a> | 169 <a href="<?php the_permalink(); ?>"><?php _e('Get permalink'); ?></a> 170 </td> 138 171 <?php 139 172 break;
Note: See TracChangeset
for help on using the changeset viewer.