Ticket #24877: 24877.1.diff
File 24877.1.diff, 27.3 KB (added by , 11 years ago) |
---|
-
wp-content/themes/twentyfourteen/content-aside.php
1 <?php 2 /** 3 * The template for displaying posts in the Aside post format. 4 * 5 * @package WordPress 6 * @subpackage Twenty_Fourteen 7 */ 8 ?> 9 10 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 11 <header class="entry-header"> 12 <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) && twentyfourteen_categorized_blog() ) : ?> 13 <div class="entry-meta"> 14 <span class="cat-links"><?php echo get_the_category_list( _x( ', ', 'Used between list items, there is a space after the comma.', 'twentyfourteen' ) ); ?></span> 15 </div><!-- .entry-meta --> 16 <?php endif; ?> 17 18 <div class="entry-meta"> 19 <span class="post-format"> 20 <a class="entry-format" href="<?php echo esc_url( get_post_format_link( 'aside' ) ); ?>" title="<?php echo esc_attr( sprintf( __( 'All %s posts', 'twentyfourteen' ), get_post_format_string( 'aside' ) ) ); ?>"><?php echo get_post_format_string( 'aside' ); ?></a> 21 </span> 22 23 <?php twentyfourteen_posted_on(); ?> 24 25 <?php if ( ! post_password_required() && ( comments_open() || get_comments_number() ) ) : ?> 26 <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyfourteen' ), __( '1 Comment', 'twentyfourteen' ), __( '% Comments', 'twentyfourteen' ) ); ?></span> 27 <?php endif; ?> 28 29 <?php edit_post_link( __( 'Edit', 'twentyfourteen' ), '<span class="edit-link">', '</span>' ); ?> 30 </div><!-- .entry-meta --> 31 </header><!-- .entry-header --> 32 33 <div class="entry-content"> 34 <?php 35 the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyfourteen' ) ); 36 wp_link_pages( array( 37 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>', 38 'after' => '</div>', 39 'link_before' => '<span>', 40 'link_after' => '</span>', 41 ) ); 42 ?> 43 </div><!-- .entry-content --> 44 45 <footer class="entry-meta"> 46 <div class="entry-meta"> 47 <?php 48 if ( is_single() ) : 49 the_title( '<h1 class="entry-title">', '</h1>' ); 50 else : 51 the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' ); 52 endif; 53 ?> 54 </div> 55 56 <?php if ( has_tag() ) : ?> 57 <span class="tag-links"><?php echo get_the_tag_list(); ?></span> 58 <?php endif; ?> 59 </footer><!-- .entry-meta --> 60 </article><!-- #post-## --> -
wp-content/themes/twentyfourteen/archive.php
47 47 while ( have_posts() ) : 48 48 the_post(); 49 49 50 twentyfourteen_get_template_part();50 get_template_part( 'content', get_post_format() ); 51 51 endwhile; 52 52 twentyfourteen_paging_nav(); 53 53 -
wp-content/themes/twentyfourteen/content.php
18 18 </div> 19 19 <?php endif; ?> 20 20 21 < h1 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h1>21 <?php the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' ); ?> 22 22 23 23 <div class="entry-meta"> 24 <?php if ( has_post_format( 'gallery' ) ) : ?>25 <span class="post-format">26 <a class="entry-format" href="<?php echo esc_url( get_post_format_link( 'gallery' ) ); ?>" title="<?php echo esc_attr( sprintf( __( 'All %s posts', 'twentyfourteen' ), get_post_format_string( 'gallery' ) ) ); ?>"><?php echo get_post_format_string( 'gallery' ); ?></a>27 </span>28 24 <?php 29 endif;30 31 25 if ( 'post' == get_post_type() ) 32 26 twentyfourteen_posted_on(); 33 27 -
wp-content/themes/twentyfourteen/content-post-format.php
1 <?php2 /**3 * @package WordPress4 * @subpackage Twenty_Fourteen5 */6 ?>7 8 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>9 <?php10 if ( has_post_format( 'gallery' ) ) :11 $images = get_children( array( 'post_parent' => get_the_ID(), 'post_type' => 'attachment', 'post_mime_type' => 'image', 'orderby' => 'menu_order', 'order' => 'ASC' ) );12 if ( $images ) :13 $image = array_shift( $images );14 ?>15 <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentyfourteen' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="<?php the_ID(); ?>" class="attachment-featured-thumbnail">16 <?php echo wp_get_attachment_image( $image->ID, 'featured-thumbnail-large' ); ?>17 </a>18 <?php19 endif;20 endif;21 ?>22 23 <header class="entry-header">24 <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) && twentyfourteen_categorized_blog() ) : ?>25 <div class="entry-meta">26 <span class="cat-links"><?php echo get_the_category_list( _x( ', ', 'Used between list items, there is a space after the comma.', 'twentyfourteen' ) ); ?></span>27 </div><!-- .entry-meta -->28 <?php endif; ?>29 30 <?php the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' ); ?>31 32 <div class="entry-meta">33 <span class="post-format">34 <a class="entry-format" href="<?php echo esc_url( get_post_format_link( get_post_format() ) ); ?>" title="<?php echo esc_attr( sprintf( __( 'All %s posts', 'twentyfourteen' ), get_post_format_string( get_post_format() ) ) ); ?>"><?php echo get_post_format_string( get_post_format() ); ?></a>35 </span>36 37 <?php38 if ( 'post' == get_post_type() )39 twentyfourteen_posted_on();40 41 if ( ! post_password_required() && ( comments_open() || '0' != get_comments_number() ) ) :42 ?>43 <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyfourteen' ), __( '1 Comment', 'twentyfourteen' ), __( '% Comments', 'twentyfourteen' ) ); ?></span>44 <?php endif; ?>45 46 <?php edit_post_link( __( 'Edit', 'twentyfourteen' ), '<span class="edit-link">', '</span>' ); ?>47 </div><!-- .entry-meta -->48 </header><!-- .entry-header -->49 50 <div class="entry-content">51 <?php52 the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyfourteen' ) );53 wp_link_pages( array(54 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>',55 'after' => '</div>',56 'link_before' => '<span>',57 'link_after' => '</span>',58 ) );59 ?>60 </div><!-- .entry-content -->61 62 <footer class="entry-meta">63 <?php if ( has_post_format( array( 'quote', 'aside' ) ) ) : ?>64 <div class="entry-meta">65 <?php the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' ); ?>66 </div>67 <?php endif; ?>68 69 <?php if ( has_tag() ) : ?>70 <span class="tag-links"><?php echo get_the_tag_list(); ?></span>71 <?php endif; ?>72 </footer><!-- .entry-meta -->73 </article><!-- #post-## --> -
wp-content/themes/twentyfourteen/content-quote.php
1 <?php 2 /** 3 * The template for displaying posts in the Quote post format. 4 * 5 * @package WordPress 6 * @subpackage Twenty_Fourteen 7 */ 8 ?> 9 10 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 11 <header class="entry-header"> 12 <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) && twentyfourteen_categorized_blog() ) : ?> 13 <div class="entry-meta"> 14 <span class="cat-links"><?php echo get_the_category_list( _x( ', ', 'Used between list items, there is a space after the comma.', 'twentyfourteen' ) ); ?></span> 15 </div><!-- .entry-meta --> 16 <?php endif; ?> 17 18 <div class="entry-meta"> 19 <span class="post-format"> 20 <a class="entry-format" href="<?php echo esc_url( get_post_format_link( 'quote' ) ); ?>" title="<?php echo esc_attr( sprintf( __( 'All %s posts', 'twentyfourteen' ), get_post_format_string( 'quote' ) ) ); ?>"><?php echo get_post_format_string( 'quote' ); ?></a> 21 </span> 22 23 <?php twentyfourteen_posted_on(); ?> 24 25 <?php if ( ! post_password_required() && ( comments_open() || get_comments_number() ) ) : ?> 26 <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyfourteen' ), __( '1 Comment', 'twentyfourteen' ), __( '% Comments', 'twentyfourteen' ) ); ?></span> 27 <?php endif; ?> 28 29 <?php edit_post_link( __( 'Edit', 'twentyfourteen' ), '<span class="edit-link">', '</span>' ); ?> 30 </div><!-- .entry-meta --> 31 </header><!-- .entry-header --> 32 33 <div class="entry-content"> 34 <?php 35 the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyfourteen' ) ); 36 wp_link_pages( array( 37 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>', 38 'after' => '</div>', 39 'link_before' => '<span>', 40 'link_after' => '</span>', 41 ) ); 42 ?> 43 </div><!-- .entry-content --> 44 45 <footer class="entry-meta"> 46 <div class="entry-meta"> 47 <?php 48 if ( is_single() ) : 49 the_title( '<h1 class="entry-title">', '</h1>' ); 50 else : 51 the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' ); 52 endif; 53 ?> 54 </div> 55 56 <?php if ( has_tag() ) : ?> 57 <span class="tag-links"><?php echo get_the_tag_list(); ?></span> 58 <?php endif; ?> 59 </footer><!-- .entry-meta --> 60 </article><!-- #post-## --> -
wp-content/themes/twentyfourteen/inc/template-tags.php
196 196 } 197 197 add_action( 'edit_category', 'twentyfourteen_category_transient_flusher' ); 198 198 add_action( 'save_post', 'twentyfourteen_category_transient_flusher' ); 199 200 /**201 * Include the Post-Format-specific template for the content.202 * This is called in index.php and single.php203 */204 function twentyfourteen_get_template_part() {205 if ( has_post_format( array( 'aside', 'quote', 'link', 'video', 'image' ) ) )206 get_template_part( 'content', 'post-format' );207 else208 get_template_part( 'content', get_post_format() );209 } -
wp-content/themes/twentyfourteen/content-single.php
1 <?php2 /**3 * @package WordPress4 * @subpackage Twenty_Fourteen5 */6 ?>7 8 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>9 <?php if ( has_post_thumbnail() && ! has_post_format( array( 'video', 'image', 'aside', 'link', 'quote' ) ) ) : ?>10 <div class="attachment-featured-thumbnail">11 <?php the_post_thumbnail( 'featured-thumbnail-large' ); ?>12 </div>13 <?php endif; ?>14 15 <header class="entry-header">16 <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) && twentyfourteen_categorized_blog() ) : ?>17 <div class="entry-meta">18 <span class="cat-links"><?php echo get_the_category_list( _x( ', ', 'Used between list items, there is a space after the comma.', 'twentyfourteen' ) ); ?></span>19 </div><!-- .entry-meta -->20 <?php21 endif;22 23 if ( ! has_post_format( array( 'status', 'chat', 'aside', 'link', 'quote', 'audio' ) ) ) :24 the_title( '<h1 class="entry-title">', '</h1>' );25 endif;26 ?>27 28 <div class="entry-meta">29 <?php if ( has_post_format( array( 'status', 'chat', 'aside', 'link', 'quote', 'audio' ) ) ) : ?>30 <span class="post-format">31 <a class="entry-format" href="<?php echo esc_url( get_post_format_link( get_post_format() ) ); ?>" title="<?php echo esc_attr( sprintf( __( 'All %s posts', 'twentyfourteen' ), get_post_format_string( get_post_format() ) ) ); ?>"><?php echo get_post_format_string( get_post_format() ); ?></a>32 </span>33 <?php endif; ?>34 35 <?php twentyfourteen_posted_on(); ?>36 37 <?php if ( ! post_password_required() && ( comments_open() || get_comments_number() ) ) : ?>38 <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyfourteen' ), __( '1 Comment', 'twentyfourteen' ), __( '% Comments', 'twentyfourteen' ) ); ?></span>39 <?php endif; ?>40 41 <?php edit_post_link( __( 'Edit', 'twentyfourteen' ), '<span class="edit-link">', '</span>' ); ?>42 </div><!-- .entry-meta -->43 </header><!-- .entry-header -->44 45 <div class="entry-content">46 <?php47 the_content();48 wp_link_pages( array(49 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>',50 'after' => '</div>',51 'link_before' => '<span>',52 'link_after' => '</span>',53 ) );54 ?>55 </div><!-- .entry-content -->56 57 <footer class="entry-meta">58 <?php if ( has_post_format( array( 'quote', 'aside' ) ) ) : ?>59 <div class="entry-meta">60 <?php the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' ); ?>61 </div><!-- .entry-meta -->62 <?php endif; ?>63 64 <?php if ( has_tag() ) : ?>65 <span class="tag-links">66 <?php echo get_the_tag_list(); ?>67 </span>68 <?php endif; ?>69 </footer><!-- .entry-meta -->70 </article><!-- #post-## --> -
wp-content/themes/twentyfourteen/content-gallery.php
1 <?php 2 /** 3 * The template for displaying posts in the Gallery post format. 4 * 5 * @package WordPress 6 * @subpackage Twenty_Fourteen 7 */ 8 9 if ( has_post_thumbnail() ) : 10 $image = get_post_thumbnail_id(); 11 else : 12 $images = get_posts( array( 13 'post_parent' => get_the_ID(), 14 'fields' => 'ids', 15 'numberposts' => 1, 16 'post_status' => 'inherit', 17 'post_type' => 'attachment', 18 'post_mime_type' => 'image', 19 'order' => 'ASC', 20 'orderby' => 'menu_order ID', 21 ) ); 22 $image = array_shift( $images ); 23 endif; 24 ?> 25 26 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 27 <?php if( is_single() && $image ) : ?> 28 <div class="attachment-featured-thumbnail"> 29 <?php echo wp_get_attachment_image( $image, 'featured-thumbnail-large' ); ?> 30 </div> 31 <?php elseif ( $image ) : ?> 32 <a class="attachment-featured-thumbnail" href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentyfourteen' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="<?php the_ID(); ?>"> 33 <?php echo wp_get_attachment_image( $image, 'featured-thumbnail-large' ); ?> 34 </a> 35 <?php endif; ?> 36 37 <header class="entry-header"> 38 <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) && twentyfourteen_categorized_blog() ) : ?> 39 <div class="entry-meta"> 40 <span class="cat-links"><?php echo get_the_category_list( _x( ', ', 'Used between list items, there is a space after the comma.', 'twentyfourteen' ) ); ?></span> 41 </div><!-- .entry-meta --> 42 <?php 43 endif; 44 45 if ( is_single() ) : 46 the_title( '<h1 class="entry-title">', '</h1>' ); 47 else : 48 the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' ); 49 endif; 50 ?> 51 52 <div class="entry-meta"> 53 <span class="post-format"> 54 <a class="entry-format" href="<?php echo esc_url( get_post_format_link( 'gallery' ) ); ?>" title="<?php echo esc_attr( sprintf( __( 'All %s posts', 'twentyfourteen' ), get_post_format_string( 'gallery' ) ) ); ?>"><?php echo get_post_format_string( 'gallery' ); ?></a> 55 </span> 56 57 <?php twentyfourteen_posted_on(); ?> 58 59 <?php if ( ! post_password_required() && ( comments_open() || '0' != get_comments_number() ) ) : ?> 60 <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyfourteen' ), __( '1 Comment', 'twentyfourteen' ), __( '% Comments', 'twentyfourteen' ) ); ?></span> 61 <?php endif; ?> 62 63 <?php edit_post_link( __( 'Edit', 'twentyfourteen' ), '<span class="edit-link">', '</span>' ); ?> 64 </div><!-- .entry-meta --> 65 </header><!-- .entry-header --> 66 67 <div class="entry-content"> 68 <?php 69 the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyfourteen' ) ); 70 wp_link_pages( array( 71 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>', 72 'after' => '</div>', 73 'link_before' => '<span>', 74 'link_after' => '</span>', 75 ) ); 76 ?> 77 </div><!-- .entry-content --> 78 79 <?php if ( has_tag() ) : ?> 80 <footer class="entry-meta"> 81 <span class="tag-links"><?php echo get_the_tag_list(); ?></span> 82 </footer><!-- .entry-meta --> 83 <?php endif; ?> 84 </article><!-- #post-## --> -
wp-content/themes/twentyfourteen/search.php
21 21 while ( have_posts() ) : 22 22 the_post(); 23 23 24 twentyfourteen_get_template_part();24 get_template_part( 'content', get_post_format() ); 25 25 endwhile; 26 26 twentyfourteen_paging_nav(); 27 27 -
wp-content/themes/twentyfourteen/content-link.php
1 <?php 2 /** 3 * The template for displaying posts in the Link post format. 4 * 5 * @package WordPress 6 * @subpackage Twenty_Fourteen 7 */ 8 ?> 9 10 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 11 <header class="entry-header"> 12 <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) && twentyfourteen_categorized_blog() ) : ?> 13 <div class="entry-meta"> 14 <span class="cat-links"><?php echo get_the_category_list( _x( ', ', 'Used between list items, there is a space after the comma.', 'twentyfourteen' ) ); ?></span> 15 </div><!-- .entry-meta --> 16 <?php endif; ?> 17 18 <div class="entry-meta"> 19 <span class="post-format"> 20 <a class="entry-format" href="<?php echo esc_url( get_post_format_link( 'link' ) ); ?>" title="<?php echo esc_attr( sprintf( __( 'All %s posts', 'twentyfourteen' ), get_post_format_string( 'link' ) ) ); ?>"><?php echo get_post_format_string( 'link' ); ?></a> 21 </span> 22 23 <?php twentyfourteen_posted_on(); ?> 24 25 <?php if ( ! post_password_required() && ( comments_open() || get_comments_number() ) ) : ?> 26 <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyfourteen' ), __( '1 Comment', 'twentyfourteen' ), __( '% Comments', 'twentyfourteen' ) ); ?></span> 27 <?php endif; ?> 28 29 <?php edit_post_link( __( 'Edit', 'twentyfourteen' ), '<span class="edit-link">', '</span>' ); ?> 30 </div><!-- .entry-meta --> 31 </header><!-- .entry-header --> 32 33 <div class="entry-content"> 34 <?php 35 the_content(); 36 wp_link_pages( array( 37 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>', 38 'after' => '</div>', 39 'link_before' => '<span>', 40 'link_after' => '</span>', 41 ) ); 42 ?> 43 </div><!-- .entry-content --> 44 45 <?php if ( has_tag() ) : ?> 46 <footer class="entry-meta"> 47 <span class="tag-links"> 48 <?php echo get_the_tag_list(); ?> 49 </span> 50 </footer><!-- .entry-meta --> 51 <?php endif; ?> 52 </article><!-- #post-## --> -
wp-content/themes/twentyfourteen/front-page.php
24 24 while ( have_posts() ) : 25 25 the_post(); 26 26 27 twentyfourteen_get_template_part();27 get_template_part( 'content', get_post_format() ); 28 28 29 29 comments_template(); 30 30 endwhile; -
wp-content/themes/twentyfourteen/index.php
22 22 while ( have_posts() ) : 23 23 the_post(); 24 24 25 twentyfourteen_get_template_part();25 get_template_part( 'content', get_post_format() ); 26 26 endwhile; 27 27 twentyfourteen_paging_nav(); 28 28 -
wp-content/themes/twentyfourteen/content-video.php
1 <?php 2 /** 3 * The template for displaying posts in the Video post format. 4 * 5 * @package WordPress 6 * @subpackage Twenty_Fourteen 7 */ 8 ?> 9 10 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 11 <header class="entry-header"> 12 <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) && twentyfourteen_categorized_blog() ) : ?> 13 <div class="entry-meta"> 14 <span class="cat-links"><?php echo get_the_category_list( _x( ', ', 'Used between list items, there is a space after the comma.', 'twentyfourteen' ) ); ?></span> 15 </div><!-- .entry-meta --> 16 <?php 17 endif; 18 19 if ( is_single() ) : 20 the_title( '<h1 class="entry-title">', '</h1>' ); 21 else : 22 the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' ); 23 endif; 24 ?> 25 26 <div class="entry-meta"> 27 <span class="post-format"> 28 <a class="entry-format" href="<?php echo esc_url( get_post_format_link( 'video' ) ); ?>" title="<?php echo esc_attr( sprintf( __( 'All %s posts', 'twentyfourteen' ), get_post_format_string( 'video' ) ) ); ?>"><?php echo get_post_format_string( 'video' ); ?></a> 29 </span> 30 31 <?php twentyfourteen_posted_on(); ?> 32 33 <?php if ( ! post_password_required() && ( comments_open() || get_comments_number() ) ) : ?> 34 <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyfourteen' ), __( '1 Comment', 'twentyfourteen' ), __( '% Comments', 'twentyfourteen' ) ); ?></span> 35 <?php endif; ?> 36 37 <?php edit_post_link( __( 'Edit', 'twentyfourteen' ), '<span class="edit-link">', '</span>' ); ?> 38 </div><!-- .entry-meta --> 39 </header><!-- .entry-header --> 40 41 <div class="entry-content"> 42 <?php 43 the_content(); 44 wp_link_pages( array( 45 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>', 46 'after' => '</div>', 47 'link_before' => '<span>', 48 'link_after' => '</span>', 49 ) ); 50 ?> 51 </div><!-- .entry-content --> 52 53 <?php if ( has_tag() ) : ?> 54 <footer class="entry-meta"> 55 <span class="tag-links"> 56 <?php echo get_the_tag_list(); ?> 57 </span> 58 </footer><!-- .entry-meta --> 59 <?php endif; ?> 60 </article><!-- #post-## --> -
wp-content/themes/twentyfourteen/single.php
14 14 while ( have_posts() ) : 15 15 the_post(); 16 16 17 get_template_part( 'content', 'single');17 get_template_part( 'content', get_post_format() ); 18 18 19 19 twentyfourteen_post_nav(); 20 20 -
wp-content/themes/twentyfourteen/style.css
1025 1025 display: inline; 1026 1026 } 1027 1027 .post-formatted-posts .entry-title:after, 1028 .content-area span + span.entry-date:before,1028 .content-area span + .entry-date:before, 1029 1029 span + .byline:before, 1030 1030 span + .comments-link:before, 1031 1031 span + .edit-link:before, … … 1140 1140 .format-video { 1141 1141 border-top: 1px solid rgba(0, 0, 0, 0.1); 1142 1142 } 1143 .format-aside .entry-title,1144 .format-quote .entry-title,1145 .format-link .entry-title {1146 display: none;1147 }1148 1143 .format-aside .entry-content, 1149 1144 .format-aside .entry-summary, 1150 1145 .format-quote .entry-content, -
wp-content/themes/twentyfourteen/content-image.php
1 <?php 2 /** 3 * The template for displaying posts in the Image post format. 4 * 5 * @package WordPress 6 * @subpackage Twenty_Fourteen 7 */ 8 ?> 9 10 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 11 <header class="entry-header"> 12 <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) && twentyfourteen_categorized_blog() ) : ?> 13 <div class="entry-meta"> 14 <span class="cat-links"><?php echo get_the_category_list( _x( ', ', 'Used between list items, there is a space after the comma.', 'twentyfourteen' ) ); ?></span> 15 </div><!-- .entry-meta --> 16 <?php 17 endif; 18 19 if ( is_single() ) : 20 the_title( '<h1 class="entry-title">', '</h1>' ); 21 else : 22 the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' ); 23 endif; 24 ?> 25 26 <div class="entry-meta"> 27 <span class="post-format"> 28 <a class="entry-format" href="<?php echo esc_url( get_post_format_link( 'image' ) ); ?>" title="<?php echo esc_attr( sprintf( __( 'All %s posts', 'twentyfourteen' ), get_post_format_string( 'image' ) ) ); ?>"><?php echo get_post_format_string( 'image' ); ?></a> 29 </span> 30 31 <?php twentyfourteen_posted_on(); ?> 32 33 <?php if ( ! post_password_required() && ( comments_open() || get_comments_number() ) ) : ?> 34 <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyfourteen' ), __( '1 Comment', 'twentyfourteen' ), __( '% Comments', 'twentyfourteen' ) ); ?></span> 35 <?php endif; ?> 36 37 <?php edit_post_link( __( 'Edit', 'twentyfourteen' ), '<span class="edit-link">', '</span>' ); ?> 38 </div><!-- .entry-meta --> 39 </header><!-- .entry-header --> 40 41 <div class="entry-content"> 42 <?php 43 the_content(); 44 wp_link_pages( array( 45 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>', 46 'after' => '</div>', 47 'link_before' => '<span>', 48 'link_after' => '</span>', 49 ) ); 50 ?> 51 </div><!-- .entry-content --> 52 53 <?php if ( has_tag() ) : ?> 54 <footer class="entry-meta"> 55 <span class="tag-links"> 56 <?php echo get_the_tag_list(); ?> 57 </span> 58 </footer><!-- .entry-meta --> 59 <?php endif; ?> 60 </article><!-- #post-## -->