- Timestamp:
- 09/25/2013 05:03:34 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyten/loop-attachment.php
r19599 r25627 1 1 <?php 2 2 /** 3 * The loop that displays an attachment .3 * The loop that displays an attachment 4 4 * 5 5 * The loop displays the posts and the post content. See … … 87 87 ?> 88 88 <p class="attachment"><a href="<?php echo $next_attachment_url; ?>" title="<?php the_title_attribute(); ?>" rel="attachment"><?php 89 /** 90 * Filter the Twenty Ten default attachment width. 91 * 92 * @since Twenty Ten 1.0 93 * 94 * @param int The default attachment width in pixels. Default 900. 95 */ 89 96 $attachment_width = apply_filters( 'twentyten_attachment_size', 900 ); 97 /** 98 * Filter the Twenty Ten default attachment height. 99 * 100 * @since Twenty Ten 1.0 101 * 102 * @param int The default attachment height in pixels. Default 900. 103 */ 90 104 $attachment_height = apply_filters( 'twentyten_attachment_height', 900 ); 91 105 echo wp_get_attachment_image( $post->ID, array( $attachment_width, $attachment_height ) ); // filterable image width with, essentially, no limit for image height.
Note: See TracChangeset
for help on using the changeset viewer.