Changes from branches/3.0/wp-content/themes/twentyten/loop.php at r15391 to trunk/wp-content/themes/twentyten/loop.php at r17469
- File:
-
- 1 edited
-
trunk/wp-content/themes/twentyten/loop.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/themes/twentyten/loop.php
r15391 r17469 56 56 <?php while ( have_posts() ) : the_post(); ?> 57 57 58 <?php /* How to display posts in the Gallery category. */ ?>58 <?php /* How to display posts of the Gallery format. The gallery category is the old way. */ ?> 59 59 60 <?php if ( in_category( _x('gallery', 'gallery category slug', 'twentyten') ) ) : ?>60 <?php if ( ( function_exists( 'get_post_format' ) && 'gallery' == get_post_format( $post->ID ) ) || in_category( _x( 'gallery', 'gallery category slug', 'twentyten' ) ) ) : ?> 61 61 <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 62 62 <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2> … … 69 69 <?php if ( post_password_required() ) : ?> 70 70 <?php the_content(); ?> 71 <?php else : ?> 72 <?php 71 <?php else : ?> 72 <?php 73 73 $images = get_children( array( 'post_parent' => $post->ID, 'post_type' => 'attachment', 'post_mime_type' => 'image', 'orderby' => 'menu_order', 'order' => 'ASC', 'numberposts' => 999 ) ); 74 74 if ( $images ) : … … 80 80 <a class="size-thumbnail" href="<?php the_permalink(); ?>"><?php echo $image_img_tag; ?></a> 81 81 </div><!-- .gallery-thumb --> 82 <p><em><?php printf( _ _( 'This gallery contains <a %1$s>%2$s photos</a>.', 'twentyten' ),82 <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' ), 83 83 'href="' . get_permalink() . '" title="' . sprintf( esc_attr__( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ) . '" rel="bookmark"', 84 $total_images84 number_format_i18n( $total_images ) 85 85 ); ?></em></p> 86 86 <?php endif; ?> … … 90 90 91 91 <div class="entry-utility"> 92 <a href="<?php echo get_term_link( _x('gallery', 'gallery category slug', 'twentyten'), 'category' ); ?>" title="<?php esc_attr_e( 'View posts in the Gallery category', 'twentyten' ); ?>"><?php _e( 'More Galleries', 'twentyten' ); ?></a> 92 <?php if ( function_exists( 'get_post_format' ) && 'gallery' == get_post_format( $post->ID ) ) : ?> 93 <a href="<?php echo get_post_format_link( 'gallery' ); ?>" title="<?php esc_attr_e( 'View Galleries', 'twentyten' ); ?>"><?php _e( 'More Galleries', 'twentyten' ); ?></a> 93 94 <span class="meta-sep">|</span> 95 <?php elseif ( in_category( _x( 'gallery', 'gallery category slug', 'twentyten' ) ) ) : ?> 96 <a href="<?php echo get_term_link( _x( 'gallery', 'gallery category slug', 'twentyten' ), 'category' ); ?>" title="<?php esc_attr_e( 'View posts in the Gallery category', 'twentyten' ); ?>"><?php _e( 'More Galleries', 'twentyten' ); ?></a> 97 <span class="meta-sep">|</span> 98 <?php endif; ?> 94 99 <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ); ?></span> 95 100 <?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="meta-sep">|</span> <span class="edit-link">', '</span>' ); ?> … … 97 102 </div><!-- #post-## --> 98 103 99 <?php /* How to display posts in the asides category*/ ?>104 <?php /* How to display posts of the Aside format. The asides category is the old way. */ ?> 100 105 101 <?php elseif ( in_category( _x('asides', 'asides category slug', 'twentyten') )) : ?>106 <?php elseif ( ( function_exists( 'get_post_format' ) && 'aside' == get_post_format( $post->ID ) ) || in_category( _x( 'asides', 'asides category slug', 'twentyten' ) ) ) : ?> 102 107 <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 103 108
Note: See TracChangeset
for help on using the changeset viewer.