diff --git a/.travis.yml b/.travis.yml index c0f30d07..c50fa8cc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -50,6 +50,8 @@ before_script: - theme_slug=$(basename $(pwd)) - theme_dir=$WP_DEVELOP_DIR/src/wp-content/themes/$theme_slug - cd .. + # Avoid conflict with stock twentynineteen theme + - if [ -d $theme_dir ]; then rm -r $theme_dir; fi - mv $theme_slug $theme_dir # Set up WordPress configuration. - cd $WP_DEVELOP_DIR diff --git a/404.php b/404.php index 0c84bc03..1067ab03 100644 --- a/404.php +++ b/404.php @@ -6,28 +6,28 @@ * * @package WordPress * @subpackage Twenty_Nineteen + * @since 1.0.0 */ get_header(); ?> -
+
-
+

-
-
+
- + Customize in your admin panel and customize to taste. - + ## Copyright Twenty Nineteen WordPress Theme, Copyright 2018 WordPress.org -Twenty Nineteen is distributed under the terms of the GNU GPL +Twenty Nineteen is distributed under the terms of the GNU GPL. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff --git a/archive.php b/archive.php index bc910b5e..df8b24fb 100644 --- a/archive.php +++ b/archive.php @@ -6,12 +6,13 @@ * * @package WordPress * @subpackage Twenty_Nineteen + * @since 1.0.0 */ get_header(); ?> -
+
@@ -34,7 +35,7 @@ * 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; @@ -50,7 +51,7 @@ ?>
-
+ \s*<', $svg ); // Remove white space between SVG tags. @@ -70,14 +71,14 @@ public static function get_social_link_svg( $uri, $size ) { * @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,68 +88,68 @@ public static function get_social_link_svg( $uri, $size ) { ', - '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 */ ' + ', diff --git a/classes/class-twentynineteen-walker-comment.php b/classes/class-twentynineteen-walker-comment.php index ad86ea84..4e5068af 100644 --- a/classes/class-twentynineteen-walker-comment.php +++ b/classes/class-twentynineteen-walker-comment.php @@ -4,6 +4,7 @@ * * @package WordPress * @subpackage Twenty_Nineteen + * @since 1.0.0 */ /** @@ -54,7 +55,7 @@ protected function html5_comment( $comment, $depth, $args ) { /* translators: %s: comment author link */ printf( - __( '%s says:' ), + __( '%s says:', 'twentynineteen' ), sprintf( '%s', get_comment_author_link( $comment ) ) ); ?> @@ -69,12 +70,12 @@ protected function html5_comment( $comment, $depth, $args ) { ' . $edit_comment_icon, '' ); + edit_comment_link( __( 'Edit', 'twentynineteen' ), ' ' . $edit_comment_icon, '' ); ?> comment_approved ) : ?> -

+

diff --git a/comments.php b/comments.php index 01bf9e7b..4b9ee6f8 100644 --- a/comments.php +++ b/comments.php @@ -9,6 +9,7 @@ * * @package WordPress * @subpackage Twenty_Nineteen + * @since 1.0.0 */ /* @@ -84,17 +85,6 @@ -
- - - -
- +
+ + + +
+ diff --git a/footer.php b/footer.php index ca06eda8..11f6ff41 100644 --- a/footer.php +++ b/footer.php @@ -8,6 +8,7 @@ * * @package WordPress * @subpackage Twenty_Nineteen + * @since 1.0.0 */ ?> @@ -16,7 +17,9 @@ - + + + diff --git a/template-parts/content/content.php b/template-parts/content/content.php index 0810a5d6..5344b244 100644 --- a/template-parts/content/content.php +++ b/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/template-parts/header/entry-header.php b/template-parts/header/entry-header.php index 80591ebc..9a72cbfd 100644 --- a/template-parts/header/entry-header.php +++ b/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; ?> + ', '' ); ?> + -
+
authors );} + twentynineteen_discussion_avatars_list( $discussion->authors ); + } ?> + %s', 'twentynineteen' ), + array( + 'span' => array( + 'class' => array(), + ), + ) + ), + get_the_title() + ), + '' . twentynineteen_get_icon_svg( 'edit', 16 ), + '' + ); + ?>
diff --git a/template-parts/header/site-branding.php b/template-parts/header/site-branding.php index 66c141a8..8126209f 100644 --- a/template-parts/header/site-branding.php +++ b/template-parts/header/site-branding.php @@ -4,6 +4,7 @@ * * @package WordPress * @subpackage Twenty_Nineteen + * @since 1.0.0 */ ?>
@@ -12,10 +13,12 @@ - -

- -

+ + +

+ +

+ -