[ Index ] |
PHP Cross Reference of WordPress |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * The template for displaying posts in the Video post format 4 * 5 * @package WordPress 6 * @subpackage Twenty_Fourteen 7 * @since Twenty Fourteen 1.0 8 */ 9 ?> 10 11 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 12 <?php twentyfourteen_post_thumbnail(); ?> 13 14 <header class="entry-header"> 15 <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ), true ) && twentyfourteen_categorized_blog() ) : ?> 16 <div class="entry-meta"> 17 <span class="cat-links"><?php echo get_the_category_list( _x( ', ', 'Used between list items, there is a space after the comma.', 'twentyfourteen' ) ); ?></span> 18 </div><!-- .entry-meta --> 19 <?php 20 endif; 21 22 if ( is_single() ) : 23 the_title( '<h1 class="entry-title">', '</h1>' ); 24 else : 25 the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' ); 26 endif; 27 ?> 28 29 <div class="entry-meta"> 30 <span class="post-format"> 31 <a class="entry-format" href="<?php echo esc_url( get_post_format_link( 'video' ) ); ?>"><?php echo get_post_format_string( 'video' ); ?></a> 32 </span> 33 34 <?php twentyfourteen_posted_on(); ?> 35 36 <?php if ( ! post_password_required() && ( comments_open() || get_comments_number() ) ) : ?> 37 <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyfourteen' ), __( '1 Comment', 'twentyfourteen' ), __( '% Comments', 'twentyfourteen' ) ); ?></span> 38 <?php endif; ?> 39 40 <?php edit_post_link( __( 'Edit', 'twentyfourteen' ), '<span class="edit-link">', '</span>' ); ?> 41 </div><!-- .entry-meta --> 42 </header><!-- .entry-header --> 43 44 <div class="entry-content"> 45 <?php 46 the_content( 47 sprintf( 48 /* translators: %s: Post title. Only visible to screen readers. */ 49 __( 'Continue reading %s <span class="meta-nav">→</span>', 'twentyfourteen' ), 50 the_title( '<span class="screen-reader-text">', '</span>', false ) 51 ) 52 ); 53 54 wp_link_pages( 55 array( 56 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>', 57 'after' => '</div>', 58 'link_before' => '<span>', 59 'link_after' => '</span>', 60 ) 61 ); 62 ?> 63 </div><!-- .entry-content --> 64 65 <?php the_tags( '<footer class="entry-meta"><span class="tag-links">', '', '</span></footer>' ); ?> 66 </article><!-- #post-<?php the_ID(); ?> -->
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Sat Nov 23 01:00:02 2024 | Cross-referenced by PHPXref 0.7.1 |