This commit is contained in:
root 2020-09-15 12:31:40 +00:00
parent c23d2679a6
commit 47f538c5da
53 changed files with 7590 additions and 12813 deletions

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
{"translation-revision-date":"2020-06-20 21:06:08+0000","generator":"GlotPress\/3.0.0-alpha","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","plural-forms":"nplurals=2; plural=n != 1;","lang":"sv_SE"},"An unexpected error occured within the Podcast Player. Reloading this page might fix the problem.":["Ett ov\u00e4ntat fel intr\u00e4ffade i Podcast Player. Att l\u00e4sa in den h\u00e4r sidan igen kan l\u00f6sa problemet."],"The podcast player cannot be displayed as your browser settings do not allow for sounds to be played in webpages. This can be changed in your browser\u2019s \"Internet options\" settings. In the \"Advanced\" tab you will have to check the box next to \"Play sounds in webpages\" in the \"Multimedia\" section. Once you have confirmed that the box is checked, please press \"Apply\" and then reload this page.":["Podcastspelaren kan inte visas eftersom dina webbl\u00e4sarinst\u00e4llningar inte till\u00e5ter att ljud spelas upp p\u00e5 webbsidor. Detta kan \u00e4ndras i din webbl\u00e4sares \"Internetalternativ\"-inst\u00e4llningar. P\u00e5 fliken \"Avancerat\" m\u00e5ste du markera rutan bredvid \"Spela upp ljud p\u00e5 webbsidor\" i avsnittet \"Multimedia\". N\u00e4r du har bekr\u00e4ftat att rutan \u00e4r markerad trycker du p\u00e5 \"Till\u00e4mpa\" och l\u00e4ser d\u00e4refter in den h\u00e4r sidan igen."],"Select an episode to play it in the audio player.":["V\u00e4lj ett avsnitt f\u00f6r att spela upp det i ljudspelaren."],"Playlist: %s":["Spellista: %s"],"Error: Episode unavailable - Open in a new tab":["Fel: Avsnittet \u00e4r inte tillg\u00e4ngligt - \u00d6ppna i en ny flik"],"Loading: %s":["Laddar: %s"],"Paused":["Pausad"],"track":["sp\u00e5r"],"%s:":["%s:"],"Error:":["Fel:"],"Open in a new tab":["\u00d6ppna i en ny flik"],"Episode unavailable. ":["Avsnitt inte tillg\u00e4ngligt."],"Playing:":["Spelar:"]}},"comment":{"reference":"_inc\/blocks\/podcast-player\/view.js"}}
{"translation-revision-date":"2020-09-02 12:54:59+0000","generator":"GlotPress\/3.0.0-alpha.2","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","plural-forms":"nplurals=2; plural=n != 1;","lang":"sv_SE"},"An unexpected error occured within the Podcast Player. Reloading this page might fix the problem.":["Ett ov\u00e4ntat fel intr\u00e4ffade i Podcast Player. Att l\u00e4sa in den h\u00e4r sidan igen kan l\u00f6sa problemet."],"The podcast player cannot be displayed as your browser settings do not allow for sounds to be played in webpages. This can be changed in your browser\u2019s \"Internet options\" settings. In the \"Advanced\" tab you will have to check the box next to \"Play sounds in webpages\" in the \"Multimedia\" section. Once you have confirmed that the box is checked, please press \"Apply\" and then reload this page.":["Podcastspelaren kan inte visas eftersom dina webbl\u00e4sarinst\u00e4llningar inte till\u00e5ter att ljud spelas upp p\u00e5 webbsidor. Detta kan \u00e4ndras i din webbl\u00e4sares \"Internetalternativ\"-inst\u00e4llningar. P\u00e5 fliken \"Avancerat\" m\u00e5ste du markera rutan bredvid \"Spela upp ljud p\u00e5 webbsidor\" i avsnittet \"Multimedia\". N\u00e4r du har bekr\u00e4ftat att rutan \u00e4r markerad trycker du p\u00e5 \"Till\u00e4mpa\" och l\u00e4ser d\u00e4refter in den h\u00e4r sidan igen."],"Playlist: %s":["Spellista: %s"],"Paused":["Pausad"],"track":["sp\u00e5r"],"%s:":["%s:"],"Error:":["Fel:"],"Select an episode to play it in the audio player.":["V\u00e4lj ett avsnitt f\u00f6r att spela upp det i ljudspelaren."],"Loading: %s":["Laddar: %s"],"Error: Episode unavailable - Open in a new tab":["Fel: Avsnittet \u00e4r inte tillg\u00e4ngligt \u2013 \u00d6ppna i en ny flik"],"Open in a new tab":["\u00d6ppna i en ny flik"],"Episode unavailable. ":["Avsnitt inte tillg\u00e4ngligt."],"Playing:":["Spelar:"]}},"comment":{"reference":"_inc\/blocks\/podcast-player\/view.js"}}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
{"translation-revision-date":"2020-06-20 21:06:08+0000","generator":"GlotPress\/3.0.0-alpha","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","plural-forms":"nplurals=2; plural=n != 1;","lang":"sv_SE"},"block search term\u0004maps":["kartor"],"Grow":["V\u00e4x"],"Earn":["Tj\u00e4na"],"Delete Marker":["Ta bort mark\u00f6r"],"Marker Caption":["Tidsmark\u00f6rstext"],"Marker Title":["Tidsmark\u00f6rstitel"],"Terrain":["Terr\u00e4ng"],"Satellite":["Satellit"],"Black and white":["Svart och vit"],"Basic":["Grundl\u00e4ggande"],"Add an interactive map showing one or more locations.":["L\u00e4gg till en interaktiv karta som visar en eller flera platser."],"block search term\u0004navigation":["navigering"],"block search term\u0004location":["plats"],"Map":["Karta"]}},"comment":{"reference":"_inc\/blocks\/map\/view.js"}}
{"translation-revision-date":"2020-09-02 12:54:59+0000","generator":"GlotPress\/3.0.0-alpha.2","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","plural-forms":"nplurals=2; plural=n != 1;","lang":"sv_SE"},"block search term\u0004maps":["kartor"],"block search term\u0004navigation":["navigering"],"Terrain":["Terr\u00e4ng"],"Satellite":["Satellit"],"Black and white":["Svart och vit"],"Basic":["Grundl\u00e4ggande"],"Delete Marker":["Ta bort mark\u00f6r"],"Add an interactive map showing one or more locations.":["L\u00e4gg till en interaktiv karta som visar en eller flera platser."],"block search term\u0004location":["plats"],"Marker Caption":["Tidsmark\u00f6rstext"],"Marker Title":["Tidsmark\u00f6rstitel"],"Map":["Karta"]}},"comment":{"reference":"_inc\/blocks\/map\/view.js"}}

View File

@ -0,0 +1 @@
{"translation-revision-date":"2020-09-02 12:54:59+0000","generator":"GlotPress\/3.0.0-alpha.2","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","plural-forms":"nplurals=2; plural=n != 1;","lang":"sv_SE"},"Mute":["Ljud av"],"Play":["Spela upp"],"Exit Fullscreen":["Avsluta fullsk\u00e4rmsl\u00e4ge"],"Go to slide %d":["G\u00e5 till bild %d"]}},"comment":{"reference":"_inc\/blocks\/story\/view.js"}}

View File

@ -0,0 +1 @@
{"translation-revision-date":"2020-09-02 12:54:59+0000","generator":"GlotPress\/3.0.0-alpha.2","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","plural-forms":"nplurals=2; plural=n != 1;","lang":"sv_SE"},"Post":["Publicera"],"It looks like you're offline. Please reconnect to load the latest results.":["Det verkar som du \u00e4r offline. Anslut igen f\u00f6r att l\u00e4sa in de senaste resultaten."],"It looks like you're offline. Please reconnect for results.":["Det verkar som du \u00e4r offline. Anslut igen f\u00f6r resultat."],"No results for \"%s\"":["Inga resultat f\u00f6r %s"],"Found %s result":["Hittade %s resultat","Hittade %s resultat"],"Found %s result for \"%s\"":["Hittade %s resultat f\u00f6r %s","Hittade %s resultat f\u00f6r %s"],"Searching\u2026":["S\u00f6ker..."],"Clear filters":["Rensa filter"],"Hide filters":["D\u00f6lj filter"],"Search\u2026":["S\u00f6k\u2026"],"Site Search":["Webbplatss\u00f6kning"],"Oldest":["\u00c4ldsta"],"Search powered by Jetpack":["S\u00f6kning via Jetpack"],"Load more":["Ladda fler"],"Has a video.":["Har en video."],"Tag":["Tagga"],"Page":["Sida"],"Has an image.":["Har en bild."],"Has multiple images.":["Har flera bilder."],"Toggle search filters.":["Aktivera s\u00f6kfilter."],"Close search overlay":["St\u00e4ng s\u00f6k\u00f6verl\u00e4gget"],"Matching comment.":["Matchande kommentar."],"Show filters":["Visa filter"],"Is a product.":["\u00c4r en produkt."],"Is an event.":["\u00c4r en h\u00e4ndelse."],"Has audio.":["Har ljud."],"Filters":["Filter"],"Relevance":["Relevans"],"No results found":["Inga resultat hittades"],"Loading\u2026":["Laddar in ..."],"Category":["Kategori"],"Newest":["Senaste"],"Search":["S\u00f6k"]}},"comment":{"reference":"_inc\/build\/instant-search\/jp-search.bundle.js"}}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

View File

@ -53,7 +53,7 @@ get_header(); ?>
<div id="author-avatar">
<?php
/**
* Filter the Twenty Eleven author bio avatar size.
* Filters the Twenty Eleven author bio avatar size.
*
* @since Twenty Eleven 1.0
*

View File

@ -26,7 +26,7 @@ get_header(); ?>
$category_description = category_description();
if ( ! empty( $category_description ) ) {
/**
* Filter the default Twenty Eleven category description.
* Filters the default Twenty Eleven category description.
*
* @since Twenty Eleven 1.0
*

View File

@ -32,24 +32,26 @@ global $feature_class;
<footer class="entry-meta">
<?php
/* translators: Used between list items, there is a space after the comma. */
$tag_list = get_the_tag_list( '', __( ', ', 'twentyeleven' ) );
if ( '' != $tag_list ) {
/* translators: Used between list items, there is a space after the comma. */
$tags_list = get_the_tag_list( '', __( ', ', 'twentyeleven' ) );
if ( $tags_list && ! is_wp_error( $tags_list ) ) {
/* translators: 1: Category list, 2: Tag list, 3: Post permalink, 4: Post title. */
$utility_text = __( 'This entry was posted in %1$s and tagged %2$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyeleven' );
} else {
/* translators: 1: Category list, 3: Post permalink, 4: Post title. */
$utility_text = __( 'This entry was posted in %1$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyeleven' );
}
printf(
$utility_text,
/* translators: Used between list items, there is a space after the comma. */
get_the_category_list( __( ', ', 'twentyeleven' ) ),
$tag_list,
esc_url( get_permalink() ),
the_title_attribute( 'echo=0' )
);
?>
printf(
$utility_text,
/* translators: Used between list items, there is a space after the comma. */
get_the_category_list( __( ', ', 'twentyeleven' ) ),
$tags_list,
esc_url( get_permalink() ),
the_title_attribute( 'echo=0' )
);
?>
<?php edit_post_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?>
</footer><!-- .entry-meta -->

View File

@ -70,9 +70,11 @@
<footer class="entry-meta">
<?php $show_sep = false; ?>
<?php
/* translators: Used between list items, there is a space after the comma. */
$categories_list = get_the_category_list( __( ', ', 'twentyeleven' ) );
/* translators: Used between list items, there is a space after the comma. */
$categories_list = get_the_category_list( __( ', ', 'twentyeleven' ) );
if ( $categories_list ) :
?>
<span class="cat-links">
@ -83,10 +85,12 @@
?>
</span>
<?php endif; // End if categories. ?>
<?php
/* translators: Used between list items, there is a space after the comma. */
$tags_list = get_the_tag_list( '', __( ', ', 'twentyeleven' ) );
if ( $tags_list ) :
/* translators: Used between list items, there is a space after the comma. */
$tags_list = get_the_tag_list( '', __( ', ', 'twentyeleven' ) );
if ( $tags_list && ! is_wp_error( $tags_list ) ) :
if ( $show_sep ) :
?>
<span class="sep"> | </span>

View File

@ -55,8 +55,9 @@
</div><!-- .entry-meta -->
<div class="entry-meta">
<?php
/* translators: Used between list items, there is a space after the comma. */
$categories_list = get_the_category_list( __( ', ', 'twentyeleven' ) );
/* translators: Used between list items, there is a space after the comma. */
$categories_list = get_the_category_list( __( ', ', 'twentyeleven' ) );
if ( $categories_list ) :
?>
<span class="cat-links">
@ -66,10 +67,12 @@
?>
</span>
<?php endif; // End if categories. ?>
<?php
/* translators: Used between list items, there is a space after the comma. */
$tags_list = get_the_tag_list( '', __( ', ', 'twentyeleven' ) );
if ( $tags_list ) :
/* translators: Used between list items, there is a space after the comma. */
$tags_list = get_the_tag_list( '', __( ', ', 'twentyeleven' ) );
if ( $tags_list && ! is_wp_error( $tags_list ) ) :
?>
<span class="tag-links">
<?php

View File

@ -46,9 +46,11 @@
<footer class="entry-meta">
<?php $show_sep = false; ?>
<?php
/* translators: Used between list items, there is a space after the comma. */
$categories_list = get_the_category_list( __( ', ', 'twentyeleven' ) );
/* translators: Used between list items, there is a space after the comma. */
$categories_list = get_the_category_list( __( ', ', 'twentyeleven' ) );
if ( $categories_list ) :
?>
<span class="cat-links">
@ -59,10 +61,12 @@
?>
</span>
<?php endif; // End if categories. ?>
<?php
/* translators: Used between list items, there is a space after the comma. */
$tags_list = get_the_tag_list( '', __( ', ', 'twentyeleven' ) );
if ( $tags_list ) :
/* translators: Used between list items, there is a space after the comma. */
$tags_list = get_the_tag_list( '', __( ', ', 'twentyeleven' ) );
if ( $tags_list && ! is_wp_error( $tags_list ) ) :
if ( $show_sep ) :
?>
<span class="sep"> | </span>

View File

@ -12,7 +12,7 @@
<header class="entry-header">
<h1 class="entry-title"><?php the_title(); ?></h1>
<?php if ( 'post' == get_post_type() ) : ?>
<?php if ( 'post' === get_post_type() ) : ?>
<div class="entry-meta">
<?php twentyeleven_posted_on(); ?>
</div><!-- .entry-meta -->
@ -33,15 +33,16 @@
<footer class="entry-meta">
<?php
/* translators: Used between list items, there is a space after the comma. */
$categories_list = get_the_category_list( __( ', ', 'twentyeleven' ) );
/* translators: Used between list items, there is a space after the comma. */
$categories_list = get_the_category_list( __( ', ', 'twentyeleven' ) );
/* translators: Used between list items, there is a space after the comma. */
$tag_list = get_the_tag_list( '', __( ', ', 'twentyeleven' ) );
if ( '' != $tag_list ) {
/* translators: Used between list items, there is a space after the comma. */
$tags_list = get_the_tag_list( '', __( ', ', 'twentyeleven' ) );
if ( $tags_list && ! is_wp_error( $tags_list ) ) {
/* translators: 1: Categories list, 2: Tag list, 3: Permalink, 4: Post title, 5: Author name, 6: Author URL. */
$utility_text = __( 'This entry was posted in %1$s and tagged %2$s by <a href="%6$s">%5$s</a>. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyeleven' );
} elseif ( '' != $categories_list ) {
} elseif ( $categories_list ) {
/* translators: 1: Categories list, 2: Tag list, 3: Permalink, 4: Post title, 5: Author name, 6: Author URL. */
$utility_text = __( 'This entry was posted in %1$s by <a href="%6$s">%5$s</a>. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyeleven' );
} else {
@ -49,16 +50,17 @@
$utility_text = __( 'This entry was posted by <a href="%6$s">%5$s</a>. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyeleven' );
}
printf(
$utility_text,
$categories_list,
$tag_list,
esc_url( get_permalink() ),
the_title_attribute( 'echo=0' ),
get_the_author(),
esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) )
);
?>
printf(
$utility_text,
$categories_list,
$tags_list,
esc_url( get_permalink() ),
the_title_attribute( 'echo=0' ),
get_the_author(),
esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) )
);
?>
<?php edit_post_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?>
<?php

View File

@ -35,7 +35,7 @@
<div class="avatar">
<?php
/**
* Filter the Twenty Eleven status avatar size.
* Filters the Twenty Eleven status avatar size.
*
* @since Twenty Eleven 1.0
*

View File

@ -19,7 +19,7 @@
<h1 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
<?php endif; ?>
<?php if ( 'post' == get_post_type() ) : ?>
<?php if ( 'post' === get_post_type() ) : ?>
<div class="entry-meta">
<?php twentyeleven_posted_on(); ?>
</div><!-- .entry-meta -->
@ -52,10 +52,12 @@
<footer class="entry-meta">
<?php $show_sep = false; ?>
<?php if ( is_object_in_taxonomy( get_post_type(), 'category' ) ) : // Hide category text when not supported. ?>
<?php
/* translators: Used between list items, there is a space after the comma. */
$categories_list = get_the_category_list( __( ', ', 'twentyeleven' ) );
if ( $categories_list ) :
?>
<span class="cat-links">
@ -67,11 +69,13 @@
</span>
<?php endif; // End if categories. ?>
<?php endif; // End if is_object_in_taxonomy( get_post_type(), 'category' ). ?>
<?php if ( is_object_in_taxonomy( get_post_type(), 'post_tag' ) ) : // Hide tag text when not supported. ?>
<?php
/* translators: Used between list items, there is a space after the comma. */
$tags_list = get_the_tag_list( '', __( ', ', 'twentyeleven' ) );
if ( $tags_list ) :
if ( $tags_list && ! is_wp_error( $tags_list ) ) :
if ( $show_sep ) :
?>
<span class="sep"> | </span>

View File

@ -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
--------------------------------------------------------------*/
/*--------------------------------------------------------------
@ -471,3 +472,55 @@ p.has-drop-cap:not(:focus)::first-letter {
margin-left: 0;
margin-right: 0;
}
/*--------------------------------------------------------------
7.0 Blocks - Colors
--------------------------------------------------------------*/
:root .editor-styles-wrapper .has-blue-color {
color: #1982d1;
}
:root .editor-styles-wrapper .has-blue-background-color {
background-color: #1982d1;
}
: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: #373737;
}
:root .editor-styles-wrapper .has-dark-gray-background-color {
background-color: #373737;
}
:root .editor-styles-wrapper .has-medium-gray-color {
color: #666;
}
:root .editor-styles-wrapper .has-medium-gray-background-color {
background-color: #666;
}
:root .editor-styles-wrapper .has-light-gray-color {
color: #e2e2e2;
}
:root .editor-styles-wrapper .has-light-gray-background-color {
background-color: #e2e2e2;
}
:root .editor-styles-wrapper .has-white-color {
color: #fff;
}
:root .editor-styles-wrapper .has-white-background-color {
background-color: #fff;
}

View File

@ -147,7 +147,7 @@ if ( ! function_exists( 'twentyeleven_setup' ) ) :
add_theme_support( 'post-formats', array( 'aside', 'link', 'gallery', 'status', 'quote', 'image' ) );
$theme_options = twentyeleven_get_theme_options();
if ( 'dark' == $theme_options['color_scheme'] ) {
if ( 'dark' === $theme_options['color_scheme'] ) {
$default_background_color = '1d1d1d';
} else {
$default_background_color = 'e2e2e2';
@ -174,7 +174,7 @@ if ( ! function_exists( 'twentyeleven_setup' ) ) :
'default-text-color' => '000',
// The height and width of our custom header.
/**
* Filter the Twenty Eleven default header image width.
* Filters the Twenty Eleven default header image width.
*
* @since Twenty Eleven 1.0
*
@ -182,7 +182,7 @@ if ( ! function_exists( 'twentyeleven_setup' ) ) :
*/
'width' => apply_filters( 'twentyeleven_header_image_width', 1000 ),
/**
* Filter the Twenty Eleven default header image height.
* Filters the Twenty Eleven default header image height.
*
* @since Twenty Eleven 1.0
*
@ -328,7 +328,7 @@ if ( ! function_exists( 'twentyeleven_header_style' ) ) :
<style type="text/css" id="twentyeleven-header-css">
<?php
// Has the text been hidden?
if ( 'blank' == $text_color ) :
if ( 'blank' === $text_color ) :
?>
#site-title,
#site-description {
@ -719,28 +719,29 @@ if ( ! function_exists( 'twentyeleven_comment' ) ) :
<footer class="comment-meta">
<div class="comment-author vcard">
<?php
$avatar_size = 68;
$avatar_size = 68;
if ( '0' != $comment->comment_parent ) {
$avatar_size = 39;
}
echo get_avatar( $comment, $avatar_size );
echo get_avatar( $comment, $avatar_size );
printf(
/* translators: 1: Comment author, 2: Date and time. */
__( '%1$s on %2$s <span class="says">said:</span>', 'twentyeleven' ),
sprintf( '<span class="fn">%s</span>', get_comment_author_link() ),
sprintf(
'<a href="%1$s"><time datetime="%2$s">%3$s</time></a>',
esc_url( get_comment_link( $comment->comment_ID ) ),
get_comment_time( 'c' ),
/* translators: 1: Date, 2: Time. */
sprintf( __( '%1$s at %2$s', 'twentyeleven' ), get_comment_date(), get_comment_time() )
)
);
printf(
/* translators: 1: Comment author, 2: Date and time. */
__( '%1$s on %2$s <span class="says">said:</span>', 'twentyeleven' ),
sprintf( '<span class="fn">%s</span>', get_comment_author_link() ),
sprintf(
'<a href="%1$s"><time datetime="%2$s">%3$s</time></a>',
esc_url( get_comment_link( $comment->comment_ID ) ),
get_comment_time( 'c' ),
/* translators: 1: Date, 2: Time. */
sprintf( __( '%1$s at %2$s', 'twentyeleven' ), get_comment_date(), get_comment_time() )
)
);
?>
<?php edit_comment_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?>
<?php edit_comment_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?>
</div><!-- .comment-author .vcard -->
<?php

View File

@ -48,7 +48,7 @@ if ( ( $paged >= 2 || $page >= 2 ) && ! is_404() ) {
?>
</title>
<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="profile" href="https://gmpg.org/xfn/11" />
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>?ver=20190507" />
<link rel="pingback" href="<?php echo esc_url( get_bloginfo( 'pingback_url' ) ); ?>">
<!--[if lt IE 9]>
@ -128,7 +128,7 @@ if ( is_singular() && get_option( 'thread_comments' ) ) {
<?php
// Has the text been hidden?
if ( 'blank' == get_header_textcolor() ) :
if ( 'blank' === get_header_textcolor() ) :
$header_image_class = '';
if ( $header_image ) {
$header_image_class = ' with-image';

View File

@ -93,7 +93,7 @@ get_header(); ?>
<a href="<?php echo esc_url( $next_attachment_url ); ?>" title="<?php the_title_attribute(); ?>" rel="attachment">
<?php
/**
* Filter the Twenty Eleven default attachment size.
* Filters the Twenty Eleven default attachment size.
*
* @since Twenty Eleven 1.0
*

View File

@ -162,7 +162,7 @@ function twentyeleven_color_schemes() {
);
/**
* Filter the Twenty Eleven color scheme options.
* Filters the Twenty Eleven color scheme options.
*
* @since Twenty Eleven 1.0
*
@ -196,7 +196,7 @@ function twentyeleven_layouts() {
);
/**
* Filter the Twenty Eleven layout options.
* Filters the Twenty Eleven layout options.
*
* @since Twenty Eleven 1.0
*
@ -224,7 +224,7 @@ function twentyeleven_get_default_theme_options() {
}
/**
* Filter the Twenty Eleven default options.
* Filters the Twenty Eleven default options.
*
* @since Twenty Eleven 1.0
*
@ -398,7 +398,7 @@ function twentyeleven_theme_options_validate( $input ) {
}
/**
* Filter the Twenty Eleven sanitized form input array.
* Filters the Twenty Eleven sanitized form input array.
*
* @since Twenty Eleven 1.0
*
@ -418,7 +418,7 @@ function twentyeleven_enqueue_color_scheme() {
$options = twentyeleven_get_theme_options();
$color_scheme = $options['color_scheme'];
if ( 'dark' == $color_scheme ) {
if ( 'dark' === $color_scheme ) {
wp_enqueue_style( 'dark', get_template_directory_uri() . '/colors/dark.css', array(), '20190404' );
}
@ -493,22 +493,22 @@ function twentyeleven_layout_classes( $existing_classes ) {
$options = twentyeleven_get_theme_options();
$current_layout = $options['theme_layout'];
if ( in_array( $current_layout, array( 'content-sidebar', 'sidebar-content' ) ) ) {
if ( in_array( $current_layout, array( 'content-sidebar', 'sidebar-content' ), true ) ) {
$classes = array( 'two-column' );
} else {
$classes = array( 'one-column' );
}
if ( 'content-sidebar' == $current_layout ) {
if ( 'content-sidebar' === $current_layout ) {
$classes[] = 'right-sidebar';
} elseif ( 'sidebar-content' == $current_layout ) {
} elseif ( 'sidebar-content' === $current_layout ) {
$classes[] = 'left-sidebar';
} else {
$classes[] = $current_layout;
}
/**
* Filter the Twenty Eleven layout body classes.
* Filters the Twenty Eleven layout body classes.
*
* @since Twenty Eleven 1.0
*
@ -644,6 +644,7 @@ add_action( 'customize_register', 'twentyeleven_customize_register' );
* Render the site title for the selective refresh partial.
*
* @since Twenty Eleven 2.4
*
* @see twentyeleven_customize_register()
*
* @return void
@ -656,6 +657,7 @@ function twentyeleven_customize_partial_blogname() {
* Render the site tagline for the selective refresh partial.
*
* @since Twenty Eleven 2.4
*
* @see twentyeleven_customize_register()
*
* @return void

View File

@ -111,7 +111,7 @@ class Twenty_Eleven_Ephemera_Widget extends WP_Widget {
$ephemera->the_post();
?>
<?php if ( 'link' != get_post_format() ) : ?>
<?php if ( 'link' !== get_post_format() ) : ?>
<li class="widget-entry-title">
<a href="<?php echo esc_url( get_permalink() ); ?>" rel="bookmark"><?php the_title(); ?></a>

View File

@ -1,8 +1,8 @@
=== Twenty Eleven ===
Contributors: wordpressdotorg
Requires at least: WordPress 3.2
Tested up to: 5.0
Stable tag: 3.4
Tested up to: 5.5
Stable tag: 3.5
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, one-column, two-columns, left-sidebar, right-sidebar, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-image-header, featured-images, flexible-header, footer-widgets, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready
@ -43,6 +43,11 @@ Source: https://github.com/aFarkas/html5shiv
== Changelog ==
= 3.5 =
* Released: August 11, 2020
https://codex.wordpress.org/Twenty_Eleven_Theme_Changelog#Version_3.5
= 3.4 =
* Released: March 31, 2020

View File

@ -33,7 +33,7 @@ get_header(); ?>
* We are using a heading by rendering the_content
* If we have content for this page, let's display it.
*/
if ( '' != get_the_content() ) {
if ( '' !== get_the_content() ) {
get_template_part( 'content', 'intro' );
}
?>

View File

@ -10,7 +10,7 @@
$options = twentyeleven_get_theme_options();
$current_layout = $options['theme_layout'];
if ( 'content' != $current_layout ) :
if ( 'content' !== $current_layout ) :
?>
<div id="secondary" class="widget-area" role="complementary">
<?php if ( ! dynamic_sidebar( 'sidebar-1' ) ) : ?>

View File

@ -4,7 +4,7 @@ Theme URI: https://wordpress.org/themes/twentyeleven/
Author: the WordPress team
Author URI: https://wordpress.org/
Description: The 2011 theme for WordPress is sophisticated, lightweight, and adaptable. Make it yours with a custom menu, header image, and background -- then go further with available theme options for light or dark color scheme, custom link colors, and three layout choices. Twenty Eleven comes equipped with a Showcase page template that transforms your front page into a showcase to show off your best content, widget support galore (sidebar, three footer areas, and a Showcase page widget area), and a custom "Ephemera" widget to display your Aside, Link, Quote, or Status posts. Included are styles for print and for the admin editor, support for featured images (as custom header images on posts and pages and as large images on featured "sticky" posts), and special styles for six different post formats.
Version: 3.4
Version: 3.5
Requires PHP: 5.2.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
@ -1846,6 +1846,9 @@ video {
.widget a:active {
text-decoration: underline;
}
.widget select {
max-width: 100%;
}
/* Search Widget */
.widget_search form {

View File

@ -26,7 +26,7 @@ get_header(); ?>
$tag_description = tag_description();
if ( ! empty( $tag_description ) ) {
/**
* Filter the default Twenty Eleven tag description.
* Filters the default Twenty Eleven tag description.
*
* @since Twenty Eleven 1.0
*

View File

@ -41,7 +41,7 @@ if ( get_the_author_meta( 'description' ) ) :
<div id="author-avatar">
<?php
/**
* Filter the Twenty Ten author bio avatar size.
* Filters the Twenty Ten author bio avatar size.
*
* @since Twenty Ten 1.0
*

View File

@ -11,6 +11,7 @@ Description: Used to style blocks in the editor.
3.0 Blocks - Common Blocks
4.0 Blocks - Formatting
5.0 Blocks - Widgets
6.0 Blocks - Colors
--------------------------------------------------------------*/
/*--------------------------------------------------------------
@ -306,3 +307,57 @@ p.has-drop-cap:not(:focus)::first-letter {
.edit-post-visual-editor .wp-block-latest-posts.is-grid li {
margin-bottom: 1em;
}
/*--------------------------------------------------------------
6.0 Blocks - Colors
--------------------------------------------------------------*/
:root .editor-styles-wrapper .has-blue-color,
:root .editor-styles-wrapper .has-blue-color:visited {
color: #0066cc;
}
:root .editor-styles-wrapper .has-blue-background-color,
:root .editor-styles-wrapper .has-blue-background-color:visited {
background-color: #0066cc;
}
:root .editor-styles-wrapper .has-black-color,
:root .editor-styles-wrapper .has-black-color:visited {
color: #000;
}
:root .editor-styles-wrapper .has-black-background-color,
:root .editor-styles-wrapper .has-black-background-color:visited {
background-color: #000;
}
:root .editor-styles-wrapper .has-medium-gray-color,
:root .editor-styles-wrapper .has-medium-gray-color:visited {
color: #666;
}
:root .editor-styles-wrapper .has-medium-gray-background-color,
:root .editor-styles-wrapper .has-medium-gray-background-color:visited {
background-color: #666;
}
:root .editor-styles-wrapper .has-light-gray-color,
:root .editor-styles-wrapper .has-light-gray-color:visited {
color: #f1f1f1;
}
:root .editor-styles-wrapper .has-light-gray-background-color,
:root .editor-styles-wrapper .has-light-gray-background-color:visited {
background-color: #f1f1f1;
}
:root .editor-styles-wrapper .has-white-color,
:root .editor-styles-wrapper .has-white-color:visited {
color: #fff;
}
:root .editor-styles-wrapper .has-white-background-color,
:root .editor-styles-wrapper .has-white-background-color:visited {
background-color: #fff;
}

View File

@ -157,7 +157,7 @@ if ( ! function_exists( 'twentyten_setup' ) ) :
'default-image' => '%s/images/headers/path.jpg',
// The height and width of our custom header.
/**
* Filter the Twenty Ten default header image width.
* Filters the Twenty Ten default header image width.
*
* @since Twenty Ten 1.0
*
@ -165,7 +165,7 @@ if ( ! function_exists( 'twentyten_setup' ) ) :
*/
'width' => apply_filters( 'twentyten_header_image_width', 940 ),
/**
* Filter the Twenty Ten defaul header image height.
* Filters the Twenty Ten defaul header image height.
*
* @since Twenty Ten 1.0
*
@ -418,6 +418,7 @@ if ( ! function_exists( 'twentyten_comment' ) ) :
$GLOBALS['comment'] = $comment;
switch ( $comment->comment_type ) :
case '':
case 'comment':
?>
<li <?php comment_class(); ?> id="li-comment-<?php comment_ID(); ?>">
<div id="comment-<?php comment_ID(); ?>">
@ -629,8 +630,9 @@ if ( ! function_exists( 'twentyten_posted_in' ) ) :
*/
function twentyten_posted_in() {
// Retrieves tag list of current post, separated by commas.
$tag_list = get_the_tag_list( '', ', ' );
if ( $tag_list && ! is_wp_error( $tag_list ) ) {
$tags_list = get_the_tag_list( '', ', ' );
if ( $tags_list && ! is_wp_error( $tags_list ) ) {
/* translators: 1: Category name, 2: Tag name, 3: Post permalink, 4: Post title. */
$posted_in = __( 'This entry was posted in %1$s and tagged %2$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyten' );
} elseif ( is_object_in_taxonomy( get_post_type(), 'category' ) ) {
@ -640,11 +642,12 @@ if ( ! function_exists( 'twentyten_posted_in' ) ) :
/* translators: 3: Post permalink, 4: Post title. */
$posted_in = __( 'Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyten' );
}
// Prints the string, replacing the placeholders.
printf(
$posted_in,
get_the_category_list( ', ' ),
$tag_list,
$tags_list,
get_permalink(),
the_title_attribute( 'echo=0' )
);

View File

@ -38,7 +38,7 @@ if ( ( $paged >= 2 || $page >= 2 ) && ! is_404() ) {
?>
</title>
<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="profile" href="https://gmpg.org/xfn/11" />
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>?ver=20190507" />
<link rel="pingback" href="<?php echo esc_url( get_bloginfo( 'pingback_url' ) ); ?>">
<?php

View File

@ -123,7 +123,7 @@ if ( have_posts() ) {
<p class="attachment"><a href="<?php echo esc_url( $next_attachment_url ); ?>" title="<?php the_title_attribute(); ?>" rel="attachment">
<?php
/**
* Filter the Twenty Ten default attachment width.
* Filters the Twenty Ten default attachment width.
*
* @since Twenty Ten 1.0
*
@ -131,7 +131,7 @@ if ( have_posts() ) {
*/
$attachment_width = apply_filters( 'twentyten_attachment_size', 900 );
/**
* Filter the Twenty Ten default attachment height.
* Filters the Twenty Ten default attachment height.
*
* @since Twenty Ten 1.0
*

View File

@ -62,7 +62,7 @@ while ( have_posts() ) :
<?php /* How to display posts of the Gallery format. The gallery category is the old way. */ ?>
<?php if ( ( function_exists( 'get_post_format' ) && 'gallery' == get_post_format( $post->ID ) ) || in_category( _x( 'gallery', 'gallery category slug', 'twentyten' ) ) ) : ?>
<?php if ( ( function_exists( 'get_post_format' ) && 'gallery' === get_post_format( $post->ID ) ) || in_category( _x( 'gallery', 'gallery category slug', 'twentyten' ) ) ) : ?>
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<h2 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
@ -102,7 +102,7 @@ while ( have_posts() ) :
<div class="entry-utility">
<?php
$gallery = get_term_by( 'slug', _x( 'gallery', 'gallery category slug', 'twentyten' ), 'category' );
if ( function_exists( 'get_post_format' ) && 'gallery' == get_post_format( $post->ID ) ) :
if ( function_exists( 'get_post_format' ) && 'gallery' === get_post_format( $post->ID ) ) :
?>
<a href="<?php echo esc_url( get_post_format_link( 'gallery' ) ); ?>" title="<?php esc_attr_e( 'View Galleries', 'twentyten' ); ?>"><?php _e( 'More Galleries', 'twentyten' ); ?></a>
<span class="meta-sep">|</span>
@ -117,7 +117,7 @@ while ( have_posts() ) :
<?php /* How to display posts of the Aside format. The asides category is the old way. */ ?>
<?php elseif ( ( function_exists( 'get_post_format' ) && 'aside' == get_post_format( $post->ID ) ) || in_category( _x( 'asides', 'asides category slug', 'twentyten' ) ) ) : ?>
<?php elseif ( ( function_exists( 'get_post_format' ) && 'aside' === get_post_format( $post->ID ) ) || in_category( _x( 'asides', 'asides category slug', 'twentyten' ) ) ) : ?>
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php if ( is_archive() || is_search() ) : // Display excerpts for archives and search. ?>
@ -176,9 +176,10 @@ while ( have_posts() ) :
</span>
<span class="meta-sep">|</span>
<?php endif; ?>
<?php
$tags_list = get_the_tag_list( '', ', ' );
if ( $tags_list ) :
$tags_list = get_the_tag_list( '', ', ' );
if ( $tags_list && ! is_wp_error( $tags_list ) ) :
?>
<span class="tag-links">
<?php
@ -188,7 +189,9 @@ while ( have_posts() ) :
</span>
<span class="meta-sep">|</span>
<?php endif; ?>
<span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ); ?></span>
<?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="meta-sep">|</span> <span class="edit-link">', '</span>' ); ?>
</div><!-- .entry-utility -->
</div><!-- #post-<?php the_ID(); ?> -->

View File

@ -1,142 +1,147 @@
=== Twenty Ten ===
Contributors: wordpressdotorg
Tested up to: 5.0
Stable tag: 3.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, two-columns, custom-header, custom-background, threaded-comments, sticky-post, translation-ready, microformats, rtl-language-support, editor-style, custom-menu, flexible-header, featured-images, footer-widgets, featured-image-header
== Description ==
The 2010 theme for WordPress is stylish, customizable, simple, and readable -- make it yours with a custom menu, header image, and background. Twenty Ten supports six widgetized areas (two in the sidebar, four in the footer) and featured images (thumbnails for gallery posts and custom header images for posts and pages). It includes stylesheets for print and the admin Visual Editor, special styles for posts in the "Asides" and "Gallery" categories, and has an optional one-column page template that removes the sidebar.
For more information about Twenty Ten theme please go to https://codex.wordpress.org/Twenty_Ten.
== Installation ==
1. In your admin panel, go to Appearance -> Themes and click the 'Add New' button.
2. Type in Twenty Ten in the search form and press the 'Enter' key in your keyboard.
3. Click on the 'Activate' button to use your new theme right away.
4. Go to https://codex.wordpress.org/Twenty_Ten for a guide to customize this theme.
5. Navigate to Appearance > Customize in your admin panel.
== Copyright ==
Twenty Ten WordPress Theme, Copyright 2010-2020 WordPress.org & Automattic.com
Twenty Ten is Distributed under the terms of the GNU GPL
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
== Changelog ==
= 3.0 =
* Released: March 31, 2020
https://codex.wordpress.org/Twenty_Ten_Theme_Changelog#Version_3.0
= 2.9 =
* Released: May 7, 2019
https://codex.wordpress.org/Twenty_Ten_Theme_Changelog#Version_2.9
= 2.8 =
* Released: February 21, 2019
https://codex.wordpress.org/Twenty_Ten_Theme_Changelog#Version_2.8
= 2.7 =
* Released: December 19, 2018
https://codex.wordpress.org/Twenty_Ten_Theme_Changelog#Version_2.7
= 2.6 =
* Released: December 6, 2018
https://codex.wordpress.org/Twenty_Ten_Theme_Changelog#Version_2.6
= 2.5 =
* Released: May 17, 2018
https://codex.wordpress.org/Twenty_Ten_Theme_Changelog#Version_2.5
= 2.4 =
* Released: November 14, 2017
https://codex.wordpress.org/Twenty_Ten_Theme_Changelog#Version_2.4
= 2.3 =
* Released: June 8, 2017
https://codex.wordpress.org/Twenty_Ten_Theme_Changelog#Version_2.3
= 2.2 =
* Released: August 15, 2016
https://codex.wordpress.org/Twenty_Ten_Theme_Changelog#Version_2.2
= 2.1 =
* Released: December 8, 2015
https://codex.wordpress.org/Twenty_Ten_Theme_Changelog#Version_2.1
= 2.0 =
* Released: August 18, 2015
https://codex.wordpress.org/Twenty_Ten_Theme_Changelog#Version_2.0
= 1.9 =
* Released: April 23, 2015
https://codex.wordpress.org/Twenty_Ten_Theme_Changelog#Version_1.9
= 1.8 =
* Released: December 18, 2014
https://codex.wordpress.org/Twenty_Ten_Theme_Changelog#Version_1.8
= 1.7 =
* Released: September 4, 2014
https://codex.wordpress.org/Twenty_Ten_Theme_Changelog#Version_1.7
= 1.6 =
* Released: August 1, 2013
https://codex.wordpress.org/Twenty_Ten_Theme_Changelog#Version_1.6
= 1.5 =
* Released: December 11, 2012
https://codex.wordpress.org/Twenty_Ten_Theme_Changelog#Version_1.5
= 1.4 =
* Released: June 13, 2012
https://codex.wordpress.org/Twenty_Ten_Theme_Changelog#Version_1.4
= 1.3 =
* Released: December 12, 2011
https://codex.wordpress.org/Twenty_Ten_Theme_Changelog#Version_1.3
= 1.2 =
* Released: February 23, 2011
https://codex.wordpress.org/Twenty_Ten_Theme_Changelog#Version_1.2
= 1.1 =
* Released: July 29, 2010
https://codex.wordpress.org/Twenty_Ten_Theme_Changelog#Version_1.1
= 1.0 =
* Released: June 17, 2010
Initial release.
=== Twenty Ten ===
Contributors: wordpressdotorg
Tested up to: 5.5
Stable tag: 3.1
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, two-columns, custom-header, custom-background, threaded-comments, sticky-post, translation-ready, microformats, rtl-language-support, editor-style, custom-menu, flexible-header, featured-images, footer-widgets, featured-image-header
== Description ==
The 2010 theme for WordPress is stylish, customizable, simple, and readable -- make it yours with a custom menu, header image, and background. Twenty Ten supports six widgetized areas (two in the sidebar, four in the footer) and featured images (thumbnails for gallery posts and custom header images for posts and pages). It includes stylesheets for print and the admin Visual Editor, special styles for posts in the "Asides" and "Gallery" categories, and has an optional one-column page template that removes the sidebar.
For more information about Twenty Ten theme please go to https://codex.wordpress.org/Twenty_Ten.
== Installation ==
1. In your admin panel, go to Appearance -> Themes and click the 'Add New' button.
2. Type in Twenty Ten in the search form and press the 'Enter' key in your keyboard.
3. Click on the 'Activate' button to use your new theme right away.
4. Go to https://codex.wordpress.org/Twenty_Ten for a guide to customize this theme.
5. Navigate to Appearance > Customize in your admin panel.
== Copyright ==
Twenty Ten WordPress Theme, Copyright 2010-2020 WordPress.org & Automattic.com
Twenty Ten is Distributed under the terms of the GNU GPL
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
== Changelog ==
= 3.1 =
* Released: August 11, 2020
https://codex.wordpress.org/Twenty_Ten_Theme_Changelog#Version_3.1
= 3.0 =
* Released: March 31, 2020
https://codex.wordpress.org/Twenty_Ten_Theme_Changelog#Version_3.0
= 2.9 =
* Released: May 7, 2019
https://codex.wordpress.org/Twenty_Ten_Theme_Changelog#Version_2.9
= 2.8 =
* Released: February 21, 2019
https://codex.wordpress.org/Twenty_Ten_Theme_Changelog#Version_2.8
= 2.7 =
* Released: December 19, 2018
https://codex.wordpress.org/Twenty_Ten_Theme_Changelog#Version_2.7
= 2.6 =
* Released: December 6, 2018
https://codex.wordpress.org/Twenty_Ten_Theme_Changelog#Version_2.6
= 2.5 =
* Released: May 17, 2018
https://codex.wordpress.org/Twenty_Ten_Theme_Changelog#Version_2.5
= 2.4 =
* Released: November 14, 2017
https://codex.wordpress.org/Twenty_Ten_Theme_Changelog#Version_2.4
= 2.3 =
* Released: June 8, 2017
https://codex.wordpress.org/Twenty_Ten_Theme_Changelog#Version_2.3
= 2.2 =
* Released: August 15, 2016
https://codex.wordpress.org/Twenty_Ten_Theme_Changelog#Version_2.2
= 2.1 =
* Released: December 8, 2015
https://codex.wordpress.org/Twenty_Ten_Theme_Changelog#Version_2.1
= 2.0 =
* Released: August 18, 2015
https://codex.wordpress.org/Twenty_Ten_Theme_Changelog#Version_2.0
= 1.9 =
* Released: April 23, 2015
https://codex.wordpress.org/Twenty_Ten_Theme_Changelog#Version_1.9
= 1.8 =
* Released: December 18, 2014
https://codex.wordpress.org/Twenty_Ten_Theme_Changelog#Version_1.8
= 1.7 =
* Released: September 4, 2014
https://codex.wordpress.org/Twenty_Ten_Theme_Changelog#Version_1.7
= 1.6 =
* Released: August 1, 2013
https://codex.wordpress.org/Twenty_Ten_Theme_Changelog#Version_1.6
= 1.5 =
* Released: December 11, 2012
https://codex.wordpress.org/Twenty_Ten_Theme_Changelog#Version_1.5
= 1.4 =
* Released: June 13, 2012
https://codex.wordpress.org/Twenty_Ten_Theme_Changelog#Version_1.4
= 1.3 =
* Released: December 12, 2011
https://codex.wordpress.org/Twenty_Ten_Theme_Changelog#Version_1.3
= 1.2 =
* Released: February 23, 2011
https://codex.wordpress.org/Twenty_Ten_Theme_Changelog#Version_1.2
= 1.1 =
* Released: July 29, 2010
https://codex.wordpress.org/Twenty_Ten_Theme_Changelog#Version_1.1
= 1.0 =
* Released: June 17, 2010
Initial release.

View File

@ -4,7 +4,7 @@ Theme URI: https://wordpress.org/themes/twentyten/
Description: The 2010 theme for WordPress is stylish, customizable, simple, and readable -- make it yours with a custom menu, header image, and background. Twenty Ten supports six widgetized areas (two in the sidebar, four in the footer) and featured images (thumbnails for gallery posts and custom header images for posts and pages). It includes stylesheets for print and the admin Visual Editor, special styles for posts in the "Asides" and "Gallery" categories, and has an optional one-column page template that removes the sidebar.
Author: the WordPress team
Author URI: https://wordpress.org/
Version: 3.0
Version: 3.1
Requires at least: 3.0
Requires PHP: 5.2.4
License: GNU General Public License v2 or later

View File

@ -75,7 +75,7 @@ twentytwenty.touchEnabled = {
init: function() {
var matchMedia = function() {
// Include the 'heartz' as a way to have a non matching MQ to help terminate the join. See <https://git.io/vznFH>.
// Include the 'heartz' as a way to have a non-matching MQ to help terminate the join. See <https://git.io/vznFH>.
var prefixes = [ '-webkit-', '-moz-', '-o-', '-ms-' ];
var query = [ '(', prefixes.join( 'touch-enabled),(' ), 'heartz', ')' ].join( '' );
return window.matchMedia && window.matchMedia( query ).matches;

View File

@ -416,7 +416,7 @@ if ( ! class_exists( 'TwentyTwenty_Customize' ) ) {
* @access public
* @since Twenty Twenty 1.0
* @param array $value The value we want to sanitize.
* @return array Returns sanitized value. Each item in the array gets sanitized separately.
* @return array Returns sanitized value. Each item in the array gets sanitized separately.
*/
public static function sanitize_accent_accessible_colors( $value ) {
@ -438,8 +438,7 @@ if ( ! class_exists( 'TwentyTwenty_Customize' ) ) {
*
* @param string $input The input from the setting.
* @param object $setting The selected setting.
*
* @return string $input|$setting->default The input from the setting or the default setting.
* @return string The input from the setting or the default setting.
*/
public static function sanitize_select( $input, $setting ) {
$input = sanitize_key( $input );
@ -451,7 +450,6 @@ if ( ! class_exists( 'TwentyTwenty_Customize' ) ) {
* Sanitize boolean for checkbox.
*
* @param bool $checked Whether or not a box is checked.
*
* @return bool
*/
public static function sanitize_checkbox( $checked ) {
@ -505,7 +503,7 @@ if ( ! function_exists( 'twentytwenty_customize_partial_site_logo' ) ) {
*/
function twentytwenty_customize_opacity_range() {
/**
* Filter the input attributes for opacity
* Filters the input attributes for opacity
*
* @param array $attrs {
* The attributes

View File

@ -21,7 +21,6 @@ if ( ! class_exists( 'TwentyTwenty_Non_Latin_Languages' ) ) {
* Return CSS for non-latin language, if available, or null
*
* @param string $type Whether to return CSS for the "front-end", "block-editor" or "classic-editor".
*
* @return void
*/
public static function get_non_latin_css( $type = 'front-end' ) {

View File

@ -17,7 +17,7 @@ if ( ! class_exists( 'TwentyTwenty_SVG_Icons' ) ) {
* GET SVG CODE
* Get the SVG code for the specified icon
*
* @param string $icon Icon name.
* @param string $icon Icon name.
* @param string $group Icon group.
* @param string $color Color.
*/
@ -29,6 +29,30 @@ if ( ! class_exists( 'TwentyTwenty_SVG_Icons' ) ) {
} else {
$arr = array();
}
/**
* Filters Twenty Twenty's array of icons.
*
* The dynamic portion of the hook name, `$group`, refers to
* the name of the group of icons, either "ui" or "social".
*
* @since Twenty Twenty 1.5
*
* @param array $arr Array of icons.
*/
$arr = apply_filters( "twentytwenty_svg_icons_{$group}", $arr );
/**
* Filters an SVG icon's color.
*
* @since Twenty Twenty 1.5
*
* @param string $color The icon color.
* @param string $icon The icon name.
* @param string $group The icon group.
*/
$color = apply_filters( 'twentytwenty_svg_icon_color', $color, $icon, $group );
if ( array_key_exists( $icon, $arr ) ) {
$repl = '<svg class="svg-icon" aria-hidden="true" role="img" focusable="false" ';
$svg = preg_replace( '/^<svg /', $repl, trim( $arr[ $icon ] ) ); // Add extra attributes to SVG code.
@ -51,8 +75,29 @@ if ( ! class_exists( 'TwentyTwenty_SVG_Icons' ) ) {
static $regex_map; // Only compute regex map once, for performance.
if ( ! isset( $regex_map ) ) {
$regex_map = array();
$map = &self::$social_icons_map; // Use reference instead of copy, to save memory.
foreach ( array_keys( self::$social_icons ) as $icon ) {
/**
* Filters Twenty Twenty's array of domain mappings for social icons.
*
* By default, each Icon ID is matched against a .com TLD. To override this behavior,
* specify all the domains it covers (including the .com TLD too, if applicable).
*
* @since Twenty Twenty 1.5
*
* @param array $social_icons_map Array of default social icons.
*/
$map = apply_filters( 'twentytwenty_social_icons_map', self::$social_icons_map );
/**
* Filters Twenty Twenty's array of social icons.
*
* @since Twenty Twenty 1.5
*
* @param array $social_icons Array of default social icons.
*/
$social_icons = apply_filters( 'twentytwenty_svg_icons_social', self::$social_icons );
foreach ( array_keys( $social_icons ) as $icon ) {
$domains = array_key_exists( $icon, $map ) ? $map[ $icon ] : array( sprintf( '%s.com', $icon ) );
$domains = array_map( 'trim', $domains ); // Remove leading/trailing spaces, to prevent regex from failing to match.
$domains = array_map( 'preg_quote', $domains );

View File

@ -271,8 +271,7 @@ add_action( 'init', 'twentytwenty_menus' );
* Get the information about the logo.
*
* @param string $html The HTML output from get_custom_logo (core function).
*
* @return string $html
* @return string
*/
function twentytwenty_get_custom_logo( $html ) {
@ -427,8 +426,7 @@ add_action( 'init', 'twentytwenty_classic_editor_styles' );
* Adds styles to the head of the TinyMCE iframe. Kudos to @Otto42 for the original solution.
*
* @param array $mce_init TinyMCE styles.
*
* @return array $mce_init TinyMCE styles.
* @return array TinyMCE styles.
*/
function twentytwenty_add_classic_editor_customizer_styles( $mce_init ) {
@ -451,8 +449,7 @@ add_filter( 'tiny_mce_before_init', 'twentytwenty_add_classic_editor_customizer_
* Adds styles to the head of the TinyMCE iframe. Kudos to @Otto42 for the original solution.
*
* @param array $mce_init TinyMCE styles.
*
* @return array $mce_init TinyMCE styles.
* @return array TinyMCE styles.
*/
function twentytwenty_add_classic_editor_non_latin_styles( $mce_init ) {
@ -569,8 +566,7 @@ add_action( 'after_setup_theme', 'twentytwenty_block_editor_settings' );
* Overwrite default more tag with styling and screen reader markup.
*
* @param string $html The default output HTML for the more tag.
*
* @return string $html
* @return string
*/
function twentytwenty_read_more_tag( $html ) {
return preg_replace( '/<a(.*)>(.*)<\/a>/iU', sprintf( '<div class="read-more-button-wrap"><a$1><span class="faux-button">$2</span> <span class="screen-reader-text">"%1$s"</span></a></div>', get_the_title( get_the_ID() ) ), $html );

View File

@ -15,7 +15,8 @@
* Passes it through the `twentytwenty_starter_content` filter before returning.
*
* @since Twenty Twenty 1.0
* @return array a filtered array of args for the starter_content.
*
* @return array A filtered array of args for the starter_content.
*/
function twentytwenty_get_starter_content() {

View File

@ -21,13 +21,13 @@
/**
* Logo & Description
*/
/**
* Displays the site logo, either text or image.
*
* @param array $args Arguments for displaying the site logo either as an image or text.
* @param boolean $echo Echo or return the HTML.
*
* @return string $html Compiled HTML based on our arguments.
* @return string Compiled HTML based on our arguments.
*/
function twentytwenty_site_logo( $args = array(), $echo = true ) {
$logo = get_custom_logo();
@ -70,7 +70,7 @@ function twentytwenty_site_logo( $args = array(), $echo = true ) {
/**
* Filters the arguments for `twentytwenty_site_logo()`.
*
* @param string $html Compiled html based on our arguments.
* @param string $html Compiled HTML based on our arguments.
* @param array $args Parsed arguments.
* @param string $classname Class name based on current view, home or single.
* @param string $contents HTML for site title or logo.
@ -89,8 +89,7 @@ function twentytwenty_site_logo( $args = array(), $echo = true ) {
* Displays the site description.
*
* @param boolean $echo Echo or return the html.
*
* @return string $html The HTML to display.
* @return string The HTML to display.
*/
function twentytwenty_site_description( $echo = true ) {
$description = get_bloginfo( 'description' );
@ -104,7 +103,7 @@ function twentytwenty_site_description( $echo = true ) {
$html = sprintf( $wrapper, esc_html( $description ) );
/**
* Filters the html for the site description.
* Filters the HTML for the site description.
*
* @since Twenty Twenty 1.0
*
@ -124,11 +123,11 @@ function twentytwenty_site_description( $echo = true ) {
/**
* Comments
*/
/**
* Check if the specified comment is written by the author of the post commented on.
* Checks if the specified comment is written by the author of the post commented on.
*
* @param object $comment Comment data.
*
* @return bool
*/
function twentytwenty_is_comment_by_post_author( $comment = null ) {
@ -149,13 +148,13 @@ function twentytwenty_is_comment_by_post_author( $comment = null ) {
}
/**
* Filter comment reply link to not JS scroll.
* Filters comment reply link to not JS scroll.
*
* Filter the comment reply link to add a class indicating it should not use JS slow-scroll, as it
* makes it scroll to the wrong position on the page.
*
* @param string $link Link to the top of the page.
*
* @return string $link Link to the top of the page.
* @return string Link to the top of the page.
*/
function twentytwenty_filter_comment_reply_link( $link ) {
@ -169,11 +168,13 @@ add_filter( 'comment_reply_link', 'twentytwenty_filter_comment_reply_link' );
/**
* Post Meta
*/
/**
* Get and Output Post Meta.
* If it's a single post, output the post meta values specified in the Customizer settings.
* Retrieves and displays the post meta.
*
* @param int $post_id The ID of the post for which the post meta should be output.
* If it's a single post, outputs the post meta values specified in the Customizer settings.
*
* @param int $post_id The ID of the post for which the post meta should be output.
* @param string $location Which post meta location to output single or preview.
*/
function twentytwenty_the_post_meta( $post_id = null, $location = 'single-top' ) {
@ -220,7 +221,7 @@ function twentytwenty_edit_post_link( $link, $post_id, $text ) {
add_filter( 'edit_post_link', 'twentytwenty_edit_post_link', 10, 3 );
/**
* Get the post meta.
* Retrieves the post meta.
*
* @param int $post_id The ID of the post.
* @param string $location The location where the meta is shown.
@ -233,15 +234,17 @@ function twentytwenty_get_post_meta( $post_id = null, $location = 'single-top' )
}
/**
* Filters post types array
* Filters post types array.
*
* This filter can be used to hide post meta information of post, page or custom post type registerd by child themes or plugins
* This filter can be used to hide post meta information of post, page or custom post type
* registered by child themes or plugins.
*
* @since Twenty Twenty 1.0
*
* @param array Array of post types
*/
$disallowed_post_types = apply_filters( 'twentytwenty_disallowed_post_types_for_meta_output', array( 'page' ) );
// Check whether the post type is allowed to output post meta.
if ( in_array( get_post_type( $post_id ), $disallowed_post_types, true ) ) {
return;
@ -253,19 +256,19 @@ function twentytwenty_get_post_meta( $post_id = null, $location = 'single-top' )
// Get the post meta settings for the location specified.
if ( 'single-top' === $location ) {
/**
* Filters post meta info visibility
*
* Use this filter to hide post meta information like Author, Post date, Comments, Is sticky status
*
* @since Twenty Twenty 1.0
*
* @param array $args {
* @type string 'author'
* @type string 'post-date'
* @type string 'comments'
* @type string 'sticky'
* }
*/
* Filters post meta info visibility.
*
* Use this filter to hide post meta information like Author, Post date, Comments, Is sticky status.
*
* @since Twenty Twenty 1.0
*
* @param array $args {
* @type string 'author'
* @type string 'post-date'
* @type string 'comments'
* @type string 'sticky'
* }
*/
$post_meta = apply_filters(
'twentytwenty_post_meta_location_single_top',
array(
@ -281,16 +284,16 @@ function twentytwenty_get_post_meta( $post_id = null, $location = 'single-top' )
} elseif ( 'single-bottom' === $location ) {
/**
* Filters post tags visibility
*
* Use this filter to hide post tags
*
* @since Twenty Twenty 1.0
*
* @param array $args {
* @type string 'tags'
* }
*/
* Filters post tags visibility.
*
* Use this filter to hide post tags.
*
* @since Twenty Twenty 1.0
*
* @param array $args {
* @type string 'tags'
* }
*/
$post_meta = apply_filters(
'twentytwenty_post_meta_location_single_bottom',
array(
@ -323,7 +326,7 @@ function twentytwenty_get_post_meta( $post_id = null, $location = 'single-top' )
<?php
/**
* Fires before post meta html display.
* Fires before post meta HTML display.
*
* Allow output of additional post meta info to be added by child themes and plugins.
*
@ -450,7 +453,7 @@ function twentytwenty_get_post_meta( $post_id = null, $location = 'single-top' )
}
/**
* Fires after post meta html display.
* Fires after post meta HTML display.
*
* Allow output of additional post meta info to be added by child themes and plugins.
*
@ -489,20 +492,21 @@ function twentytwenty_get_post_meta( $post_id = null, $location = 'single-top' )
/**
* Menus
*/
/**
* Filter Classes of wp_list_pages items to match menu items.
* Filters classes of wp_list_pages items to match menu items.
*
* Filter the class applied to wp_list_pages() items with children to match the menu class, to simplify.
* styling of sub levels in the fallback. Only applied if the match_menu_classes argument is set.
*
* @param array $css_class CSS Class names.
* @param string $item Comment.
* @param int $depth Depth of the current comment.
* @param array $args An array of arguments.
* @param string $current_page Whether or not the item is the current item.
*
* @return array $css_class CSS Class names.
* @param string[] $css_class An array of CSS classes to be applied to each list item.
* @param WP_Post $page Page data object.
* @param int $depth Depth of page, used for padding.
* @param array $args An array of arguments.
* @param int $current_page ID of the current page.
* @return array CSS class names.
*/
function twentytwenty_filter_wp_list_pages_item_classes( $css_class, $item, $depth, $args, $current_page ) {
function twentytwenty_filter_wp_list_pages_item_classes( $css_class, $page, $depth, $args, $current_page ) {
// Only apply to wp_list_pages() calls with match_menu_classes set to true.
$match_menu_classes = isset( $args['match_menu_classes'] );
@ -528,13 +532,12 @@ function twentytwenty_filter_wp_list_pages_item_classes( $css_class, $item, $dep
add_filter( 'page_css_class', 'twentytwenty_filter_wp_list_pages_item_classes', 10, 5 );
/**
* Add a Sub Nav Toggle to the Expanded Menu and Mobile Menu.
* Adds a Sub Nav Toggle to the Expanded Menu and Mobile Menu.
*
* @param stdClass $args An array of arguments.
* @param string $item Menu item.
* @param int $depth Depth of the current menu item.
*
* @return stdClass $args An object of wp_nav_menu() arguments.
* @param stdClass $args An object of wp_nav_menu() arguments.
* @param WP_Post $item Menu item data object.
* @param int $depth Depth of menu item. Used for padding.
* @return stdClass An object of wp_nav_menu() arguments.
*/
function twentytwenty_add_sub_toggles_to_main_menu( $args, $item, $depth ) {
@ -575,13 +578,13 @@ function twentytwenty_add_sub_toggles_to_main_menu( $args, $item, $depth ) {
add_filter( 'nav_menu_item_args', 'twentytwenty_add_sub_toggles_to_main_menu', 10, 3 );
/**
* Display SVG icons in social links menu.
* Displays SVG icons in social links menu.
*
* @param string $item_output The menu item output.
* @param WP_Post $item Menu item object.
* @param int $depth Depth of the menu.
* @param array $args wp_nav_menu() arguments.
* @return string $item_output The menu item output with social icon.
* @param string $item_output The menu item's starting HTML output.
* @param WP_Post $item Menu item data object.
* @param int $depth Depth of the menu. Used for padding.
* @param stdClass $args An object of wp_nav_menu() arguments.
* @return string The menu item output with social icon.
*/
function twentytwenty_nav_menu_social_icons( $item_output, $item, $depth, $args ) {
// Change SVG icon inside social links menu if there is supported URL.
@ -601,9 +604,11 @@ add_filter( 'walker_nav_menu_start_el', 'twentytwenty_nav_menu_social_icons', 10
/**
* Classes
*/
/**
* Add No-JS Class.
* If we're missing JavaScript support, the HTML element will have a no-js class.
* Adds 'no-js' class.
*
* If we're missing JavaScript support, the HTML element will have a 'no-js' class.
*/
function twentytwenty_no_js_class() {
@ -616,11 +621,10 @@ function twentytwenty_no_js_class() {
add_action( 'wp_head', 'twentytwenty_no_js_class' );
/**
* Add conditional body classes.
* Adds conditional body classes.
*
* @param array $classes Classes added to the body tag.
*
* @return array $classes Classes added to the body tag.
* @return array Classes added to the body tag.
*/
function twentytwenty_body_classes( $classes ) {
@ -716,12 +720,12 @@ add_filter( 'body_class', 'twentytwenty_body_classes' );
/**
* Archives
*/
/**
* Filters the archive title and styles the word before the first colon.
*
* @param string $title Current archive title.
*
* @return string $title Current archive title.
* @return string Current archive title.
*/
function twentytwenty_get_the_archive_title( $title ) {
@ -748,10 +752,11 @@ add_filter( 'get_the_archive_title', 'twentytwenty_get_the_archive_title' );
/**
* Miscellaneous
*/
/**
* Toggle animation duration in milliseconds.
* Toggles animation duration in milliseconds.
*
* @return integer Duration in milliseconds
* @return int Duration in milliseconds
*/
function twentytwenty_toggle_duration() {
/**
@ -759,7 +764,7 @@ function twentytwenty_toggle_duration() {
*
* @since Twenty Twenty 1.0
*
* @param integer $duration Duration in milliseconds.
* @param int $duration Duration in milliseconds.
*/
$duration = apply_filters( 'twentytwenty_toggle_duration', 250 );
@ -767,7 +772,7 @@ function twentytwenty_toggle_duration() {
}
/**
* Get unique ID.
* Gets unique ID.
*
* This is a PHP implementation of Underscore's uniqueId method. A static variable
* contains an integer that is incremented with each call. This number is returned
@ -776,8 +781,6 @@ function twentytwenty_toggle_duration() {
*
* @see wp_unique_id() Themes requiring WordPress 5.0.3 and greater should use this instead.
*
* @staticvar int $id_counter
*
* @param string $prefix Prefix for the returned ID.
* @return string Unique ID.
*/

View File

@ -47,6 +47,8 @@ get_header();
} else {
$archive_subtitle = __( 'We could not find any results for your search. You can give it another try through the search form below.', 'twentytwenty' );
}
} elseif ( is_archive() && ! have_posts() ) {
$archive_title = __( 'Nothing Found', 'twentytwenty' );
} elseif ( ! is_home() ) {
$archive_title = get_the_archive_title();
$archive_subtitle = get_the_archive_description();

View File

@ -1,6 +1,6 @@
{
"name": "twentytwenty",
"version": "1.0.0",
"version": "1.5.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
@ -4618,9 +4618,9 @@
"dev": true
},
"elliptic": {
"version": "6.5.2",
"resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.5.2.tgz",
"integrity": "sha512-f4x70okzZbIQl/NSRLkI/+tteV/9WqL98zx+SQ69KbXxmVrmjwsNUPn/gYJJ0sHvEak24cZgHIPegRePAtA/xw==",
"version": "6.5.3",
"resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.5.3.tgz",
"integrity": "sha512-IMqzv5wNQf+E6aHeIqATs0tOLeOTwj1QKbRcS3jBbYkl5oLAserA8yJTT7/VyHUYG91PRmPyeQDObKLPpeS4dw==",
"dev": true,
"requires": {
"bn.js": "^4.4.0",
@ -8230,9 +8230,9 @@
}
},
"lodash": {
"version": "4.17.15",
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz",
"integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==",
"version": "4.17.19",
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.19.tgz",
"integrity": "sha512-JNvd8XER9GQX0v2qJgsaN/mzFCNA5BRe/j8JN9d+tWyGLSodKQHKFicdwNYzWwI3wjRnaKPsGj1XkBjx/F96DQ==",
"dev": true
},
"lodash.escape": {

View File

@ -1,6 +1,6 @@
{
"name": "twentytwenty",
"version": "1.0.0",
"version": "1.5.0",
"description": "Default WP Theme",
"author": "The WordPress Contributors",
"license": "GPL-2.0-or-later",
@ -33,7 +33,6 @@
"options": {
"autoRename": false,
"autoRenameStrict": false,
"blacklist": {},
"clean": true,
"greedy": false,
"processUrls": false,

View File

@ -1,7 +1,7 @@
=== Twenty Twenty ===
Contributors: the WordPress team
Tested up to: 5.3
Stable tag: 1.2
Tested up to: 5.5
Stable tag: 1.5
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
@ -9,19 +9,24 @@ Default theme for 2020.
== Description ==
Our default theme for 2020 is designed to take full advantage of the
flexibility of the block editor. Organizations and businesses have the
ability to create dynamic landing pages with endless layouts using the
group and column blocks. The centered content column and fine-tuned
typography also makes it perfect for traditional blogs. Complete editor
styles give you a good idea of what your content will look like, even
before you publish. You can give your site a personal touch by changing
the background colors and the accent color in the Customizer. The colors of
all elements on your site are automatically calculated based on the colors
Our default theme for 2020 is designed to take full advantage of the
flexibility of the block editor. Organizations and businesses have the
ability to create dynamic landing pages with endless layouts using the
group and column blocks. The centered content column and fine-tuned
typography also makes it perfect for traditional blogs. Complete editor
styles give you a good idea of what your content will look like, even
before you publish. You can give your site a personal touch by changing
the background colors and the accent color in the Customizer. The colors of
all elements on your site are automatically calculated based on the colors
you pick, ensuring a high, accessible color contrast for your visitors.
== Changelog ==
= 1.5 =
* Released: August 11, 2020
https://wordpress.org/support/article/twenty-twenty-changelog/#Version_1.5
= 1.4 =
* Released: June 10, 2020
@ -68,7 +73,7 @@ Chaplin Theme is distributed under the terms of the GNU GPL version 2.0
Twenty Twenty bundles the following third-party resources:
Illustrations by Tammie Lister
License: Creative Commons Zero (CC0), https://creativecommons.org/publicdomain/zero/1.0/
License: Creative Commons Zero (CC0), https://creativecommons.org/publicdomain/zero/1.0/
Inter Font
Copyright (c) 2016-2019 The Inter Project Authors (me@rsms.me)
@ -114,5 +119,5 @@ Source: https://wordpress.org/themes/twentyseventeen/
Included as part of the following classes and functions:
- twentytwenty_unique_id()
Underscores
Underscores
https://underscores.me/, (C) 2012-2019 Automattic, Inc., [GPLv2 or later](https://www.gnu.org/licenses/gpl-2.0.html)

View File

@ -1,7 +1,7 @@
/*
Theme Name: Twenty Twenty
Text Domain: twentytwenty
Version: 1.4
Version: 1.5
Requires at least: 4.7
Requires PHP: 5.2.4
Description: Our default theme for 2020 is designed to take full advantage of the flexibility of the block editor. Organizations and businesses have the ability to create dynamic landing pages with endless layouts using the group and column blocks. The centered content column and fine-tuned typography also makes it perfect for traditional blogs. Complete editor styles give you a good idea of what your content will look like, even before you publish. You can give your site a personal touch by changing the background colors and the accent color in the Customizer. The colors of all elements on your site are automatically calculated based on the colors you pick, ensuring a high, accessible color contrast for your visitors.

View File

@ -1,7 +1,7 @@
/*
Theme Name: Twenty Twenty
Text Domain: twentytwenty
Version: 1.4
Version: 1.5
Requires at least: 4.7
Requires PHP: 5.2.4
Description: Our default theme for 2020 is designed to take full advantage of the flexibility of the block editor. Organizations and businesses have the ability to create dynamic landing pages with endless layouts using the group and column blocks. The centered content column and fine-tuned typography also makes it perfect for traditional blogs. Complete editor styles give you a good idea of what your content will look like, even before you publish. You can give your site a personal touch by changing the background colors and the accent color in the Customizer. The colors of all elements on your site are automatically calculated based on the colors you pick, ensuring a high, accessible color contrast for your visitors.

View File

@ -20,13 +20,13 @@ if ( is_singular() ) {
<div class="entry-header-inner section-inner medium">
<?php
/**
* Allow child themes and plugins to filter the display of the categories in the entry header.
*
* @since Twenty Twenty 1.0
*
* @param bool Whether to show the categories in header, Default true.
*/
/**
* Allow child themes and plugins to filter the display of the categories in the entry header.
*
* @since Twenty Twenty 1.0
*
* @param bool Whether to show the categories in header, Default true.
*/
$show_categories = apply_filters( 'twentytwenty_show_categories_in_entry_header', true );
if ( true === $show_categories && has_category() ) {