Make WordPress Core


Ignore:
Timestamp:
10/07/2006 06:31:39 PM (18 years ago)
Author:
ryan
Message:

Inline uploader styling from mdawaffe. fixes #3212

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-functions.php

    r4325 r4355  
    19701970
    19711971    $icon = get_attachment_icon($post->ID);
    1972 
     1972    $attachment_data = get_post_meta( $id, '_wp_attachment_metadata', true );
     1973    $thumb = isset($attachment_data['thumb']);
    19731974?>
    19741975<form id="the-attachment-links">
    19751976<table>
     1977    <col />
     1978    <col class="widefat" />
    19761979    <tr>
    1977         <th scope="row"><?php _e('Text linked to file') ?></th>
    1978         <td><textarea rows="1" cols="40" type="text" class="attachmentlinks" readonly="readonly"><a href="<?php echo $post->guid ?>" class="attachmentlink"><?php echo basename($post->guid) ?></a></textarea></td>
    1979     </tr>
    1980     <tr>
    1981         <th scope="row"><?php _e('Text linked to subpost') ?></th>
    1982         <td><textarea rows="1" cols="40" type="text" class="attachmentlinks" readonly="readonly"><a href="<?php echo get_attachment_link($post->ID) ?>" rel="attachment" id="<?php echo $post->ID ?>"><?php echo $post->post_title ?></a></textarea></td>
     1980        <th scope="row"><?php _e('URL') ?></th>
     1981        <td><textarea rows="1" cols="40" type="text" class="attachmentlinks" readonly="readonly"><?php echo $post->guid ?></textarea></td>
    19831982    </tr>
    19841983<?php if ( $icon ) : ?>
    19851984    <tr>
    1986         <th scope="row"><?php _e('Thumbnail linked to file') ?></th>
    1987         <td><textarea rows="1" cols="40" type="text" class="attachmentlinks" readonly="readonly"><a href="<?php echo $post->guid ?>" class="attachmentlink"><?php echo $icon ?></a></textarea></td>
     1985        <th scope="row"><?php $thumb ? _e('Thumbnail linked to file') : _e('Image linked to file'); ?></th>
     1986        <td><textarea rows="1" cols="40" type="text" class="attachmentlinks" readonly="readonly"><a href="<?php echo $post->guid; ?>" id="<?php echo $post->ID ?>"><?php echo $icon ?></a></textarea></td>
    19881987    </tr>
    19891988    <tr>
    1990         <th scope="row"><?php _e('Thumbnail linked to subpost') ?></th>
     1989        <th scope="row"><?php $thumb ? _e('Thumbnail linked to page') : _e('Image linked to file'); ?></th>
    19911990        <td><textarea rows="1" cols="40" type="text" class="attachmentlinks" readonly="readonly"><a href="<?php echo get_attachment_link($post->ID) ?>" rel="attachment" id="<?php echo $post->ID ?>"><?php echo $icon ?></a></textarea></td>
     1991    </tr>
     1992<?php else : ?>
     1993    <tr>
     1994        <th scope="row"><?php _e('Link to file') ?></th>
     1995        <td><textarea rows="1" cols="40" type="text" class="attachmentlinks" readonly="readonly"><a href="<?php echo $post->guid ?>" class="attachmentlink"><?php echo basename($post->guid);  ?></a></textarea></td>
     1996    </tr>
     1997    <tr>
     1998        <th scope="row"><?php _e('Link to page') ?></th>
     1999        <td><textarea rows="1" cols="40" type="text" class="attachmentlinks" readonly="readonly"><a href="<?php echo get_attachment_link($post->ID) ?>" rel="attachment" id="<?php echo $post->ID ?>"><?php the_title(); ?></a></textarea></td>
    19922000    </tr>
    19932001<?php endif; ?>
Note: See TracChangeset for help on using the changeset viewer.