From 06d22aed0ec4f0f9d4d1c7b0132c8523078aed12 Mon Sep 17 00:00:00 2001 From: Lance Willett Date: Mon, 2 Sep 2013 21:20:56 +0000 Subject: [PATCH] Twenty Fourteen: add archive page templates, fix alignment bugs for archive headers, and use `content-none.php` for consistency. Props obenland, fixes #25181. git-svn-id: https://develop.svn.wordpress.org/trunk@25213 602fd350-edb4-49c9-b593-d223f7449a82 --- .../themes/twentyfourteen/archive.php | 60 ++++++++-------- .../themes/twentyfourteen/author.php | 65 +++++++++++++++++ .../themes/twentyfourteen/category.php | 49 +++++++++++++ .../{no-results.php => content-none.php} | 0 .../themes/twentyfourteen/front-page.php | 2 +- .../themes/twentyfourteen/index.php | 2 +- src/wp-content/themes/twentyfourteen/rtl.css | 2 + .../themes/twentyfourteen/search.php | 36 +++++----- .../themes/twentyfourteen/style.css | 20 +++--- src/wp-content/themes/twentyfourteen/tag.php | 51 ++++++++++++++ .../twentyfourteen/taxonomy-post_format.php | 70 +++++++++++++++++++ 11 files changed, 298 insertions(+), 59 deletions(-) create mode 100644 src/wp-content/themes/twentyfourteen/author.php create mode 100644 src/wp-content/themes/twentyfourteen/category.php rename src/wp-content/themes/twentyfourteen/{no-results.php => content-none.php} (100%) create mode 100644 src/wp-content/themes/twentyfourteen/tag.php create mode 100644 src/wp-content/themes/twentyfourteen/taxonomy-post_format.php diff --git a/src/wp-content/themes/twentyfourteen/archive.php b/src/wp-content/themes/twentyfourteen/archive.php index f7e65b752b..3d5a27f70a 100644 --- a/src/wp-content/themes/twentyfourteen/archive.php +++ b/src/wp-content/themes/twentyfourteen/archive.php @@ -18,46 +18,46 @@ get_header(); ?> -
-
+
+
- + - + endif; + ?> + + - -
-
+ endif; + ?> +
+
+ +
+
+ + + +
+

+ %3$s', + esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), + esc_attr( get_the_author() ), + get_the_author() + ) ); + ?> +

+
+ + + +
+
+ + + +
+
+ + + +
+

+ + %s
', $term_description ); + endif; + ?> + + + + +
+ + twentyfourteen_paging_nav(); else : - get_template_part( 'no-results', 'index' ); + get_template_part( 'content', 'none' ); endif; ?> diff --git a/src/wp-content/themes/twentyfourteen/index.php b/src/wp-content/themes/twentyfourteen/index.php index 2ce66cf374..49f0ef91dd 100644 --- a/src/wp-content/themes/twentyfourteen/index.php +++ b/src/wp-content/themes/twentyfourteen/index.php @@ -27,7 +27,7 @@ get_header(); ?> twentyfourteen_paging_nav(); else : - get_template_part( 'no-results', 'index' ); + get_template_part( 'content', 'none' ); endif; ?> diff --git a/src/wp-content/themes/twentyfourteen/rtl.css b/src/wp-content/themes/twentyfourteen/rtl.css index d04bd5158e..4151db1418 100644 --- a/src/wp-content/themes/twentyfourteen/rtl.css +++ b/src/wp-content/themes/twentyfourteen/rtl.css @@ -551,6 +551,7 @@ img.alignleft, margin: 0 12.5% 0 8.03571428%; } + .archive-header, .page-header { margin: 0 12.5% 24px 8.03571428%; margin: 0 12.5% 2.4rem 8.03571428%; @@ -788,6 +789,7 @@ img.alignleft, padding-left: 0; } + .archive-header, .page-header { margin: 0 12.5% 24px 8.03571428%; margin: 0 12.5% 2.4rem 8.03571428%; diff --git a/src/wp-content/themes/twentyfourteen/search.php b/src/wp-content/themes/twentyfourteen/search.php index 9cbdada326..09be4904d7 100644 --- a/src/wp-content/themes/twentyfourteen/search.php +++ b/src/wp-content/themes/twentyfourteen/search.php @@ -8,31 +8,31 @@ get_header(); ?> -
-
+
+
- + - + - + endif; + ?> -
-
+
+
object { margin: 1.2rem 4.59183673% 2.4rem; padding: 0 4.46428571%; } + .archive-header, .page-header { margin: 0 4.59183673% 24px; margin: 0 4.59183673% 2.4rem; @@ -2701,6 +2702,7 @@ span > object { .content-area .full-width footer.entry-meta { margin: 0 11.30926724%; } + .archive-header, .page-header { margin: 0 8.03571428% 24px 12.5%; margin: 0 8.03571428% 2.4rem 12.5%; @@ -2826,8 +2828,7 @@ span > object { margin: 0 0 0 -27.31707317%; width: 24.87804878%; } - .content-area .entry-header, - .content-area .page-header { + .content-area .entry-header { margin: -48px 4.59183673% 0; margin: -4.8rem 4.59183673% 0; padding: 24px 4.46428571% 12px; @@ -2845,6 +2846,7 @@ span > object { margin: 1.2rem 4.59183673% 2.4rem; padding: 0 4.46428571%; } + .archive-header, .page-header { margin: 0 4.59183673% 24px; margin: 0 4.59183673% 2.4rem; @@ -2973,8 +2975,7 @@ span > object { } @media screen and (min-width: 1150px) { - .content-area .entry-header, - .content-area .page-header { + .content-area .entry-header { margin: -48px 8.03571428% 0 12.5%; margin: -4.8rem 8.03571428% 0 12.5%; } @@ -3009,6 +3010,7 @@ span > object { .comment-navigation { padding-left: 16.77524429%; } + .archive-header, .page-header { margin: 0 8.03571428% 24px 12.5%; margin: 0 8.03571428% 2.4rem 12.5%; diff --git a/src/wp-content/themes/twentyfourteen/tag.php b/src/wp-content/themes/twentyfourteen/tag.php new file mode 100644 index 0000000000..8b58291680 --- /dev/null +++ b/src/wp-content/themes/twentyfourteen/tag.php @@ -0,0 +1,51 @@ + + +
+
+ + + +
+

+ + %s
', $term_description ); + endif; + ?> + + + + +
+ + + +
+
+ + + +
+

+ +

+
+ + +
+
+ +