From c2527dfc963c3e5aeb49a4c34fa8ecea706a5c54 Mon Sep 17 00:00:00 2001 From: allancole Date: Fri, 2 Nov 2018 23:52:16 +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, mukeshpanchal27, burhandodhy, crunnells, Ismail-elkorchi, aryaprakasa. git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43860 602fd350-edb4-49c9-b593-d223f7449a82 --- .../class-twentynineteen-svg-icons.php | 6 + .../class-twentynineteen-walker-comment.php | 10 +- .../themes/twentynineteen/comments.php | 2 +- .../themes/twentynineteen/footer.php | 8 +- .../themes/twentynineteen/functions.php | 48 +++-- .../themes/twentynineteen/image.php | 3 +- .../twentynineteen/inc/color-patterns.php | 42 ++-- .../themes/twentynineteen/inc/customizer.php | 14 +- .../twentynineteen/inc/template-tags.php | 38 ++-- .../twentynineteen/js/customize-controls.js | 2 +- .../twentynineteen/js/customize-preview.js | 2 +- .../themes/twentynineteen/package.json | 2 +- .../twentynineteen/sass/blocks/_blocks.scss | 48 +++-- .../twentynineteen/sass/media/_captions.scss | 10 +- .../sass/mixins/_mixins-master.scss | 15 +- .../sass/modules/_alignments.scss | 2 + .../navigation/_menu-main-navigation.scss | 25 +-- .../site/header/_site-featured-image.scss | 2 +- .../sass/site/header/_site-header.scss | 19 +- .../sass/site/primary/_comments.scss | 44 ++-- .../sass/site/secondary/_widgets.scss | 2 +- .../style-editor-customizer.css | 5 + .../style-editor-customizer.scss | 5 + .../themes/twentynineteen/style-editor.css | 188 ++++++++++++------ .../themes/twentynineteen/style-editor.scss | 112 +++++++++-- .../themes/twentynineteen/style-rtl.css | 138 +++++++++---- .../themes/twentynineteen/style.css | 136 ++++++++++--- .../content/content-excerpt.php | 2 +- .../template-parts/content/content.php | 2 +- .../template-parts/header/site-branding.php | 4 +- .../template-parts/post/author-bio.php | 2 +- 31 files changed, 654 insertions(+), 284 deletions(-) create mode 100644 src/wp-content/themes/twentynineteen/style-editor-customizer.css create mode 100644 src/wp-content/themes/twentynineteen/style-editor-customizer.scss diff --git a/src/wp-content/themes/twentynineteen/classes/class-twentynineteen-svg-icons.php b/src/wp-content/themes/twentynineteen/classes/class-twentynineteen-svg-icons.php index 1382d25e70..83a720a619 100644 --- a/src/wp-content/themes/twentynineteen/classes/class-twentynineteen-svg-icons.php +++ b/src/wp-content/themes/twentynineteen/classes/class-twentynineteen-svg-icons.php @@ -197,9 +197,15 @@ class TwentyNineteen_SVG_Icons { 'facebook.com', 'fb.me', ), + 'feed' => array( + 'feed', + ), 'google-plus' => array( 'plus.google.com', ), + 'mail' => array( + 'mailto:', + ), 'slideshare' => array( 'slideshare.net', ), diff --git a/src/wp-content/themes/twentynineteen/classes/class-twentynineteen-walker-comment.php b/src/wp-content/themes/twentynineteen/classes/class-twentynineteen-walker-comment.php index 4e5068aff3..5d94fd7dac 100644 --- a/src/wp-content/themes/twentynineteen/classes/class-twentynineteen-walker-comment.php +++ b/src/wp-content/themes/twentynineteen/classes/class-twentynineteen-walker-comment.php @@ -35,12 +35,14 @@ class TwentyNineteen_Walker_Comment extends Walker_Comment { [^<]+%s<', $avatar ), $comment_author_link ); + printf( '', $comment_author_url ); + echo $avatar; } } @@ -56,8 +58,12 @@ class TwentyNineteen_Walker_Comment extends Walker_Comment { /* translators: %s: comment author link */ printf( __( '%s says:', 'twentynineteen' ), - sprintf( '%s', get_comment_author_link( $comment ) ) + sprintf( '%s', $comment_author ) ); + + if ( ! empty( $comment_author_url ) ) { + echo ''; + } ?> diff --git a/src/wp-content/themes/twentynineteen/comments.php b/src/wp-content/themes/twentynineteen/comments.php index 4b9ee6f892..3de9e0ea53 100644 --- a/src/wp-content/themes/twentynineteen/comments.php +++ b/src/wp-content/themes/twentynineteen/comments.php @@ -13,7 +13,7 @@ */ /* -If the current post is protected by a password and + * If the current post is protected by a password and * the visitor has not yet entered the password we will * return early without loading the comments. */ diff --git a/src/wp-content/themes/twentynineteen/footer.php b/src/wp-content/themes/twentynineteen/footer.php index 514a06faf7..9ceb729582 100644 --- a/src/wp-content/themes/twentynineteen/footer.php +++ b/src/wp-content/themes/twentynineteen/footer.php @@ -18,11 +18,15 @@