[ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * Template for displaying posts in the Image Post Format 4 * 5 * Used on index and archive pages. 6 * 7 * @link https://developer.wordpress.org/advanced-administration/wordpress/post-formats/ 8 * 9 * @package WordPress 10 * @subpackage Twenty_Eleven 11 * @since Twenty Eleven 1.0 12 */ 13 ?> 14 <article id="post-<?php the_ID(); ?>" <?php post_class( 'indexed' ); ?>> 15 <header class="entry-header"> 16 <hgroup> 17 <h2 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2> 18 <h3 class="entry-format"><?php _e( 'Image', 'twentyeleven' ); ?></h3> 19 </hgroup> 20 21 <?php if ( comments_open() && ! post_password_required() ) : ?> 22 <div class="comments-link"> 23 <?php comments_popup_link( '<span class="leave-reply">' . __( 'Reply', 'twentyeleven' ) . '</span>', _x( '1', 'comments number', 'twentyeleven' ), _x( '%', 'comments number', 'twentyeleven' ) ); ?> 24 </div> 25 <?php endif; ?> 26 </header><!-- .entry-header --> 27 28 <div class="entry-content"> 29 <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyeleven' ) ); ?> 30 <?php 31 wp_link_pages( 32 array( 33 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', 34 'after' => '</div>', 35 ) 36 ); 37 ?> 38 </div><!-- .entry-content --> 39 40 <footer class="entry-meta"> 41 <div class="entry-meta"> 42 <?php 43 printf( 44 /* translators: 1: The permalink, 2: Date and time, 3: Date and time, 4: Author link, 5: Author link title, 6: Author display name. */ 45 __( '<a href="%1$s" rel="bookmark"><time class="entry-date" datetime="%2$s">%3$s</time></a><span class="by-author"> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="%4$s" title="%5$s" rel="author">%6$s</a></span></span>', 'twentyeleven' ), 46 esc_url( get_permalink() ), 47 get_the_date( 'c' ), 48 get_the_date(), 49 esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), 50 /* translators: %s: Author display name. */ 51 esc_attr( sprintf( __( 'View all posts by %s', 'twentyeleven' ), get_the_author() ) ), 52 get_the_author() 53 ); 54 ?> 55 </div><!-- .entry-meta --> 56 <div class="entry-meta"> 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 ?> 67 </span> 68 <?php endif; // End if categories. ?> 69 70 <?php 71 $tags_list = get_the_tag_list( '', wp_get_list_item_separator() ); 72 73 if ( $tags_list && ! is_wp_error( $tags_list ) ) : 74 ?> 75 <span class="tag-links"> 76 <?php 77 /* translators: 1: CSS classes, 2: Tag list. */ 78 printf( __( '<span class="%1$s">Tagged</span> %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list ); 79 ?> 80 </span> 81 <?php endif; // End if $tags_list. ?> 82 83 <?php if ( comments_open() ) : ?> 84 <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> 85 <?php endif; // End if comments_open(). ?> 86 </div><!-- .entry-meta --> 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 : Thu Nov 21 08:20:01 2024 | Cross-referenced by PHPXref |