Changeset 23826 for trunk/wp-content/themes/twentyten/loop.php
- Timestamp:
- 03/27/2013 08:37:34 PM (13 years ago)
- File:
-
- 1 edited
-
trunk/wp-content/themes/twentyten/loop.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/themes/twentyten/loop.php
r23793 r23826 71 71 <?php else : ?> 72 72 <?php 73 $images = get_children( array( 'post_parent' => $post->ID, 'post_type' => 'attachment', 'post_mime_type' => 'image', 'orderby' => 'menu_order', 'order' => 'ASC', 'numberposts' => 999 ));73 $images = twentyten_get_gallery_images(); 74 74 if ( $images ) : 75 75 $total_images = count( $images ); 76 76 $image = array_shift( $images ); 77 $image_img_tag = wp_get_attachment_image( $image->ID, 'thumbnail' );78 77 ?> 79 78 <div class="gallery-thumb"> 80 <a class="size-thumbnail" href="<?php the_permalink(); ?>"><?php echo $image_img_tag; ?></a>79 <a class="size-thumbnail" href="<?php the_permalink(); ?>"><?php echo wp_get_attachment_image( $image, 'thumbnail' ); ?></a> 81 80 </div><!-- .gallery-thumb --> 82 81 <p><em><?php printf( _n( 'This gallery contains <a %1$s>%2$s photo</a>.', 'This gallery contains <a %1$s>%2$s photos</a>.', $total_images, 'twentyten' ), … … 84 83 number_format_i18n( $total_images ) 85 84 ); ?></em></p> 86 <?php endif; ?>85 <?php endif; // end twentyten_get_gallery_images() check ?> 87 86 <?php the_excerpt(); ?> 88 87 <?php endif; ?>
Note: See TracChangeset
for help on using the changeset viewer.