Commit b8533191 authored by ale's avatar ale Committed by lucha

[auto] Theme: twentyten 1.9

parent bad092f3
......@@ -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 http://codex.wordpress.org/Template_Hierarchy
* @link https://codex.wordpress.org/Template_Hierarchy
*
* @package WordPress
* @subpackage Twenty_Ten
......@@ -54,7 +54,7 @@ get_header(); ?>
* If you want to overload this in a child theme then include a file
* called loop-archive.php and that will be used instead.
*/
get_template_part( 'loop', 'archive' );
get_template_part( 'loop', 'archive' );
?>
</div><!-- #content -->
......
......@@ -25,7 +25,7 @@ get_header(); ?>
the_post();
?>
<h1 class="page-title author"><?php printf( __( 'Author Archives: %s', 'twentyten' ), "<span class='vcard'><a class='url fn n' href='" . get_author_posts_url( get_the_author_meta( 'ID' ) ) . "' title='" . esc_attr( get_the_author() ) . "' rel='me'>" . get_the_author() . "</a></span>" ); ?></h1>
<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.
......@@ -63,7 +63,7 @@ if ( get_the_author_meta( 'description' ) ) : ?>
* If you want to overload this in a child theme then include a file
* called loop-author.php and that will be used instead.
*/
get_template_part( 'loop', 'author' );
get_template_part( 'loop', 'author' );
?>
</div><!-- #content -->
</div><!-- #container -->
......
......@@ -24,7 +24,7 @@
?>
<div id="site-info">
<a href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home">
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home">
<?php bloginfo( 'name' ); ?>
</a>
</div><!-- #site-info -->
......
......@@ -9,8 +9,8 @@
* The first function, twentyten_setup(), sets up the theme by registering support
* for various features in WordPress, such as post thumbnails, navigation menus, and the like.
*
* When using a child theme (see http://codex.wordpress.org/Theme_Development and
* http://codex.wordpress.org/Child_Themes), you can override certain functions
* When using a child theme (see https://codex.wordpress.org/Theme_Development and
* https://codex.wordpress.org/Child_Themes), you can override certain functions
* (those wrapped in a function_exists() call) by defining them first in your child theme's
* functions.php file. The child theme's functions.php file is included before the parent
* theme's file, so the child theme functions would be used.
......@@ -31,7 +31,7 @@
* }
* </code>
*
* For more information on hooks, actions, and filters, see http://codex.wordpress.org/Plugin_API.
* For more information on hooks, actions, and filters, see https://codex.wordpress.org/Plugin_API.
*
* @package WordPress
* @subpackage Twenty_Ten
......@@ -295,7 +295,10 @@ endif;
* @return string An ellipsis.
*/
function twentyten_auto_excerpt_more( $more ) {
return ' &hellip;' . twentyten_continue_reading_link();
if ( ! is_admin() ) {
return ' &hellip;' . twentyten_continue_reading_link();
}
return $more;
}
add_filter( 'excerpt_more', 'twentyten_auto_excerpt_more' );
......@@ -311,7 +314,7 @@ add_filter( 'excerpt_more', 'twentyten_auto_excerpt_more' );
* @return string Excerpt with a pretty "Continue Reading" link.
*/
function twentyten_custom_excerpt_more( $output ) {
if ( has_excerpt() && ! is_attachment() ) {
if ( has_excerpt() && ! is_attachment() && ! is_admin() ) {
$output .= twentyten_continue_reading_link();
}
return $output;
......@@ -567,7 +570,7 @@ function twentyten_get_gallery_images() {
if ( function_exists( 'get_post_galleries' ) ) {
$galleries = get_post_galleries( get_the_ID(), false );
if ( isset( $galleries[0]['ids'] ) )
$images = explode( ',', $galleries[0]['ids'] );
$images = explode( ',', $galleries[0]['ids'] );
} else {
$pattern = get_shortcode_regex();
preg_match( "/$pattern/s", get_the_content(), $match );
......
......@@ -30,7 +30,7 @@
// Add a page number if necessary:
if ( ( $paged >= 2 || $page >= 2 ) && ! is_404() )
echo ' | ' . sprintf( __( 'Page %s', 'twentyten' ), max( $paged, $page ) );
echo esc_html( ' | ' . sprintf( __( 'Page %s', 'twentyten' ), max( $paged, $page ) ) );
?></title>
<link rel="profile" href="http://gmpg.org/xfn/11" />
......@@ -62,7 +62,7 @@
<?php $heading_tag = ( is_home() || is_front_page() ) ? 'h1' : 'div'; ?>
<<?php echo $heading_tag; ?> id="site-title">
<span>
<a href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a>
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a>
</span>
</<?php echo $heading_tag; ?>>
<div id="site-description"><?php bloginfo( 'description' ); ?></div>
......@@ -96,7 +96,7 @@
$header_image_height = HEADER_IMAGE_HEIGHT;
}
?>
<img src="<?php header_image(); ?>" width="<?php echo $header_image_width; ?>" height="<?php echo $header_image_height; ?>" alt="" />
<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 -->
......
......@@ -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: http://codex.wordpress.org/Template_Hierarchy
* Learn more: https://codex.wordpress.org/Template_Hierarchy
*
* @package WordPress
* @subpackage Twenty_Ten
......@@ -24,7 +24,7 @@ get_header(); ?>
* If you want to overload this in a child theme then include a file
* called loop-index.php and that will be used instead.
*/
get_template_part( 'loop', 'index' );
get_template_part( 'loop', 'index' );
?>
</div><!-- #content -->
</div><!-- #container -->
......
# Copyright (C) 2014 the WordPress team
# Copyright (C) 2015 the WordPress team
# This file is distributed under the GNU General Public License v2 or later.
msgid ""
msgstr ""
"Project-Id-Version: Twenty Ten 1.7\n"
"Report-Msgid-Bugs-To: http://wordpress.org/tags/twentyten\n"
"POT-Creation-Date: 2014-09-03 00:45:44+00:00\n"
"Project-Id-Version: Twenty Ten 1.9\n"
"Report-Msgid-Bugs-To: http://wordpress.org/support/theme/twentyten\n"
"POT-Creation-Date: 2015-04-23 15:11:25+00:00\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"PO-Revision-Date: 2014-MO-DA HO:MI+ZONE\n"
"PO-Revision-Date: 2015-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
......@@ -83,8 +83,6 @@ msgstr ""
msgid "Comments are closed."
msgstr ""
#. #-#-#-#-# twentyten.pot (Twenty Ten 1.7) #-#-#-#-#
#. Author URI of the plugin/theme
#: footer.php:40
msgid "http://wordpress.org/"
msgstr ""
......@@ -145,88 +143,88 @@ msgstr ""
msgid "Continue reading <span class=\"meta-nav\">&rarr;</span>"
msgstr ""
#: functions.php:373
#: functions.php:376
msgid "%s <span class=\"says\">says:</span>"
msgstr ""
#: functions.php:376
#: functions.php:379
msgid "Your comment is awaiting moderation."
msgstr ""
#. translators: 1: date, 2: time
#: functions.php:383
#: functions.php:386
msgid "%1$s at %2$s"
msgstr ""
#: functions.php:383 functions.php:400
#: functions.php:386 functions.php:403
msgid "(Edit)"
msgstr ""
#: functions.php:400
#: functions.php:403
msgid "Pingback:"
msgstr ""
#: functions.php:420
#: functions.php:423
msgid "Primary Widget Area"
msgstr ""
#: functions.php:422
#: functions.php:425
msgid "Add widgets here to appear in your sidebar."
msgstr ""
#: functions.php:431
#: functions.php:434
msgid "Secondary Widget Area"
msgstr ""
#: functions.php:433
#: functions.php:436
msgid ""
"An optional secondary widget area, displays below the primary widget area in "
"your sidebar."
msgstr ""
#: functions.php:442
#: functions.php:445
msgid "First Footer Widget Area"
msgstr ""
#: functions.php:444 functions.php:455 functions.php:466 functions.php:477
#: functions.php:447 functions.php:458 functions.php:469 functions.php:480
msgid "An optional widget area for your site footer."
msgstr ""
#: functions.php:453
#: functions.php:456
msgid "Second Footer Widget Area"
msgstr ""
#: functions.php:464
#: functions.php:467
msgid "Third Footer Widget Area"
msgstr ""
#: functions.php:475
#: functions.php:478
msgid "Fourth Footer Widget Area"
msgstr ""
#: functions.php:511
#: functions.php:514
msgid ""
"<span class=\"%1$s\">Posted on</span> %2$s <span class=\"meta-sep\">by</"
"span> %3$s"
msgstr ""
#: functions.php:520 loop-attachment.php:36
#: functions.php:523 loop-attachment.php:36
msgid "View all posts by %s"
msgstr ""
#: functions.php:537
#: functions.php:540
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:539
#: functions.php:542
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:541
#: functions.php:544
msgid ""
"Bookmark the <a href=\"%3$s\" title=\"Permalink to %4$s\" rel=\"bookmark"
"\">permalink</a>."
......@@ -385,7 +383,7 @@ msgid "Twenty Ten"
msgstr ""
#. Theme URI of the plugin/theme
msgid "http://wordpress.org/themes/twentyten"
msgid "https://wordpress.org/themes/twentyten/"
msgstr ""
#. Description of the plugin/theme
......@@ -404,6 +402,10 @@ msgstr ""
msgid "the WordPress team"
msgstr ""
#. Author URI of the plugin/theme
msgid "https://wordpress.org/"
msgstr ""
#. Template Name of the plugin/theme
msgid "One column, no sidebar"
msgstr ""
......@@ -3,8 +3,8 @@
* The loop that displays an attachment
*
* The loop displays the posts and the post content. See
* http://codex.wordpress.org/The_Loop to understand it and
* http://codex.wordpress.org/Template_Tags to understand
* https://codex.wordpress.org/The_Loop to understand it and
* https://codex.wordpress.org/Template_Tags to understand
* the tags used in it.
*
* This can be overridden in child themes with loop-attachment.php.
......@@ -80,7 +80,7 @@
$next_attachment_url = get_attachment_link( $attachments[ $k ]->ID );
else
// or get the URL of the first image attachment
$next_attachment_url = get_attachment_link( $attachments[ 0 ]->ID );
$next_attachment_url = get_attachment_link( $attachments[0]->ID );
} else {
// or, if there's only 1 image attachment, get the URL of the image
$next_attachment_url = wp_get_attachment_url();
......@@ -111,10 +111,10 @@
<div class="nav-next"><?php next_image_link( false ); ?></div>
</div><!-- #nav-below -->
<?php else : ?>
<a href="<?php echo esc_url( wp_get_attachment_url() ); ?>" title="<?php the_title_attribute(); ?>" rel="attachment"><?php echo basename( get_permalink() ); ?></a>
<a href="<?php echo esc_url( wp_get_attachment_url() ); ?>" title="<?php the_title_attribute(); ?>" rel="attachment"><?php echo esc_html( basename( get_permalink() ) ); ?></a>
<?php endif; ?>
</div><!-- .entry-attachment -->
<div class="entry-caption"><?php if ( !empty( $post->post_excerpt ) ) the_excerpt(); ?></div>
<div class="entry-caption"><?php if ( ! empty( $post->post_excerpt ) ) the_excerpt(); ?></div>
<?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyten' ) ); ?>
<?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'twentyten' ), 'after' => '</div>' ) ); ?>
......
......@@ -3,8 +3,8 @@
* The loop that displays a page
*
* The loop displays the posts and the post content. See
* http://codex.wordpress.org/The_Loop to understand it and
* http://codex.wordpress.org/Template_Tags to understand
* https://codex.wordpress.org/The_Loop to understand it and
* https://codex.wordpress.org/Template_Tags to understand
* the tags used in it.
*
* This can be overridden in child themes with loop-page.php.
......
......@@ -3,8 +3,8 @@
* The loop that displays a single post
*
* The loop displays the posts and the post content. See
* http://codex.wordpress.org/The_Loop to understand it and
* http://codex.wordpress.org/Template_Tags to understand
* https://codex.wordpress.org/The_Loop to understand it and
* https://codex.wordpress.org/Template_Tags to understand
* the tags used in it.
*
* This can be overridden in child themes with loop-single.php.
......@@ -46,7 +46,7 @@
<h2><?php printf( __( 'About %s', 'twentyten' ), get_the_author() ); ?></h2>
<?php the_author_meta( 'description' ); ?>
<div id="author-link">
<a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>" rel="author">
<a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author">
<?php printf( __( 'View all posts by %s <span class="meta-nav">&rarr;</span>', 'twentyten' ), get_the_author() ); ?>
</a>
</div><!-- #author-link -->
......
......@@ -3,8 +3,8 @@
* The loop that displays posts
*
* The loop displays the posts and the post content. See
* http://codex.wordpress.org/The_Loop to understand it and
* http://codex.wordpress.org/Template_Tags to understand
* https://codex.wordpress.org/The_Loop to understand it and
* https://codex.wordpress.org/Template_Tags to understand
* the tags used in it.
*
* This can be overridden in child themes with loop.php or
......@@ -75,13 +75,13 @@
$images = twentyten_get_gallery_images();
if ( $images ) :
$total_images = count( $images );
$image = array_shift( $images );
$image = reset( $images );
?>
<div class="gallery-thumb">
<a class="size-thumbnail" href="<?php the_permalink(); ?>"><?php echo wp_get_attachment_image( $image, 'thumbnail' ); ?></a>
</div><!-- .gallery-thumb -->
<p><em><?php printf( _n( 'This gallery contains <a %1$s>%2$s photo</a>.', 'This gallery contains <a %1$s>%2$s photos</a>.', $total_images, 'twentyten' ),
'href="' . get_permalink() . '" title="' . esc_attr( sprintf( __( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ) ) . '" rel="bookmark"',
'href="' . esc_url( get_permalink() ) . '" title="' . esc_attr( sprintf( __( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ) ) . '" rel="bookmark"',
number_format_i18n( $total_images )
); ?></em></p>
<?php endif; // end twentyten_get_gallery_images() check ?>
......@@ -91,10 +91,10 @@
<div class="entry-utility">
<?php if ( function_exists( 'get_post_format' ) && 'gallery' == get_post_format( $post->ID ) ) : ?>
<a href="<?php echo get_post_format_link( 'gallery' ); ?>" title="<?php esc_attr_e( 'View Galleries', 'twentyten' ); ?>"><?php _e( 'More Galleries', 'twentyten' ); ?></a>
<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>
<?php elseif ( $gallery = get_term_by( 'slug', _x( 'gallery', 'gallery category slug', 'twentyten' ), 'category' ) && in_category( $gallery->term_id ) ) : ?>
<a href="<?php echo get_category_link( $gallery ); ?>" title="<?php esc_attr_e( 'View posts in the Gallery category', 'twentyten' ); ?>"><?php _e( 'More Galleries', 'twentyten' ); ?></a>
<a href="<?php echo esc_url( get_category_link( $gallery ) ); ?>" title="<?php esc_attr_e( 'View posts in the Gallery category', 'twentyten' ); ?>"><?php _e( 'More Galleries', 'twentyten' ); ?></a>
<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>
......
......@@ -23,7 +23,7 @@ get_header(); ?>
* If you want to overload this in a child theme then include a file
* called loop-page.php and that will be used instead.
*/
get_template_part( 'loop', 'page' );
get_template_part( 'loop', 'page' );
?>
</div><!-- #content -->
......
......@@ -101,13 +101,6 @@ blockquote {
font-style: normal;
}
/* Text meant only for screen readers */
.screen-reader-text {
left: auto;
text-indent:-9000px;
overflow:hidden;
}
/* =Header
-------------------------------------------------------------- */
......
......@@ -20,7 +20,7 @@ get_header(); ?>
* If you want to overload this in a child theme then include a file
* called loop-search.php and that will be used instead.
*/
get_template_part( 'loop', 'search' );
get_template_part( 'loop', 'search' );
?>
<?php else : ?>
<div id="post-0" class="post no-results not-found">
......
/*
Theme Name: Twenty Ten
Theme URI: http://wordpress.org/themes/twentyten
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: http://wordpress.org/
Version: 1.7
Author URI: https://wordpress.org/
Version: 1.9
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: black, blue, white, two-columns, fixed-layout, custom-header, custom-background, threaded-comments, sticky-post, translation-ready, microformats, rtl-language-support, editor-style, custom-menu, flexible-header
Tags: black, blue, white, two-columns, fixed-layout, custom-header, custom-background, threaded-comments, sticky-post, translation-ready, microformats, rtl-language-support, editor-style, custom-menu, flexible-header, featured-images, featured-image-header
Text Domain: twentyten
*/
/* =Reset default browser CSS. Based on work by Eric Meyer: http://meyerweb.com/eric/tools/css/reset/index.html
/* =Reset default browser CSS. Based on work by Eric Meyer.
-------------------------------------------------------------- */
html, body, div, span, applet, object, iframe,
......@@ -337,8 +337,11 @@ a:hover {
/* Text meant only for screen readers */
.screen-reader-text {
position: absolute;
left: -9000px;
clip: rect(1px, 1px, 1px, 1px);
overflow: hidden;
position: absolute !important;
height: 1px;
width: 1px;
}
......@@ -605,6 +608,9 @@ div.menu li {
clear: both;
padding: 12px 0 0 0;
}
.entry-content .more-link {
white-space: nowrap;
}
#content .entry-summary p:last-child {
margin-bottom: 12px;
}
......@@ -722,7 +728,12 @@ body.page .edit-link {
#content .video-player {
padding: 0;
}
.format-standard .wp-video,
.format-standard .wp-audio-shortcode,
.format-audio .wp-audio-shortcode,
.format-standard .video-player {
margin-bottom: 24px;
}
/* =Asides
-------------------------------------------------------------- */
......@@ -1375,4 +1386,4 @@ code {
.home .sticky {
border: none;
}
}
\ No newline at end of file
}
......@@ -22,7 +22,7 @@ get_header(); ?>
* If you want to overload this in a child theme then include a file
* called loop-tag.php and that will be used instead.
*/
get_template_part( 'loop', 'tag' );
get_template_part( 'loop', 'tag' );
?>
</div><!-- #content -->
</div><!-- #container -->
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment