Make WordPress Core


Ignore:
Timestamp:
10/03/2006 07:15:13 AM (17 years ago)
Author:
ryan
Message:

Uploader improvements from mdawaffe. fixes #3191

File:
1 edited

Legend:

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

    r4272 r4274  
    19741974
    19751975?>
    1976 <p><?php _e('Text linked to file') ?><br />
    1977 <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></p>
    1978 <p><?php _e('Text linked to subpost') ?><br />
    1979 <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></p>
     1976<form id="the-attachment-links">
     1977<table>
     1978    <tr>
     1979        <th scope="row"><?php _e('Text linked to file') ?></th>
     1980        <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>
     1981    </tr>
     1982    <tr>
     1983        <th scope="row"><?php _e('Text linked to subpost') ?></th>
     1984        <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>
     1985    </tr>
    19801986<?php if ( $icon ) : ?>
    1981 <p><?php _e('Thumbnail linked to file') ?><br />
    1982 <textarea rows="1" cols="40" type="text" class="attachmentlinks" readonly="readonly"><a href="<?php echo $post->guid ?>" class="attachmentlink"><?php echo $icon ?></a></textarea></p>
    1983 <p><?php _e('Thumbnail linked to subpost') ?><br />
    1984 <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></p>
     1987    <tr>
     1988        <th scope="row"><?php _e('Thumbnail linked to file') ?></th>
     1989        <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>
     1990    </tr>
     1991    <tr>
     1992        <th scope="row"><?php _e('Thumbnail linked to subpost') ?></th>
     1993        <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>
     1994    </tr>
    19851995<?php endif; ?>
     1996</table>
     1997</form>
    19861998<?php
    19871999}
Note: See TracChangeset for help on using the changeset viewer.