[ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * 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 <h2 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2> 16 <h3 class="entry-format"><?php _e( 'Featured', 'twentyeleven' ); ?></h3> 17 </hgroup> 18 <?php else : ?> 19 <h1 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h1> 20 <?php endif; ?> 21 22 <?php if ( 'post' === get_post_type() ) : ?> 23 <div class="entry-meta"> 24 <?php twentyeleven_posted_on(); ?> 25 </div><!-- .entry-meta --> 26 <?php endif; ?> 27 28 <?php if ( comments_open() && ! post_password_required() ) : ?> 29 <div class="comments-link"> 30 <?php comments_popup_link( '<span class="leave-reply">' . __( 'Reply', 'twentyeleven' ) . '</span>', _x( '1', 'comments number', 'twentyeleven' ), _x( '%', 'comments number', 'twentyeleven' ) ); ?> 31 </div> 32 <?php endif; ?> 33 </header><!-- .entry-header --> 34 35 <?php if ( is_search() ) : // Only display excerpts for search. ?> 36 <div class="entry-summary"> 37 <?php the_excerpt(); ?> 38 </div><!-- .entry-summary --> 39 <?php else : ?> 40 <div class="entry-content"> 41 <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyeleven' ) ); ?> 42 <?php 43 wp_link_pages( 44 array( 45 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', 46 'after' => '</div>', 47 ) 48 ); 49 ?> 50 </div><!-- .entry-content --> 51 <?php endif; ?> 52 53 <footer class="entry-meta"> 54 <?php $show_sep = false; ?> 55 56 <?php if ( is_object_in_taxonomy( get_post_type(), 'category' ) ) : // Hide category text when not supported. ?> 57 <?php 58 $categories_list = get_the_category_list( wp_get_list_item_separator() ); 59 60 if ( $categories_list ) : 61 ?> 62 <span class="cat-links"> 63 <?php 64 /* translators: 1: CSS classes, 2: Category list. */ 65 printf( __( '<span class="%1$s">Posted in</span> %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-cat-links', $categories_list ); 66 $show_sep = true; 67 ?> 68 </span> 69 <?php endif; // End if categories. ?> 70 <?php endif; // End if is_object_in_taxonomy( get_post_type(), 'category' ). ?> 71 72 <?php if ( is_object_in_taxonomy( get_post_type(), 'post_tag' ) ) : // Hide tag text when not supported. ?> 73 <?php 74 $tags_list = get_the_tag_list( '', wp_get_list_item_separator() ); 75 76 if ( $tags_list && ! is_wp_error( $tags_list ) ) : 77 if ( $show_sep ) : 78 ?> 79 <span class="sep"> | </span> 80 <?php endif; // End if $show_sep. ?> 81 <span class="tag-links"> 82 <?php 83 /* translators: 1: CSS classes, 2: Tag list. */ 84 printf( __( '<span class="%1$s">Tagged</span> %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list ); 85 $show_sep = true; 86 ?> 87 </span> 88 <?php endif; // End if $tags_list. ?> 89 <?php endif; // End if is_object_in_taxonomy( get_post_type(), 'post_tag' ). ?> 90 91 <?php if ( comments_open() ) : ?> 92 <?php if ( $show_sep ) : ?> 93 <span class="sep"> | </span> 94 <?php endif; // End if $show_sep. ?> 95 <span class="comments-link"><?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentyeleven' ) . '</span>', __( '<b>1</b> Reply', 'twentyeleven' ), __( '<b>%</b> Replies', 'twentyeleven' ) ); ?></span> 96 <?php endif; // End if comments_open(). ?> 97 98 <?php edit_post_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?> 99 </footer><!-- .entry-meta --> 100 </article><!-- #post-<?php the_ID(); ?> -->
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated : Sun Dec 22 08:20:01 2024 | Cross-referenced by PHPXref |