Commit 45854d31 authored by samba's avatar samba

[auto] theme: twentyten 2.9

parent 94818bdb
......@@ -27,4 +27,4 @@ get_header(); ?>
document.getElementById('s') && document.getElementById('s').focus();
</script>
<?php get_footer(); ?>
\ No newline at end of file
<?php get_footer(); ?>
......@@ -5,7 +5,7 @@
* Used to display archive-type pages if nothing more specific matches a query.
* For example, puts together date-based pages if no date.php file exists.
*
* @link https://codex.wordpress.org/Template_Hierarchy
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package WordPress
* @subpackage Twenty_Ten
......@@ -25,8 +25,9 @@ get_header(); ?>
* We reset this later so we can run the loop
* properly with a call to rewind_posts().
*/
if ( have_posts() )
the_post();
if ( have_posts() ) {
the_post();
}
?>
<h1 class="page-title">
......
......@@ -21,15 +21,17 @@ get_header(); ?>
* We reset this later so we can run the loop
* properly with a call to rewind_posts().
*/
if ( have_posts() )
the_post();
if ( have_posts() ) {
the_post();
}
?>
<h1 class="page-title author"><?php printf( __( 'Author Archives: %s', 'twentyten' ), '<span class="vcard"><a class="url fn n" href="' . esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) . '" title="' . esc_attr( get_the_author() ) . '" rel="me">' . get_the_author() . '</a></span>' ); ?></h1>
<?php
// If a user has filled out their description, show a bio on their entries.
if ( get_the_author_meta( 'description' ) ) : ?>
if ( get_the_author_meta( 'description' ) ) :
?>
<div id="entry-author-info">
<div id="author-avatar">
<?php
......
......@@ -12,13 +12,16 @@ get_header(); ?>
<div id="container">
<div id="content" role="main">
<h1 class="page-title"><?php
<h1 class="page-title">
<?php
printf( __( 'Category Archives: %s', 'twentyten' ), '<span>' . single_cat_title( '', false ) . '</span>' );
?></h1>
?>
</h1>
<?php
$category_description = category_description();
if ( ! empty( $category_description ) )
echo '<div class="archive-meta">' . $category_description . '</div>';
if ( ! empty( $category_description ) ) {
echo '<div class="archive-meta">' . $category_description . '</div>';
}
/*
* Run the loop for the category page to output the posts.
......
......@@ -17,7 +17,7 @@
<?php if ( post_password_required() ) : ?>
<p class="nopassword"><?php _e( 'This post is password protected. Enter the password to view any comments.', 'twentyten' ); ?></p>
</div><!-- #comments -->
<?php
<?php
/*
* Stop the rest of comments.php from being processed,
* but don't kill the script entirely -- we still have
......@@ -32,17 +32,31 @@
?>
<?php if ( have_comments() ) : ?>
<h3 id="comments-title"><?php
printf( _n( 'One Response to %2$s', '%1$s Responses to %2$s', get_comments_number(), 'twentyten' ),
number_format_i18n( get_comments_number() ), '<em>' . get_the_title() . '</em>' );
?></h3>
<h3 id="comments-title">
<?php
if ( 1 === get_comments_number() ) {
printf(
/* translators: %s: The post title. */
__( 'One Response to %s', 'twentyten' ),
'<em>' . get_the_title() . '</em>'
);
} else {
/* translators: %1$s: The number of comments. %2$s: The post title. */
printf(
_n( '%1$s Response to %2$s', '%1$s Responses to %2$s', get_comments_number(), 'twentyten' ),
number_format_i18n( get_comments_number() ),
'<em>' . get_the_title() . '</em>'
);
}
?>
</h3>
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?>
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?>
<div class="navigation">
<div class="nav-previous"><?php previous_comments_link( __( '<span class="meta-nav">&larr;</span> Older Comments', 'twentyten' ) ); ?></div>
<div class="nav-next"><?php next_comments_link( __( 'Newer Comments <span class="meta-nav">&rarr;</span>', 'twentyten' ) ); ?></div>
</div> <!-- .navigation -->
<?php endif; // check for comment navigation ?>
<?php endif; // check for comment navigation ?>
<ol class="commentlist">
<?php
......@@ -57,21 +71,22 @@
?>
</ol>
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?>
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?>
<div class="navigation">
<div class="nav-previous"><?php previous_comments_link( __( '<span class="meta-nav">&larr;</span> Older Comments', 'twentyten' ) ); ?></div>
<div class="nav-next"><?php next_comments_link( __( 'Newer Comments <span class="meta-nav">&rarr;</span>', 'twentyten' ) ); ?></div>
</div><!-- .navigation -->
<?php endif; // check for comment navigation ?>
<?php endif; // check for comment navigation ?>
<?php
/*
* If there are no comments and comments are closed, let's leave a little note, shall we?
* But we only want the note on posts and pages that had comments in the first place.
*/
if ( ! comments_open() && get_comments_number() ) : ?>
<p class="nocomments"><?php _e( 'Comments are closed.' , 'twentyten' ); ?></p>
<?php endif; ?>
if ( ! comments_open() && get_comments_number() ) :
?>
<p class="nocomments"><?php _e( 'Comments are closed.', 'twentyten' ); ?></p>
<?php endif; ?>
<?php endif; // end have_comments() ?>
......
......@@ -41,7 +41,8 @@
*
* @since Twenty Ten 1.0
*/
do_action( 'twentyten_credits' ); ?>
do_action( 'twentyten_credits' );
?>
<a href="<?php echo esc_url( __( 'https://wordpress.org/', 'twentyten' ) ); ?>" class="imprint" title="<?php esc_attr_e( 'Semantic Personal Publishing Platform', 'twentyten' ); ?>">
<?php printf( __( 'Proudly powered by %s.', 'twentyten' ), 'WordPress' ); ?>
</a>
......
This diff is collapsed.
......@@ -12,7 +12,8 @@
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<title><?php
<title>
<?php
/*
* Print the <title> tag based on what is being viewed.
*/
......@@ -25,24 +26,28 @@
// Add the blog description for the home/front page.
$site_description = get_bloginfo( 'description', 'display' );
if ( $site_description && ( is_home() || is_front_page() ) )
echo " | $site_description";
if ( $site_description && ( is_home() || is_front_page() ) ) {
echo " | $site_description";
}
// Add a page number if necessary:
if ( ( $paged >= 2 || $page >= 2 ) && ! is_404() )
echo esc_html( ' | ' . sprintf( __( 'Page %s', 'twentyten' ), max( $paged, $page ) ) );
if ( ( $paged >= 2 || $page >= 2 ) && ! is_404() ) {
echo esc_html( ' | ' . sprintf( __( 'Page %s', 'twentyten' ), max( $paged, $page ) ) );
}
?></title>
?>
</title>
<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<link rel="pingback" href="<?php echo esc_url( get_bloginfo( 'pingback_url' ) ); ?>">
<?php
/*
* We add some JavaScript to pages with the comment form
* to support sites with threaded comments (when in use).
*/
if ( is_singular() && get_option( 'thread_comments' ) )
wp_enqueue_script( 'comment-reply' );
if ( is_singular() && get_option( 'thread_comments' ) ) {
wp_enqueue_script( 'comment-reply' );
}
/*
* Always have wp_head() just before the closing </head>
......@@ -55,6 +60,7 @@
</head>
<body <?php body_class(); ?>>
<?php wp_body_open(); ?>
<div id="wrapper" class="hfeed">
<div id="header">
<div id="masthead">
......@@ -69,23 +75,23 @@
<?php
// Compatibility with versions of WordPress prior to 3.4.
if ( function_exists( 'get_custom_header' ) ) {
/*
* We need to figure out what the minimum width should be for our featured image.
* This result would be the suggested width if the theme were to implement flexible widths.
*/
$header_image_width = get_theme_support( 'custom-header', 'width' );
} else {
$header_image_width = HEADER_IMAGE_WIDTH;
}
if ( function_exists( 'get_custom_header' ) ) {
/*
* We need to figure out what the minimum width should be for our featured image.
* This result would be the suggested width if the theme were to implement flexible widths.
*/
$header_image_width = get_theme_support( 'custom-header', 'width' );
} else {
$header_image_width = HEADER_IMAGE_WIDTH;
}
// Check if this is a post or page, if it has a thumbnail, and if it's a big one
if ( is_singular() && current_theme_supports( 'post-thumbnails' ) &&
if ( is_singular() && current_theme_supports( 'post-thumbnails' ) &&
has_post_thumbnail( $post->ID ) &&
( /* $src, $width, $height */ $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'post-thumbnail' ) ) &&
$image[1] >= $header_image_width ) :
// Houston, we have a new header image!
echo get_the_post_thumbnail( $post->ID );
// Houston, we have a new header image!
echo get_the_post_thumbnail( $post->ID );
elseif ( get_header_image() ) :
// Compatibility with versions of WordPress prior to 3.4.
if ( function_exists( 'get_custom_header' ) ) {
......@@ -95,16 +101,23 @@
$header_image_width = HEADER_IMAGE_WIDTH;
$header_image_height = HEADER_IMAGE_HEIGHT;
}
?>
?>
<img src="<?php header_image(); ?>" width="<?php echo esc_attr( $header_image_width ); ?>" height="<?php echo esc_attr( $header_image_height ); ?>" alt="" />
<?php endif; ?>
</div><!-- #branding -->
<div id="access" role="navigation">
<?php /* Allow screen readers / text browsers to skip the navigation menu and get right to the good stuff */ ?>
<?php /* Allow screen readers / text browsers to skip the navigation menu and get right to the good stuff */ ?>
<div class="skip-link screen-reader-text"><a href="#content" title="<?php esc_attr_e( 'Skip to content', 'twentyten' ); ?>"><?php _e( 'Skip to content', 'twentyten' ); ?></a></div>
<?php /* Our navigation menu. If one isn't filled out, wp_nav_menu falls back to wp_page_menu. The menu assiged to the primary position is the one used. If none is assigned, the menu with the lowest ID is used. */ ?>
<?php wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'primary' ) ); ?>
<?php
wp_nav_menu(
array(
'container_class' => 'menu-header',
'theme_location' => 'primary',
)
);
?>
</div><!-- #access -->
</div><!-- #masthead -->
</div><!-- #header -->
......
......@@ -6,7 +6,7 @@
* and one of the two required files for a theme (the other being style.css).
* It is used to display a page when nothing more specific matches a query.
* E.g., it puts together the home page when no home.php file exists.
* Learn more: https://codex.wordpress.org/Template_Hierarchy
* Learn more: https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package WordPress
* @subpackage Twenty_Ten
......
# Copyright (C) 2018 the WordPress team
# Copyright (C) 2019 the WordPress team
# This file is distributed under the GNU General Public License v2 or later.
msgid ""
msgstr ""
"Project-Id-Version: Twenty Ten 2.7\n"
"Project-Id-Version: Twenty Ten 2.9\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/theme/twentyten\n"
"POT-Creation-Date: 2018-12-18 17:42:13+00:00\n"
"POT-Creation-Date: 2019-05-07 18:20:08+00:00\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"PO-Revision-Date: 2018-MO-DA HO:MI+ZONE\n"
"PO-Revision-Date: 2019-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
......@@ -20,41 +20,41 @@ msgstr ""
msgid "Apologies, but the page you requested could not be found. Perhaps searching will help."
msgstr ""
#: archive.php:34
#: archive.php:35
msgid "Daily Archives: <span>%s</span>"
msgstr ""
#: archive.php:36
#: archive.php:37
msgid "Monthly Archives: <span>%s</span>"
msgstr ""
#: archive.php:36
#: archive.php:37
msgctxt "monthly archives date format"
msgid "F Y"
msgstr ""
#: archive.php:38
#: archive.php:39
msgid "Yearly Archives: <span>%s</span>"
msgstr ""
#: archive.php:38
#: archive.php:39
msgctxt "yearly archives date format"
msgid "Y"
msgstr ""
#: archive.php:40
#: archive.php:41
msgid "Blog Archives"
msgstr ""
#: author.php:28
#: author.php:29
msgid "Author Archives: %s"
msgstr ""
#: author.php:47 loop-single.php:46
#: author.php:49 loop-single.php:57
msgid "About %s"
msgstr ""
#: category.php:16
#: category.php:17
msgid "Category Archives: %s"
msgstr ""
......@@ -62,252 +62,260 @@ msgstr ""
msgid "This post is password protected. Enter the password to view any comments."
msgstr ""
#: comments.php:36
msgid "One Response to %2$s"
#. translators: %s: The post title.
#: comments.php:40
msgid "One Response to %s"
msgstr ""
#. translators: %1$s: The number of comments. %2$s: The post title.
#: comments.php:46
msgid "%1$s Response to %2$s"
msgid_plural "%1$s Responses to %2$s"
msgstr[0] ""
msgstr[1] ""
#: comments.php:42 comments.php:62
#: comments.php:56 comments.php:76
msgid "<span class=\"meta-nav\">&larr;</span> Older Comments"
msgstr ""
#: comments.php:43 comments.php:63
#: comments.php:57 comments.php:77
msgid "Newer Comments <span class=\"meta-nav\">&rarr;</span>"
msgstr ""
#: comments.php:73
#: comments.php:88
msgid "Comments are closed."
msgstr ""
#: footer.php:45
#: footer.php:46
msgid "https://wordpress.org/"
msgstr ""
#: footer.php:45
#: footer.php:46
msgid "Semantic Personal Publishing Platform"
msgstr ""
#: footer.php:46
#: footer.php:47
msgid "Proudly powered by %s."
msgstr ""
#: functions.php:87
#: functions.php:92
msgid "Blue"
msgstr ""
#: functions.php:92
#: functions.php:97
msgid "Black"
msgstr ""
#: functions.php:97
#: functions.php:102
msgid "Medium Gray"
msgstr ""
#: functions.php:102
#: functions.php:107
msgid "Light Gray"
msgstr ""
#: functions.php:107
#: functions.php:112
msgid "White"
msgstr ""
#: functions.php:130
#: functions.php:137
msgid "Primary Navigation"
msgstr ""
#. translators: header image description
#: functions.php:200
#: functions.php:212
msgid "Berries"
msgstr ""
#. translators: header image description
#: functions.php:206
#: functions.php:218
msgid "Cherry Blossoms"
msgstr ""
#. translators: header image description
#: functions.php:212
#: functions.php:224
msgid "Concave"
msgstr ""
#. translators: header image description
#: functions.php:218
#: functions.php:230
msgid "Fern"
msgstr ""
#. translators: header image description
#: functions.php:224
#: functions.php:236
msgid "Forest Floor"
msgstr ""
#. translators: header image description
#: functions.php:230
#: functions.php:242
msgid "Inkwell"
msgstr ""
#. translators: header image description
#: functions.php:236
#: functions.php:248
msgid "Path"
msgstr ""
#. translators: header image description
#: functions.php:242
#: functions.php:254
msgid "Sunset"
msgstr ""
#: functions.php:315 loop-attachment.php:119 loop.php:116 loop.php:144
#: functions.php:329 loop-attachment.php:151 loop.php:124 loop.php:152
msgid "Continue reading <span class=\"meta-nav\">&rarr;</span>"
msgstr ""
#: functions.php:411
#: functions.php:426
msgid "%s <span class=\"says\">says:</span>"
msgstr ""
#: functions.php:414
#: functions.php:429
msgid "Your comment is awaiting moderation."
msgstr ""
#. translators: 1: date, 2: time
#: functions.php:421
#: functions.php:436
msgid "%1$s at %2$s"
msgstr ""
#: functions.php:421 functions.php:438
#: functions.php:440 functions.php:467
msgid "(Edit)"
msgstr ""
#: functions.php:438
#: functions.php:467
msgid "Pingback:"
msgstr ""
#: functions.php:458
#: functions.php:488
msgid "Primary Widget Area"
msgstr ""
#: functions.php:460
#: functions.php:490
msgid "Add widgets here to appear in your sidebar."
msgstr ""
#: functions.php:469
#: functions.php:501
msgid "Secondary Widget Area"
msgstr ""
#: functions.php:471
#: functions.php:503
msgid "An optional secondary widget area, displays below the primary widget area in your sidebar."
msgstr ""
#: functions.php:480
#: functions.php:514
msgid "First Footer Widget Area"
msgstr ""
#: functions.php:482 functions.php:493 functions.php:504 functions.php:515
#: functions.php:516 functions.php:529 functions.php:542 functions.php:555
msgid "An optional widget area for your site footer."
msgstr ""
#: functions.php:491
#: functions.php:527
msgid "Second Footer Widget Area"
msgstr ""
#: functions.php:502
#: functions.php:540
msgid "Third Footer Widget Area"
msgstr ""
#: functions.php:513
#: functions.php:553
msgid "Fourth Footer Widget Area"
msgstr ""
#: functions.php:549
#: functions.php:591
msgid "<span class=\"%1$s\">Posted on</span> %2$s <span class=\"meta-sep\">by</span> %3$s"
msgstr ""
#: functions.php:558 loop-attachment.php:36
#: functions.php:602 loop-attachment.php:44
msgid "View all posts by %s"
msgstr ""
#: functions.php:575
#: functions.php:619
msgid "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>."
msgstr ""
#: functions.php:577
#: functions.php:621
msgid "This entry was posted in %1$s. Bookmark the <a href=\"%3$s\" title=\"Permalink to %4$s\" rel=\"bookmark\">permalink</a>."
msgstr ""
#: functions.php:579
#: functions.php:623
msgid "Bookmark the <a href=\"%3$s\" title=\"Permalink to %4$s\" rel=\"bookmark\">permalink</a>."
msgstr ""
#: header.php:33
#: header.php:35
msgid "Page %s"
msgstr ""
#: header.php:105
#: header.php:111
msgid "Skip to content"
msgstr ""
#: loop-attachment.php:21
#: loop-attachment.php:25
msgid "Return to %s"
msgstr ""
#. translators: %s - title of parent post
#: loop-attachment.php:23
#: loop-attachment.php:28
msgid "<span class=\"meta-nav\">&larr;</span> %s"
msgstr ""
#: loop-attachment.php:32
#: loop-attachment.php:39
msgid "<span class=\"%1$s\">By</span> %2$s"
msgstr ""
#: loop-attachment.php:43
#: loop-attachment.php:52
msgid "<span class=\"%1$s\">Published</span> %2$s"