equal
deleted
inserted
replaced
57 |
57 |
58 <?php /* How to display posts of the Gallery format. The gallery category is the old way. */ ?> |
58 <?php /* How to display posts of the Gallery format. The gallery category is the old way. */ ?> |
59 |
59 |
60 <?php if ( ( function_exists( 'get_post_format' ) && 'gallery' == get_post_format( $post->ID ) ) || 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 <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> |
61 <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> |
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> |
62 <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2> |
63 |
63 |
64 <div class="entry-meta"> |
64 <div class="entry-meta"> |
65 <?php twentyten_posted_on(); ?> |
65 <?php twentyten_posted_on(); ?> |
66 </div><!-- .entry-meta --> |
66 </div><!-- .entry-meta --> |
67 |
67 |
78 ?> |
78 ?> |
79 <div class="gallery-thumb"> |
79 <div class="gallery-thumb"> |
80 <a class="size-thumbnail" href="<?php the_permalink(); ?>"><?php echo $image_img_tag; ?></a> |
80 <a class="size-thumbnail" href="<?php the_permalink(); ?>"><?php echo $image_img_tag; ?></a> |
81 </div><!-- .gallery-thumb --> |
81 </div><!-- .gallery-thumb --> |
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' ), |
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 'href="' . get_permalink() . '" title="' . sprintf( esc_attr__( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ) . '" rel="bookmark"', |
83 'href="' . get_permalink() . '" title="' . esc_attr( sprintf( __( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ) ) . '" rel="bookmark"', |
84 number_format_i18n( $total_images ) |
84 number_format_i18n( $total_images ) |
85 ); ?></em></p> |
85 ); ?></em></p> |
86 <?php endif; ?> |
86 <?php endif; ?> |
87 <?php the_excerpt(); ?> |
87 <?php the_excerpt(); ?> |
88 <?php endif; ?> |
88 <?php endif; ?> |
126 |
126 |
127 <?php /* How to display all other posts. */ ?> |
127 <?php /* How to display all other posts. */ ?> |
128 |
128 |
129 <?php else : ?> |
129 <?php else : ?> |
130 <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> |
130 <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> |
131 <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> |
131 <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2> |
132 |
132 |
133 <div class="entry-meta"> |
133 <div class="entry-meta"> |
134 <?php twentyten_posted_on(); ?> |
134 <?php twentyten_posted_on(); ?> |
135 </div><!-- .entry-meta --> |
135 </div><!-- .entry-meta --> |
136 |
136 |