| [ XREF Home ] [ Index ] |
PHP Cross Reference of WordPress TrunkProvided by Yoast |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * The template for displaying posts in the Image Post Format on index and archive pages 4 * 5 * Learn more: http://codex.wordpress.org/Post_Formats 6 * 7 * @package WordPress 8 * @subpackage Twenty_Eleven 9 * @since Twenty Eleven 1.0 10 */ 11 ?> 12 13 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 14 <header class="entry-header"> 15 <hgroup> 16 <h1 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h1> 17 <h2 class="entry-format"><?php _e( 'Image', 'twentyeleven' ); ?></h2> 18 </hgroup> 19 20 <?php if ( comments_open() ) : ?> 21 <div class="comments-link"> 22 <?php comments_popup_link( __( '<span class="leave-reply">Reply</span>', 'twentyeleven' ), __( '1', 'twentyeleven' ), __( '%', 'twentyeleven' ) ); ?> 23 </div> 24 <?php endif; ?> 25 </header><!-- .entry-header --> 26 27 <?php if ( is_search() ) : // Only display Excerpts for Search ?> 28 <div class="entry-summary"> 29 <?php the_excerpt(); ?> 30 </div><!-- .entry-summary --> 31 <?php else : ?> 32 <div class="entry-content"> 33 <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyeleven' ) ); ?> 34 <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( '<span>Pages:</span>', 'twentyeleven' ), 'after' => '</div>' ) ); ?> 35 </div><!-- .entry-content --> 36 <?php endif; ?> 37 38 <footer class="entry-meta"> 39 <?php if ( 'post' == $post->post_type ) : // Hide category and tag text for pages on Search ?> 40 <div class="entry-meta"> 41 <?php 42 printf( __( '<a href="%1$s" rel="bookmark"><time class="entry-date" datetime="%2$s" pubdate>%3$s</time></a> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="%4$s" title="%5$s">%6$s</a></span>', 'twentyeleven' ), 43 get_permalink(), 44 get_the_date( 'c' ), 45 get_the_date(), 46 get_author_posts_url( get_the_author_meta( 'ID' ) ), 47 sprintf( esc_attr__( 'View all posts by %s', 'twentyeleven' ), get_the_author() ), 48 get_the_author() 49 ); 50 ?> 51 </div><!-- .entry-meta --> 52 <div class="entry-meta"> 53 <?php 54 /* translators: used between list items, there is a space after the comma */ 55 $categories_list = get_the_category_list( __( ', ', 'twentyeleven' ) ); 56 if ( $categories_list ): 57 ?> 58 <span class="cat-links"> 59 <?php printf( __( '<span class="%1$s">Posted in</span> %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-cat-links', $categories_list ); ?> 60 </span> 61 <?php endif; // End if categories ?> 62 <?php 63 /* translators: used between list items, there is a space after the comma */ 64 $tags_list = get_the_tag_list( '', __( ', ', 'twentyeleven' ) ); 65 if ( $tags_list ): ?> 66 <span class="tag-links"> 67 <?php printf( __( '<span class="%1$s">Tagged</span> %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list ); ?> 68 </span> 69 <?php endif; // End if $tags_list ?> 70 71 <?php if ( comments_open() ) : ?> 72 <span class="comments-link"><?php comments_popup_link( __( '<span class="leave-reply">Leave a reply</span>', 'twentyeleven' ), __( '<b>1</b> Reply', 'twentyeleven' ), __( '<b>%</b> Replies', 'twentyeleven' ) ); ?></span> 73 <?php endif; // End if comments_open() ?> 74 </div><!-- .entry-meta --> 75 <?php endif; ?> 76 77 <?php edit_post_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?> 78 </footer><!-- #entry-meta --> 79 </article><!-- #post-<?php the_ID(); ?> -->
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Wed Jun 1 08:30:02 2011 |
Cross-referenced by PHPXref 0.7 Provided by Yoast and awesome WordPress Hosting |