| [ XREF Home ] [ Index ] |
PHP Cross Reference of WordPress TrunkProvided by Yoast |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * The default template for displaying content 4 * 5 * @package WordPress 6 * @subpackage Twenty_Eleven 7 * @since Twenty Eleven 1.0 8 */ 9 ?> 10 11 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 12 <header class="entry-header"> 13 <?php if ( is_sticky() ) : ?> 14 <hgroup> 15 <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> 16 <h2 class="entry-format"><?php _e( 'Featured', 'twentyeleven' ); ?></h2> 17 </hgroup> 18 <?php else : ?> 19 <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> 20 <?php endif; ?> 21 22 <?php if ( 'post' == $post->post_type ) : ?> 23 <div class="entry-meta"> 24 <?php 25 printf( __( '<span class="sep">Posted on </span><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' ), 26 get_permalink(), 27 get_the_date( 'c' ), 28 get_the_date(), 29 get_author_posts_url( get_the_author_meta( 'ID' ) ), 30 sprintf( esc_attr__( 'View all posts by %s', 'twentyeleven' ), get_the_author() ), 31 get_the_author() 32 ); 33 ?> 34 </div><!-- .entry-meta --> 35 <?php endif; ?> 36 37 <?php if ( comments_open() ) : ?> 38 <div class="comments-link"> 39 <?php comments_popup_link( __( '<span class="leave-reply">Reply</span>', 'twentyeleven' ), __( '1', 'twentyeleven' ), __( '%', 'twentyeleven' ) ); ?> 40 </div> 41 <?php endif; ?> 42 </header><!-- .entry-header --> 43 44 <?php if ( is_search() ) : // Only display Excerpts for Search ?> 45 <div class="entry-summary"> 46 <?php the_excerpt(); ?> 47 </div><!-- .entry-summary --> 48 <?php else : ?> 49 <div class="entry-content"> 50 <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyeleven' ) ); ?> 51 <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( '<span>Pages:</span>', 'twentyeleven' ), 'after' => '</div>' ) ); ?> 52 </div><!-- .entry-content --> 53 <?php endif; ?> 54 55 <footer class="entry-meta"> 56 <?php if ( 'post' == $post->post_type ) : // Hide category and tag text for pages on Search ?> 57 <?php 58 /* translators: used between list items, there is a space after the comma */ 59 $categories_list = get_the_category_list( __( ', ', 'twentyeleven' ) ); 60 if ( $categories_list ): 61 ?> 62 <span class="cat-links"> 63 <?php printf( __( '<span class="%1$s">Posted in</span> %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-cat-links', $categories_list ); 64 $show_sep = true; ?> 65 </span> 66 <?php endif; // End if categories ?> 67 <?php 68 /* translators: used between list items, there is a space after the comma */ 69 $tags_list = get_the_tag_list( '', __( ', ', 'twentyeleven' ) ); 70 if ( $tags_list ): 71 if ( $show_sep ) : ?> 72 <span class="sep"> | </span> 73 <?php endif; // End if $show_sep ?> 74 <span class="tag-links"> 75 <?php printf( __( '<span class="%1$s">Tagged</span> %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list ); 76 $show_sep = true; ?> 77 </span> 78 <?php endif; // End if $tags_list ?> 79 <?php endif; // End if 'post' == $post->post_type ?> 80 81 <?php if ( comments_open() ) : ?> 82 <?php if ( $show_sep ) : ?> 83 <span class="sep"> | </span> 84 <?php endif; // End if $show_sep ?> 85 <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> 86 <?php endif; // End if comments_open() ?> 87 88 <?php edit_post_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?> 89 </footer><!-- #entry-meta --> 90 </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 |