Show
Ignore:
Timestamp:
08/20/08 04:06:36 (3 months ago)
Author:
ryan
Message:

Merge crazyhorse management pages. see #7552

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-admin/edit-attachment-rows.php

    r8656 r8682  
    5151    case 'cb': 
    5252        ?> 
    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> 
    5454        <?php 
    5555        break; 
     
    5757    case 'icon': 
    5858        ?> 
    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&amp;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> 
    6069        <?php 
    6170        // TODO 
     
    6675        <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 /> 
    6776        <?php echo strtoupper(preg_replace('/^.*?\.(\w+)$/', '$1', get_attached_file($post->ID))); ?> 
     77        <p> 
     78        <a href="media.php?action=edit&amp;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> 
    6882        <?php do_action('manage_media_media_column', $post->ID); ?> 
    6983        </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> 
    70100        <?php 
    71101        break; 
     
    107137            } 
    108138            ?> 
    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> 
    110140            <?php 
    111141        } else { 
     
    133163        break; 
    134164 
    135     case 'location': 
     165    case 'actions': 
    136166        ?> 
    137         <td><a href="<?php the_permalink(); ?>"><?php _e('Permalink'); ?></a></td> 
     167        <td> 
     168        <a href="media.php?action=edit&amp;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> 
    138171        <?php 
    139172        break;