Changeset 14541 for trunk/wp-content/themes/twentyten/loop.php
- Timestamp:
- 05/10/2010 07:06:22 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/wp-content/themes/twentyten/loop.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/themes/twentyten/loop.php
r14501 r14541 42 42 43 43 <div class="entry-meta"> 44 <?php 45 printf( __( '<span class="meta-prep meta-prep-author">Posted on </span><a href="%1$s" title="%2$s" rel="bookmark"><span class="entry-date">%3$s</span></a> <span class="meta-sep"> by </span> <span class="author vcard"><a class="url fn n" href="%4$s" title="%5$s">%6$s</a></span>', 'twentyten' ), 46 get_permalink(), 47 esc_attr( get_the_time() ), 48 get_the_date(), 49 get_author_posts_url( get_the_author_meta( 'ID' ) ), 50 sprintf( esc_attr__( 'View all posts by %s', 'twentyten' ), get_the_author() ), 51 get_the_author() 52 ); 53 ?> 44 <?php echo twentyten_posted_on(); ?> 54 45 </div><!-- .entry-meta --> 55 46 56 47 <div class="entry-content"> 57 48 <div class="gallery-thumb"> 58 <a class="size-thumbnail" href="<?php the_permalink(); ?>"><?php 59 $images = get_children( array( 'post_parent' => $post->ID, 'post_type' => 'attachment', 'post_mime_type' => 'image', 'orderby' => 'menu_order', 'order' => 'ASC', 'numberposts' => 999 ) ); 60 $total_images = count( $images ); 61 $image = array_shift( $images ); 62 echo wp_get_attachment_image( $image->ID, 'thumbnail' ); 63 ?></a> 49 <?php 50 $images = get_children( array( 'post_parent' => $post->ID, 'post_type' => 'attachment', 'post_mime_type' => 'image', 'orderby' => 'menu_order', 'order' => 'ASC', 'numberposts' => 999 ) ); 51 $total_images = count( $images ); 52 $image = array_shift( $images ); 53 $image_img_tag = wp_get_attachment_image( $image->ID, 'thumbnail' ); 54 ?> 55 <a class="size-thumbnail" href="<?php the_permalink(); ?>"><?php echo $image_img_tag; ?></a> 64 56 </div> 65 57 <p><em><?php printf( __( 'This gallery contains <a %1$s>%2$s photos</a>.', 'twentyten' ), … … 73 65 <div class="entry-utility"> 74 66 <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> 75 <span class="meta-sep"> |</span>67 <span class="meta-sep">|</span> 76 68 <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ); ?></span> 77 69 <?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="meta-sep">|</span> <span class="edit-link">', '</span>' ); ?> … … 93 85 94 86 <div class="entry-utility"> 95 <?php 96 printf( __( '<span class="meta-prep meta-prep-author">Posted on </span><a href="%1$s" title="%2$s" rel="bookmark"><span class="entry-date">%3$s</span></a> <span class="meta-sep"> by </span> <span class="author vcard"><a class="url fn n" href="%4$s" title="%5$s">%6$s</a></span>', 'twentyten' ), 97 get_permalink(), 98 esc_attr( get_the_time() ), 99 get_the_date(), 100 get_author_posts_url( get_the_author_meta( 'ID' ) ), 101 sprintf( esc_attr__( 'View all posts by %s', 'twentyten' ), get_the_author() ), 102 get_the_author() 103 ); 104 ?> 105 <span class="meta-sep"> | </span> 87 <?php echo twentyten_posted_on(); ?> 88 <span class="meta-sep">|</span> 106 89 <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ); ?></span> 107 90 <?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="meta-sep">|</span> <span class="edit-link">', '</span>' ); ?> … … 115 98 116 99 <div class="entry-meta"> 117 <?php 118 printf( __( '<span class="meta-prep meta-prep-author">Posted on </span><a href="%1$s" title="%2$s" rel="bookmark"><span class="entry-date">%3$s</span></a> <span class="meta-sep"> by </span> <span class="author vcard"><a class="url fn n" href="%4$s" title="%5$s">%6$s</a></span>', 'twentyten' ), 119 get_permalink(), 120 esc_attr( get_the_time() ), 121 get_the_date(), 122 get_author_posts_url( get_the_author_meta( 'ID' ) ), 123 sprintf( esc_attr__( 'View all posts by %s', 'twentyten' ), get_the_author() ), 124 get_the_author() 125 ); 126 ?> 100 <?php echo twentyten_posted_on(); ?> 127 101 </div><!-- .entry-meta --> 128 102 … … 139 113 140 114 <div class="entry-utility"> 141 <span class="cat-links"><span class="entry-utility-prep entry-utility-prep-cat-links"><?php _e( 'Posted in ', 'twentyten' ); ?></span><?php the_category( ', ' ); ?></span> 142 <span class="meta-sep"> | </span> 143 <?php the_tags( '<span class="tag-links"><span class="entry-utility-prep entry-utility-prep-tag-links">' . __( 'Tagged ', 'twentyten' ) . '</span>', ', ', '<span class="meta-sep"> | </span>' ); ?> 115 <span class="cat-links"> 116 <span class="entry-utility-prep entry-utility-prep-cat-links"> 117 <?php 118 printf( __('Posted in %s', 'twentyten' ), '</span> '.get_the_category_list( ', ' ) ); 119 ?> 120 </span> 121 <span class="meta-sep">|</span> 122 <?php the_tags( '<span class="tag-links"><span class="entry-utility-prep entry-utility-prep-tag-links">' . __( 'Tagged ', 'twentyten' ) . '</span>', ', ', '<span class="meta-sep">|</span>' ); ?> 144 123 <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ); ?></span> 145 124 <?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="meta-sep">|</span> <span class="edit-link">', '</span>' ); ?>
Note: See TracChangeset
for help on using the changeset viewer.