From e575c315fb6ff4d545ad44d308d0d42cde86404e Mon Sep 17 00:00:00 2001 From: Lance Willett Date: Tue, 29 Oct 2013 19:05:02 +0000 Subject: [PATCH] Twenty Fourteen: allow any page to be set as the front page, removing requirement for `front-page.php` template file. Props iamtakashi, fixes #25685. git-svn-id: https://develop.svn.wordpress.org/trunk@25985 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-content/themes/twentyfourteen/404.php | 4 +- .../themes/twentyfourteen/archive.php | 4 +- .../themes/twentyfourteen/category.php | 4 +- .../twentyfourteen/contributor-page.php | 8 ++ .../themes/twentyfourteen/front-page.php | 46 ------- .../themes/twentyfourteen/full-width-page.php | 8 ++ .../themes/twentyfourteen/image.php | 118 +++++++++--------- .../themes/twentyfourteen/index.php | 10 +- src/wp-content/themes/twentyfourteen/page.php | 9 +- .../themes/twentyfourteen/search.php | 5 +- .../themes/twentyfourteen/single.php | 32 ++--- .../themes/twentyfourteen/style.css | 32 ++--- src/wp-content/themes/twentyfourteen/tag.php | 4 +- .../twentyfourteen/taxonomy-post_format.php | 3 +- 14 files changed, 140 insertions(+), 147 deletions(-) delete mode 100644 src/wp-content/themes/twentyfourteen/front-page.php diff --git a/src/wp-content/themes/twentyfourteen/404.php b/src/wp-content/themes/twentyfourteen/404.php index 2fa6023a61..7aedf99d4c 100644 --- a/src/wp-content/themes/twentyfourteen/404.php +++ b/src/wp-content/themes/twentyfourteen/404.php @@ -9,6 +9,7 @@ get_header(); ?> +
@@ -24,8 +25,9 @@ get_header(); ?>
+ +
+
@@ -59,8 +60,9 @@ get_header(); ?> ?>
+ +
+
@@ -43,8 +44,9 @@ get_header(); ?> ?>
+ +
+
+ + +
?>
+
- -
- - - -
-
- -
-
- - - -
- - +
+ + +
?>
+
-
-
+
+
+
- + -
+ -
-
-
- -
+
+
+
+ +
- -
- -
- -
+ +
+ +
+ +
- '', - 'link_before' => '', - 'link_after' => '', - ) ); - ?> -
+ '', + 'link_before' => '', + 'link_after' => '', + ) ); + ?> +
-
- Post a comment or leave a trackback: Trackback URL.', 'twentyfourteen' ), get_trackback_url() ); - elseif ( ! comments_open() && pings_open() ) : // Only trackbacks open - printf( __( 'Comments are closed, but you can leave a trackback: Trackback URL.', 'twentyfourteen' ), get_trackback_url() ); - elseif ( comments_open() && ! pings_open() ) : // Only comments open - _e( 'Trackbacks are closed, but you can post a comment.', 'twentyfourteen' ); - elseif ( ! comments_open() && ! pings_open() ) : // Comments and trackbacks closed - _e( 'Both comments and trackbacks are currently closed.', 'twentyfourteen' ); - endif; - ?> -
- +
+ Post a comment or leave a trackback: Trackback URL.', 'twentyfourteen' ), get_trackback_url() ); + elseif ( ! comments_open() && pings_open() ) : // Only trackbacks open + printf( __( 'Comments are closed, but you can leave a trackback: Trackback URL.', 'twentyfourteen' ), get_trackback_url() ); + elseif ( comments_open() && ! pings_open() ) : // Only comments open + _e( 'Trackbacks are closed, but you can post a comment.', 'twentyfourteen' ); + elseif ( ! comments_open() && ! pings_open() ) : // Comments and trackbacks closed + _e( 'Both comments and trackbacks are currently closed.', 'twentyfourteen' ); + endif; + ?> +
+ -
', 'twentyfourteen' ) ); ?> -
- + - + - + - -
+ + + +
+ + +
@@ -35,8 +42,9 @@ get_header(); ?>
+ +
+
+ +
@@ -30,8 +36,9 @@ get_header(); ?>
+ +
+
@@ -34,8 +35,10 @@ get_header(); ?>
+ +
-
-
- +
+
+ -
-
+ // If comments are open or we have at least one comment, load up the comment template. + if ( comments_open() || get_comments_number() ) + comments_template(); + endwhile; + ?> +
+
+ + +
@@ -45,8 +46,9 @@ get_header(); ?> ?>
+ +
+
@@ -64,8 +65,8 @@ get_header(); ?> ?>
+