Changeset 4355 for trunk/wp-admin/admin-functions.php
- Timestamp:
- 10/07/2006 06:31:39 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin-functions.php
r4325 r4355 1970 1970 1971 1971 $icon = get_attachment_icon($post->ID); 1972 1972 $attachment_data = get_post_meta( $id, '_wp_attachment_metadata', true ); 1973 $thumb = isset($attachment_data['thumb']); 1973 1974 ?> 1974 1975 <form id="the-attachment-links"> 1975 1976 <table> 1977 <col /> 1978 <col class="widefat" /> 1976 1979 <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> 1983 1982 </tr> 1984 1983 <?php if ( $icon ) : ?> 1985 1984 <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> 1988 1987 </tr> 1989 1988 <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> 1991 1990 <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> 1992 2000 </tr> 1993 2001 <?php endif; ?>
Note: See TracChangeset
for help on using the changeset viewer.