Commit a18dc2c3 authored by lucha's avatar lucha
Browse files

[auto] theme: twentyten 2.5

parent d0f57f35
......@@ -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(); ?>
......@@ -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.
......
......@@ -32,10 +32,14 @@
?>
<?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
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>
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?>
<div class="navigation">
......@@ -69,9 +73,10 @@
* 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() ?>
......
......@@ -27,6 +27,11 @@
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home">
<?php bloginfo( 'name' ); ?>
</a>
<?php
if ( function_exists( 'the_privacy_policy_link' ) ) {
the_privacy_policy_link( '<span role="separator" aria-hidden="true"></span>', '' );
}
?>
</div><!-- #site-info -->
<div id="site-generator">
......@@ -36,8 +41,11 @@
*
* @since Twenty Ten 1.0
*/
do_action( 'twentyten_credits' ); ?>
<a href="<?php echo esc_url( __( 'https://wordpress.org/', 'twentyten' ) ); ?>" title="<?php esc_attr_e( 'Semantic Personal Publishing Platform', 'twentyten' ); ?>"><?php printf( __( 'Proudly powered by %s.', 'twentyten' ), 'WordPress' ); ?></a>
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>
</div><!-- #site-generator -->
</div><!-- #colophon -->
......
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,14 +26,17 @@
// 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' ); ?>" />
......@@ -41,8 +45,9 @@
* 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>
......@@ -69,23 +74,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' ) ) {
......@@ -101,10 +106,17 @@
</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 -->
......
# Copyright (C) 2017 the WordPress team
# Copyright (C) 2018 the WordPress team
# This file is distributed under the GNU General Public License v2 or later.
msgid ""
msgstr ""
"Project-Id-Version: Twenty Ten 2.4\n"
"Project-Id-Version: Twenty Ten 2.5\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/theme/twentyten\n"
"POT-Creation-Date: 2017-11-01 20:17:06+00:00\n"
"POT-Creation-Date: 2018-05-17 16:15:31+00:00\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"PO-Revision-Date: 2017-MO-DA HO:MI+ZONE\n"
"PO-Revision-Date: 2018-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,232 +62,232 @@ msgstr ""
msgid "This post is password protected. Enter the password to view any comments."
msgstr ""
#: comments.php:36
#: comments.php:38
msgid "One Response to %2$s"
msgid_plural "%1$s Responses to %2$s"
msgstr[0] ""
msgstr[1] ""
#: comments.php:42 comments.php:62
#: comments.php:46 comments.php:66
msgid "<span class=\"meta-nav\">&larr;</span> Older Comments"
msgstr ""
#: comments.php:43 comments.php:63
#: comments.php:47 comments.php:67
msgid "Newer Comments <span class=\"meta-nav\">&rarr;</span>"
msgstr ""
#: comments.php:73
#: comments.php:78
msgid "Comments are closed."
msgstr ""
#: footer.php:40
#: footer.php:46
msgid "https://wordpress.org/"
msgstr ""
#: footer.php:40
#: footer.php:46
msgid "Semantic Personal Publishing Platform"
msgstr ""
#: footer.php:40
#: footer.php:47
msgid "Proudly powered by %s."
msgstr ""
#: functions.php:95
#: functions.php:97
msgid "Primary Navigation"
msgstr ""
#. translators: header image description
#: functions.php:165
#: functions.php:171
msgid "Berries"
msgstr ""
#. translators: header image description
#: functions.php:171
#: functions.php:177
msgid "Cherry Blossoms"
msgstr ""
#. translators: header image description
#: functions.php:177
#: functions.php:183
msgid "Concave"
msgstr ""
#. translators: header image description
#: functions.php:183
#: functions.php:189
msgid "Fern"
msgstr ""
#. translators: header image description
#: functions.php:189
#: functions.php:195
msgid "Forest Floor"
msgstr ""
#. translators: header image description
#: functions.php:195
#: functions.php:201
msgid "Inkwell"
msgstr ""
#. translators: header image description
#: functions.php:201
#: functions.php:207
msgid "Path"
msgstr ""
#. translators: header image description
#: functions.php:207
#: functions.php:213
msgid "Sunset"
msgstr ""
#: functions.php:280 loop-attachment.php:119 loop.php:116 loop.php:144
#: functions.php:288 loop-attachment.php:151 loop.php:124 loop.php:152
msgid "Continue reading <span class=\"meta-nav\">&rarr;</span>"
msgstr ""
#: functions.php:376
#: functions.php:385
msgid "%s <span class=\"says\">says:</span>"
msgstr ""
#: functions.php:379
#: functions.php:388
msgid "Your comment is awaiting moderation."
msgstr ""
#. translators: 1: date, 2: time
#: functions.php:386
#: functions.php:395
msgid "%1$s at %2$s"
msgstr ""
#: functions.php:386 functions.php:403
#: functions.php:399 functions.php:425
msgid "(Edit)"
msgstr ""
#: functions.php:403
#: functions.php:425
msgid "Pingback:"
msgstr ""
#: functions.php:423
#: functions.php:446
msgid "Primary Widget Area"
msgstr ""
#: functions.php:425
#: functions.php:448
msgid "Add widgets here to appear in your sidebar."
msgstr ""
#: functions.php:434
#: functions.php:459
msgid "Secondary Widget Area"
msgstr ""
#: functions.php:436
#: functions.php:461
msgid "An optional secondary widget area, displays below the primary widget area in your sidebar."
msgstr ""
#: functions.php:445
#: functions.php:472
msgid "First Footer Widget Area"
msgstr ""
#: functions.php:447 functions.php:458 functions.php:469 functions.php:480
#: functions.php:474 functions.php:487 functions.php:500 functions.php:513
msgid "An optional widget area for your site footer."
msgstr ""
#: functions.php:456
#: functions.php:485
msgid "Second Footer Widget Area"
msgstr ""
#: functions.php:467
#: functions.php:498
msgid "Third Footer Widget Area"
msgstr ""
#: functions.php:478
#: functions.php:511
msgid "Fourth Footer Widget Area"
msgstr ""
#: functions.php:514
#: functions.php:549
msgid "<span class=\"%1$s\">Posted on</span> %2$s <span class=\"meta-sep\">by</span> %3$s"
msgstr ""
#: functions.php:523 loop-attachment.php:36
#: functions.php:560 loop-attachment.php:44
msgid "View all posts by %s"
msgstr ""
#: functions.php:540
#: functions.php:577
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:542
#: functions.php:579
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:544
#: functions.php:581
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:110
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"
msgstr ""
#: loop-attachment.php:53
#: loop-attachment.php:64
msgid "Full size is %s pixels"
msgstr ""
#: loop-attachment.php:56
#: loop-attachment.php:68
msgid "Link to full-size image"
msgstr ""
#: loop-attachment.php:63 loop-attachment.php:126 loop-page.php:30
#: loop-single.php:59 loop.php:101 loop.php:124 loop.php:166
#: loop-attachment.php:75 loop-attachment.php:165 loop-page.php:41
#: loop-single.php:70 loop.php:109 loop.php:132 loop.php:181
msgid "Edit"
msgstr ""
#: loop-attachment.php:120 loop-page.php:29 loop-single.php:34 loop.php:145
#: loop-attachment.php:155 loop-page.php:36 loop-single.php:41 loop.php:156
msgid "Pages:"
msgstr ""
#: loop-single.php:21 loop-single.php:64
#: loop-single.php:25 loop-single.php:75
msgctxt "Previous post link"
msgid "&larr;"
msgstr ""
#: loop-single.php:22 loop-single.php:65
#: loop-single.php:26 loop-single.php:76
msgctxt "Next post link"
msgid "&rarr;"
msgstr ""
#: loop-single.php:50
#: loop-single.php:61
msgid "View all posts by %s <span class=\"meta-nav\">&rarr;</span>"
msgstr ""
#: loop.php:25 loop.php:179
#: loop.php:25 loop.php:194
msgid "<span class=\"meta-nav\">&larr;</span> Older posts"
msgstr ""
#: loop.php:26 loop.php:180
#: loop.php:26 loop.php:195
msgid "Newer posts <span class=\"meta-nav\">&rarr;</span>"
msgstr ""
......@@ -295,55 +295,55 @@ msgstr ""
msgid "Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post."
msgstr ""
#: loop.php:62 loop.php:96
#: loop.php:65 loop.php:104
msgctxt "gallery category slug"
msgid "gallery"
msgstr ""
#: loop.php:83
#: loop.php:89
msgid "This gallery contains <a %1$s>%2$s photo</a>."
msgid_plural "This gallery contains <a %1$s>%2$s photos</a>."
msgstr[0] ""
msgstr[1] ""
#: loop.php:84
#: loop.php:90
msgid "Permalink to %s"
msgstr ""
#: loop.php:94
#: loop.php:102
msgid "View Galleries"
msgstr ""
#: loop.php:94 loop.php:97
#: loop.php:102 loop.php:105
msgid "More Galleries"
msgstr ""
#: loop.php:97
#: loop.php:105
msgid "View posts in the Gallery category"
msgstr ""
#: loop.php:100 loop.php:123 loop.php:165
#: loop.php:108 loop.php:131 loop.php:180
msgid "Leave a comment"
msgstr ""
#: loop.php:100 loop.php:123 loop.php:165
#: loop.php:108 loop.php:131 loop.php:180
msgid "1 Comment"
msgstr ""