Make WordPress Core


Ignore:
Timestamp:
07/15/2008 03:41:00 AM (16 years ago)
Author:
mdawaffe
Message:

crazyhorse: media library - move actions under title and replace description with tags

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/crazyhorse/wp-admin/edit-attachment-rows.php

    r8338 r8339  
    6666        <td><strong><a href="media.php?action=edit&amp;attachment_id=<?php the_ID(); ?>" title="<?php echo attribute_escape(sprintf(__('Edit "%s"'), $att_title)); ?>"><?php echo $att_title; ?></a></strong><br />
    6767        <?php echo strtoupper(preg_replace('/^.*?\.(\w+)$/', '$1', get_attached_file($post->ID))); ?>
     68        <p>
     69        <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> |
     70        <a href="<?php the_permalink(); ?>"><?php _e('Get permalink'); ?></a> |
     71        <a href="#" class="delete"><?php _e('Delete'); ?></a>
     72        </p>
    6873        <?php do_action('manage_media_media_column', $post->ID); ?>
    6974        </td>
     75        <?php
     76        break;
     77
     78    case 'tags':
     79        ?>
     80        <td><?php
     81        $tags = get_the_tags();
     82        if ( !empty( $tags ) ) {
     83            $out = array();
     84            foreach ( $tags as $c )
     85                $out[] = "<a href='edit.php?tag=$c->slug'> " . wp_specialchars(sanitize_term_field('name', $c->name, $c->term_id, 'post_tag', 'display')) . "</a>";
     86            echo join( ', ', $out );
     87        } else {
     88            _e('No Tags');
     89        }
     90        ?></td>
    7091        <?php
    7192        break;
Note: See TracChangeset for help on using the changeset viewer.