diff --git a/src/wp-content/themes/twentyfourteen/archive.php b/src/wp-content/themes/twentyfourteen/archive.php index 4caf0b842f..f7e65b752b 100644 --- a/src/wp-content/themes/twentyfourteen/archive.php +++ b/src/wp-content/themes/twentyfourteen/archive.php @@ -47,7 +47,7 @@ get_header(); ?> while ( have_posts() ) : the_post(); - twentyfourteen_get_template_part(); + get_template_part( 'content', get_post_format() ); endwhile; twentyfourteen_paging_nav(); diff --git a/src/wp-content/themes/twentyfourteen/content-aside.php b/src/wp-content/themes/twentyfourteen/content-aside.php new file mode 100644 index 0000000000..627b123a65 --- /dev/null +++ b/src/wp-content/themes/twentyfourteen/content-aside.php @@ -0,0 +1,60 @@ + + +
> +
+ + + + + +
+ +
+ →', 'twentyfourteen' ) ); + wp_link_pages( array( + 'before' => '', + 'link_before' => '', + 'link_after' => '', + ) ); + ?> +
+ + +
diff --git a/src/wp-content/themes/twentyfourteen/content-gallery.php b/src/wp-content/themes/twentyfourteen/content-gallery.php new file mode 100644 index 0000000000..6cad578589 --- /dev/null +++ b/src/wp-content/themes/twentyfourteen/content-gallery.php @@ -0,0 +1,84 @@ + get_the_ID(), + 'fields' => 'ids', + 'numberposts' => 1, + 'post_status' => 'inherit', + 'post_type' => 'attachment', + 'post_mime_type' => 'image', + 'order' => 'ASC', + 'orderby' => 'menu_order ID', + ) ); + $image = array_shift( $images ); +endif; +?> + +
> + + + + + + + + +
+ + + ', '' ); + else : + the_title( '

', '

' ); + endif; + ?> + + +
+ +
+ →', 'twentyfourteen' ) ); + wp_link_pages( array( + 'before' => '', + 'link_before' => '', + 'link_after' => '', + ) ); + ?> +
+ + + + +
diff --git a/src/wp-content/themes/twentyfourteen/content-image.php b/src/wp-content/themes/twentyfourteen/content-image.php new file mode 100644 index 0000000000..a6b0dead3f --- /dev/null +++ b/src/wp-content/themes/twentyfourteen/content-image.php @@ -0,0 +1,60 @@ + + +
> +
+ + + ', '' ); + else : + the_title( '

', '

' ); + endif; + ?> + + +
+ +
+ '', + 'link_before' => '', + 'link_after' => '', + ) ); + ?> +
+ + + + +
diff --git a/src/wp-content/themes/twentyfourteen/content-link.php b/src/wp-content/themes/twentyfourteen/content-link.php new file mode 100644 index 0000000000..a4a3705b93 --- /dev/null +++ b/src/wp-content/themes/twentyfourteen/content-link.php @@ -0,0 +1,52 @@ + + +
> +
+ + + + + +
+ +
+ '', + 'link_before' => '', + 'link_after' => '', + ) ); + ?> +
+ + + + +
diff --git a/src/wp-content/themes/twentyfourteen/content-post-format.php b/src/wp-content/themes/twentyfourteen/content-post-format.php index 6ef2a22acd..e69de29bb2 100644 --- a/src/wp-content/themes/twentyfourteen/content-post-format.php +++ b/src/wp-content/themes/twentyfourteen/content-post-format.php @@ -1,73 +0,0 @@ - - -
> - get_the_ID(), 'post_type' => 'attachment', 'post_mime_type' => 'image', 'orderby' => 'menu_order', 'order' => 'ASC' ) ); - if ( $images ) : - $image = array_shift( $images ); - ?> - - ID, 'featured-thumbnail-large' ); ?> - - - -
- - - - - ', '' ); ?> - - -
- -
- →', 'twentyfourteen' ) ); - wp_link_pages( array( - 'before' => '', - 'link_before' => '', - 'link_after' => '', - ) ); - ?> -
- - -
diff --git a/src/wp-content/themes/twentyfourteen/content-quote.php b/src/wp-content/themes/twentyfourteen/content-quote.php new file mode 100644 index 0000000000..5ecd3345d2 --- /dev/null +++ b/src/wp-content/themes/twentyfourteen/content-quote.php @@ -0,0 +1,60 @@ + + +
> +
+ + + + + +
+ +
+ →', 'twentyfourteen' ) ); + wp_link_pages( array( + 'before' => '', + 'link_before' => '', + 'link_after' => '', + ) ); + ?> +
+ + +
diff --git a/src/wp-content/themes/twentyfourteen/content-single.php b/src/wp-content/themes/twentyfourteen/content-single.php index 86e2af5bd5..e69de29bb2 100644 --- a/src/wp-content/themes/twentyfourteen/content-single.php +++ b/src/wp-content/themes/twentyfourteen/content-single.php @@ -1,70 +0,0 @@ - - -
> - - - - -
- - - ', '' ); - endif; - ?> - - -
- -
- '', - 'link_before' => '', - 'link_after' => '', - ) ); - ?> -
- - -
diff --git a/src/wp-content/themes/twentyfourteen/content-video.php b/src/wp-content/themes/twentyfourteen/content-video.php new file mode 100644 index 0000000000..a518d3d572 --- /dev/null +++ b/src/wp-content/themes/twentyfourteen/content-video.php @@ -0,0 +1,60 @@ + + +
> +
+ + + ', '' ); + else : + the_title( '

', '

' ); + endif; + ?> + + +
+ +
+ '', + 'link_before' => '', + 'link_after' => '', + ) ); + ?> +
+ + + + +
diff --git a/src/wp-content/themes/twentyfourteen/content.php b/src/wp-content/themes/twentyfourteen/content.php index 62e1a9ea01..093614a18e 100644 --- a/src/wp-content/themes/twentyfourteen/content.php +++ b/src/wp-content/themes/twentyfourteen/content.php @@ -18,16 +18,10 @@ -

+ ', '' ); ?>
- - - - while ( have_posts() ) : the_post(); - twentyfourteen_get_template_part(); + get_template_part( 'content', get_post_format() ); comments_template(); endwhile; diff --git a/src/wp-content/themes/twentyfourteen/inc/template-tags.php b/src/wp-content/themes/twentyfourteen/inc/template-tags.php index a9d200eb92..fc181f81d6 100644 --- a/src/wp-content/themes/twentyfourteen/inc/template-tags.php +++ b/src/wp-content/themes/twentyfourteen/inc/template-tags.php @@ -143,14 +143,3 @@ function twentyfourteen_category_transient_flusher() { } add_action( 'edit_category', 'twentyfourteen_category_transient_flusher' ); add_action( 'save_post', 'twentyfourteen_category_transient_flusher' ); - -/** - * Include the Post-Format-specific template for the content. - * This is called in index.php and single.php - */ -function twentyfourteen_get_template_part() { - if ( has_post_format( array( 'aside', 'quote', 'link', 'video', 'image' ) ) ) - get_template_part( 'content', 'post-format' ); - else - get_template_part( 'content', get_post_format() ); -} diff --git a/src/wp-content/themes/twentyfourteen/index.php b/src/wp-content/themes/twentyfourteen/index.php index a5e31383c7..2ce66cf374 100644 --- a/src/wp-content/themes/twentyfourteen/index.php +++ b/src/wp-content/themes/twentyfourteen/index.php @@ -22,7 +22,7 @@ get_header(); ?> while ( have_posts() ) : the_post(); - twentyfourteen_get_template_part(); + get_template_part( 'content', get_post_format() ); endwhile; twentyfourteen_paging_nav(); diff --git a/src/wp-content/themes/twentyfourteen/search.php b/src/wp-content/themes/twentyfourteen/search.php index ae9742cf75..9cbdada326 100644 --- a/src/wp-content/themes/twentyfourteen/search.php +++ b/src/wp-content/themes/twentyfourteen/search.php @@ -21,7 +21,7 @@ get_header(); ?> while ( have_posts() ) : the_post(); - twentyfourteen_get_template_part(); + get_template_part( 'content', get_post_format() ); endwhile; twentyfourteen_paging_nav(); diff --git a/src/wp-content/themes/twentyfourteen/single.php b/src/wp-content/themes/twentyfourteen/single.php index 57b42d258e..3ad86bbe50 100644 --- a/src/wp-content/themes/twentyfourteen/single.php +++ b/src/wp-content/themes/twentyfourteen/single.php @@ -14,7 +14,7 @@ get_header(); ?> while ( have_posts() ) : the_post(); - get_template_part( 'content', 'single' ); + get_template_part( 'content', get_post_format() ); twentyfourteen_post_nav(); diff --git a/src/wp-content/themes/twentyfourteen/style.css b/src/wp-content/themes/twentyfourteen/style.css index 2949c0e30d..d6c6ed4fa2 100644 --- a/src/wp-content/themes/twentyfourteen/style.css +++ b/src/wp-content/themes/twentyfourteen/style.css @@ -1025,7 +1025,7 @@ body { display: inline; } .post-formatted-posts .entry-title:after, -.content-area span + span.entry-date:before, +.content-area span + .entry-date:before, span + .byline:before, span + .comments-link:before, span + .edit-link:before, @@ -1140,11 +1140,6 @@ footer.entry-meta .entry-title a:hover { .format-video { border-top: 1px solid rgba(0, 0, 0, 0.1); } -.format-aside .entry-title, -.format-quote .entry-title, -.format-link .entry-title { - display: none; -} .format-aside .entry-content, .format-aside .entry-summary, .format-quote .entry-content,