From b8cb0e70588ef3d13919950f292bc9a56323953e Mon Sep 17 00:00:00 2001 From: allancole Date: Tue, 30 Oct 2018 02:15:04 +0000 Subject: [PATCH] Importing Twenty Nineteen, our new default theme for 2019, set for 5.0. Let Gutenberg shine with this simple, fast, and powerful theme. Initial development occurred on GitHub. See: https://github.com/WordPress/twentynineteen Props allancole, karmatosed, kjellr, yingling017, mrasharirfan, milana_cap, fabiankaegy, westonruter, aaronjorbin, netweb, b-07, khleomix, blowery, dereksmart, jasmussen, audrasjb, nielslange, mmaumio, dimadin, joyously, anevins12, peterwilsoncc, dannycooper, icaleb, siriokun, technosiren, travel_girl, azchughtai, ianbelanger, nadim1992, ismailelkorchi, nativeinside, chetan200891, icaleb, grapplerulrich, ocean90, joshfeck, frankew, abdulwahab610, mendezcode, eliorivero, melchoyce, joen, laurelfulford, mdawaffe, kraftbj, dsmart. Built from https://develop.svn.wordpress.org/branches/5.0@43842 git-svn-id: http://core.svn.wordpress.org/branches/5.0@43671 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-content/themes/twentynineteen/404.php | 10 +- wp-content/themes/twentynineteen/archive.php | 10 +- .../class-twentynineteen-svg-icons.php | 51 +- .../class-twentynineteen-walker-comment.php | 7 +- wp-content/themes/twentynineteen/comments.php | 27 +- wp-content/themes/twentynineteen/footer.php | 6 +- .../themes/twentynineteen/functions.php | 82 +- wp-content/themes/twentynineteen/header.php | 44 +- wp-content/themes/twentynineteen/image.php | 103 ++ .../twentynineteen/inc/color-patterns.php | 216 ++++ .../themes/twentynineteen/inc/customizer.php | 124 +- .../twentynineteen/inc/icon-functions.php | 1 + .../twentynineteen/inc/template-functions.php | 230 +++- .../twentynineteen/inc/template-tags.php | 11 +- .../themes/twentynineteen/inc/ui-icons.php | 7 - wp-content/themes/twentynineteen/index.php | 5 +- .../twentynineteen/js/customize-controls.js | 30 + .../twentynineteen/js/customize-preview.js | 52 + .../themes/twentynineteen/js/customizer.js | 11 - .../twentynineteen/js/touch-navigation.js | 163 +++ wp-content/themes/twentynineteen/page.php | 5 +- wp-content/themes/twentynineteen/print.css | 4 +- wp-content/themes/twentynineteen/print.scss | 4 +- wp-content/themes/twentynineteen/readme.txt | 4 +- .../twentynineteen/sass/blocks/_blocks.scss | 97 +- .../sass/elements/_elements.scss | 30 +- .../twentynineteen/sass/forms/_buttons.scss | 3 +- .../twentynineteen/sass/forms/_fields.scss | 2 +- .../twentynineteen/sass/media/_galleries.scss | 6 +- .../sass/mixins/_mixins-master.scss | 7 +- .../sass/navigation/_links.scss | 2 +- .../navigation/_menu-main-navigation.scss | 296 +++++ .../navigation/_menu-social-navigation.scss | 55 + .../sass/navigation/_menus.scss | 249 ---- .../sass/navigation/_navigation.scss | 3 +- .../sass/navigation/_next-previous.scss | 24 +- .../sass/site/footer/_site-footer.scss | 23 +- .../site/header/_site-featured-image.scss | 182 ++- .../sass/site/header/_site-header.scss | 21 +- .../sass/site/primary/_archives.scss | 8 +- .../sass/site/primary/_comments.scss | 73 +- .../sass/site/primary/_posts-and-pages.scss | 95 +- .../sass/site/secondary/_widgets.scss | 48 + .../twentynineteen/sass/typography/_copy.scss | 8 +- .../sass/typography/_headings.scss | 3 +- wp-content/themes/twentynineteen/search.php | 7 +- wp-content/themes/twentynineteen/single.php | 7 +- .../twentynineteen/style-editor-frame.css | 20 +- .../twentynineteen/style-editor-frame.scss | 6 +- .../themes/twentynineteen/style-editor.css | 114 +- .../themes/twentynineteen/style-editor.scss | 101 +- .../themes/twentynineteen/style-rtl.css | 1015 ++++++++++++----- wp-content/themes/twentynineteen/style.css | 1015 ++++++++++++----- .../themes/twentynineteen/style.css.map | 1 + .../content/content-excerpt.php | 33 + .../template-parts/content/content-none.php | 1 + .../template-parts/content/content-page.php | 8 +- .../template-parts/content/content-single.php | 46 +- .../template-parts/content/content.php | 2 +- .../template-parts/footer/footer-widgets.php | 24 + .../template-parts/header/entry-header.php | 33 +- .../template-parts/header/site-branding.php | 13 +- .../post/{author-info.php => author-bio.php} | 9 +- .../template-parts/post/discussion-meta.php | 1 + .../css/dist/block-library/style-rtl.css | 2 +- wp-includes/css/dist/block-library/style.css | 2 +- wp-includes/js/dist/block-library.min.js | 6 +- wp-includes/js/dist/blocks.min.js | 2 +- wp-includes/js/dist/components.min.js | 4 +- wp-includes/js/dist/date.min.js | 4 +- wp-includes/js/dist/edit-post.min.js | 2 +- wp-includes/js/dist/editor.min.js | 2 +- wp-includes/js/dist/i18n.min.js | 2 +- wp-includes/js/dist/vendor/react-dom.min.js | 375 +++--- wp-includes/js/dist/vendor/react.min.js | 45 +- wp-includes/version.php | 2 +- 76 files changed, 3745 insertions(+), 1601 deletions(-) create mode 100644 wp-content/themes/twentynineteen/image.php create mode 100644 wp-content/themes/twentynineteen/inc/color-patterns.php delete mode 100644 wp-content/themes/twentynineteen/inc/ui-icons.php create mode 100644 wp-content/themes/twentynineteen/js/customize-controls.js create mode 100644 wp-content/themes/twentynineteen/js/customize-preview.js delete mode 100644 wp-content/themes/twentynineteen/js/customizer.js create mode 100644 wp-content/themes/twentynineteen/js/touch-navigation.js create mode 100644 wp-content/themes/twentynineteen/sass/navigation/_menu-main-navigation.scss create mode 100644 wp-content/themes/twentynineteen/sass/navigation/_menu-social-navigation.scss delete mode 100644 wp-content/themes/twentynineteen/sass/navigation/_menus.scss create mode 100644 wp-content/themes/twentynineteen/style.css.map create mode 100644 wp-content/themes/twentynineteen/template-parts/content/content-excerpt.php create mode 100644 wp-content/themes/twentynineteen/template-parts/footer/footer-widgets.php rename wp-content/themes/twentynineteen/template-parts/post/{author-info.php => author-bio.php} (81%) diff --git a/wp-content/themes/twentynineteen/404.php b/wp-content/themes/twentynineteen/404.php index 0c84bc0373..1067ab0300 100644 --- a/wp-content/themes/twentynineteen/404.php +++ b/wp-content/themes/twentynineteen/404.php @@ -6,28 +6,28 @@ * * @package WordPress * @subpackage Twenty_Nineteen + * @since 1.0.0 */ get_header(); ?> -
+
-
+

-
-
+
- + -
+
@@ -19,7 +20,8 @@ get_header(); @@ -33,7 +35,7 @@ get_header(); * If you want to override this in a child theme, then include a file * called content-___.php (where ___ is the Post Format name) and that will be used instead. */ - get_template_part( 'template-parts/content/content' ); + get_template_part( 'template-parts/content/content', 'excerpt' ); // End the loop. endwhile; @@ -49,7 +51,7 @@ get_header(); ?>
-
+ \s*<', $svg ); // Remove white space between SVG tags. @@ -70,14 +71,14 @@ class TwentyNineteen_SVG_Icons { * @var array */ static $ui_icons = array( - 'link' => /* material-design – link */ ' - + 'link' => /* material-design – link */ ' + ', - 'watch' => /* material-design – watch-later */ ' - + 'watch' => /* material-design – watch-later */ ' + @@ -87,72 +88,78 @@ class TwentyNineteen_SVG_Icons { ', - 'archive' => /* material-design – folder */ ' - + 'archive' => /* material-design – folder */ ' + ', - 'tag' => /* material-design – local_offer */ ' - + 'tag' => /* material-design – local_offer */ ' + ', - 'comment' => /* material-design – comment */ ' + 'comment' => /* material-design – comment */ ' ', - 'person' => /* material-design – person */ ' + 'person' => /* material-design – person */ ' ', - 'edit' => /* material-design – edit */ ' + 'edit' => /* material-design – edit */ ' ', - 'chevron_left' => /* material-design – chevron_left */ ' + 'chevron_left' => /* material-design – chevron_left */ ' ', - 'chevron_right' => /* material-design – chevron_right */ ' - + 'chevron_right' => /* material-design – chevron_right */ ' + ', - 'check' => /* material-design – check */ ' - + 'check' => /* material-design – check */ ' + ', 'arrow_drop_down_circle' => /* material-design – arrow_drop_down_circle */ ' - + ', - 'keyboard_arrow_down' => /* material-design – keyboard_arrow_down */ ' - + 'keyboard_arrow_down' => /* material-design – keyboard_arrow_down */ ' + ', - 'keyboard_arrow_right' => /* material-design – keyboard_arrow_right */ ' - + 'keyboard_arrow_right' => /* material-design – keyboard_arrow_right */ ' + ', + 'keyboard_arrow_left' => /* material-design – keyboard_arrow_left */ ' + + + +', + ); /** diff --git a/wp-content/themes/twentynineteen/classes/class-twentynineteen-walker-comment.php b/wp-content/themes/twentynineteen/classes/class-twentynineteen-walker-comment.php index ad86ea84f8..4e5068aff3 100644 --- a/wp-content/themes/twentynineteen/classes/class-twentynineteen-walker-comment.php +++ b/wp-content/themes/twentynineteen/classes/class-twentynineteen-walker-comment.php @@ -4,6 +4,7 @@ * * @package WordPress * @subpackage Twenty_Nineteen + * @since 1.0.0 */ /** @@ -54,7 +55,7 @@ class TwentyNineteen_Walker_Comment extends Walker_Comment { /* translators: %s: comment author link */ printf( - __( '%s says:' ), + __( '%s says:', 'twentynineteen' ), sprintf( '%s', get_comment_author_link( $comment ) ) ); ?> @@ -69,12 +70,12 @@ class TwentyNineteen_Walker_Comment extends Walker_Comment { ' . $edit_comment_icon, '' ); + edit_comment_link( __( 'Edit', 'twentynineteen' ), ' ' . $edit_comment_icon, '' ); ?> comment_approved ) : ?> -

+

diff --git a/wp-content/themes/twentynineteen/comments.php b/wp-content/themes/twentynineteen/comments.php index 06e3323597..4b9ee6f892 100644 --- a/wp-content/themes/twentynineteen/comments.php +++ b/wp-content/themes/twentynineteen/comments.php @@ -9,6 +9,7 @@ * * @package WordPress * @subpackage Twenty_Nineteen + * @since 1.0.0 */ /* @@ -28,9 +29,9 @@ if ( post_password_required() ) { -
- - - -
- +
+ + + +
+ diff --git a/wp-content/themes/twentynineteen/footer.php b/wp-content/themes/twentynineteen/footer.php index ca06eda8a9..514a06faf7 100644 --- a/wp-content/themes/twentynineteen/footer.php +++ b/wp-content/themes/twentynineteen/footer.php @@ -8,6 +8,7 @@ * * @package WordPress * @subpackage Twenty_Nineteen + * @since 1.0.0 */ ?> @@ -15,8 +16,11 @@ - + + + diff --git a/wp-content/themes/twentynineteen/template-parts/content/content.php b/wp-content/themes/twentynineteen/template-parts/content/content.php index 0810a5d6a2..5344b24466 100644 --- a/wp-content/themes/twentynineteen/template-parts/content/content.php +++ b/wp-content/themes/twentynineteen/template-parts/content/content.php @@ -6,6 +6,7 @@ * * @package WordPress * @subpackage Twenty_Nineteen + * @since 1.0.0 */ ?> @@ -22,7 +23,6 @@ the_title( sprintf( '

', esc_url( get_permalink() ) ), '

' ); endif; ?> - diff --git a/wp-content/themes/twentynineteen/template-parts/footer/footer-widgets.php b/wp-content/themes/twentynineteen/template-parts/footer/footer-widgets.php new file mode 100644 index 0000000000..550e2afc20 --- /dev/null +++ b/wp-content/themes/twentynineteen/template-parts/footer/footer-widgets.php @@ -0,0 +1,24 @@ + + + + + diff --git a/wp-content/themes/twentynineteen/template-parts/header/entry-header.php b/wp-content/themes/twentynineteen/template-parts/header/entry-header.php index 80591ebc54..9a72cbfdca 100644 --- a/wp-content/themes/twentynineteen/template-parts/header/entry-header.php +++ b/wp-content/themes/twentynineteen/template-parts/header/entry-header.php @@ -4,24 +4,43 @@ * * @package WordPress * @subpackage Twenty_Nineteen - * @since Twenty Nineteen 1.0 + * @since 1.0.0 */ -if ( ! is_page() ) : -?> - - +$discussion = ! is_page() && twentynineteen_can_show_post_thumbnail() ? twentynineteen_get_discussion_data() : null; ?> + ', '' ); ?> + -
+ diff --git a/wp-content/themes/twentynineteen/template-parts/header/site-branding.php b/wp-content/themes/twentynineteen/template-parts/header/site-branding.php index 66c141a885..8126209fd5 100644 --- a/wp-content/themes/twentynineteen/template-parts/header/site-branding.php +++ b/wp-content/themes/twentynineteen/template-parts/header/site-branding.php @@ -4,6 +4,7 @@ * * @package WordPress * @subpackage Twenty_Nineteen + * @since 1.0.0 */ ?>
@@ -12,10 +13,12 @@ - -

- -

+ + +

+ +

+ -