summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYury German <blueknight@gentoo.org>2022-01-23 19:12:12 -0500
committerYury German <blueknight@gentoo.org>2022-01-23 19:12:12 -0500
commit856daf897233b153771276d227f05f8f33a6189e (patch)
tree0b5f869863fb7810f8bdf30b848606779415f2d0
parentPlugin - akismet update from 4.1.3 to 4.2.1 (diff)
downloadblogs-gentoo-856daf897233b153771276d227f05f8f33a6189e.tar.gz
blogs-gentoo-856daf897233b153771276d227f05f8f33a6189e.tar.bz2
blogs-gentoo-856daf897233b153771276d227f05f8f33a6189e.zip
twentyfourteen upg 2.7 to 3.2 and twentysixteen from 2.0 to 2.5
Signed-off-by: Yury German <blueknight@gentoo.org>
-rw-r--r--themes/twentyfourteen/archive.php31
-rw-r--r--themes/twentyfourteen/author.php13
-rw-r--r--themes/twentyfourteen/category.php13
-rw-r--r--themes/twentyfourteen/comments.php4
-rw-r--r--themes/twentyfourteen/content-aside.php4
-rw-r--r--themes/twentyfourteen/content-audio.php4
-rw-r--r--themes/twentyfourteen/content-featured-post.php6
-rw-r--r--themes/twentyfourteen/content-gallery.php4
-rw-r--r--themes/twentyfourteen/content-image.php4
-rw-r--r--themes/twentyfourteen/content-link.php4
-rw-r--r--themes/twentyfourteen/content-none.php7
-rw-r--r--themes/twentyfourteen/content-quote.php4
-rw-r--r--themes/twentyfourteen/content-video.php4
-rw-r--r--themes/twentyfourteen/content.php6
-rw-r--r--themes/twentyfourteen/css/blocks.css13
-rw-r--r--themes/twentyfourteen/css/editor-blocks.css95
-rw-r--r--themes/twentyfourteen/css/editor-style.css1
-rw-r--r--themes/twentyfourteen/footer.php5
-rw-r--r--themes/twentyfourteen/functions.php66
-rw-r--r--themes/twentyfourteen/header.php4
-rw-r--r--themes/twentyfourteen/image.php4
-rw-r--r--themes/twentyfourteen/images/bridge.jpgbin0 -> 138675 bytes
-rw-r--r--themes/twentyfourteen/images/clouds.jpgbin0 -> 93526 bytes
-rw-r--r--themes/twentyfourteen/images/pattern-dark.svg32
-rw-r--r--themes/twentyfourteen/images/pattern-light.svg12
-rw-r--r--themes/twentyfourteen/images/person.jpgbin0 -> 155463 bytes
-rw-r--r--themes/twentyfourteen/images/street.jpgbin0 -> 177017 bytes
-rw-r--r--themes/twentyfourteen/images/sunset.jpgbin0 -> 114946 bytes
-rw-r--r--themes/twentyfourteen/inc/back-compat.php24
-rw-r--r--themes/twentyfourteen/inc/block-patterns.php73
-rw-r--r--themes/twentyfourteen/inc/custom-header.php46
-rw-r--r--themes/twentyfourteen/inc/customizer.php10
-rw-r--r--themes/twentyfourteen/inc/featured-content.php17
-rw-r--r--themes/twentyfourteen/inc/template-tags.php21
-rw-r--r--themes/twentyfourteen/inc/widgets.php29
-rw-r--r--themes/twentyfourteen/index.php4
-rw-r--r--themes/twentyfourteen/js/functions.js7
-rw-r--r--themes/twentyfourteen/page-templates/contributors.php2
-rw-r--r--themes/twentyfourteen/page-templates/full-width.php2
-rw-r--r--themes/twentyfourteen/page.php2
-rw-r--r--themes/twentyfourteen/readme.txt42
-rw-r--r--themes/twentyfourteen/rtl.css7
-rw-r--r--themes/twentyfourteen/search.php13
-rw-r--r--themes/twentyfourteen/single.php6
-rw-r--r--themes/twentyfourteen/style.css104
-rw-r--r--themes/twentyfourteen/tag.php13
-rw-r--r--themes/twentyfourteen/taxonomy-post_format.php6
-rw-r--r--themes/twentysixteen/archive.php5
-rw-r--r--themes/twentysixteen/comments.php4
-rw-r--r--themes/twentysixteen/css/blocks.css35
-rw-r--r--themes/twentysixteen/css/editor-blocks.css147
-rw-r--r--themes/twentysixteen/css/editor-style.css8
-rw-r--r--themes/twentysixteen/footer.php5
-rw-r--r--themes/twentysixteen/functions.php65
-rw-r--r--themes/twentysixteen/genericons/genericons.css2
-rw-r--r--themes/twentysixteen/header.php4
-rw-r--r--themes/twentysixteen/image.php6
-rw-r--r--themes/twentysixteen/inc/back-compat.php24
-rw-r--r--themes/twentysixteen/inc/block-patterns.php157
-rw-r--r--themes/twentysixteen/inc/customizer.php70
-rw-r--r--themes/twentysixteen/inc/template-tags.php16
-rw-r--r--themes/twentysixteen/index.php3
-rw-r--r--themes/twentysixteen/js/functions.js2
-rw-r--r--themes/twentysixteen/page.php2
-rw-r--r--themes/twentysixteen/readme.txt39
-rw-r--r--themes/twentysixteen/rtl.css2
-rw-r--r--themes/twentysixteen/search.php7
-rw-r--r--themes/twentysixteen/single.php2
-rw-r--r--themes/twentysixteen/style.css31
-rw-r--r--themes/twentysixteen/template-parts/biography.php7
-rw-r--r--themes/twentysixteen/template-parts/content-none.php7
-rw-r--r--themes/twentysixteen/template-parts/content-page.php2
-rw-r--r--themes/twentysixteen/template-parts/content-search.php4
-rw-r--r--themes/twentysixteen/template-parts/content-single.php2
-rw-r--r--themes/twentysixteen/template-parts/content.php4
75 files changed, 1079 insertions, 351 deletions
diff --git a/themes/twentyfourteen/archive.php b/themes/twentyfourteen/archive.php
index 9d2ba95f..f11a57ff 100644
--- a/themes/twentyfourteen/archive.php
+++ b/themes/twentyfourteen/archive.php
@@ -27,31 +27,30 @@ get_header(); ?>
<header class="page-header">
<h1 class="page-title">
<?php
- if ( is_day() ) :
+ if ( is_day() ) {
+ /* translators: %s: Date. */
printf( __( 'Daily Archives: %s', 'twentyfourteen' ), get_the_date() );
-
- elseif ( is_month() ) :
- printf( __( 'Monthly Archives: %s', 'twentyfourteen' ), get_the_date( _x( 'F Y', 'monthly archives date format', 'twentyfourteen' ) ) );
-
- elseif ( is_year() ) :
- printf( __( 'Yearly Archives: %s', 'twentyfourteen' ), get_the_date( _x( 'Y', 'yearly archives date format', 'twentyfourteen' ) ) );
-
- else :
- _e( 'Archives', 'twentyfourteen' );
-
- endif;
- ?>
+ } elseif ( is_month() ) {
+ /* translators: %s: Date. */
+ printf( __( 'Monthly Archives: %s', 'twentyfourteen' ), get_the_date( _x( 'F Y', 'monthly archives date format', 'twentyfourteen' ) ) );
+ } elseif ( is_year() ) {
+ /* translators: %s: Date. */
+ printf( __( 'Yearly Archives: %s', 'twentyfourteen' ), get_the_date( _x( 'Y', 'yearly archives date format', 'twentyfourteen' ) ) );
+ } else {
+ _e( 'Archives', 'twentyfourteen' );
+ }
+ ?>
</h1>
</header><!-- .page-header -->
<?php
- // Start the Loop.
+ // Start the Loop.
while ( have_posts() ) :
the_post();
/*
- * Include the post format-specific template for the content. If you want to
- * use this in a child theme, then include a file called content-___.php
+ * Include the post format-specific template for the content. If you want
+ * to use this in a child theme, then include a file called content-___.php
* (where ___ is the post format) and that will be used instead.
*/
get_template_part( 'content', get_post_format() );
diff --git a/themes/twentyfourteen/author.php b/themes/twentyfourteen/author.php
index 2f1d47fb..fc3ba043 100644
--- a/themes/twentyfourteen/author.php
+++ b/themes/twentyfourteen/author.php
@@ -28,6 +28,7 @@ get_header(); ?>
*/
the_post();
+ /* translators: %s: Author display name. */
printf( __( 'All posts by %s', 'twentyfourteen' ), get_the_author() );
?>
</h1>
@@ -38,19 +39,19 @@ get_header(); ?>
<?php
/*
- * Since we called the_post() above, we need to rewind
- * the loop back to the beginning that way we can run
- * the loop properly, in full.
+ * Since we called the_post() above, we need
+ * to rewind the loop back to the beginning.
+ * That way we can run the loop properly, in full.
*/
rewind_posts();
- // Start the Loop.
+ // Start the Loop.
while ( have_posts() ) :
the_post();
/*
- * Include the post format-specific template for the content. If you want to
- * use this in a child theme, then include a file called content-___.php
+ * Include the post format-specific template for the content. If you want
+ * to use this in a child theme, then include a file called content-___.php
* (where ___ is the post format) and that will be used instead.
*/
get_template_part( 'content', get_post_format() );
diff --git a/themes/twentyfourteen/category.php b/themes/twentyfourteen/category.php
index c193cc7b..16ccf12c 100644
--- a/themes/twentyfourteen/category.php
+++ b/themes/twentyfourteen/category.php
@@ -17,7 +17,12 @@ get_header(); ?>
<?php if ( have_posts() ) : ?>
<header class="archive-header">
- <h1 class="archive-title"><?php printf( __( 'Category Archives: %s', 'twentyfourteen' ), single_cat_title( '', false ) ); ?></h1>
+ <h1 class="archive-title">
+ <?php
+ /* translators: %s: Category title. */
+ printf( __( 'Category Archives: %s', 'twentyfourteen' ), single_cat_title( '', false ) );
+ ?>
+ </h1>
<?php
// Show an optional term description.
@@ -29,13 +34,13 @@ get_header(); ?>
</header><!-- .archive-header -->
<?php
- // Start the Loop.
+ // Start the Loop.
while ( have_posts() ) :
the_post();
/*
- * Include the post format-specific template for the content. If you want to
- * use this in a child theme, then include a file called content-___.php
+ * Include the post format-specific template for the content. If you want
+ * to use this in a child theme, then include a file called content-___.php
* (where ___ is the post format) and that will be used instead.
*/
get_template_part( 'content', get_post_format() );
diff --git a/themes/twentyfourteen/comments.php b/themes/twentyfourteen/comments.php
index 0b81703f..35992933 100644
--- a/themes/twentyfourteen/comments.php
+++ b/themes/twentyfourteen/comments.php
@@ -26,11 +26,11 @@ if ( post_password_required() ) {
<?php
$comments_number = get_comments_number();
if ( '1' === $comments_number ) {
- /* translators: %s: post title */
+ /* translators: %s: Post title. */
printf( _x( 'One thought on &ldquo;%s&rdquo;', 'comments title', 'twentyfourteen' ), get_the_title() );
} else {
printf(
- /* translators: 1: number of comments, 2: post title */
+ /* translators: 1: Number of comments, 2: Post title. */
_nx(
'%1$s thought on &ldquo;%2$s&rdquo;',
'%1$s thoughts on &ldquo;%2$s&rdquo;',
diff --git a/themes/twentyfourteen/content-aside.php b/themes/twentyfourteen/content-aside.php
index b180826d..ba9f1e15 100644
--- a/themes/twentyfourteen/content-aside.php
+++ b/themes/twentyfourteen/content-aside.php
@@ -12,7 +12,7 @@
<?php twentyfourteen_post_thumbnail(); ?>
<header class="entry-header">
- <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) && twentyfourteen_categorized_blog() ) : ?>
+ <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ), true ) && twentyfourteen_categorized_blog() ) : ?>
<div class="entry-meta">
<span class="cat-links"><?php echo get_the_category_list( _x( ', ', 'Used between list items, there is a space after the comma.', 'twentyfourteen' ) ); ?></span>
</div><!-- .entry-meta -->
@@ -43,9 +43,9 @@
<div class="entry-content">
<?php
- /* translators: %s: Name of current post */
the_content(
sprintf(
+ /* translators: %s: Post title. */
__( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ),
the_title( '<span class="screen-reader-text">', '</span>', false )
)
diff --git a/themes/twentyfourteen/content-audio.php b/themes/twentyfourteen/content-audio.php
index 36aa5a9d..4ae2dbc1 100644
--- a/themes/twentyfourteen/content-audio.php
+++ b/themes/twentyfourteen/content-audio.php
@@ -12,7 +12,7 @@
<?php twentyfourteen_post_thumbnail(); ?>
<header class="entry-header">
- <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) && twentyfourteen_categorized_blog() ) : ?>
+ <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ), true ) && twentyfourteen_categorized_blog() ) : ?>
<div class="entry-meta">
<span class="cat-links"><?php echo get_the_category_list( _x( ', ', 'Used between list items, there is a space after the comma.', 'twentyfourteen' ) ); ?></span>
</div><!-- .entry-meta -->
@@ -43,9 +43,9 @@
<div class="entry-content">
<?php
- /* translators: %s: Name of current post */
the_content(
sprintf(
+ /* translators: %s: Post title. */
__( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ),
the_title( '<span class="screen-reader-text">', '</span>', false )
)
diff --git a/themes/twentyfourteen/content-featured-post.php b/themes/twentyfourteen/content-featured-post.php
index 707b9570..803451fc 100644
--- a/themes/twentyfourteen/content-featured-post.php
+++ b/themes/twentyfourteen/content-featured-post.php
@@ -11,9 +11,9 @@
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<a class="post-thumbnail" href="<?php the_permalink(); ?>">
<?php
- // Output the featured image.
+ // Output the featured image.
if ( has_post_thumbnail() ) :
- if ( 'grid' == get_theme_mod( 'featured_content_layout' ) ) {
+ if ( 'grid' === get_theme_mod( 'featured_content_layout' ) ) {
the_post_thumbnail();
} else {
the_post_thumbnail( 'twentyfourteen-full-width' );
@@ -23,7 +23,7 @@
</a>
<header class="entry-header">
- <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) && twentyfourteen_categorized_blog() ) : ?>
+ <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ), true ) && twentyfourteen_categorized_blog() ) : ?>
<div class="entry-meta">
<span class="cat-links"><?php echo get_the_category_list( _x( ', ', 'Used between list items, there is a space after the comma.', 'twentyfourteen' ) ); ?></span>
</div><!-- .entry-meta -->
diff --git a/themes/twentyfourteen/content-gallery.php b/themes/twentyfourteen/content-gallery.php
index 2f793a8e..1d04b85d 100644
--- a/themes/twentyfourteen/content-gallery.php
+++ b/themes/twentyfourteen/content-gallery.php
@@ -12,7 +12,7 @@
<?php twentyfourteen_post_thumbnail(); ?>
<header class="entry-header">
- <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) && twentyfourteen_categorized_blog() ) : ?>
+ <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ), true ) && twentyfourteen_categorized_blog() ) : ?>
<div class="entry-meta">
<span class="cat-links"><?php echo get_the_category_list( _x( ', ', 'Used between list items, there is a space after the comma.', 'twentyfourteen' ) ); ?></span>
</div><!-- .entry-meta -->
@@ -43,9 +43,9 @@
<div class="entry-content">
<?php
- /* translators: %s: Name of current post */
the_content(
sprintf(
+ /* translators: %s: Post title. */
__( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ),
the_title( '<span class="screen-reader-text">', '</span>', false )
)
diff --git a/themes/twentyfourteen/content-image.php b/themes/twentyfourteen/content-image.php
index 5e58bf00..27985af9 100644
--- a/themes/twentyfourteen/content-image.php
+++ b/themes/twentyfourteen/content-image.php
@@ -12,7 +12,7 @@
<?php twentyfourteen_post_thumbnail(); ?>
<header class="entry-header">
- <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) && twentyfourteen_categorized_blog() ) : ?>
+ <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ), true ) && twentyfourteen_categorized_blog() ) : ?>
<div class="entry-meta">
<span class="cat-links"><?php echo get_the_category_list( _x( ', ', 'Used between list items, there is a space after the comma.', 'twentyfourteen' ) ); ?></span>
</div><!-- .entry-meta -->
@@ -43,9 +43,9 @@
<div class="entry-content">
<?php
- /* translators: %s: Name of current post */
the_content(
sprintf(
+ /* translators: %s: Post title. */
__( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ),
the_title( '<span class="screen-reader-text">', '</span>', false )
)
diff --git a/themes/twentyfourteen/content-link.php b/themes/twentyfourteen/content-link.php
index d4c7c8bd..df30b8d2 100644
--- a/themes/twentyfourteen/content-link.php
+++ b/themes/twentyfourteen/content-link.php
@@ -12,7 +12,7 @@
<?php twentyfourteen_post_thumbnail(); ?>
<header class="entry-header">
- <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) && twentyfourteen_categorized_blog() ) : ?>
+ <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ), true ) && twentyfourteen_categorized_blog() ) : ?>
<div class="entry-meta">
<span class="cat-links"><?php echo get_the_category_list( _x( ', ', 'Used between list items, there is a space after the comma.', 'twentyfourteen' ) ); ?></span>
</div><!-- .entry-meta -->
@@ -43,9 +43,9 @@
<div class="entry-content">
<?php
- /* translators: %s: Name of current post */
the_content(
sprintf(
+ /* translators: %s: Post title. */
__( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ),
the_title( '<span class="screen-reader-text">', '</span>', false )
)
diff --git a/themes/twentyfourteen/content-none.php b/themes/twentyfourteen/content-none.php
index a97f84c8..7e35a720 100644
--- a/themes/twentyfourteen/content-none.php
+++ b/themes/twentyfourteen/content-none.php
@@ -15,7 +15,12 @@
<div class="page-content">
<?php if ( is_home() && current_user_can( 'publish_posts' ) ) : ?>
- <p><?php printf( __( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'twentyfourteen' ), admin_url( 'post-new.php' ) ); ?></p>
+ <p>
+ <?php
+ /* translators: %s: Post editor URL. */
+ printf( __( 'Ready to publish your first post? <a href="%s">Get started here</a>.', 'twentyfourteen' ), admin_url( 'post-new.php' ) );
+ ?>
+ </p>
<?php elseif ( is_search() ) : ?>
diff --git a/themes/twentyfourteen/content-quote.php b/themes/twentyfourteen/content-quote.php
index 29e6ec37..9726792c 100644
--- a/themes/twentyfourteen/content-quote.php
+++ b/themes/twentyfourteen/content-quote.php
@@ -12,7 +12,7 @@
<?php twentyfourteen_post_thumbnail(); ?>
<header class="entry-header">
- <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) && twentyfourteen_categorized_blog() ) : ?>
+ <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ), true ) && twentyfourteen_categorized_blog() ) : ?>
<div class="entry-meta">
<span class="cat-links"><?php echo get_the_category_list( _x( ', ', 'Used between list items, there is a space after the comma.', 'twentyfourteen' ) ); ?></span>
</div><!-- .entry-meta -->
@@ -43,9 +43,9 @@
<div class="entry-content">
<?php
- /* translators: %s: Name of current post */
the_content(
sprintf(
+ /* translators: %s: Post title. */
__( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ),
the_title( '<span class="screen-reader-text">', '</span>', false )
)
diff --git a/themes/twentyfourteen/content-video.php b/themes/twentyfourteen/content-video.php
index 1c1a0efb..814061ce 100644
--- a/themes/twentyfourteen/content-video.php
+++ b/themes/twentyfourteen/content-video.php
@@ -12,7 +12,7 @@
<?php twentyfourteen_post_thumbnail(); ?>
<header class="entry-header">
- <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) && twentyfourteen_categorized_blog() ) : ?>
+ <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ), true ) && twentyfourteen_categorized_blog() ) : ?>
<div class="entry-meta">
<span class="cat-links"><?php echo get_the_category_list( _x( ', ', 'Used between list items, there is a space after the comma.', 'twentyfourteen' ) ); ?></span>
</div><!-- .entry-meta -->
@@ -43,9 +43,9 @@
<div class="entry-content">
<?php
- /* translators: %s: Name of current post */
the_content(
sprintf(
+ /* translators: %s: Post title. */
__( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ),
the_title( '<span class="screen-reader-text">', '</span>', false )
)
diff --git a/themes/twentyfourteen/content.php b/themes/twentyfourteen/content.php
index bf053633..1c480433 100644
--- a/themes/twentyfourteen/content.php
+++ b/themes/twentyfourteen/content.php
@@ -14,7 +14,7 @@
<?php twentyfourteen_post_thumbnail(); ?>
<header class="entry-header">
- <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) && twentyfourteen_categorized_blog() ) : ?>
+ <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ), true ) && twentyfourteen_categorized_blog() ) : ?>
<div class="entry-meta">
<span class="cat-links"><?php echo get_the_category_list( _x( ', ', 'Used between list items, there is a space after the comma.', 'twentyfourteen' ) ); ?></span>
</div>
@@ -30,7 +30,7 @@
<div class="entry-meta">
<?php
- if ( 'post' == get_post_type() ) {
+ if ( 'post' === get_post_type() ) {
twentyfourteen_posted_on();
}
@@ -52,9 +52,9 @@
<?php else : ?>
<div class="entry-content">
<?php
- /* translators: %s: Name of current post */
the_content(
sprintf(
+ /* translators: %s: Post title. */
__( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ),
the_title( '<span class="screen-reader-text">', '</span>', false )
)
diff --git a/themes/twentyfourteen/css/blocks.css b/themes/twentyfourteen/css/blocks.css
index e0f0e231..31691c97 100644
--- a/themes/twentyfourteen/css/blocks.css
+++ b/themes/twentyfourteen/css/blocks.css
@@ -168,6 +168,10 @@ p.has-drop-cap:not(:focus)::first-letter {
padding: 0;
}
+.wp-block-code code {
+ font-size: inherit;
+}
+
/* Pullquote */
.wp-block-pullquote {
@@ -327,6 +331,15 @@ p.has-drop-cap:not(:focus)::first-letter {
color: #41a62a;
}
+.widget-area .wp-block-latest-comments__comment-meta a {
+ color: #fff;
+}
+
+.widget-area .wp-block-latest-comments__comment-meta a:hover,
+.widget-area .wp-block-latest-comments__comment-meta a:focus {
+ color: #41a62a;
+}
+
.wp-block-latest-comments__comment-excerpt p:last-child {
}
diff --git a/themes/twentyfourteen/css/editor-blocks.css b/themes/twentyfourteen/css/editor-blocks.css
index 079896cb..e611e16b 100644
--- a/themes/twentyfourteen/css/editor-blocks.css
+++ b/themes/twentyfourteen/css/editor-blocks.css
@@ -12,6 +12,7 @@ Description: Used to style blocks in the editor.
4.0 Blocks - Formatting
5.0 Blocks - Layout Elements
6.0 Blocks - Widgets
+7.0 Blocks - Colors
--------------------------------------------------------------*/
/*--------------------------------------------------------------
@@ -96,11 +97,7 @@ Description: Used to style blocks in the editor.
.block-library-list ul,
.edit-post-visual-editor ol,
.editor-block-list__block ol,
-.block-library-list ol {
- margin: 0 0 1.6em 1.3333em;
- padding: 0;
-}
-
+.block-library-list ol,
.block-library-list .editor-rich-text__tinymce {
padding: 0;
}
@@ -131,14 +128,22 @@ Description: Used to style blocks in the editor.
margin-bottom: 0;
}
-.rtl .edit-post-visual-editor ul:not(.wp-block-gallery),
-.rtl .editor-block-list__block ul:not(.wp-block-gallery),
-.rtl .block-library-list ul,
-.rtl .edit-post-visual-editor ol,
-.rtl .editor-block-list__block ol,
-.rtl .block-library-list ol {
+.rtl .editor-styles-wrapper ul ul,
+.rtl .editor-styles-wrapper ol ol,
+.rtl .editor-styles-wrapper ul ol,
+.rtl .editor-styles-wrapper ol ul {
margin-left: 0;
- margin-right: 1.3333em;
+ margin-right: 20px;
+}
+
+.wp-block-freeform.block-library-rich-text__tinymce ul,
+.wp-block-freeform.block-library-rich-text__tinymce ol {
+ padding-left: 20px;
+}
+
+.rtl .wp-block-freeform.block-library-rich-text__tinymce ul,
+.rtl .wp-block-freeform.block-library-rich-text__tinymce ol {
+ padding: 0;
}
/* Code */
@@ -345,13 +350,17 @@ p.has-drop-cap:not(:focus)::first-letter {
4.0 Blocks - Formatting
--------------------------------------------------------------*/
-/* Code */
+/* Code (Added specficity required to override TinyMCE styles) */
-.wp-block-code {
+.editor-styles-wrapper .wp-block-code {
border: 0;
padding: 0;
}
+.editor-styles-wrapper .wp-block-code code {
+ font-size: inherit;
+}
+
/* Pullquote */
.wp-block-pullquote {
@@ -382,6 +391,12 @@ p.has-drop-cap:not(:focus)::first-letter {
}
}
+/* Verse */
+
+.editor-styles-wrapper .wp-block-verse {
+ font-family: inherit;
+}
+
/*--------------------------------------------------------------
5.0 Blocks - Layout Elements
--------------------------------------------------------------*/
@@ -482,3 +497,55 @@ p.has-drop-cap:not(:focus)::first-letter {
margin-left: 0;
margin-right: 0;
}
+
+/*--------------------------------------------------------------
+7.0 Blocks - Colors
+--------------------------------------------------------------*/
+
+:root .editor-styles-wrapper .has-green-color {
+ color: #24890d;
+}
+
+:root .editor-styles-wrapper .has-green-background-color {
+ background-color: #24890d;
+}
+
+:root .editor-styles-wrapper .has-black-color {
+ color: #000;
+}
+
+:root .editor-styles-wrapper .has-black-background-color {
+ background-color: #000;
+}
+
+:root .editor-styles-wrapper .has-dark-gray-color {
+ color: #2b2b2b;
+}
+
+:root .editor-styles-wrapper .has-dark-gray-background-color {
+ background-color: #2b2b2b;
+}
+
+:root .editor-styles-wrapper .has-medium-gray-color {
+ color: #767676;
+}
+
+:root .editor-styles-wrapper .has-medium-gray-background-color {
+ background-color: #767676;
+}
+
+:root .editor-styles-wrapper .has-light-gray-color {
+ color: #f5f5f5;
+}
+
+:root .editor-styles-wrapper .has-light-gray-background-color {
+ background-color: #f5f5f5;
+}
+
+:root .editor-styles-wrapper .has-white-color {
+ color: #fff;
+}
+
+:root .editor-styles-wrapper .has-white-background-color {
+ background-color: #fff;
+}
diff --git a/themes/twentyfourteen/css/editor-style.css b/themes/twentyfourteen/css/editor-style.css
index 4c5482ad..4f91b420 100644
--- a/themes/twentyfourteen/css/editor-style.css
+++ b/themes/twentyfourteen/css/editor-style.css
@@ -153,7 +153,6 @@ pre {
pre {
border: 1px solid rgba(0, 0, 0, 0.1);
margin-bottom: 24px;
- max-width: 100%;
overflow: auto;
padding: 12px;
white-space: pre;
diff --git a/themes/twentyfourteen/footer.php b/themes/twentyfourteen/footer.php
index d1016eb9..c3540bf5 100644
--- a/themes/twentyfourteen/footer.php
+++ b/themes/twentyfourteen/footer.php
@@ -24,7 +24,10 @@
}
?>
<a href="<?php echo esc_url( __( 'https://wordpress.org/', 'twentyfourteen' ) ); ?>" class="imprint">
- <?php printf( __( 'Proudly powered by %s', 'twentyfourteen' ), 'WordPress' ); ?>
+ <?php
+ /* translators: %s: WordPress */
+ printf( __( 'Proudly powered by %s', 'twentyfourteen' ), 'WordPress' );
+ ?>
</a>
</div><!-- .site-info -->
</footer><!-- #colophon -->
diff --git a/themes/twentyfourteen/functions.php b/themes/twentyfourteen/functions.php
index c017dac6..f39296b1 100644
--- a/themes/twentyfourteen/functions.php
+++ b/themes/twentyfourteen/functions.php
@@ -11,14 +11,14 @@
* functions.php file. The child theme's functions.php file is included before
* the parent theme's file, so the child theme functions would be used.
*
- * @link https://codex.wordpress.org/Theme_Development
+ * @link https://developer.wordpress.org/themes/basics/theme-functions/
* @link https://developer.wordpress.org/themes/advanced-topics/child-themes/
*
* Functions that are not pluggable (not wrapped in function_exists()) are
* instead attached to a filter or action hook.
*
* For more information on hooks, actions, and filters,
- * @link https://codex.wordpress.org/Plugin_API
+ * @link https://developer.wordpress.org/plugins/
*
* @package WordPress
* @subpackage Twenty_Fourteen
@@ -144,12 +144,15 @@ if ( ! function_exists( 'twentyfourteen_setup' ) ) :
'comment-list',
'gallery',
'caption',
+ 'script',
+ 'style',
+ 'navigation-widgets',
)
);
/*
* Enable support for Post Formats.
- * See https://codex.wordpress.org/Post_Formats
+ * See https://wordpress.org/support/article/post-formats/
*/
add_theme_support(
'post-formats',
@@ -167,6 +170,17 @@ if ( ! function_exists( 'twentyfourteen_setup' ) ) :
// This theme allows users to set a custom background.
add_theme_support(
'custom-background',
+ /**
+ * Filters Twenty Fourteen custom-background support arguments.
+ *
+ * @since Twenty Fourteen 1.0
+ *
+ * @param array $args {
+ * An array of custom-background support arguments.
+ *
+ * @type string $default-color Default color of the background.
+ * }
+ */
apply_filters(
'twentyfourteen_custom_background_args',
array(
@@ -190,7 +204,7 @@ if ( ! function_exists( 'twentyfourteen_setup' ) ) :
// Indicate widget sidebars can use selective refresh in the Customizer.
add_theme_support( 'customize-selective-refresh-widgets' );
}
-endif; // twentyfourteen_setup
+endif; // twentyfourteen_setup()
add_action( 'after_setup_theme', 'twentyfourteen_setup' );
/**
@@ -214,7 +228,7 @@ add_action( 'template_redirect', 'twentyfourteen_content_width' );
*/
function twentyfourteen_get_featured_posts() {
/**
- * Filter the featured posts to return in Twenty Fourteen.
+ * Filters the featured posts to return in Twenty Fourteen.
*
* @since Twenty Fourteen 1.0
*
@@ -289,13 +303,14 @@ add_action( 'widgets_init', 'twentyfourteen_widgets_init' );
function twentyfourteen_font_url() {
$font_url = '';
/*
- * Translators: If there are characters in your language that are not supported
+ * translators: If there are characters in your language that are not supported
* by Lato, translate this to 'off'. Do not translate into your own language.
*/
if ( 'off' !== _x( 'on', 'Lato font: on or off', 'twentyfourteen' ) ) {
$query_args = array(
- 'family' => urlencode( 'Lato:300,400,700,900,300italic,400italic,700italic' ),
- 'subset' => urlencode( 'latin,latin-ext' ),
+ 'family' => urlencode( 'Lato:300,400,700,900,300italic,400italic,700italic' ),
+ 'subset' => urlencode( 'latin,latin-ext' ),
+ 'display' => urlencode( 'fallback' ),
);
$font_url = add_query_arg( $query_args, 'https://fonts.googleapis.com/css' );
}
@@ -316,13 +331,13 @@ function twentyfourteen_scripts() {
wp_enqueue_style( 'genericons', get_template_directory_uri() . '/genericons/genericons.css', array(), '3.0.3' );
// Load our main stylesheet.
- wp_enqueue_style( 'twentyfourteen-style', get_stylesheet_uri() );
+ wp_enqueue_style( 'twentyfourteen-style', get_stylesheet_uri(), array(), '20190507' );
// Theme block stylesheet.
- wp_enqueue_style( 'twentyfourteen-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'twentyfourteen-style' ), '20181230' );
+ wp_enqueue_style( 'twentyfourteen-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'twentyfourteen-style' ), '20190102' );
// Load the Internet Explorer specific stylesheet.
- wp_enqueue_style( 'twentyfourteen-ie', get_template_directory_uri() . '/css/ie.css', array( 'twentyfourteen-style' ), '20131205' );
+ wp_enqueue_style( 'twentyfourteen-ie', get_template_directory_uri() . '/css/ie.css', array( 'twentyfourteen-style' ), '20140701' );
wp_style_add_data( 'twentyfourteen-ie', 'conditional', 'lt IE 9' );
if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
@@ -330,15 +345,15 @@ function twentyfourteen_scripts() {
}
if ( is_singular() && wp_attachment_is_image() ) {
- wp_enqueue_script( 'twentyfourteen-keyboard-image-navigation', get_template_directory_uri() . '/js/keyboard-image-navigation.js', array( 'jquery' ), '20130402' );
+ wp_enqueue_script( 'twentyfourteen-keyboard-image-navigation', get_template_directory_uri() . '/js/keyboard-image-navigation.js', array( 'jquery' ), '20150120' );
}
if ( is_active_sidebar( 'sidebar-3' ) ) {
wp_enqueue_script( 'jquery-masonry' );
}
- if ( is_front_page() && 'slider' == get_theme_mod( 'featured_content_layout' ) ) {
- wp_enqueue_script( 'twentyfourteen-slider', get_template_directory_uri() . '/js/slider.js', array( 'jquery' ), '20131205', true );
+ if ( is_front_page() && 'slider' === get_theme_mod( 'featured_content_layout' ) ) {
+ wp_enqueue_script( 'twentyfourteen-slider', get_template_directory_uri() . '/js/slider.js', array( 'jquery' ), '20150120', true );
wp_localize_script(
'twentyfourteen-slider',
'featuredSliderDefaults',
@@ -349,7 +364,7 @@ function twentyfourteen_scripts() {
);
}
- wp_enqueue_script( 'twentyfourteen-script', get_template_directory_uri() . '/js/functions.js', array( 'jquery' ), '20150315', true );
+ wp_enqueue_script( 'twentyfourteen-script', get_template_directory_uri() . '/js/functions.js', array( 'jquery' ), '20171218', true );
}
add_action( 'wp_enqueue_scripts', 'twentyfourteen_scripts' );
@@ -395,7 +410,7 @@ add_filter( 'wp_resource_hints', 'twentyfourteen_resource_hints', 10, 2 );
*/
function twentyfourteen_block_editor_styles() {
// Block styles.
- wp_enqueue_style( 'twentyfourteen-block-editor-style', get_template_directory_uri() . '/css/editor-blocks.css', array(), '20181230' );
+ wp_enqueue_style( 'twentyfourteen-block-editor-style', get_template_directory_uri() . '/css/editor-blocks.css', array(), '20201208' );
// Add custom fonts.
wp_enqueue_style( 'twentyfourteen-fonts', twentyfourteen_font_url(), array(), null );
}
@@ -410,7 +425,7 @@ if ( ! function_exists( 'twentyfourteen_the_attached_image' ) ) :
function twentyfourteen_the_attached_image() {
$post = get_post();
/**
- * Filter the default Twenty Fourteen attachment size.
+ * Filters the default Twenty Fourteen attachment size.
*
* @since Twenty Fourteen 1.0
*
@@ -452,11 +467,11 @@ if ( ! function_exists( 'twentyfourteen_the_attached_image' ) ) :
}
}
- // get the URL of the next image attachment...
if ( $next_id ) {
+ // ...get the URL of the next image attachment.
$next_attachment_url = get_attachment_link( $next_id );
} else {
- // or get the URL of the first image attachment.
+ // ...or get the URL of the first image attachment.
$next_attachment_url = get_attachment_link( reset( $attachment_ids ) );
}
}
@@ -503,7 +518,10 @@ if ( ! function_exists( 'twentyfourteen_list_authors' ) ) :
<?php echo get_the_author_meta( 'description', $contributor_id ); ?>
</p>
<a class="button contributor-posts-link" href="<?php echo esc_url( get_author_posts_url( $contributor_id ) ); ?>">
- <?php printf( _n( '%d Article', '%d Articles', $post_count, 'twentyfourteen' ), $post_count ); ?>
+ <?php
+ /* translators: %d: Post count. */
+ printf( _n( '%d Article', '%d Articles', $post_count, 'twentyfourteen' ), $post_count );
+ ?>
</a>
</div><!-- .contributor-summary -->
</div><!-- .contributor-info -->
@@ -538,7 +556,7 @@ function twentyfourteen_body_classes( $classes ) {
if ( get_header_image() ) {
$classes[] = 'header-image';
- } elseif ( ! in_array( $GLOBALS['pagenow'], array( 'wp-activate.php', 'wp-signup.php' ) ) ) {
+ } elseif ( ! in_array( $GLOBALS['pagenow'], array( 'wp-activate.php', 'wp-signup.php' ), true ) ) {
$classes[] = 'masthead-fixed';
}
@@ -561,7 +579,7 @@ function twentyfourteen_body_classes( $classes ) {
$classes[] = 'singular';
}
- if ( is_front_page() && 'slider' == get_theme_mod( 'featured_content_layout' ) ) {
+ if ( is_front_page() && 'slider' === get_theme_mod( 'featured_content_layout' ) ) {
$classes[] = 'slider';
} elseif ( is_front_page() ) {
$classes[] = 'grid';
@@ -622,6 +640,7 @@ function twentyfourteen_wp_title( $title, $sep ) {
// Add a page number if necessary.
if ( ( $paged >= 2 || $page >= 2 ) && ! is_404() ) {
+ /* translators: %s: Page number. */
$title = "$title $sep " . sprintf( __( 'Page %s', 'twentyfourteen' ), max( $paged, $page ) );
}
@@ -659,6 +678,9 @@ require get_template_directory() . '/inc/template-tags.php';
// Add Customizer functionality.
require get_template_directory() . '/inc/customizer.php';
+// Add support for block patterns.
+require get_template_directory() . '/inc/block-patterns.php';
+
/*
* Add Featured Content functionality.
*
diff --git a/themes/twentyfourteen/header.php b/themes/twentyfourteen/header.php
index 88071ec9..4bedca64 100644
--- a/themes/twentyfourteen/header.php
+++ b/themes/twentyfourteen/header.php
@@ -22,10 +22,10 @@
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width">
<title><?php wp_title( '|', true, 'right' ); ?></title>
- <link rel="profile" href="http://gmpg.org/xfn/11">
+ <link rel="profile" href="https://gmpg.org/xfn/11">
<link rel="pingback" href="<?php echo esc_url( get_bloginfo( 'pingback_url' ) ); ?>">
<!--[if lt IE 9]>
- <script src="<?php echo get_template_directory_uri(); ?>/js/html5.js"></script>
+ <script src="<?php echo get_template_directory_uri(); ?>/js/html5.js?ver=3.7.0"></script>
<![endif]-->
<?php wp_head(); ?>
</head>
diff --git a/themes/twentyfourteen/image.php b/themes/twentyfourteen/image.php
index eb4a1658..ed5a9f2e 100644
--- a/themes/twentyfourteen/image.php
+++ b/themes/twentyfourteen/image.php
@@ -17,7 +17,7 @@ get_header();
<div id="content" class="site-content" role="main">
<?php
- // Start the Loop.
+ // Start the Loop.
while ( have_posts() ) :
the_post();
?>
@@ -72,7 +72,7 @@ get_header();
<?php comments_template(); ?>
- <?php endwhile; // end of the loop. ?>
+ <?php endwhile; // End of the loop. ?>
</div><!-- #content -->
</section><!-- #primary -->
diff --git a/themes/twentyfourteen/images/bridge.jpg b/themes/twentyfourteen/images/bridge.jpg
new file mode 100644
index 00000000..d172bb28
--- /dev/null
+++ b/themes/twentyfourteen/images/bridge.jpg
Binary files differ
diff --git a/themes/twentyfourteen/images/clouds.jpg b/themes/twentyfourteen/images/clouds.jpg
new file mode 100644
index 00000000..f753465d
--- /dev/null
+++ b/themes/twentyfourteen/images/clouds.jpg
Binary files differ
diff --git a/themes/twentyfourteen/images/pattern-dark.svg b/themes/twentyfourteen/images/pattern-dark.svg
index ef6d5d83..af4bc9a4 100644
--- a/themes/twentyfourteen/images/pattern-dark.svg
+++ b/themes/twentyfourteen/images/pattern-dark.svg
@@ -1,16 +1,16 @@
-<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
- width="30px" height="30px" viewBox="0 0 30 30" enable-background="new 0 0 30 30" xml:space="preserve">
-<rect x="0" display="none" width="30" height="30"/>
-<polygon opacity="0.3" fill="#FFFFFF" points="30,0 0,30 1,30 30,1 "/>
-<polygon opacity="0.3" fill="#FFFFFF" points="30,5 0,35 1,35 30,6 "/>
-<polygon opacity="0.3" fill="#FFFFFF" points="30,10 0,40 1,40 30,11 "/>
-<polygon opacity="0.3" fill="#FFFFFF" points="30,15 0,45 1,45 30,16 "/>
-<polygon opacity="0.3" fill="#FFFFFF" points="30,20 0,50 1,50 30,21 "/>
-<polygon opacity="0.3" fill="#FFFFFF" points="30,25 0,55 1,55 30,26 "/>
-<polygon opacity="0.3" fill="#FFFFFF" points="26,-1 -4,29 -3,29 26,0 "/>
-<polygon opacity="0.3" fill="#FFFFFF" points="21,-1 -9,29 -8,29 21,0 "/>
-<polygon opacity="0.3" fill="#FFFFFF" points="16,-1 -14,29 -13,29 16,0 "/>
-<polygon opacity="0.3" fill="#FFFFFF" points="11,-1 -19,29 -18,29 11,0 "/>
-<polygon opacity="0.3" fill="#FFFFFF" points="6,-1 -24,29 -23,29 6,0 "/>
-<polygon opacity="0.3" fill="#FFFFFF" points="1,-1 -29,29 -28,29 1,0 "/>
-</svg>
+<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
+ width="30px" height="30px" viewBox="0 0 30 30" enable-background="new 0 0 30 30" xml:space="preserve">
+<rect x="0" display="none" width="30" height="30"/>
+<polygon opacity="0.3" fill="#FFFFFF" points="30,0 0,30 1,30 30,1 "/>
+<polygon opacity="0.3" fill="#FFFFFF" points="30,5 0,35 1,35 30,6 "/>
+<polygon opacity="0.3" fill="#FFFFFF" points="30,10 0,40 1,40 30,11 "/>
+<polygon opacity="0.3" fill="#FFFFFF" points="30,15 0,45 1,45 30,16 "/>
+<polygon opacity="0.3" fill="#FFFFFF" points="30,20 0,50 1,50 30,21 "/>
+<polygon opacity="0.3" fill="#FFFFFF" points="30,25 0,55 1,55 30,26 "/>
+<polygon opacity="0.3" fill="#FFFFFF" points="26,-1 -4,29 -3,29 26,0 "/>
+<polygon opacity="0.3" fill="#FFFFFF" points="21,-1 -9,29 -8,29 21,0 "/>
+<polygon opacity="0.3" fill="#FFFFFF" points="16,-1 -14,29 -13,29 16,0 "/>
+<polygon opacity="0.3" fill="#FFFFFF" points="11,-1 -19,29 -18,29 11,0 "/>
+<polygon opacity="0.3" fill="#FFFFFF" points="6,-1 -24,29 -23,29 6,0 "/>
+<polygon opacity="0.3" fill="#FFFFFF" points="1,-1 -29,29 -28,29 1,0 "/>
+</svg>
diff --git a/themes/twentyfourteen/images/pattern-light.svg b/themes/twentyfourteen/images/pattern-light.svg
index 55a48f1b..a8a3be32 100644
--- a/themes/twentyfourteen/images/pattern-light.svg
+++ b/themes/twentyfourteen/images/pattern-light.svg
@@ -1,6 +1,6 @@
-<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
- width="30px" height="30px" viewBox="0 0 30 30" enable-background="new 0 0 30 30" xml:space="preserve">
-<path fill="#FFFFFF" d="M0,15v-4L11,0h4L0,15z M10,0H6L0,6v4L10,0z M20,0h-4L0,16v4L20,0z M25,0h-4L0,21v4L25,0z M26,0L0,26v4L30,0
- H26z M5,0H1L0,1v4L5,0z M5,30L30,5V1L1,30H5z M10,30l20-20V6L6,30H10z M15,30l15-15v-4L11,30H15z M20,30l10-10v-4L16,30H20z M25,30
- l5-5v-4l-9,9H25z M30,30v-4l-4,4H30z"/>
-</svg>
+<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
+ width="30px" height="30px" viewBox="0 0 30 30" enable-background="new 0 0 30 30" xml:space="preserve">
+<path fill="#FFFFFF" d="M0,15v-4L11,0h4L0,15z M10,0H6L0,6v4L10,0z M20,0h-4L0,16v4L20,0z M25,0h-4L0,21v4L25,0z M26,0L0,26v4L30,0
+ H26z M5,0H1L0,1v4L5,0z M5,30L30,5V1L1,30H5z M10,30l20-20V6L6,30H10z M15,30l15-15v-4L11,30H15z M20,30l10-10v-4L16,30H20z M25,30
+ l5-5v-4l-9,9H25z M30,30v-4l-4,4H30z"/>
+</svg>
diff --git a/themes/twentyfourteen/images/person.jpg b/themes/twentyfourteen/images/person.jpg
new file mode 100644
index 00000000..8dbad508
--- /dev/null
+++ b/themes/twentyfourteen/images/person.jpg
Binary files differ
diff --git a/themes/twentyfourteen/images/street.jpg b/themes/twentyfourteen/images/street.jpg
new file mode 100644
index 00000000..71735a04
--- /dev/null
+++ b/themes/twentyfourteen/images/street.jpg
Binary files differ
diff --git a/themes/twentyfourteen/images/sunset.jpg b/themes/twentyfourteen/images/sunset.jpg
new file mode 100644
index 00000000..8c1b379f
--- /dev/null
+++ b/themes/twentyfourteen/images/sunset.jpg
Binary files differ
diff --git a/themes/twentyfourteen/inc/back-compat.php b/themes/twentyfourteen/inc/back-compat.php
index 0e8f34b5..a0e0b118 100644
--- a/themes/twentyfourteen/inc/back-compat.php
+++ b/themes/twentyfourteen/inc/back-compat.php
@@ -34,8 +34,14 @@ add_action( 'after_switch_theme', 'twentyfourteen_switch_theme' );
* @since Twenty Fourteen 1.0
*/
function twentyfourteen_upgrade_notice() {
- $message = sprintf( __( 'Twenty Fourteen requires at least WordPress version 3.6. You are running version %s. Please upgrade and try again.', 'twentyfourteen' ), $GLOBALS['wp_version'] );
- printf( '<div class="error"><p>%s</p></div>', $message );
+ printf(
+ '<div class="error"><p>%s</p></div>',
+ sprintf(
+ /* translators: %s: WordPress version. */
+ __( 'Twenty Fourteen requires at least WordPress version 3.6. You are running version %s. Please upgrade and try again.', 'twentyfourteen' ),
+ $GLOBALS['wp_version']
+ )
+ );
}
/**
@@ -45,7 +51,11 @@ function twentyfourteen_upgrade_notice() {
*/
function twentyfourteen_customize() {
wp_die(
- sprintf( __( 'Twenty Fourteen requires at least WordPress version 3.6. You are running version %s. Please upgrade and try again.', 'twentyfourteen' ), $GLOBALS['wp_version'] ),
+ sprintf(
+ /* translators: %s: WordPress version. */
+ __( 'Twenty Fourteen requires at least WordPress version 3.6. You are running version %s. Please upgrade and try again.', 'twentyfourteen' ),
+ $GLOBALS['wp_version']
+ ),
'',
array(
'back_link' => true,
@@ -61,7 +71,13 @@ add_action( 'load-customize.php', 'twentyfourteen_customize' );
*/
function twentyfourteen_preview() {
if ( isset( $_GET['preview'] ) ) {
- wp_die( sprintf( __( 'Twenty Fourteen requires at least WordPress version 3.6. You are running version %s. Please upgrade and try again.', 'twentyfourteen' ), $GLOBALS['wp_version'] ) );
+ wp_die(
+ sprintf(
+ /* translators: %s: WordPress version. */
+ __( 'Twenty Fourteen requires at least WordPress version 3.6. You are running version %s. Please upgrade and try again.', 'twentyfourteen' ),
+ $GLOBALS['wp_version']
+ )
+ );
}
}
add_action( 'template_redirect', 'twentyfourteen_preview' );
diff --git a/themes/twentyfourteen/inc/block-patterns.php b/themes/twentyfourteen/inc/block-patterns.php
new file mode 100644
index 00000000..5d653007
--- /dev/null
+++ b/themes/twentyfourteen/inc/block-patterns.php
@@ -0,0 +1,73 @@
+<?php
+/**
+ * Block Patterns
+ *
+ * @link https://developer.wordpress.org/reference/functions/register_block_pattern/
+ * @link https://developer.wordpress.org/reference/functions/register_block_pattern_category/
+ *
+ * @package WordPress
+ * @subpackage Twenty_Fourteen
+ * @since Twenty Fourteen 3.2
+ */
+
+/**
+ * Register Block Pattern Category.
+ */
+if ( function_exists( 'register_block_pattern_category' ) ) {
+
+ register_block_pattern_category(
+ 'twentyfourteen',
+ array( 'label' => esc_html__( 'Twenty Fourteen', 'twentyfourteen' ) )
+ );
+}
+
+/**
+ * Register Block Patterns.
+ */
+if ( function_exists( 'register_block_pattern' ) ) {
+
+ // Description
+ register_block_pattern(
+ 'twentyfourteen/about',
+ array(
+ 'title' => esc_html__( 'About', 'twentyfourteen' ),
+ 'categories' => array( 'twentyfourteen' ),
+ 'viewportWidth' => 1000,
+ 'content' => '<!-- wp:image {"id":null,"sizeSlug":"large","linkDestination":"none"} --><figure class="wp-block-image size-large"><img src="' . esc_url( get_template_directory_uri() ) . '/images/person.jpg" alt="' . esc_attr__( 'A person standing in front of a lake', 'twentyfourteen' ) . '"/></figure><!-- /wp:image --><!-- wp:heading {"fontSize":"large","style":{"typography":{"lineHeight":"1.4"}}} --><h2 class="has-large-font-size" style="line-height:1.4">' . esc_html__( 'Hello, my name is Joan. I am passionate about writing, travel, and photography.', 'twentyfourteen' ) . '</h2><!-- /wp:heading --><!-- wp:paragraph --><p>' . esc_html__( 'I’ve traveled to over 60 countries, and have made many friends along the way. I created this website to keep track of the memories I’ve made in my years of traveling.', 'twentyfourteen' ) . '</p><!-- /wp:paragraph -->',
+ )
+ );
+
+ // Description
+ register_block_pattern(
+ 'twentyfourteen/list',
+ array(
+ 'title' => esc_html__( 'List', 'twentyfourteen' ),
+ 'categories' => array( 'twentyfourteen' ),
+ 'viewportWidth' => 1000,
+ 'content' => '<!-- wp:columns --><div class="wp-block-columns"><!-- wp:column {"width":"40%"} --><div class="wp-block-column" style="flex-basis:40%"><!-- wp:heading {"style":{"typography":{"fontSize":45}}} --><h2 style="font-size:45px">' . esc_html__( '2001', 'twentyfourteen' ) . '</h2><!-- /wp:heading --></div><!-- /wp:column --><!-- wp:column --><div class="wp-block-column"><!-- wp:paragraph --><p><em>' . esc_html__( 'My first year of traveling. I visited China, Thailand, Japan, and India.', 'twentyfourteen' ) . '</em></p><!-- /wp:paragraph --></div><!-- /wp:column --></div><!-- /wp:columns --><!-- wp:separator {"color":"black","className":"is-style-wide"} --><hr class="wp-block-separator has-text-color has-background has-black-background-color has-black-color is-style-wide"/><!-- /wp:separator --><!-- wp:columns --><div class="wp-block-columns"><!-- wp:column {"width":"40%"} --><div class="wp-block-column" style="flex-basis:40%"><!-- wp:heading {"style":{"typography":{"fontSize":50}}} --><h2 style="font-size:50px">' . esc_html__( '2012', 'twentyfourteen' ) . '</h2><!-- /wp:heading --></div><!-- /wp:column --><!-- wp:column --><div class="wp-block-column"><!-- wp:paragraph --><p><em>' . esc_html__( 'In 2012, I expanded my travels to Europe. I spent time in Poland, Germany, Italy, France, and Spain. ', 'twentyfourteen' ) . '</em></p><!-- /wp:paragraph --></div><!-- /wp:column --></div><!-- /wp:columns --><!-- wp:separator {"color":"black","className":"is-style-wide"} --><hr class="wp-block-separator has-text-color has-background has-black-background-color has-black-color is-style-wide"/><!-- /wp:separator --><!-- wp:columns --><div class="wp-block-columns"><!-- wp:column {"width":"40%"} --><div class="wp-block-column" style="flex-basis:40%"><!-- wp:heading {"style":{"typography":{"fontSize":50}}} --><h2 style="font-size:50px">' . esc_html__( '2016', 'twentyfourteen' ) . '</h2><!-- /wp:heading --></div><!-- /wp:column --><!-- wp:column --><div class="wp-block-column"><!-- wp:paragraph --><p><em>' . esc_html__( 'This year was devoted entirely to the western hemisphere. I went on a month-long road trip through the U.S.A. and Canada, and also visited Mexico, Brazil, and Colombia.', 'twentyfourteen' ) . '</em></p><!-- /wp:paragraph --></div><!-- /wp:column --></div><!-- /wp:columns -->',
+ )
+ );
+
+ // Heading and paragraph with four images.
+ register_block_pattern(
+ 'twentyfourteen/summary',
+ array(
+ 'title' => esc_html__( 'Summary', 'twentyfourteen' ),
+ 'categories' => array( 'twentyfourteen' ),
+ 'viewportWidth' => 1000,
+ 'content' => '<!-- wp:group {"backgroundColor":"light-gray"} --><div class="wp-block-group has-light-gray-background-color has-background"><div class="wp-block-group__inner-container"><!-- wp:spacer {"height":50} --><div style="height:50px" aria-hidden="true" class="wp-block-spacer"></div><!-- /wp:spacer --><!-- wp:heading {"level":3,"style":{"typography":{"lineHeight":"1.5"}}} --><h3 style="line-height:1.5">' . esc_html__( 'Traveling Nostalgia', 'twentyfourteen' ) . '</h3><!-- /wp:heading --><!-- wp:paragraph --><p><em>' . esc_html__( 'Here are some photos from my all-time favorite destinations.', 'twentyfourteen' ) . '</em></p><!-- /wp:paragraph --><!-- wp:columns --><div class="wp-block-columns"><!-- wp:column --><div class="wp-block-column"><!-- wp:image {"id":null,"sizeSlug":"large","linkDestination":"none"} --><figure class="wp-block-image size-large"><img src="' . esc_url( get_template_directory_uri() ) . '/images/sunset.jpg" alt="' . esc_html__( 'Photo of a sunset', 'twentyfourteen' ) . '"/><figcaption><span class="has-inline-color has-dark-gray-color">' . esc_html__( 'Sunset', 'twentyfourteen' ) . '</span></figcaption></figure><!-- /wp:image --><!-- wp:image {"id":null,"sizeSlug":"large","linkDestination":"none"} --><figure class="wp-block-image size-large"><img src="' . esc_url( get_template_directory_uri() ) . '/images/bridge.jpg" alt="' . esc_attr__( 'Photo of a bridge', 'twentyfourteen' ) . '"/><figcaption><span class="has-inline-color has-dark-gray-color">' . esc_html__( 'Bridge', 'twentyfourteen' ) . '</span></figcaption></figure><!-- /wp:image --></div><!-- /wp:column --><!-- wp:column --><div class="wp-block-column"><!-- wp:image {"id":null,"sizeSlug":"large","linkDestination":"none"} --><figure class="wp-block-image size-large"><img src="' . esc_url( get_template_directory_uri() ) . '/images/street.jpg" alt="' . esc_attr__( 'Photo of a streetscape', 'twentyfourteen' ) . '"/><figcaption><span class="has-inline-color has-dark-gray-color">' . esc_html__( 'Streetscape', 'twentyfourteen' ) . '</span></figcaption></figure><!-- /wp:image --><!-- wp:image {"id":null,"sizeSlug":"large","linkDestination":"none"} --><figure class="wp-block-image size-large"><img src="' . esc_url( get_template_directory_uri() ) . '/images/clouds.jpg" alt="' . esc_attr__( 'Photo of a cloudy mountain', 'twentyfourteen' ) . '"/><figcaption><span class="has-inline-color has-dark-gray-color">' . esc_html__( 'Clouds', 'twentyfourteen' ) . '</span></figcaption></figure><!-- /wp:image --></div><!-- /wp:column --></div><!-- /wp:columns --><!-- wp:buttons --><div class="wp-block-buttons"><!-- wp:button {"borderRadius":0,"backgroundColor":"dark-gray"} --><div class="wp-block-button"><a class="wp-block-button__link has-dark-gray-background-color has-background no-border-radius">' . esc_html__( 'Read More', 'twentyfourteen' ) . '</a></div><!-- /wp:button --></div><!-- /wp:buttons --><!-- wp:spacer {"height":50} --><div style="height:50px" aria-hidden="true" class="wp-block-spacer"></div><!-- /wp:spacer --></div></div><!-- /wp:group -->',
+ )
+ );
+
+ // Cover block with contact message.
+ register_block_pattern(
+ 'twentyfourteen/contact',
+ array(
+ 'title' => esc_html__( 'Contact', 'twentyfourteen' ),
+ 'categories' => array( 'twentyfourteen' ),
+ 'viewportWidth' => 1000,
+ 'content' => '<!-- wp:cover {"customOverlayColor":"#e6f0e4","minHeight":450,"contentPosition":"center center","className":"is-style-default"} --><div class="wp-block-cover has-background-dim is-style-default" style="background-color:#e6f0e4;min-height:450px"><div class="wp-block-cover__inner-container"><!-- wp:spacer {"height":10} --><div style="height:10px" aria-hidden="true" class="wp-block-spacer"></div><!-- /wp:spacer --><!-- wp:paragraph {"align":"left","placeholder":"' . esc_attr__( 'Write title…', 'twentyfourteen' ) . '","textColor":"black","fontSize":"large"} --><p class="has-text-align-left has-black-color has-text-color has-large-font-size">' . esc_html__( 'GOT A QUESTION?', 'twentyfourteen' ) . '</p><!-- /wp:paragraph --><!-- wp:paragraph {"align":"left","textColor":"black","style":{"typography":{"fontSize":22}}} --><p class="has-text-align-left has-black-color has-text-color" style="font-size:22px">' . esc_html__( 'Don’t hesitate to reach out.', 'twentyfourteen' ) . '</p><!-- /wp:paragraph --><!-- wp:buttons --><div class="wp-block-buttons"><!-- wp:button {"borderRadius":0} --><div class="wp-block-button"><a class="wp-block-button__link no-border-radius">' . esc_html__( 'GET IN TOUCH', 'twentyfourteen' ) . '</a></div><!-- /wp:button --></div><!-- /wp:buttons --></div></div><!-- /wp:cover -->',
+ )
+ );
+
+}
diff --git a/themes/twentyfourteen/inc/custom-header.php b/themes/twentyfourteen/inc/custom-header.php
index 92382eaa..7fb590db 100644
--- a/themes/twentyfourteen/inc/custom-header.php
+++ b/themes/twentyfourteen/inc/custom-header.php
@@ -17,26 +17,26 @@
* @uses twentyfourteen_admin_header_image()
*/
function twentyfourteen_custom_header_setup() {
- /**
- * Filter Twenty Fourteen custom-header support arguments.
- *
- * @since Twenty Fourteen 1.0
- *
- * @param array $args {
- * An array of custom-header support arguments.
- *
- * @type bool $header_text Whether to display custom header text. Default false.
- * @type int $width Width in pixels of the custom header image. Default 1260.
- * @type int $height Height in pixels of the custom header image. Default 240.
- * @type bool $flex_height Whether to allow flexible-height header images. Default true.
- * @type string $admin_head_callback Callback function used to style the image displayed in
- * the Appearance > Header screen.
- * @type string $admin_preview_callback Callback function used to create the custom header markup in
- * the Appearance > Header screen.
- * }
- */
add_theme_support(
'custom-header',
+ /**
+ * Filters Twenty Fourteen custom-header support arguments.
+ *
+ * @since Twenty Fourteen 1.0
+ *
+ * @param array $args {
+ * An array of custom-header support arguments.
+ *
+ * @type bool $header_text Whether to display custom header text. Default false.
+ * @type int $width Width in pixels of the custom header image. Default 1260.
+ * @type int $height Height in pixels of the custom header image. Default 240.
+ * @type bool $flex_height Whether to allow flexible-height header images. Default true.
+ * @type string $admin_head_callback Callback function used to style the image displayed in
+ * the Appearance > Header screen.
+ * @type string $admin_preview_callback Callback function used to create the custom header markup in
+ * the Appearance > Header screen.
+ * }
+ */
apply_filters(
'twentyfourteen_custom_header_args',
array(
@@ -63,7 +63,7 @@ if ( ! function_exists( 'twentyfourteen_header_style' ) ) :
$text_color = get_header_textcolor();
// If no custom color for text is set, let's bail.
- if ( display_header_text() && $text_color === get_theme_support( 'custom-header', 'default-text-color' ) ) {
+ if ( display_header_text() && get_theme_support( 'custom-header', 'default-text-color' ) === $text_color ) {
return;
}
@@ -82,7 +82,7 @@ if ( ! function_exists( 'twentyfourteen_header_style' ) ) :
}
<?php
// If the user has set a custom color for the text, use that.
- elseif ( $text_color != get_theme_support( 'custom-header', 'default-text-color' ) ) :
+ elseif ( get_theme_support( 'custom-header', 'default-text-color' ) != $text_color ) :
?>
.site-title a {
color: #<?php echo esc_attr( $text_color ); ?>;
@@ -91,7 +91,7 @@ if ( ! function_exists( 'twentyfourteen_header_style' ) ) :
</style>
<?php
}
-endif; // twentyfourteen_header_style
+endif; // twentyfourteen_header_style()
if ( ! function_exists( 'twentyfourteen_admin_header_style' ) ) :
@@ -130,7 +130,7 @@ if ( ! function_exists( 'twentyfourteen_admin_header_style' ) ) :
</style>
<?php
}
-endif; // twentyfourteen_admin_header_style
+endif; // twentyfourteen_admin_header_style()
if ( ! function_exists( 'twentyfourteen_admin_header_image' ) ) :
/**
@@ -150,4 +150,4 @@ if ( ! function_exists( 'twentyfourteen_admin_header_image' ) ) :
</div>
<?php
}
-endif; // twentyfourteen_admin_header_image
+endif; // twentyfourteen_admin_header_image()
diff --git a/themes/twentyfourteen/inc/customizer.php b/themes/twentyfourteen/inc/customizer.php
index 15314093..bcf2e2c6 100644
--- a/themes/twentyfourteen/inc/customizer.php
+++ b/themes/twentyfourteen/inc/customizer.php
@@ -60,6 +60,7 @@ function twentyfourteen_customize_register( $wp_customize ) {
array(
'title' => __( 'Featured Content', 'twentyfourteen' ),
'description' => sprintf(
+ /* translators: 1: Featured tag editor URL, 2: Post editor URL. */
__( 'Use a <a href="%1$s">tag</a> to feature your posts. If no posts match the tag, <a href="%2$s">sticky posts</a> will be displayed instead.', 'twentyfourteen' ),
esc_url( add_query_arg( 'tag', _x( 'featured', 'featured content default tag slug', 'twentyfourteen' ), admin_url( 'edit.php' ) ) ),
admin_url( 'edit.php?show_sticky=1' )
@@ -97,6 +98,7 @@ add_action( 'customize_register', 'twentyfourteen_customize_register' );
* Render the site title for the selective refresh partial.
*
* @since Twenty Fourteen 1.7
+ *
* @see twentyfourteen_customize_register()
*
* @return void
@@ -109,6 +111,7 @@ function twentyfourteen_customize_partial_blogname() {
* Render the site tagline for the selective refresh partial.
*
* @since Twenty Fourteen 1.7
+ *
* @see twentyfourteen_customize_register()
*
* @return void
@@ -126,7 +129,7 @@ function twentyfourteen_customize_partial_blogdescription() {
* @return string Filtered layout type (grid|slider).
*/
function twentyfourteen_sanitize_layout( $layout ) {
- if ( ! in_array( $layout, array( 'grid', 'slider' ) ) ) {
+ if ( ! in_array( $layout, array( 'grid', 'slider' ), true ) ) {
$layout = 'grid';
}
@@ -139,7 +142,7 @@ function twentyfourteen_sanitize_layout( $layout ) {
* @since Twenty Fourteen 1.0
*/
function twentyfourteen_customize_preview_js() {
- wp_enqueue_script( 'twentyfourteen_customizer', get_template_directory_uri() . '/js/customizer.js', array( 'customize-preview' ), '20131205', true );
+ wp_enqueue_script( 'twentyfourteen_customizer', get_template_directory_uri() . '/js/customizer.js', array( 'customize-preview' ), '20141015', true );
}
add_action( 'customize_preview_init', 'twentyfourteen_customize_preview_js' );
@@ -159,8 +162,11 @@ function twentyfourteen_contextual_help() {
'title' => __( 'Twenty Fourteen', 'twentyfourteen' ),
'content' =>
'<ul>' .
+ /* translators: 1: Featured tag editor URL, 2: Post editor URL, 3: Customizer URL, 4: Post editor URL. */
'<li>' . sprintf( __( 'The home page features your choice of up to 6 posts prominently displayed in a grid or slider, controlled by a <a href="%1$s">tag</a>; you can change the tag and layout in <a href="%2$s">Appearance &rarr; Customize</a>. If no posts match the tag, <a href="%3$s">sticky posts</a> will be displayed instead.', 'twentyfourteen' ), esc_url( add_query_arg( 'tag', _x( 'featured', 'featured content default tag slug', 'twentyfourteen' ), admin_url( 'edit.php' ) ) ), admin_url( 'customize.php' ), admin_url( 'edit.php?show_sticky=1' ) ) . '</li>' .
+ /* translators: %s: Featured images documentation URL. */
'<li>' . sprintf( __( 'Enhance your site design by using <a href="%s">Featured Images</a> for posts you&rsquo;d like to stand out (also known as post thumbnails). This allows you to associate an image with your post without inserting it. Twenty Fourteen uses featured images for posts and pages&mdash;above the title&mdash;and in the Featured Content area on the home page.', 'twentyfourteen' ), 'https://codex.wordpress.org/Post_Thumbnails#Setting_a_Post_Thumbnail' ) . '</li>' .
+ /* translators: %s: Twenty Fourteen documentation URL. */
'<li>' . sprintf( __( 'For an in-depth tutorial, and more tips and tricks, visit the <a href="%s">Twenty Fourteen documentation</a>.', 'twentyfourteen' ), 'https://codex.wordpress.org/Twenty_Fourteen' ) . '</li>' .
'</ul>',
)
diff --git a/themes/twentyfourteen/inc/featured-content.php b/themes/twentyfourteen/inc/featured-content.php
index 23fb38d7..da8b76f7 100644
--- a/themes/twentyfourteen/inc/featured-content.php
+++ b/themes/twentyfourteen/inc/featured-content.php
@@ -190,7 +190,7 @@ class Featured_Content {
}
/**
- * Delete featured content ids transient.
+ * Delete featured content IDs transient.
*
* Hooks in the "save_post" action.
*
@@ -233,7 +233,7 @@ class Featured_Content {
return;
}
- // We need to respect post ids already in the blacklist.
+ // We need to respect post IDs already in the exclude list.
$post__not_in = $query->get( 'post__not_in' );
if ( ! empty( $post__not_in ) ) {
@@ -292,7 +292,7 @@ class Featured_Content {
}
// We only want to hide the featured tag.
- if ( ! in_array( 'post_tag', $taxonomies ) ) {
+ if ( ! in_array( 'post_tag', $taxonomies, true ) ) {
return $terms;
}
@@ -302,7 +302,7 @@ class Featured_Content {
}
// Bail if term objects are unavailable.
- if ( 'all' != $args['fields'] ) {
+ if ( 'all' !== $args['fields'] ) {
return $terms;
}
@@ -339,7 +339,7 @@ class Featured_Content {
}
// Make sure we are in the correct taxonomy.
- if ( 'post_tag' != $taxonomy ) {
+ if ( 'post_tag' !== $taxonomy ) {
return $terms;
}
@@ -380,6 +380,7 @@ class Featured_Content {
array(
'title' => __( 'Featured Content', 'twentyfourteen' ),
'description' => sprintf(
+ /* translators: 1: Featured tag editor URL, 2: Post editor URL. */
__( 'Use a <a href="%1$s">tag</a> to feature your posts. If no posts match the tag, <a href="%2$s">sticky posts</a> will be displayed instead.', 'twentyfourteen' ),
esc_url( add_query_arg( 'tag', _x( 'featured', 'featured content default tag slug', 'twentyfourteen' ), admin_url( 'edit.php' ) ) ),
admin_url( 'edit.php?show_sticky=1' )
@@ -433,7 +434,7 @@ class Featured_Content {
* @since Twenty Fourteen 1.0
*/
public static function enqueue_scripts() {
- wp_enqueue_script( 'featured-content-suggest', get_template_directory_uri() . '/js/featured-content-admin.js', array( 'jquery', 'suggest' ), '20131022', true );
+ wp_enqueue_script( 'featured-content-suggest', get_template_directory_uri() . '/js/featured-content-admin.js', array( 'jquery', 'suggest' ), '20131205', true );
}
/**
@@ -465,7 +466,7 @@ class Featured_Content {
$options = wp_parse_args( $saved, $defaults );
$options = array_intersect_key( $options, $defaults );
- if ( 'all' != $key ) {
+ if ( 'all' !== $key ) {
return isset( $options[ $key ] ) ? $options[ $key ] : false;
}
@@ -507,7 +508,7 @@ class Featured_Content {
$output['hide-tag'] = isset( $input['hide-tag'] ) && $input['hide-tag'] ? 1 : 0;
- // Delete the featured post ids transient.
+ // Delete the featured post IDs transient.
self::delete_transient();
return $output;
diff --git a/themes/twentyfourteen/inc/template-tags.php b/themes/twentyfourteen/inc/template-tags.php
index f1e95294..09e7fbc6 100644
--- a/themes/twentyfourteen/inc/template-tags.php
+++ b/themes/twentyfourteen/inc/template-tags.php
@@ -24,7 +24,7 @@ if ( ! function_exists( 'twentyfourteen_paging_nav' ) ) :
return;
}
- $paged = get_query_var( 'paged' ) ? intval( get_query_var( 'paged' ) ) : 1;
+ $paged = get_query_var( 'paged' ) ? (int) get_query_var( 'paged' ) : 1;
$pagenum_link = html_entity_decode( get_pagenum_link() );
$query_args = array();
$url_parts = explode( '?', $pagenum_link );
@@ -128,28 +128,29 @@ endif;
*
* @since Twenty Fourteen 1.0
*
- * @return boolean true if blog has more than 1 category
+ * @return bool true if blog has more than 1 category
*/
function twentyfourteen_categorized_blog() {
- if ( false === ( $all_the_cool_cats = get_transient( 'twentyfourteen_category_count' ) ) ) {
- // Create an array of all the categories that are attached to posts
+ $all_the_cool_cats = get_transient( 'twentyfourteen_category_count' );
+ if ( false === $all_the_cool_cats ) {
+ // Create an array of all the categories that are attached to posts.
$all_the_cool_cats = get_categories(
array(
'hide_empty' => 1,
)
);
- // Count the number of categories that are attached to the posts
+ // Count the number of categories that are attached to the posts.
$all_the_cool_cats = count( $all_the_cool_cats );
set_transient( 'twentyfourteen_category_count', $all_the_cool_cats );
}
if ( $all_the_cool_cats > 1 || is_preview() ) {
- // This blog has more than 1 category so twentyfourteen_categorized_blog should return true
+ // This blog has more than 1 category so twentyfourteen_categorized_blog() should return true.
return true;
} else {
- // This blog has only 1 category so twentyfourteen_categorized_blog should return false
+ // This blog has only 1 category so twentyfourteen_categorized_blog() should return false.
return false;
}
}
@@ -207,7 +208,7 @@ if ( ! function_exists( 'twentyfourteen_post_thumbnail' ) ) :
</a>
<?php
- endif; // End is_singular()
+ endif; // End is_singular().
}
endif;
@@ -225,7 +226,7 @@ if ( ! function_exists( 'twentyfourteen_excerpt_more' ) && ! is_admin() ) :
$link = sprintf(
'<a href="%1$s" class="more-link">%2$s</a>',
esc_url( get_permalink( get_the_ID() ) ),
- /* translators: %s: Name of current post */
+ /* translators: %s: Post title. */
sprintf( __( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ), '<span class="screen-reader-text">' . get_the_title( get_the_ID() ) . '</span>' )
);
return ' &hellip; ' . $link;
@@ -237,7 +238,7 @@ if ( ! function_exists( 'wp_body_open' ) ) :
/**
* Fire the wp_body_open action.
*
- * Added for backwards compatibility to support pre 5.2.0 WordPress versions.
+ * Added for backward compatibility to support pre-5.2.0 WordPress versions.
*
* @since Twenty Fourteen 2.7
*/
diff --git a/themes/twentyfourteen/inc/widgets.php b/themes/twentyfourteen/inc/widgets.php
index 0b99fe2a..d8d15c2b 100644
--- a/themes/twentyfourteen/inc/widgets.php
+++ b/themes/twentyfourteen/inc/widgets.php
@@ -4,7 +4,7 @@
*
* Displays posts from Aside, Quote, Video, Audio, Image, Gallery, and Link formats.
*
- * @link https://codex.wordpress.org/Widgets_API#Developing_Widgets
+ * @link https://developer.wordpress.org/themes/functionality/widgets/#developing-widgets
*
* @package WordPress
* @subpackage Twenty_Fourteen
@@ -71,7 +71,11 @@ class Twenty_Fourteen_Ephemera_Widget extends WP_Widget {
* @param array $instance An array of settings for this widget instance.
*/
public function widget( $args, $instance ) {
- $format = isset( $instance['format'] ) && in_array( $instance['format'], $this->formats ) ? $instance['format'] : 'aside';
+ $format = isset( $instance['format'] ) ? $instance['format'] : '';
+
+ if ( ! $format || ! in_array( $format, $this->formats, true ) ) {
+ $format = 'aside';
+ }
switch ( $format ) {
case 'image':
@@ -105,8 +109,9 @@ class Twenty_Fourteen_Ephemera_Widget extends WP_Widget {
break;
}
- $number = empty( $instance['number'] ) ? 2 : absint( $instance['number'] );
- $title = apply_filters( 'widget_title', empty( $instance['title'] ) ? $format_string : $instance['title'], $instance, $this->id_base );
+ $number = ! empty( $instance['number'] ) ? absint( $instance['number'] ) : 2;
+ $title = ! empty( $instance['title'] ) ? $instance['title'] : $format_string;
+ $title = apply_filters( 'widget_title', $title, $instance, $this->id_base );
$ephemera = new WP_Query(
array(
@@ -189,6 +194,7 @@ class Twenty_Fourteen_Ephemera_Widget extends WP_Widget {
<p class="wp-caption-text">
<?php
printf(
+ /* translators: 1: Post permalink, 2: Number of images in the gallery. */
_n( 'This gallery contains <a href="%1$s" rel="bookmark">%2$s photo</a>.', 'This gallery contains <a href="%1$s" rel="bookmark">%2$s photos</a>.', $total_images, 'twentyfourteen' ),
esc_url( get_permalink() ),
number_format_i18n( $total_images )
@@ -233,7 +239,7 @@ class Twenty_Fourteen_Ephemera_Widget extends WP_Widget {
</ol>
<a class="post-format-archive-link" href="<?php echo esc_url( get_post_format_link( $format ) ); ?>">
<?php
- /* translators: used with More archives link */
+ /* translators: Used with More archives link. */
printf( __( '%s <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ), $format_string_more );
?>
</a>
@@ -264,7 +270,8 @@ class Twenty_Fourteen_Ephemera_Widget extends WP_Widget {
function update( $new_instance, $instance ) {
$instance['title'] = strip_tags( $new_instance['title'] );
$instance['number'] = empty( $new_instance['number'] ) ? 2 : absint( $new_instance['number'] );
- if ( in_array( $new_instance['format'], $this->formats ) ) {
+
+ if ( in_array( $new_instance['format'], $this->formats, true ) ) {
$instance['format'] = $new_instance['format'];
}
@@ -279,9 +286,13 @@ class Twenty_Fourteen_Ephemera_Widget extends WP_Widget {
* @param array $instance
*/
function form( $instance ) {
- $title = empty( $instance['title'] ) ? '' : esc_attr( $instance['title'] );
- $number = empty( $instance['number'] ) ? 2 : absint( $instance['number'] );
- $format = isset( $instance['format'] ) && in_array( $instance['format'], $this->formats ) ? $instance['format'] : 'aside';
+ $title = ! empty( $instance['title'] ) ? esc_attr( $instance['title'] ) : '';
+ $number = ! empty( $instance['number'] ) ? absint( $instance['number'] ) : 2;
+ $format = isset( $instance['format'] ) ? $instance['format'] : '';
+
+ if ( ! $format || ! in_array( $format, $this->formats, true ) ) {
+ $format = 'aside';
+ }
?>
<p><label for="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>"><?php _e( 'Title:', 'twentyfourteen' ); ?></label>
<input id="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>" class="widefat" name="<?php echo esc_attr( $this->get_field_name( 'title' ) ); ?>" type="text" value="<?php echo esc_attr( $title ); ?>"></p>
diff --git a/themes/twentyfourteen/index.php b/themes/twentyfourteen/index.php
index 7f6d04a0..5ed4c35a 100644
--- a/themes/twentyfourteen/index.php
+++ b/themes/twentyfourteen/index.php
@@ -35,8 +35,8 @@ if ( is_front_page() && twentyfourteen_has_featured_posts() ) {
the_post();
/*
- * Include the post format-specific template for the content. If you want to
- * use this in a child theme, then include a file called content-___.php
+ * Include the post format-specific template for the content. If you want
+ * to use this in a child theme, then include a file called content-___.php
* (where ___ is the post format) and that will be used instead.
*/
get_template_part( 'content', get_post_format() );
diff --git a/themes/twentyfourteen/js/functions.js b/themes/twentyfourteen/js/functions.js
index ac4629d7..557cc9f8 100644
--- a/themes/twentyfourteen/js/functions.js
+++ b/themes/twentyfourteen/js/functions.js
@@ -1,5 +1,5 @@
/**
- * Theme functions file
+ * Theme functions file.
*
* Contains handlers for navigation, accessibility, header sizing
* footer widgets and Featured Content slider
@@ -126,6 +126,7 @@
*
* Uses jQuery's width() function to determine the size of the window and add
* the default ARIA attributes for the menu toggle if it's visible.
+ *
* @since Twenty Fourteen 1.4
*/
function onResizeARIA() {
@@ -146,12 +147,12 @@
onResizeARIA();
} );
- _window.load( function() {
+ _window.on( 'load', function() {
var footerSidebar,
isCustomizeSelectiveRefresh = ( 'undefined' !== typeof wp && wp.customize && wp.customize.selectiveRefresh );
// Arrange footer widgets vertically.
- if ( $.isFunction( $.fn.masonry ) ) {
+ if ( typeof $.fn.masonry === 'function' ) {
footerSidebar = $( '#footer-sidebar' );
footerSidebar.masonry( {
itemSelector: '.widget',
diff --git a/themes/twentyfourteen/page-templates/contributors.php b/themes/twentyfourteen/page-templates/contributors.php
index 635a259c..7756149e 100644
--- a/themes/twentyfourteen/page-templates/contributors.php
+++ b/themes/twentyfourteen/page-templates/contributors.php
@@ -21,7 +21,7 @@ if ( is_front_page() && twentyfourteen_has_featured_posts() ) {
<div id="primary" class="content-area">
<div id="content" class="site-content" role="main">
<?php
- // Start the Loop.
+ // Start the Loop.
while ( have_posts() ) :
the_post();
?>
diff --git a/themes/twentyfourteen/page-templates/full-width.php b/themes/twentyfourteen/page-templates/full-width.php
index ea5fa588..b75ac888 100644
--- a/themes/twentyfourteen/page-templates/full-width.php
+++ b/themes/twentyfourteen/page-templates/full-width.php
@@ -21,7 +21,7 @@ if ( is_front_page() && twentyfourteen_has_featured_posts() ) {
<div id="primary" class="content-area">
<div id="content" class="site-content" role="main">
<?php
- // Start the Loop.
+ // Start the Loop.
while ( have_posts() ) :
the_post();
diff --git a/themes/twentyfourteen/page.php b/themes/twentyfourteen/page.php
index bd033aeb..6ff35be7 100644
--- a/themes/twentyfourteen/page.php
+++ b/themes/twentyfourteen/page.php
@@ -25,7 +25,7 @@ if ( is_front_page() && twentyfourteen_has_featured_posts() ) {
<div id="content" class="site-content" role="main">
<?php
- // Start the Loop.
+ // Start the Loop.
while ( have_posts() ) :
the_post();
diff --git a/themes/twentyfourteen/readme.txt b/themes/twentyfourteen/readme.txt
index 412c23dc..b4bc3c0a 100644
--- a/themes/twentyfourteen/readme.txt
+++ b/themes/twentyfourteen/readme.txt
@@ -1,12 +1,11 @@
=== Twenty Fourteen ===
Contributors: wordpressdotorg
Requires at least: WordPress 3.6
-Tested up to: WordPress 5.0
-Requires PHP: 5.2.4
-Stable tag: 2.7
+Tested up to: 5.8
+Stable tag: 3.2
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
-Tags: blog, news, two-columns, three-columns, left-sidebar, right-sidebar, custom-background, custom-header, custom-menu, editor-style, featured-images, flexible-header, footer-widgets, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready, accessibility-ready
+Tags: blog, news, two-columns, three-columns, left-sidebar, right-sidebar, custom-background, custom-header, custom-menu, editor-style, featured-images, flexible-header, footer-widgets, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready, accessibility-ready, block-patterns
== Description ==
In 2014, our default theme lets you create a responsive magazine website with a sleek, modern design. Feature your favorite homepage content in either a grid or a slider. Use the three widget areas to customize your website, and change your content's layout with a full-width page template and a contributor page to show off your authors. Creating a magazine website with WordPress has never been easier.
@@ -23,7 +22,7 @@ For more information about Twenty Fourteen please go to https://codex.wordpress.
== Copyright ==
-Twenty Fourteen WordPress Theme, Copyright 2013-2018 WordPress.org & Automattic.com
+Twenty Fourteen WordPress Theme, Copyright 2013-2021 WordPress.org & Automattic.com
Twenty Fourteen is Distributed under the terms of the GNU GPL
This program is free software: you can redistribute it and/or modify
@@ -49,8 +48,41 @@ Genericons icon font, Copyright 2013-2017 Automattic.com
License: GNU GPL, Version 2 (or later)
Source: http://www.genericons.com
+Photos from Stocksnap, used in block patterns.
+License: CC0
+Source: https://stocksnap.io/photo/fog-mountain-ZKN6UKFKEO
+ https://stocksnap.io/photo/ocean-beach-AEZJXB5LL5
+ https://stocksnap.io/photo/architecture-building-BIL5D73PRC
+ https://stocksnap.io/photo/sea-ocean-G5GBM522C6
+ https://stocksnap.io/photo/guy-man-7CFLDIWXK5
+
== Changelog ==
+= 3.2 =
+* Released: July 20, 2021
+
+https://codex.wordpress.org/Twenty_Fourteen_Theme_Changelog#Version_3.2
+
+= 3.1 =
+* Released: March 9, 2021
+
+https://codex.wordpress.org/Twenty_Fourteen_Theme_Changelog#Version_3.1
+
+= 3.0 =
+* Released: December 8, 2020
+
+https://codex.wordpress.org/Twenty_Fourteen_Theme_Changelog#Version_3.0
+
+= 2.9 =
+* Released: August 11, 2020
+
+https://codex.wordpress.org/Twenty_Fourteen_Theme_Changelog#Version_2.9
+
+= 2.8 =
+* Released: March 31, 2020
+
+https://codex.wordpress.org/Twenty_Fourteen_Theme_Changelog#Version_2.8
+
= 2.7 =
* Released: May 7, 2019
diff --git a/themes/twentyfourteen/rtl.css b/themes/twentyfourteen/rtl.css
index 58d97579..128f64fc 100644
--- a/themes/twentyfourteen/rtl.css
+++ b/themes/twentyfourteen/rtl.css
@@ -166,6 +166,10 @@ td {
padding-left: 7px;
}
+.entry-content p span[id^="more-"] {
+ float: right;
+}
+
/**
* 6.5 Galleries
@@ -317,11 +321,14 @@ td {
text-align: right;
}
+.widget_calendar .wp-calendar-nav-prev,
.widget_calendar #prev {
padding-right: 5px;
padding-left: 0;
+ text-align: right;
}
+.widget_calendar .wp-calendar-nav-next,
.widget_calendar #next {
padding-right: 0;
padding-left: 5px;
diff --git a/themes/twentyfourteen/search.php b/themes/twentyfourteen/search.php
index 6b20315a..80dc4d1e 100644
--- a/themes/twentyfourteen/search.php
+++ b/themes/twentyfourteen/search.php
@@ -15,17 +15,22 @@ get_header(); ?>
<?php if ( have_posts() ) : ?>
<header class="page-header">
- <h1 class="page-title"><?php printf( __( 'Search Results for: %s', 'twentyfourteen' ), get_search_query() ); ?></h1>
+ <h1 class="page-title">
+ <?php
+ /* translators: %s: Search query. */
+ printf( __( 'Search Results for: %s', 'twentyfourteen' ), get_search_query() );
+ ?>
+ </h1>
</header><!-- .page-header -->
<?php
- // Start the Loop.
+ // Start the Loop.
while ( have_posts() ) :
the_post();
/*
- * Include the post format-specific template for the content. If you want to
- * use this in a child theme, then include a file called content-___.php
+ * Include the post format-specific template for the content. If you want
+ * to use this in a child theme, then include a file called content-___.php
* (where ___ is the post format) and that will be used instead.
*/
get_template_part( 'content', get_post_format() );
diff --git a/themes/twentyfourteen/single.php b/themes/twentyfourteen/single.php
index 1940c732..352ab377 100644
--- a/themes/twentyfourteen/single.php
+++ b/themes/twentyfourteen/single.php
@@ -12,13 +12,13 @@ get_header(); ?>
<div id="primary" class="content-area">
<div id="content" class="site-content" role="main">
<?php
- // Start the Loop.
+ // Start the Loop.
while ( have_posts() ) :
the_post();
/*
- * Include the post format-specific template for the content. If you want to
- * use this in a child theme, then include a file called content-___.php
+ * Include the post format-specific template for the content. If you want
+ * to use this in a child theme, then include a file called content-___.php
* (where ___ is the post format) and that will be used instead.
*/
get_template_part( 'content', get_post_format() );
diff --git a/themes/twentyfourteen/style.css b/themes/twentyfourteen/style.css
index 85133472..b09102a3 100644
--- a/themes/twentyfourteen/style.css
+++ b/themes/twentyfourteen/style.css
@@ -4,10 +4,11 @@ Theme URI: https://wordpress.org/themes/twentyfourteen/
Author: the WordPress team
Author URI: https://wordpress.org/
Description: In 2014, our default theme lets you create a responsive magazine website with a sleek, modern design. Feature your favorite homepage content in either a grid or a slider. Use the three widget areas to customize your website, and change your content's layout with a full-width page template and a contributor page to show off your authors. Creating a magazine website with WordPress has never been easier.
-Version: 2.7
+Version: 3.2
+Requires PHP: 5.2.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
-Tags: blog, news, two-columns, three-columns, left-sidebar, right-sidebar, custom-background, custom-header, custom-menu, editor-style, featured-images, flexible-header, footer-widgets, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready, accessibility-ready
+Tags: blog, news, two-columns, three-columns, left-sidebar, right-sidebar, custom-background, custom-header, custom-menu, editor-style, featured-images, flexible-header, footer-widgets, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready, accessibility-ready, block-patterns
Text Domain: twentyfourteen
This theme, like WordPress, is licensed under the GPL.
@@ -762,10 +763,38 @@ div.wp-caption.alignright .wp-caption-text {
.contributor-info:after,
.search-box:before,
.search-box:after,
-[class*="content"]:before,
-[class*="content"]:after,
-[class*="site"]:before,
-[class*="site"]:after {
+.site:before,
+.site:after,
+.site-header:before,
+.site-header:after,
+.site-description:before,
+.site-description:after,
+.site-navigation:before,
+.site-navigation:after,
+.site-main:before,
+.site-main:after,
+.main-content:before,
+.main-content:after,
+.featured-content:before,
+.featured-content:after,
+.featured-content-inner:before,
+.featured-content-inner:after,
+.content-area:before,
+.content-area:after,
+.site-content:before,
+.site-content:after,
+.page-content:before,
+.page-content:after,
+.entry-content:before,
+.entry-content:after,
+.comment-content:before,
+.comment-content:after,
+.content-sidebar:before,
+.content-sidebar:after,
+.site-footer:before,
+.site-footer:after,
+.site-info:before,
+.site-info:after {
content: "";
display: table;
}
@@ -776,8 +805,22 @@ div.wp-caption.alignright .wp-caption-text {
.slider-direction-nav:after,
.contributor-info:after,
.search-box:after,
-[class*="content"]:after,
-[class*="site"]:after {
+.site:after,
+.site-header:after,
+.site-description:after,
+.site-navigation:after,
+.site-main:after,
+.main-content:after,
+.featured-content:after,
+.featured-content-inner:after,
+.content-area:after,
+.site-content:after,
+.page-content:after,
+.entry-content:after,
+.comment-content:after,
+.content-sidebar:after,
+.site-footer:after,
+.site-info:after {
clear: both;
}
@@ -1261,6 +1304,10 @@ a.post-thumbnail:hover {
padding: 12px 10px 0;
}
+.site-content .entry-content {
+ padding-top: 22px;
+}
+
.page .entry-content {
padding-top: 0;
}
@@ -1345,6 +1392,34 @@ a.post-thumbnail:hover {
white-space: nowrap;
}
+.entry-content span[id^="more-"] {
+ display: block;
+ padding-top: 52px;
+ margin-top: -76px;
+}
+
+.admin-bar .entry-content span[id^="more-"] {
+ padding-top: 84px;
+ margin-top: -108px;
+}
+
+.entry-content span[id^="more-"] + blockquote,
+.entry-content span[id^="more-"] + div,
+.entry-content span[id^="more-"] + figure,
+.entry-content span[id^="more-"] + hr,
+.entry-content span[id^="more-"] + ol,
+.entry-content span[id^="more-"] + ul,
+.entry-content span[id^="more-"] + p,
+.entry-content span[id^="more-"] + pre {
+ margin-top: 24px;
+}
+
+.entry-content p span[id^="more-"] {
+ width: 1px;
+ height: 24px;
+ float: left;
+}
+
/* Mediaelements */
.hentry .mejs-container,
@@ -2488,10 +2563,23 @@ a.post-thumbnail:hover {
color: #fff;
}
+.widget_calendar .wp-calendar-nav {
+ display: table;
+ width: 100%;
+ line-height: 2;
+}
+
+.widget_calendar .wp-calendar-nav span {
+ display: table-cell;
+}
+
+.widget_calendar .wp-calendar-nav-prev,
.widget_calendar #prev {
padding-left: 5px;
+ text-align: left;
}
+.widget_calendar .wp-calendar-nav-next,
.widget_calendar #next {
padding-right: 5px;
text-align: right;
diff --git a/themes/twentyfourteen/tag.php b/themes/twentyfourteen/tag.php
index 3a3a3c5e..55099d15 100644
--- a/themes/twentyfourteen/tag.php
+++ b/themes/twentyfourteen/tag.php
@@ -19,7 +19,12 @@ get_header(); ?>
<?php if ( have_posts() ) : ?>
<header class="archive-header">
- <h1 class="archive-title"><?php printf( __( 'Tag Archives: %s', 'twentyfourteen' ), single_tag_title( '', false ) ); ?></h1>
+ <h1 class="archive-title">
+ <?php
+ /* translators: %s: Tag title. */
+ printf( __( 'Tag Archives: %s', 'twentyfourteen' ), single_tag_title( '', false ) );
+ ?>
+ </h1>
<?php
// Show an optional term description.
@@ -31,13 +36,13 @@ get_header(); ?>
</header><!-- .archive-header -->
<?php
- // Start the Loop.
+ // Start the Loop.
while ( have_posts() ) :
the_post();
/*
- * Include the post format-specific template for the content. If you want to
- * use this in a child theme, then include a file called content-___.php
+ * Include the post format-specific template for the content. If you want
+ * to use this in a child theme, then include a file called content-___.php
* (where ___ is the post format) and that will be used instead.
*/
get_template_part( 'content', get_post_format() );
diff --git a/themes/twentyfourteen/taxonomy-post_format.php b/themes/twentyfourteen/taxonomy-post_format.php
index 243e8f0c..9cf9083c 100644
--- a/themes/twentyfourteen/taxonomy-post_format.php
+++ b/themes/twentyfourteen/taxonomy-post_format.php
@@ -56,13 +56,13 @@ get_header(); ?>
</header><!-- .archive-header -->
<?php
- // Start the Loop.
+ // Start the Loop.
while ( have_posts() ) :
the_post();
/*
- * Include the post format-specific template for the content. If you want to
- * use this in a child theme, then include a file called content-___.php
+ * Include the post format-specific template for the content. If you want
+ * to use this in a child theme, then include a file called content-___.php
* (where ___ is the post format) and that will be used instead.
*/
get_template_part( 'content', get_post_format() );
diff --git a/themes/twentysixteen/archive.php b/themes/twentysixteen/archive.php
index 079730f3..68a97fc5 100644
--- a/themes/twentysixteen/archive.php
+++ b/themes/twentysixteen/archive.php
@@ -31,14 +31,15 @@ get_header(); ?>
</header><!-- .page-header -->
<?php
- // Start the Loop.
+ // Start the loop.
while ( have_posts() ) :
the_post();
/*
* Include the Post-Format-specific template for the content.
* 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.
+ * called content-___.php (where ___ is the Post Format name) and that
+ * will be used instead.
*/
get_template_part( 'template-parts/content', get_post_format() );
diff --git a/themes/twentysixteen/comments.php b/themes/twentysixteen/comments.php
index a0a29d57..086ecbe0 100644
--- a/themes/twentysixteen/comments.php
+++ b/themes/twentysixteen/comments.php
@@ -27,11 +27,11 @@ if ( post_password_required() ) {
<?php
$comments_number = get_comments_number();
if ( '1' === $comments_number ) {
- /* translators: %s: post title */
+ /* translators: %s: Post title. */
printf( _x( 'One thought on &ldquo;%s&rdquo;', 'comments title', 'twentysixteen' ), get_the_title() );
} else {
printf(
- /* translators: 1: number of comments, 2: post title */
+ /* translators: 1: Number of comments, 2: Post title. */
_nx(
'%1$s thought on &ldquo;%2$s&rdquo;',
'%1$s thoughts on &ldquo;%2$s&rdquo;',
diff --git a/themes/twentysixteen/css/blocks.css b/themes/twentysixteen/css/blocks.css
index 9ddea807..ba747b44 100644
--- a/themes/twentysixteen/css/blocks.css
+++ b/themes/twentysixteen/css/blocks.css
@@ -145,12 +145,14 @@ p.has-drop-cap:not(:focus)::first-letter {
.wp-block-code {
border: 0;
font-family: Inconsolata, monospace;
- font-size: 16px;
- font-size: 1rem;
line-height: 1.75;
padding: 0;
}
+.wp-block-code code {
+ font-size: inherit;
+}
+
/* Pullquote */
.wp-block-pullquote {
@@ -158,17 +160,19 @@ p.has-drop-cap:not(:focus)::first-letter {
}
.wp-block-pullquote blockquote {
- border-left: 0;
+ color: #686868;
+ border-left: 4px solid #1a1a1a;
margin: 0;
- padding: 0;
+ padding: 0 0 0 24px;
}
.rtl .wp-block-pullquote blockquote {
- border-right: 0;
+ border-left: none;
+ border-right: 4px solid #1a1a1a;
+ padding: 0 24px 0 0;
}
.wp-block-pullquote p {
- color: #686868;
font-size: 19px;
font-size: 1.1875rem;
}
@@ -198,7 +202,7 @@ p.has-drop-cap:not(:focus)::first-letter {
.wp-block-table {
border-collapse: separate;
border-spacing: 0;
- border-width: 1px 0 0 1px;
+ border-width: 0;
margin: 0 0 1.75em;
table-layout: fixed;
width: 100%;
@@ -323,7 +327,7 @@ hr.wp-block-separator {
line-height: 1.6153846154;
}
-.wp-block-latest-comments .wp-block-latest-comments__comment {
+.wp-block-latest-comments .wp-block-latest-comments__comment:not(:first-child) {
border-top: 1px solid #d1d1d1;
margin-bottom: 0;
padding: 1.75em 0;
@@ -333,6 +337,21 @@ hr.wp-block-separator {
margin-bottom: 0;
}
+/* Query Loop & Post Template */
+
+.wp-block-query .wp-block-post-template {
+ margin-left: 0;
+}
+
+.wp-block-query .wp-block-post-template li {
+ margin-bottom: 0;
+ padding: 1.5em 0 0;
+}
+
+.wp-block-query .wp-block-post-template li:not(:first-child) {
+ border-top: 1px solid #d1d1d1;
+}
+
/*--------------------------------------------------------------
6.0 Blocks - Colors
--------------------------------------------------------------*/
diff --git a/themes/twentysixteen/css/editor-blocks.css b/themes/twentysixteen/css/editor-blocks.css
index 4bf8cbf5..9e4c7760 100644
--- a/themes/twentysixteen/css/editor-blocks.css
+++ b/themes/twentysixteen/css/editor-blocks.css
@@ -12,6 +12,7 @@ Description: Used to style blocks in the editor.
4.0 Blocks - Formatting
5.0 Blocks - Layout Elements
6.0 Blocks - Widgets
+7.0 Blocks - Colors
--------------------------------------------------------------*/
/*--------------------------------------------------------------
@@ -196,7 +197,6 @@ Description: Used to style blocks in the editor.
.edit-post-visual-editor ol,
.editor-block-list__block ol,
.block-library-list ol {
- margin: 0 0 1.75em 1.25em;
padding: 0;
}
@@ -230,22 +230,22 @@ Description: Used to style blocks in the editor.
margin-bottom: 0;
}
-.rtl .edit-post-visual-editor ul:not(.wp-block-gallery),
-.rtl .editor-block-list__block ul:not(.wp-block-gallery),
-.rtl .block-library-list ul,
-.rtl .edit-post-visual-editor ol,
-.rtl .editor-block-list__block ol,
-.rtl .block-library-list ol {
+.rtl .editor-styles-wrapper ul ul,
+.rtl .editor-styles-wrapper ol ol,
+.rtl .editor-styles-wrapper ul ol,
+.rtl .editor-styles-wrapper ol ul {
margin-left: 0;
- margin-right: 1.25em;
- padding: 0;
+ margin-right: 1.5em;
}
-.rtl .edit-post-visual-editor ol,
-.rtl .editor-block-list__block ol,
-.rtl .block-library-list ol {
- margin-left: 1.5em;
- margin-right: 1.5em;
+.wp-block-freeform.block-library-rich-text__tinymce ul,
+.wp-block-freeform.block-library-rich-text__tinymce ol {
+ padding-left: 1.5em;
+}
+
+.rtl .wp-block-freeform.block-library-rich-text__tinymce ul,
+.rtl .wp-block-freeform.block-library-rich-text__tinymce ol {
+ padding: 0;
}
/* Quotes */
@@ -365,15 +365,6 @@ Description: Used to style blocks in the editor.
width: -webkit-calc(50% - 0.736842105em);
width: calc(50% - 0.736842105em);
}
-
- .wp-block-quote:not(.alignleft):not(.alignright) {
- margin-left: -1.473684211em;
- }
-
- .rtl .wp-block-quote:not(.alignleft):not(.alignright) {
- margin-left: 0;
- margin-right: -1.473684211em;
- }
}
@media screen and (min-width: 80em) {
@@ -410,9 +401,10 @@ Description: Used to style blocks in the editor.
/* Code */
-.wp-block-code {
+.editor-styles-wrapper .wp-block-code {
border: 0;
padding: 0.125em 0.25em;
+ background-color: #d1d1d1;
}
/* Classic */
@@ -505,7 +497,6 @@ Description: Used to style blocks in the editor.
}
.wp-block-pullquote blockquote > .editor-rich-text p {
- color: #686868;
font-size: 19px;
font-size: 1.1875rem;
}
@@ -536,6 +527,12 @@ Description: Used to style blocks in the editor.
text-align: right;
}
+/* Verse */
+
+.editor-styles-wrapper .wp-block-verse {
+ font-family: inherit;
+}
+
/*--------------------------------------------------------------
5.0 Blocks - Layout Elements
--------------------------------------------------------------*/
@@ -615,3 +612,103 @@ Description: Used to style blocks in the editor.
.edit-post-visual-editor .wp-block-latest-posts.is-grid li {
margin-bottom: 16px;
}
+
+/*--------------------------------------------------------------
+7.0 Blocks - Colors
+--------------------------------------------------------------*/
+
+:root .editor-styles-wrapper .has-dark-gray-color {
+ color: #1a1a1a;
+}
+
+:root .editor-styles-wrapper .has-dark-gray-background-color {
+ background-color: #1a1a1a;
+}
+
+:root .editor-styles-wrapper .has-medium-gray-color {
+ color: #686868;
+}
+
+:root .editor-styles-wrapper .has-medium-gray-background-color {
+ background-color: #686868;
+}
+
+:root .editor-styles-wrapper .has-light-gray-color {
+ color: #e5e5e5;
+}
+
+:root .editor-styles-wrapper .has-light-gray-background-color {
+ background-color: #e5e5e5;
+}
+
+:root .editor-styles-wrapper .has-white-color {
+ color: #fff;
+}
+
+:root .editor-styles-wrapper .has-white-background-color {
+ background-color: #fff;
+}
+
+:root .editor-styles-wrapper .has-blue-gray-color {
+ color: #4d545c;
+}
+
+:root .editor-styles-wrapper .has-blue-gray-background-color {
+ background-color: #4d545c;
+}
+
+:root .editor-styles-wrapper .has-bright-blue-color {
+ color: #007acc;
+}
+
+:root .editor-styles-wrapper .has-bright-blue-background-color {
+ background-color: #007acc;
+}
+
+:root .editor-styles-wrapper .has-light-blue-color {
+ color: #9adffd;
+}
+
+:root .editor-styles-wrapper .has-light-blue-background-color {
+ background-color: #9adffd;
+}
+
+:root .editor-styles-wrapper .has-dark-brown-color {
+ color: #402b30;
+}
+
+:root .editor-styles-wrapper .has-dark-brown-background-color {
+ background-color: #402b30;
+}
+
+:root .editor-styles-wrapper .has-medium-brown-color {
+ color: #774e24;
+}
+
+:root .editor-styles-wrapper .has-medium-brown-background-color {
+ background-color: #774e24;
+}
+
+:root .editor-styles-wrapper .has-dark-red-color {
+ color: #640c1f;
+}
+
+:root .editor-styles-wrapper .has-dark-red-background-color {
+ background-color: #640c1f;
+}
+
+:root .editor-styles-wrapper .has-bright-red-color {
+ color: #ff675f;
+}
+
+:root .editor-styles-wrapper .has-bright-red-background-color {
+ background-color: #ff675f;
+}
+
+:root .editor-styles-wrapper .has-yellow-color {
+ color: #ffef8e;
+}
+
+:root .editor-styles-wrapper .has-yellow-background-color {
+ background-color: #ffef8e;
+}
diff --git a/themes/twentysixteen/css/editor-style.css b/themes/twentysixteen/css/editor-style.css
index ed48ce7f..e1b3445e 100644
--- a/themes/twentysixteen/css/editor-style.css
+++ b/themes/twentysixteen/css/editor-style.css
@@ -28,7 +28,7 @@ body {
font-size: 16px;
font-weight: 400;
line-height: 1.75;
- margin: 20px 40px;
+ margin: auto 20px;
max-width: 600px;
vertical-align: baseline;
}
@@ -120,10 +120,6 @@ blockquote {
padding: 0 0 0 24px;
}
-blockquote:not(.alignleft):not(.alignright) {
- margin-left: -28px;
-}
-
blockquote blockquote:not(.alignleft):not(.alignright) {
margin-left: 0;
}
@@ -188,7 +184,6 @@ pre {
font-size: 16px;
line-height: 1.3125;
margin: 0 0 28px;
- max-width: 100%;
overflow: auto;
padding: 14px;
white-space: pre;
@@ -519,7 +514,6 @@ fieldset {
}
.rtl blockquote:not(.alignleft):not(.alignright) {
- margin-right: -28px;
padding: 0 24px 0 0;
}
diff --git a/themes/twentysixteen/footer.php b/themes/twentysixteen/footer.php
index 5fff3bd9..9f1621ff 100644
--- a/themes/twentysixteen/footer.php
+++ b/themes/twentysixteen/footer.php
@@ -58,7 +58,10 @@
}
?>
<a href="<?php echo esc_url( __( 'https://wordpress.org/', 'twentysixteen' ) ); ?>" class="imprint">
- <?php printf( __( 'Proudly powered by %s', 'twentysixteen' ), 'WordPress' ); ?>
+ <?php
+ /* translators: %s: WordPress */
+ printf( __( 'Proudly powered by %s', 'twentysixteen' ), 'WordPress' );
+ ?>
</a>
</div><!-- .site-info -->
</footer><!-- .site-footer -->
diff --git a/themes/twentysixteen/functions.php b/themes/twentysixteen/functions.php
index 68e4a5ef..b5b7c207 100644
--- a/themes/twentysixteen/functions.php
+++ b/themes/twentysixteen/functions.php
@@ -11,14 +11,14 @@
* functions.php file. The child theme's functions.php file is included before
* the parent theme's file, so the child theme functions would be used.
*
- * @link https://codex.wordpress.org/Theme_Development
+ * @link https://developer.wordpress.org/themes/basics/theme-functions/
* @link https://developer.wordpress.org/themes/advanced-topics/child-themes/
*
* Functions that are not pluggable (not wrapped in function_exists()) are
* instead attached to a filter or action hook.
*
* For more information on hooks, actions, and filters,
- * {@link https://codex.wordpress.org/Plugin_API}
+ * {@link https://developer.wordpress.org/plugins/}
*
* @package WordPress
* @subpackage Twenty_Sixteen
@@ -106,13 +106,16 @@ if ( ! function_exists( 'twentysixteen_setup' ) ) :
'comment-list',
'gallery',
'caption',
+ 'script',
+ 'style',
+ 'navigation-widgets',
)
);
/*
* Enable support for Post Formats.
*
- * See: https://codex.wordpress.org/Post_Formats
+ * See: https://wordpress.org/support/article/post-formats/
*/
add_theme_support(
'post-formats',
@@ -213,8 +216,11 @@ if ( ! function_exists( 'twentysixteen_setup' ) ) :
// Indicate widget sidebars can use selective refresh in the Customizer.
add_theme_support( 'customize-selective-refresh-widgets' );
+
+ // Add support for custom line height controls.
+ add_theme_support( 'custom-line-height' );
}
-endif; // twentysixteen_setup
+endif; // twentysixteen_setup()
add_action( 'after_setup_theme', 'twentysixteen_setup' );
/**
@@ -236,9 +242,9 @@ add_action( 'after_setup_theme', 'twentysixteen_content_width', 0 );
*
* @since Twenty Sixteen 1.6
*
- * @param array $urls URLs to print for resource hints.
- * @param string $relation_type The relation type the URLs are printed.
- * @return array $urls URLs to print for resource hints.
+ * @param array $urls URLs to print for resource hints.
+ * @param string $relation_type The relation type the URLs are printed.
+ * @return array URLs to print for resource hints.
*/
function twentysixteen_resource_hints( $urls, $relation_type ) {
if ( wp_style_is( 'twentysixteen-fonts', 'queue' ) && 'preconnect' === $relation_type ) {
@@ -313,17 +319,26 @@ if ( ! function_exists( 'twentysixteen_fonts_url' ) ) :
$fonts = array();
$subsets = 'latin,latin-ext';
- /* translators: If there are characters in your language that are not supported by Merriweather, translate this to 'off'. Do not translate into your own language. */
+ /*
+ * translators: If there are characters in your language that are not supported
+ * by Merriweather, translate this to 'off'. Do not translate into your own language.
+ */
if ( 'off' !== _x( 'on', 'Merriweather font: on or off', 'twentysixteen' ) ) {
$fonts[] = 'Merriweather:400,700,900,400italic,700italic,900italic';
}
- /* translators: If there are characters in your language that are not supported by Montserrat, translate this to 'off'. Do not translate into your own language. */
+ /*
+ * translators: If there are characters in your language that are not supported
+ * by Montserrat, translate this to 'off'. Do not translate into your own language.
+ */
if ( 'off' !== _x( 'on', 'Montserrat font: on or off', 'twentysixteen' ) ) {
$fonts[] = 'Montserrat:400,700';
}
- /* translators: If there are characters in your language that are not supported by Inconsolata, translate this to 'off'. Do not translate into your own language. */
+ /*
+ * translators: If there are characters in your language that are not supported
+ * by Inconsolata, translate this to 'off'. Do not translate into your own language.
+ */
if ( 'off' !== _x( 'on', 'Inconsolata font: on or off', 'twentysixteen' ) ) {
$fonts[] = 'Inconsolata:400';
}
@@ -331,8 +346,9 @@ if ( ! function_exists( 'twentysixteen_fonts_url' ) ) :
if ( $fonts ) {
$fonts_url = add_query_arg(
array(
- 'family' => urlencode( implode( '|', $fonts ) ),
- 'subset' => urlencode( $subsets ),
+ 'family' => urlencode( implode( '|', $fonts ) ),
+ 'subset' => urlencode( $subsets ),
+ 'display' => urlencode( 'fallback' ),
),
'https://fonts.googleapis.com/css'
);
@@ -364,41 +380,41 @@ function twentysixteen_scripts() {
wp_enqueue_style( 'twentysixteen-fonts', twentysixteen_fonts_url(), array(), null );
// Add Genericons, used in the main stylesheet.
- wp_enqueue_style( 'genericons', get_template_directory_uri() . '/genericons/genericons.css', array(), '3.4.1' );
+ wp_enqueue_style( 'genericons', get_template_directory_uri() . '/genericons/genericons.css', array(), '20201208' );
// Theme stylesheet.
- wp_enqueue_style( 'twentysixteen-style', get_stylesheet_uri() );
+ wp_enqueue_style( 'twentysixteen-style', get_stylesheet_uri(), array(), '20201208' );
// Theme block stylesheet.
- wp_enqueue_style( 'twentysixteen-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'twentysixteen-style' ), '20181230' );
+ wp_enqueue_style( 'twentysixteen-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'twentysixteen-style' ), '20190102' );
// Load the Internet Explorer specific stylesheet.
- wp_enqueue_style( 'twentysixteen-ie', get_template_directory_uri() . '/css/ie.css', array( 'twentysixteen-style' ), '20160816' );
+ wp_enqueue_style( 'twentysixteen-ie', get_template_directory_uri() . '/css/ie.css', array( 'twentysixteen-style' ), '20170530' );
wp_style_add_data( 'twentysixteen-ie', 'conditional', 'lt IE 10' );
// Load the Internet Explorer 8 specific stylesheet.
- wp_enqueue_style( 'twentysixteen-ie8', get_template_directory_uri() . '/css/ie8.css', array( 'twentysixteen-style' ), '20160816' );
+ wp_enqueue_style( 'twentysixteen-ie8', get_template_directory_uri() . '/css/ie8.css', array( 'twentysixteen-style' ), '20170530' );
wp_style_add_data( 'twentysixteen-ie8', 'conditional', 'lt IE 9' );
// Load the Internet Explorer 7 specific stylesheet.
- wp_enqueue_style( 'twentysixteen-ie7', get_template_directory_uri() . '/css/ie7.css', array( 'twentysixteen-style' ), '20160816' );
+ wp_enqueue_style( 'twentysixteen-ie7', get_template_directory_uri() . '/css/ie7.css', array( 'twentysixteen-style' ), '20170530' );
wp_style_add_data( 'twentysixteen-ie7', 'conditional', 'lt IE 8' );
// Load the html5 shiv.
wp_enqueue_script( 'twentysixteen-html5', get_template_directory_uri() . '/js/html5.js', array(), '3.7.3' );
wp_script_add_data( 'twentysixteen-html5', 'conditional', 'lt IE 9' );
- wp_enqueue_script( 'twentysixteen-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20160816', true );
+ wp_enqueue_script( 'twentysixteen-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20170530', true );
if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
wp_enqueue_script( 'comment-reply' );
}
if ( is_singular() && wp_attachment_is_image() ) {
- wp_enqueue_script( 'twentysixteen-keyboard-image-navigation', get_template_directory_uri() . '/js/keyboard-image-navigation.js', array( 'jquery' ), '20160816' );
+ wp_enqueue_script( 'twentysixteen-keyboard-image-navigation', get_template_directory_uri() . '/js/keyboard-image-navigation.js', array( 'jquery' ), '20170530' );
}
- wp_enqueue_script( 'twentysixteen-script', get_template_directory_uri() . '/js/functions.js', array( 'jquery' ), '20181230', true );
+ wp_enqueue_script( 'twentysixteen-script', get_template_directory_uri() . '/js/functions.js', array( 'jquery' ), '20181217', true );
wp_localize_script(
'twentysixteen-script',
@@ -418,7 +434,7 @@ add_action( 'wp_enqueue_scripts', 'twentysixteen_scripts' );
*/
function twentysixteen_block_editor_styles() {
// Block styles.
- wp_enqueue_style( 'twentysixteen-block-editor-style', get_template_directory_uri() . '/css/editor-blocks.css', array(), '20181230' );
+ wp_enqueue_style( 'twentysixteen-block-editor-style', get_template_directory_uri() . '/css/editor-blocks.css', array(), '20201208' );
// Add custom fonts.
wp_enqueue_style( 'twentysixteen-fonts', twentysixteen_fonts_url(), array(), null );
}
@@ -494,6 +510,11 @@ function twentysixteen_hex2rgb( $color ) {
require get_template_directory() . '/inc/template-tags.php';
/**
+ * Block Patterns.
+ */
+require get_template_directory() . '/inc/block-patterns.php';
+
+/**
* Customizer additions.
*/
require get_template_directory() . '/inc/customizer.php';
diff --git a/themes/twentysixteen/genericons/genericons.css b/themes/twentysixteen/genericons/genericons.css
index 87cf754e..5b25675a 100644
--- a/themes/twentysixteen/genericons/genericons.css
+++ b/themes/twentysixteen/genericons/genericons.css
@@ -54,7 +54,7 @@
text-transform: none;
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
- speak: none;
+ speak: never;
}
diff --git a/themes/twentysixteen/header.php b/themes/twentysixteen/header.php
index a5cfee6a..c6d3d8cc 100644
--- a/themes/twentysixteen/header.php
+++ b/themes/twentysixteen/header.php
@@ -14,7 +14,7 @@
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
- <link rel="profile" href="http://gmpg.org/xfn/11">
+ <link rel="profile" href="https://gmpg.org/xfn/11">
<?php if ( is_singular() && pings_open( get_queried_object() ) ) : ?>
<link rel="pingback" href="<?php echo esc_url( get_bloginfo( 'pingback_url' ) ); ?>">
<?php endif; ?>
@@ -85,7 +85,7 @@
<?php if ( get_header_image() ) : ?>
<?php
/**
- * Filter the default twentysixteen custom header sizes attribute.
+ * Filters the default twentysixteen custom header sizes attribute.
*
* @since Twenty Sixteen 1.0
*
diff --git a/themes/twentysixteen/image.php b/themes/twentysixteen/image.php
index ea64a146..5929161a 100644
--- a/themes/twentysixteen/image.php
+++ b/themes/twentysixteen/image.php
@@ -13,7 +13,7 @@ get_header(); ?>
<main id="main" class="site-main" role="main">
<?php
- // Start the loop.
+ // Start the loop.
while ( have_posts() ) :
the_post();
?>
@@ -36,7 +36,7 @@ get_header(); ?>
<div class="entry-attachment">
<?php
/**
- * Filter the default twentysixteen image attachment size.
+ * Filters the default twentysixteen image attachment size.
*
* @since Twenty Sixteen 1.0
*
@@ -84,7 +84,7 @@ get_header(); ?>
<?php
edit_post_link(
sprintf(
- /* translators: %s: Name of current post */
+ /* translators: %s: Post title. */
__( 'Edit<span class="screen-reader-text"> "%s"</span>', 'twentysixteen' ),
get_the_title()
),
diff --git a/themes/twentysixteen/inc/back-compat.php b/themes/twentysixteen/inc/back-compat.php
index c97940e0..bf1a8d08 100644
--- a/themes/twentysixteen/inc/back-compat.php
+++ b/themes/twentysixteen/inc/back-compat.php
@@ -38,8 +38,14 @@ add_action( 'after_switch_theme', 'twentysixteen_switch_theme' );
* @global string $wp_version WordPress version.
*/
function twentysixteen_upgrade_notice() {
- $message = sprintf( __( 'Twenty Sixteen requires at least WordPress version 4.4. You are running version %s. Please upgrade and try again.', 'twentysixteen' ), $GLOBALS['wp_version'] );
- printf( '<div class="error"><p>%s</p></div>', $message );
+ printf(
+ '<div class="error"><p>%s</p></div>',
+ sprintf(
+ /* translators: %s: The current WordPress version. */
+ __( 'Twenty Sixteen requires at least WordPress version 4.4. You are running version %s. Please upgrade and try again.', 'twentysixteen' ),
+ $GLOBALS['wp_version']
+ )
+ );
}
/**
@@ -51,7 +57,11 @@ function twentysixteen_upgrade_notice() {
*/
function twentysixteen_customize() {
wp_die(
- sprintf( __( 'Twenty Sixteen requires at least WordPress version 4.4. You are running version %s. Please upgrade and try again.', 'twentysixteen' ), $GLOBALS['wp_version'] ),
+ sprintf(
+ /* translators: %s: The current WordPress version. */
+ __( 'Twenty Sixteen requires at least WordPress version 4.4. You are running version %s. Please upgrade and try again.', 'twentysixteen' ),
+ $GLOBALS['wp_version']
+ ),
'',
array(
'back_link' => true,
@@ -69,7 +79,13 @@ add_action( 'load-customize.php', 'twentysixteen_customize' );
*/
function twentysixteen_preview() {
if ( isset( $_GET['preview'] ) ) {
- wp_die( sprintf( __( 'Twenty Sixteen requires at least WordPress version 4.4. You are running version %s. Please upgrade and try again.', 'twentysixteen' ), $GLOBALS['wp_version'] ) );
+ wp_die(
+ sprintf(
+ /* translators: %s: The current WordPress version. */
+ __( 'Twenty Sixteen requires at least WordPress version 4.4. You are running version %s. Please upgrade and try again.', 'twentysixteen' ),
+ $GLOBALS['wp_version']
+ )
+ );
}
}
add_action( 'template_redirect', 'twentysixteen_preview' );
diff --git a/themes/twentysixteen/inc/block-patterns.php b/themes/twentysixteen/inc/block-patterns.php
new file mode 100644
index 00000000..69a80b2c
--- /dev/null
+++ b/themes/twentysixteen/inc/block-patterns.php
@@ -0,0 +1,157 @@
+<?php
+/**
+ * Twenty Sixteen Theme: Block Patterns
+ *
+ * @package WordPress
+ * @subpackage Twenty_Sixteen
+ * @since Twenty Sixteen 2.3
+ */
+
+/**
+ * Register Block Pattern Category.
+ */
+if ( function_exists( 'register_block_pattern_category' ) ) {
+
+ register_block_pattern_category(
+ 'twentysixteen',
+ array( 'label' => __( 'Twenty Sixteen', 'twentysixteen' ) )
+ );
+}
+
+/**
+ * Register Block Patterns.
+ */
+if ( function_exists( 'register_block_pattern' ) ) {
+ register_block_pattern(
+ 'twentysixteen/large-heading-short-description',
+ array(
+ 'title' => __( 'Large heading with short description', 'twentysixteen' ),
+ 'categories' => array( 'twentysixteen' ),
+ 'content' => '<!-- wp:group {"align":"full","backgroundColor":"background"} -->
+ <div class="wp-block-group alignfull has-background-background-color has-background"><div class="wp-block-group__inner-container"><!-- wp:spacer {"height":60} -->
+ <div style="height:60px" aria-hidden="true" class="wp-block-spacer"></div>
+ <!-- /wp:spacer -->
+ <!-- wp:heading {"level":6,"style":{"typography":{"lineHeight":"1.5","fontSize":35}}} -->
+ <h6 style="font-size:35px;line-height:1.5"><strong>' . esc_html__( 'Twenty Sixteen is a modern take on the horizontal masthead with an optional right sidebar. It works perfectly for WordPress websites and blogs.', 'twentysixteen' ) . '</strong></h6>
+ <!-- /wp:heading -->
+ <!-- wp:paragraph {"style":{"typography":{"lineHeight":"1.8"}}} -->
+ <p style="line-height:1.8">' . esc_html__( 'Twenty Sixteen will make your WordPress website look beautiful everywhere. Take advantage of custom color options, beautiful default color schemes, a harmonious fluid grid using a mobile-first approach, and impeccable polish in every detail.', 'twentysixteen' ) . '</p>
+ <!-- /wp:paragraph -->
+ <!-- wp:spacer {"height":60} -->
+ <div style="height:60px" aria-hidden="true" class="wp-block-spacer"></div>
+ <!-- /wp:spacer --></div></div>
+ <!-- /wp:group -->',
+ )
+ );
+
+ register_block_pattern(
+ 'twentysixteen/big-title-two-columns-text',
+ array(
+ 'title' => __( 'Big Title with Two Columns Text', 'twentysixteen' ),
+ 'categories' => array( 'twentysixteen' ),
+ 'content' => '<!-- wp:spacer -->
+ <div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>
+ <!-- /wp:spacer -->
+
+ <!-- wp:heading {"level":1,"style":{"typography":{"fontSize":55}}} -->
+ <h1 style="font-size:55px">' . esc_html__( 'Twenty Sixteen' ) . '</h1>
+ <!-- /wp:heading -->
+
+ <!-- wp:spacer {"height":30} -->
+ <div style="height:30px" aria-hidden="true" class="wp-block-spacer"></div>
+ <!-- /wp:spacer -->
+
+ <!-- wp:columns -->
+ <div class="wp-block-columns"><!-- wp:column -->
+ <div class="wp-block-column"><!-- wp:paragraph {"dropCap":true} -->
+ <p class="has-drop-cap">' . esc_html__( 'Twenty Sixteen will make your WordPress website look beautiful everywhere. Take advantage of its custom color options and beautiful default color schemes.', 'twentysixteen' ) . '</p>
+ <!-- /wp:paragraph --></div>
+ <!-- /wp:column -->
+
+ <!-- wp:column -->
+ <div class="wp-block-column"><!-- wp:paragraph -->
+ <p>' . esc_html__( 'The theme features a harmonious fluid grid using a mobile-first approach. The layout is a modern take on the horizontal masthead with an optional right sidebar. ', 'twentysixteen' ) . '</p>
+ <!-- /wp:paragraph --></div>
+ <!-- /wp:column --></div>
+ <!-- /wp:columns -->
+
+ <!-- wp:spacer -->
+ <div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>
+ <!-- /wp:spacer -->',
+ )
+ );
+
+ register_block_pattern(
+ 'twentysixteen/large-blockquote',
+ array(
+ 'title' => __( 'Large Blockquote', 'twentysixteen' ),
+ 'categories' => array( 'twentysixteen' ),
+ 'content' => '<!-- wp:spacer -->
+ <div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>
+ <!-- /wp:spacer -->
+
+ <!-- wp:separator {"color":"dark-gray","className":"is-style-wide"} -->
+ <hr class="wp-block-separator has-text-color has-background has-dark-gray-background-color has-dark-gray-color is-style-wide"/>
+ <!-- /wp:separator -->
+
+ <!-- wp:heading {"style":{"typography":{"lineHeight":"1.5","fontSize":40}}} -->
+ <h2 style="font-size:40px;line-height:1.5"><em>' . esc_html__( 'Twenty Sixteen will make your WordPress look beautiful everywhere.', 'twentysixteen' ) . '</em></h2>
+ <!-- /wp:heading -->
+
+ <!-- wp:paragraph {"textColor":"medium-gray"} -->
+ <p class="has-medium-gray-color has-text-color">' . esc_html__( '— Takashi Irie', 'twentysixteen' ) . '</p>
+ <!-- /wp:paragraph -->
+
+ <!-- wp:spacer {"height":52} -->
+ <div style="height:52px" aria-hidden="true" class="wp-block-spacer"></div>
+ <!-- /wp:spacer -->
+
+ <!-- wp:separator {"color":"dark-gray","className":"is-style-wide"} -->
+ <hr class="wp-block-separator has-text-color has-background has-dark-gray-background-color has-dark-gray-color is-style-wide"/>
+ <!-- /wp:separator -->
+
+ <!-- wp:spacer -->
+ <div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>
+ <!-- /wp:spacer -->',
+ )
+ );
+
+ register_block_pattern(
+ 'twentysixteen/call-to-action',
+ array(
+ 'title' => __( 'Call to Action', 'twentysixteen' ),
+ 'categories' => array( 'twentysixteen' ),
+ 'content' => '<!-- wp:spacer -->
+ <div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>
+ <!-- /wp:spacer -->
+
+ <!-- wp:separator {"color":"dark-gray","className":"is-style-wide"} -->
+ <hr class="wp-block-separator has-text-color has-background has-dark-gray-background-color has-dark-gray-color is-style-wide"/>
+ <!-- /wp:separator -->
+
+ <!-- wp:heading {"level":1,"style":{"typography":{"fontSize":35,"lineHeight":"1.5"}}} -->
+ <h1 style="font-size:35px;line-height:1.5">' . esc_html__( 'My new book “Twenty Sixteen” is available for pre-order.', 'twentysixteen' ) . '</h1>
+ <!-- /wp:heading -->
+
+ <!-- wp:columns -->
+ <div class="wp-block-columns"><!-- wp:column -->
+ <div class="wp-block-column"><!-- wp:buttons -->
+ <div class="wp-block-buttons"><!-- wp:button {"borderRadius":0,"backgroundColor":"bright-blue"} -->
+ <div class="wp-block-button"><a class="wp-block-button__link has-bright-blue-background-color has-background no-border-radius">' . esc_html__( 'Pre-Order Now', 'twentysixteen' ) . '</a></div>
+ <!-- /wp:button --></div>
+ <!-- /wp:buttons --></div>
+ <!-- /wp:column -->
+
+ <!-- wp:column -->
+ <div class="wp-block-column"><!-- wp:spacer {"height":54} -->
+ <div style="height:54px" aria-hidden="true" class="wp-block-spacer"></div>
+ <!-- /wp:spacer --></div>
+ <!-- /wp:column --></div>
+ <!-- /wp:columns -->
+
+ <!-- wp:spacer -->
+ <div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>
+ <!-- /wp:spacer -->',
+ )
+ );
+}
diff --git a/themes/twentysixteen/inc/customizer.php b/themes/twentysixteen/inc/customizer.php
index 9867d3d9..0cefa79e 100644
--- a/themes/twentysixteen/inc/customizer.php
+++ b/themes/twentysixteen/inc/customizer.php
@@ -19,19 +19,19 @@ function twentysixteen_custom_header_and_background() {
$default_background_color = trim( $color_scheme[0], '#' );
$default_text_color = trim( $color_scheme[3], '#' );
- /**
- * Filter the arguments used when adding 'custom-background' support in Twenty Sixteen.
- *
- * @since Twenty Sixteen 1.0
- *
- * @param array $args {
- * An array of custom-background support arguments.
- *
- * @type string $default-color Default color of the background.
- * }
- */
add_theme_support(
'custom-background',
+ /**
+ * Filters the arguments used when adding 'custom-background' support in Twenty Sixteen.
+ *
+ * @since Twenty Sixteen 1.0
+ *
+ * @param array $args {
+ * An array of custom-background support arguments.
+ *
+ * @type string $default-color Default color of the background.
+ * }
+ */
apply_filters(
'twentysixteen_custom_background_args',
array(
@@ -40,24 +40,24 @@ function twentysixteen_custom_header_and_background() {
)
);
- /**
- * Filter the arguments used when adding 'custom-header' support in Twenty Sixteen.
- *
- * @since Twenty Sixteen 1.0
- *
- * @param array $args {
- * An array of custom-header support arguments.
- *
- * @type string $default-text-color Default color of the header text.
- * @type int $width Width in pixels of the custom header image. Default 1200.
- * @type int $height Height in pixels of the custom header image. Default 280.
- * @type bool $flex-height Whether to allow flexible-height header images. Default true.
- * @type callable $wp-head-callback Callback function used to style the header image and text
- * displayed on the blog.
- * }
- */
add_theme_support(
'custom-header',
+ /**
+ * Filters the arguments used when adding 'custom-header' support in Twenty Sixteen.
+ *
+ * @since Twenty Sixteen 1.0
+ *
+ * @param array $args {
+ * An array of custom-header support arguments.
+ *
+ * @type string $default-text-color Default color of the header text.
+ * @type int $width Width in pixels of the custom header image. Default 1200.
+ * @type int $height Height in pixels of the custom header image. Default 280.
+ * @type bool $flex-height Whether to allow flexible-height header images. Default true.
+ * @type callable $wp-head-callback Callback function used to style the header image and text
+ * displayed on the blog.
+ * }
+ */
apply_filters(
'twentysixteen_custom_header_args',
array(
@@ -103,7 +103,7 @@ if ( ! function_exists( 'twentysixteen_header_style' ) ) :
</style>
<?php
}
-endif; // twentysixteen_header_style
+endif; // twentysixteen_header_style()
/**
* Adds postMessage support for site title and description for the Customizer.
@@ -251,6 +251,7 @@ add_action( 'customize_register', 'twentysixteen_customize_register', 11 );
* Render the site title for the selective refresh partial.
*
* @since Twenty Sixteen 1.2
+ *
* @see twentysixteen_customize_register()
*
* @return void
@@ -263,6 +264,7 @@ function twentysixteen_customize_partial_blogname() {
* Render the site tagline for the selective refresh partial.
*
* @since Twenty Sixteen 1.2
+ *
* @see twentysixteen_customize_register()
*
* @return void
@@ -289,7 +291,7 @@ function twentysixteen_customize_partial_blogdescription() {
*/
function twentysixteen_get_color_schemes() {
/**
- * Filter the color schemes registered for use with Twenty Sixteen.
+ * Filters the color schemes registered for use with Twenty Sixteen.
*
* The default schemes include 'default', 'dark', 'gray', 'red', and 'yellow'.
*
@@ -385,7 +387,7 @@ if ( ! function_exists( 'twentysixteen_get_color_scheme' ) ) :
return $color_schemes['default']['colors'];
}
-endif; // twentysixteen_get_color_scheme
+endif; // twentysixteen_get_color_scheme()
if ( ! function_exists( 'twentysixteen_get_color_scheme_choices' ) ) :
/**
@@ -408,7 +410,7 @@ if ( ! function_exists( 'twentysixteen_get_color_scheme_choices' ) ) :
return $color_scheme_control_options;
}
-endif; // twentysixteen_get_color_scheme_choices
+endif; // twentysixteen_get_color_scheme_choices()
if ( ! function_exists( 'twentysixteen_sanitize_color_scheme' ) ) :
@@ -432,7 +434,7 @@ if ( ! function_exists( 'twentysixteen_sanitize_color_scheme' ) ) :
return $value;
}
-endif; // twentysixteen_sanitize_color_scheme
+endif; // twentysixteen_sanitize_color_scheme()
/**
* Enqueues front-end CSS for color scheme.
@@ -484,7 +486,7 @@ add_action( 'wp_enqueue_scripts', 'twentysixteen_color_scheme_css' );
* @since Twenty Sixteen 1.0
*/
function twentysixteen_customize_control_js() {
- wp_enqueue_script( 'color-scheme-control', get_template_directory_uri() . '/js/color-scheme-control.js', array( 'customize-controls', 'iris', 'underscore', 'wp-util' ), '20160816', true );
+ wp_enqueue_script( 'color-scheme-control', get_template_directory_uri() . '/js/color-scheme-control.js', array( 'customize-controls', 'iris', 'underscore', 'wp-util' ), '20170530', true );
wp_localize_script( 'color-scheme-control', 'colorScheme', twentysixteen_get_color_schemes() );
}
add_action( 'customize_controls_enqueue_scripts', 'twentysixteen_customize_control_js' );
@@ -495,7 +497,7 @@ add_action( 'customize_controls_enqueue_scripts', 'twentysixteen_customize_contr
* @since Twenty Sixteen 1.0
*/
function twentysixteen_customize_preview_js() {
- wp_enqueue_script( 'twentysixteen-customize-preview', get_template_directory_uri() . '/js/customize-preview.js', array( 'customize-preview' ), '20160816', true );
+ wp_enqueue_script( 'twentysixteen-customize-preview', get_template_directory_uri() . '/js/customize-preview.js', array( 'customize-preview' ), '20170530', true );
}
add_action( 'customize_preview_init', 'twentysixteen_customize_preview_js' );
diff --git a/themes/twentysixteen/inc/template-tags.php b/themes/twentysixteen/inc/template-tags.php
index 55578bea..005e5374 100644
--- a/themes/twentysixteen/inc/template-tags.php
+++ b/themes/twentysixteen/inc/template-tags.php
@@ -29,7 +29,7 @@ if ( ! function_exists( 'twentysixteen_entry_meta' ) ) :
);
}
- if ( in_array( get_post_type(), array( 'post', 'attachment' ) ) ) {
+ if ( in_array( get_post_type(), array( 'post', 'attachment' ), true ) ) {
twentysixteen_entry_date();
}
@@ -49,6 +49,7 @@ if ( ! function_exists( 'twentysixteen_entry_meta' ) ) :
if ( ! is_singular() && ! post_password_required() && ( comments_open() || get_comments_number() ) ) {
echo '<span class="comments-link">';
+ /* translators: %s: Post title. */
comments_popup_link( sprintf( __( 'Leave a comment<span class="screen-reader-text"> on %s</span>', 'twentysixteen' ), get_the_title() ) );
echo '</span>';
}
@@ -146,7 +147,7 @@ if ( ! function_exists( 'twentysixteen_post_thumbnail' ) ) :
</a>
<?php
- endif; // End is_singular()
+ endif; // End is_singular().
}
endif;
@@ -190,7 +191,7 @@ if ( ! function_exists( 'twentysixteen_excerpt_more' ) && ! is_admin() ) :
$link = sprintf(
'<a href="%1$s" class="more-link">%2$s</a>',
esc_url( get_permalink( get_the_ID() ) ),
- /* translators: %s: Name of current post */
+ /* translators: %s: Post title. */
sprintf( __( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'twentysixteen' ), get_the_title( get_the_ID() ) )
);
return ' &hellip; ' . $link;
@@ -209,7 +210,8 @@ if ( ! function_exists( 'twentysixteen_categorized_blog' ) ) :
* @return bool True if there is more than one category, false otherwise.
*/
function twentysixteen_categorized_blog() {
- if ( false === ( $all_the_cool_cats = get_transient( 'twentysixteen_categories' ) ) ) {
+ $all_the_cool_cats = get_transient( 'twentysixteen_categories' );
+ if ( false === $all_the_cool_cats ) {
// Create an array of all the categories that are attached to posts.
$all_the_cool_cats = get_categories(
array(
@@ -226,10 +228,10 @@ if ( ! function_exists( 'twentysixteen_categorized_blog' ) ) :
}
if ( $all_the_cool_cats > 1 || is_preview() ) {
- // This blog has more than 1 category so twentysixteen_categorized_blog should return true.
+ // This blog has more than 1 category so twentysixteen_categorized_blog() should return true.
return true;
} else {
- // This blog has only 1 category so twentysixteen_categorized_blog should return false.
+ // This blog has only 1 category so twentysixteen_categorized_blog() should return false.
return false;
}
}
@@ -269,7 +271,7 @@ if ( ! function_exists( 'wp_body_open' ) ) :
/**
* Fire the wp_body_open action.
*
- * Added for backwards compatibility to support pre 5.2.0 WordPress versions.
+ * Added for backward compatibility to support pre-5.2.0 WordPress versions.
*
* @since Twenty Sixteen 2.0
*/
diff --git a/themes/twentysixteen/index.php b/themes/twentysixteen/index.php
index f6ec56c1..0a1a3e01 100644
--- a/themes/twentysixteen/index.php
+++ b/themes/twentysixteen/index.php
@@ -35,7 +35,8 @@ get_header(); ?>
/*
* Include the Post-Format-specific template for the content.
* 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.
+ * called content-___.php (where ___ is the Post Format name) and that
+ * will be used instead.
*/
get_template_part( 'template-parts/content', get_post_format() );
diff --git a/themes/twentysixteen/js/functions.js b/themes/twentysixteen/js/functions.js
index a15af117..d7aed1bd 100644
--- a/themes/twentysixteen/js/functions.js
+++ b/themes/twentysixteen/js/functions.js
@@ -28,7 +28,7 @@
// Add menu items with submenus to aria-haspopup="true".
container.find( '.menu-item-has-children' ).attr( 'aria-haspopup', 'true' );
- container.find( '.dropdown-toggle' ).click( function( e ) {
+ container.find( '.dropdown-toggle' ).on( 'click', function( e ) {
var _this = $( this ),
screenReaderSpan = _this.find( '.screen-reader-text' );
diff --git a/themes/twentysixteen/page.php b/themes/twentysixteen/page.php
index a232c9fc..f5d6b7ad 100644
--- a/themes/twentysixteen/page.php
+++ b/themes/twentysixteen/page.php
@@ -28,7 +28,7 @@ get_header(); ?>
comments_template();
}
- // End of the loop.
+ // End the loop.
endwhile;
?>
diff --git a/themes/twentysixteen/readme.txt b/themes/twentysixteen/readme.txt
index 24b3428c..61bbd5f1 100644
--- a/themes/twentysixteen/readme.txt
+++ b/themes/twentysixteen/readme.txt
@@ -1,12 +1,10 @@
=== Twenty Sixteen ===
Contributors: wordpressdotorg
-Requires at least: WordPress 4.4
-Tested up to: WordPress 5.0
-Requires PHP: 5.2.4
-Version: 2.0
+Tested up to: 5.8
+Version: 2.5
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
-Tags: one-column, two-columns, right-sidebar, accessibility-ready, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-images, flexible-header, microformats, post-formats, rtl-language-support, sticky-post, threaded-comments, translation-ready, blog
+Tags: one-column, two-columns, right-sidebar, accessibility-ready, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-images, flexible-header, microformats, post-formats, rtl-language-support, sticky-post, threaded-comments, translation-ready, blog, block-patterns
== Description ==
Twenty Sixteen is a modernized take on an ever-popular WordPress layout — the horizontal masthead with an optional right sidebar that works perfectly for blogs and websites. It has custom color options with beautiful default color schemes, a harmonious fluid grid using a mobile-first approach, and impeccable polish in every detail. Twenty Sixteen will make your WordPress look beautiful everywhere.
@@ -18,19 +16,19 @@ Twenty Sixteen is a modernized take on an ever-popular WordPress layout — the
* Post Formats
* The GPL v2.0 or later license. :) Use it to make something cool.
-For more information about Twenty Sixteen please go to https://codex.wordpress.org/Twenty_Sixteen.
+For more information about Twenty Sixteen please go to https://wordpress.org/support/article/twenty-sixteen/.
== Installation ==
1. In your admin panel, go to Appearance -> Themes and click the 'Add New' button.
2. Type in Twenty Sixteen in the search form and press the 'Enter' key on your keyboard.
3. Click on the 'Activate' button to use your new theme right away.
-4. Go to https://codex.wordpress.org/Twenty_Sixteen for a guide on how to customize this theme.
+4. Go to https://wordpress.org/support/article/twenty-sixteen/ for a guide on how to customize this theme.
5. Navigate to Appearance > Customize in your admin panel and customize to taste.
== Copyright ==
-Twenty Sixteen WordPress Theme, Copyright 2014-2018 WordPress.org
+Twenty Sixteen WordPress Theme, Copyright 2014-2021 WordPress.org
Twenty Sixteen is distributed under the terms of the GNU GPL
This program is free software: you can redistribute it and/or modify
@@ -57,6 +55,31 @@ Image used in screenshot.png: A photo by Austin Schmid (https://unsplash.com/sch
== Changelog ==
+= 2.5 =
+* Released: July 20, 2021
+
+https://codex.wordpress.org/Twenty_Sixteen_Theme_Changelog#Version_2.5
+
+= 2.4 =
+* Released: March 9, 2021
+
+https://codex.wordpress.org/Twenty_Sixteen_Theme_Changelog#Version_2.4
+
+= 2.3 =
+* Released: December 8, 2020
+
+https://codex.wordpress.org/Twenty_Sixteen_Theme_Changelog#Version_2.3
+
+= 2.2 =
+* Released: August 11, 2020
+
+https://codex.wordpress.org/Twenty_Sixteen_Theme_Changelog#Version_2.2
+
+= 2.1 =
+* Released: March 31, 2020
+
+https://codex.wordpress.org/Twenty_Sixteen_Theme_Changelog#Version_2.1
+
= 2.0 =
* Released: May 7, 2019
diff --git a/themes/twentysixteen/rtl.css b/themes/twentysixteen/rtl.css
index 48ece280..5add22f5 100644
--- a/themes/twentysixteen/rtl.css
+++ b/themes/twentysixteen/rtl.css
@@ -681,7 +681,7 @@ body:not(.search-results) .entry-summary .alignleft {
margin-right: 1.473684211em;
margin-left: 0;
width: -webkit-calc(50% - 0.736842105em);
- width: calc(50% - 0.736842105em);;
+ width: calc(50% - 0.736842105em);
}
body:not(.search-results) article:not(.type-page) .entry-content > blockquote.alignright.below-entry-meta {
diff --git a/themes/twentysixteen/search.php b/themes/twentysixteen/search.php
index 0f893636..37aed863 100644
--- a/themes/twentysixteen/search.php
+++ b/themes/twentysixteen/search.php
@@ -15,7 +15,12 @@ get_header(); ?>
<?php if ( have_posts() ) : ?>
<header class="page-header">
- <h1 class="page-title"><?php printf( __( 'Search Results for: %s', 'twentysixteen' ), '<span>' . esc_html( get_search_query() ) . '</span>' ); ?></h1>
+ <h1 class="page-title">
+ <?php
+ /* translators: %s: The search query. */
+ printf( __( 'Search Results for: %s', 'twentysixteen' ), '<span>' . esc_html( get_search_query() ) . '</span>' );
+ ?>
+ </h1>
</header><!-- .page-header -->
<?php
diff --git a/themes/twentysixteen/single.php b/themes/twentysixteen/single.php
index 34541703..77a44d86 100644
--- a/themes/twentysixteen/single.php
+++ b/themes/twentysixteen/single.php
@@ -45,7 +45,7 @@ get_header(); ?>
);
}
- // End of the loop.
+ // End the loop.
endwhile;
?>
diff --git a/themes/twentysixteen/style.css b/themes/twentysixteen/style.css
index ab7e95da..a34e74d6 100644
--- a/themes/twentysixteen/style.css
+++ b/themes/twentysixteen/style.css
@@ -4,10 +4,12 @@ Theme URI: https://wordpress.org/themes/twentysixteen/
Author: the WordPress team
Author URI: https://wordpress.org/
Description: Twenty Sixteen is a modernized take on an ever-popular WordPress layout — the horizontal masthead with an optional right sidebar that works perfectly for blogs and websites. It has custom color options with beautiful default color schemes, a harmonious fluid grid using a mobile-first approach, and impeccable polish in every detail. Twenty Sixteen will make your WordPress look beautiful everywhere.
-Version: 2.0
+Version: 2.5
+Requires at least: 4.4
+Requires PHP: 5.2.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
-Tags: one-column, two-columns, right-sidebar, accessibility-ready, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-images, flexible-header, microformats, post-formats, rtl-language-support, sticky-post, threaded-comments, translation-ready, blog
+Tags: one-column, two-columns, right-sidebar, accessibility-ready, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-images, flexible-header, microformats, post-formats, rtl-language-support, sticky-post, threaded-comments, translation-ready, blog, block-patterns
Text Domain: twentysixteen
This theme, like WordPress, is licensed under the GPL.
@@ -286,7 +288,7 @@ optgroup {
font-variant: normal;
font-weight: normal;
line-height: 1;
- speak: none;
+ speak: never;
text-align: center;
text-decoration: inherit;
text-transform: none;
@@ -1411,7 +1413,8 @@ blockquote:after,
}
.widget-area > :last-child,
-.widget > :last-child {
+.widget > :last-child,
+.widget > nav > :last-child {
margin-bottom: 0;
}
@@ -1438,8 +1441,23 @@ blockquote:after,
margin: 0;
}
+.widget_calendar .wp-calendar-nav {
+ display: table;
+ width: 100%;
+}
+
+.widget_calendar .wp-calendar-nav span {
+ display: table-cell;
+}
+
+.widget_calendar .wp-calendar-nav-prev,
+.widget_calendar .wp-calendar-nav-next {
+ width: 40%;
+}
+
.widget_calendar td,
-.widget_calendar th {
+.widget_calendar th,
+.widget_calendar .wp-calendar-nav span {
line-height: 2.5625;
padding: 0;
text-align: center;
@@ -3302,7 +3320,8 @@ p > video {
}
.widget_calendar td,
- .widget_calendar th {
+ .widget_calendar th,
+ .widget_calendar .wp-calendar-nav span {
line-height: 2.6923076923;
padding: 0;
}
diff --git a/themes/twentysixteen/template-parts/biography.php b/themes/twentysixteen/template-parts/biography.php
index 9e2e5b87..15aa70cd 100644
--- a/themes/twentysixteen/template-parts/biography.php
+++ b/themes/twentysixteen/template-parts/biography.php
@@ -12,7 +12,7 @@
<div class="author-avatar">
<?php
/**
- * Filter the Twenty Sixteen author bio avatar size.
+ * Filters the Twenty Sixteen author bio avatar size.
*
* @since Twenty Sixteen 1.0
*
@@ -30,7 +30,10 @@
<p class="author-bio">
<?php the_author_meta( 'description' ); ?>
<a class="author-link" href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author">
- <?php printf( __( 'View all posts by %s', 'twentysixteen' ), get_the_author() ); ?>
+ <?php
+ /* translators: %s: The post author display name. */
+ printf( __( 'View all posts by %s', 'twentysixteen' ), get_the_author() );
+ ?>
</a>
</p><!-- .author-bio -->
</div><!-- .author-description -->
diff --git a/themes/twentysixteen/template-parts/content-none.php b/themes/twentysixteen/template-parts/content-none.php
index b6b7e7c0..ad401cf9 100644
--- a/themes/twentysixteen/template-parts/content-none.php
+++ b/themes/twentysixteen/template-parts/content-none.php
@@ -16,7 +16,12 @@
<div class="page-content">
<?php if ( is_home() && current_user_can( 'publish_posts' ) ) : ?>
- <p><?php printf( __( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'twentysixteen' ), esc_url( admin_url( 'post-new.php' ) ) ); ?></p>
+ <p>
+ <?php
+ /* translators: %s: Post editor URL. */
+ printf( __( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'twentysixteen' ), esc_url( admin_url( 'post-new.php' ) ) );
+ ?>
+ </p>
<?php elseif ( is_search() ) : ?>
diff --git a/themes/twentysixteen/template-parts/content-page.php b/themes/twentysixteen/template-parts/content-page.php
index 689972c0..58af8e0b 100644
--- a/themes/twentysixteen/template-parts/content-page.php
+++ b/themes/twentysixteen/template-parts/content-page.php
@@ -35,7 +35,7 @@
<?php
edit_post_link(
sprintf(
- /* translators: %s: Name of current post */
+ /* translators: %s: Post title. */
__( 'Edit<span class="screen-reader-text"> "%s"</span>', 'twentysixteen' ),
get_the_title()
),
diff --git a/themes/twentysixteen/template-parts/content-search.php b/themes/twentysixteen/template-parts/content-search.php
index 7d587f65..6a912eb0 100644
--- a/themes/twentysixteen/template-parts/content-search.php
+++ b/themes/twentysixteen/template-parts/content-search.php
@@ -24,7 +24,7 @@
<?php
edit_post_link(
sprintf(
- /* translators: %s: Name of current post */
+ /* translators: %s: Post title. */
__( 'Edit<span class="screen-reader-text"> "%s"</span>', 'twentysixteen' ),
get_the_title()
),
@@ -39,7 +39,7 @@
<?php
edit_post_link(
sprintf(
- /* translators: %s: Name of current post */
+ /* translators: %s: Post title. */
__( 'Edit<span class="screen-reader-text"> "%s"</span>', 'twentysixteen' ),
get_the_title()
),
diff --git a/themes/twentysixteen/template-parts/content-single.php b/themes/twentysixteen/template-parts/content-single.php
index 23e18373..1eb9f267 100644
--- a/themes/twentysixteen/template-parts/content-single.php
+++ b/themes/twentysixteen/template-parts/content-single.php
@@ -43,7 +43,7 @@
<?php
edit_post_link(
sprintf(
- /* translators: %s: Name of current post */
+ /* translators: %s: Post title. */
__( 'Edit<span class="screen-reader-text"> "%s"</span>', 'twentysixteen' ),
get_the_title()
),
diff --git a/themes/twentysixteen/template-parts/content.php b/themes/twentysixteen/template-parts/content.php
index 03b4cfb6..1497c76c 100644
--- a/themes/twentysixteen/template-parts/content.php
+++ b/themes/twentysixteen/template-parts/content.php
@@ -23,9 +23,9 @@
<div class="entry-content">
<?php
- /* translators: %s: Name of current post */
the_content(
sprintf(
+ /* translators: %s: Post title. */
__( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'twentysixteen' ),
get_the_title()
)
@@ -49,7 +49,7 @@
<?php
edit_post_link(
sprintf(
- /* translators: %s: Name of current post */
+ /* translators: %s: Post title. */
__( 'Edit<span class="screen-reader-text"> "%s"</span>', 'twentysixteen' ),
get_the_title()
),