Changeset 1902


Ignore:
Timestamp:
03/22/2011 11:23:33 AM (14 months ago)
Author:
Xiping.Wang
Message:

[trunk]Upgrade wordpress to version 3.1

Location:
trunk/blogs/wp-content
Files:
3 added
16 edited

Legend:

Unmodified
Added
Removed
  • trunk/blogs/wp-content/plugins/hello.php

    r1874 r1902  
    22/** 
    33 * @package Hello_Dolly 
    4  * @version 1.5.1 
     4 * @version 1.6 
    55 */ 
    66/* 
    77Plugin Name: Hello Dolly 
    8 Plugin URI: http://wordpress.org/# 
     8Plugin URI: http://wordpress.org/extend/plugins/hello-dolly/ 
    99Description: This is not just a plugin, it symbolizes the hope and enthusiasm of an entire generation summed up in two words sung most famously by Louis Armstrong: Hello, Dolly. When activated you will randomly see a lyric from <cite>Hello, Dolly</cite> in the upper right of your admin screen on every page. 
    1010Author: Matt Mullenweg 
    11 Version: 1.5.1 
     11Version: 1.6 
    1212Author URI: http://ma.tt/ 
    1313*/ 
     
    4545 
    4646        // Here we split it into lines 
    47         $lyrics = explode("\n", $lyrics); 
     47        $lyrics = explode( "\n", $lyrics ); 
    4848 
    4949        // And then randomly choose a line 
    50         return wptexturize( $lyrics[ mt_rand(0, count($lyrics) - 1) ] ); 
     50        return wptexturize( $lyrics[ mt_rand( 0, count( $lyrics ) - 1 ) ] ); 
    5151} 
    5252 
     
    5757} 
    5858 
    59 // Now we set that function up to execute when the admin_footer action is called 
    60 add_action('admin_footer', 'hello_dolly'); 
     59// Now we set that function up to execute when the admin_notices action is called 
     60add_action( 'admin_notices', 'hello_dolly' ); 
    6161 
    6262// We need some CSS to position the paragraph 
    6363function dolly_css() { 
    64         // This makes sure that the posinioning is also good for right-to-left languages 
    65         $x = ( is_rtl() ) ? 'left' : 'right'; 
     64        // This makes sure that the positioning is also good for right-to-left languages 
     65        $x = is_rtl() ? 'left' : 'right'; 
    6666 
    6767        echo " 
    6868        <style type='text/css'> 
    6969        #dolly { 
    70                 position: absolute; 
    71                 top: 4.5em; 
     70                float: $x; 
     71                padding-$x: 15px; 
     72                padding-top: 5px;                
    7273                margin: 0; 
    73                 padding: 0; 
    74                 $x: 215px; 
    7574                font-size: 11px; 
    7675        } 
     
    7978} 
    8079 
    81 add_action('admin_head', 'dolly_css'); 
     80add_action( 'admin_head', 'dolly_css' ); 
    8281 
    8382?> 
  • trunk/blogs/wp-content/themes/twentyten/archive.php

    r1874 r1902  
    3333                                <?php printf( __( 'Daily Archives: <span>%s</span>', 'twentyten' ), get_the_date() ); ?> 
    3434<?php elseif ( is_month() ) : ?> 
    35                                 <?php printf( __( 'Monthly Archives: <span>%s</span>', 'twentyten' ), get_the_date('F Y') ); ?> 
     35                                <?php printf( __( 'Monthly Archives: <span>%s</span>', 'twentyten' ), get_the_date( 'F Y' ) ); ?> 
    3636<?php elseif ( is_year() ) : ?> 
    37                                 <?php printf( __( 'Yearly Archives: <span>%s</span>', 'twentyten' ), get_the_date('Y') ); ?> 
     37                                <?php printf( __( 'Yearly Archives: <span>%s</span>', 'twentyten' ), get_the_date( 'Y' ) ); ?> 
    3838<?php else : ?> 
    3939                                <?php _e( 'Blog Archives', 'twentyten' ); ?> 
     
    5050        /* Run the loop for the archives page to output the posts. 
    5151         * If you want to overload this in a child theme then include a file 
    52          * called loop-archives.php and that will be used instead. 
     52         * called loop-archive.php and that will be used instead. 
    5353         */ 
    5454         get_template_part( 'loop', 'archive' ); 
  • trunk/blogs/wp-content/themes/twentyten/attachment.php

    r1874 r1902  
    1313                        <div id="content" role="main"> 
    1414 
    15 <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?> 
    16  
    17                                 <?php if ( ! empty( $post->post_parent ) ) : ?> 
    18                                         <p class="page-title"><a href="<?php echo get_permalink( $post->post_parent ); ?>" title="<?php esc_attr( printf( __( 'Return to %s', 'twentyten' ), get_the_title( $post->post_parent ) ) ); ?>" rel="gallery"><?php 
    19                                                 /* translators: %s - title of parent post */ 
    20                                                 printf( __( '<span class="meta-nav">&larr;</span> %s', 'twentyten' ), get_the_title( $post->post_parent ) ); 
    21                                         ?></a></p> 
    22                                 <?php endif; ?> 
    23  
    24                                 <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 
    25                                         <h2 class="entry-title"><?php the_title(); ?></h2> 
    26  
    27                                         <div class="entry-meta"> 
    28                                                 <?php 
    29                                                         printf(__('<span class="%1$s">By</span> %2$s', 'twentyten'), 
    30                                                                 'meta-prep meta-prep-author', 
    31                                                                 sprintf( '<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s">%3$s</a></span>', 
    32                                                                         get_author_posts_url( get_the_author_meta( 'ID' ) ), 
    33                                                                         sprintf( esc_attr__( 'View all posts by %s', 'twentyten' ), get_the_author() ), 
    34                                                                         get_the_author() 
    35                                                                 ) 
    36                                                         ); 
    37                                                 ?> 
    38                                                 <span class="meta-sep">|</span> 
    39                                                 <?php 
    40                                                         printf( __('<span class="%1$s">Published</span> %2$s', 'twentyten'), 
    41                                                                 'meta-prep meta-prep-entry-date', 
    42                                                                 sprintf( '<span class="entry-date"><abbr class="published" title="%1$s">%2$s</abbr></span>', 
    43                                                                         esc_attr( get_the_time() ), 
    44                                                                         get_the_date() 
    45                                                                 ) 
    46                                                         ); 
    47                                                         if ( wp_attachment_is_image() ) { 
    48                                                                 echo ' <span class="meta-sep">|</span> '; 
    49                                                                 $metadata = wp_get_attachment_metadata(); 
    50                                                                 printf( __( 'Full size is %s pixels', 'twentyten'), 
    51                                                                         sprintf( '<a href="%1$s" title="%2$s">%3$s &times; %4$s</a>', 
    52                                                                                 wp_get_attachment_url(), 
    53                                                                                 esc_attr( __('Link to full-size image', 'twentyten') ), 
    54                                                                                 $metadata['width'], 
    55                                                                                 $metadata['height'] 
    56                                                                         ) 
    57                                                                 ); 
    58                                                         } 
    59                                                 ?> 
    60                                                 <?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="meta-sep">|</span> <span class="edit-link">', '</span>' ); ?> 
    61                                         </div><!-- .entry-meta --> 
    62  
    63                                         <div class="entry-content"> 
    64                                                 <div class="entry-attachment"> 
    65 <?php if ( wp_attachment_is_image() ) : 
    66         $attachments = array_values( get_children( array( 'post_parent' => $post->post_parent, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'ASC', 'orderby' => 'menu_order ID' ) ) ); 
    67         foreach ( $attachments as $k => $attachment ) { 
    68                 if ( $attachment->ID == $post->ID ) 
    69                         break; 
    70         } 
    71         $k++; 
    72         // If there is more than 1 image attachment in a gallery 
    73         if ( count( $attachments ) > 1 ) { 
    74                 if ( isset( $attachments[ $k ] ) ) 
    75                         // get the URL of the next image attachment 
    76                         $next_attachment_url = get_attachment_link( $attachments[ $k ]->ID ); 
    77                 else 
    78                         // or get the URL of the first image attachment 
    79                         $next_attachment_url = get_attachment_link( $attachments[ 0 ]->ID ); 
    80         } else { 
    81                 // or, if there's only 1 image attachment, get the URL of the image 
    82                 $next_attachment_url = wp_get_attachment_url(); 
    83         } 
    84 ?> 
    85                                                 <p class="attachment"><a href="<?php echo $next_attachment_url; ?>" title="<?php echo esc_attr( get_the_title() ); ?>" rel="attachment"><?php 
    86                                                         $attachment_size = apply_filters( 'twentyten_attachment_size', 900 ); 
    87                                                         echo wp_get_attachment_image( $post->ID, array( $attachment_size, 9999 ) ); // filterable image width with, essentially, no limit for image height. 
    88                                                 ?></a></p> 
    89  
    90                                                 <div id="nav-below" class="navigation"> 
    91                                                         <div class="nav-previous"><?php previous_image_link( false ); ?></div> 
    92                                                         <div class="nav-next"><?php next_image_link( false ); ?></div> 
    93                                                 </div><!-- #nav-below --> 
    94 <?php else : ?> 
    95                                                 <a href="<?php echo wp_get_attachment_url(); ?>" title="<?php echo esc_attr( get_the_title() ); ?>" rel="attachment"><?php echo basename( get_permalink() ); ?></a> 
    96 <?php endif; ?> 
    97                                                 </div><!-- .entry-attachment --> 
    98                                                 <div class="entry-caption"><?php if ( !empty( $post->post_excerpt ) ) the_excerpt(); ?></div> 
    99  
    100 <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyten' ) ); ?> 
    101 <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'twentyten' ), 'after' => '</div>' ) ); ?> 
    102  
    103                                         </div><!-- .entry-content --> 
    104  
    105                                         <div class="entry-utility"> 
    106                                                 <?php twentyten_posted_in(); ?> 
    107                                                 <?php edit_post_link( __( 'Edit', 'twentyten' ), ' <span class="edit-link">', '</span>' ); ?> 
    108                                         </div><!-- .entry-utility --> 
    109                                 </div><!-- #post-## --> 
    110  
    111 <?php comments_template(); ?> 
    112  
    113 <?php endwhile; ?> 
     15                        <?php 
     16                        /* Run the loop to output the attachment. 
     17                         * If you want to overload this in a child theme then include a file 
     18                         * called loop-attachment.php and that will be used instead. 
     19                         */ 
     20                        get_template_part( 'loop', 'attachment' ); 
     21                        ?> 
    11422 
    11523                        </div><!-- #content --> 
  • trunk/blogs/wp-content/themes/twentyten/editor-style.css

    r1874 r1902  
    11/* 
    22Theme Name: Twenty Ten 
    3 */ 
    4 /* 
    5 Used to style the TinyMCE editor. 
     3Description: Used to style the TinyMCE editor. 
    64*/ 
    75html .mceContentBody { 
    8         max-width:640px; 
     6        max-width: 640px; 
    97} 
    108* { 
     9        color: #444; 
    1110        font-family: Georgia, "Bitstream Charter", serif; 
    12         color: #444; 
    1311        line-height: 1.5; 
    1412} 
     
    4139hr { 
    4240        background-color: #e7e7e7; 
    43         border:0; 
     41        border: 0; 
     42        clear: both; 
    4443        height: 1px; 
    4544        margin-bottom: 18px; 
    46         clear:both; 
    4745} 
    4846/* Text elements */ 
     
    5957} 
    6058ol ol { 
    61         list-style:upper-alpha; 
     59        list-style: upper-alpha; 
    6260} 
    6361ol ol ol { 
    64         list-style:lower-roman; 
     62        list-style: lower-roman; 
    6563} 
    6664ol ol ol ol { 
    67         list-style:lower-alpha; 
     65        list-style: lower-alpha; 
    6866} 
    6967ul ul, 
     
    7169ul ol, 
    7270ol ul { 
    73         margin-bottom:0; 
     71        margin-bottom: 0; 
    7472} 
    7573dl { 
    76         margin:0 0 24px 0; 
     74        margin: 0 0 24px 0; 
    7775} 
    7876dt { 
     
    8381} 
    8482strong { 
     83        color: #000; 
    8584        font-weight: bold; 
    86         color: #000; 
    8785} 
    8886cite, 
    8987em, 
    9088i { 
     89        border: none; 
    9190        font-style: italic; 
    92         border: none; 
    9391} 
    9492big { 
     
    9694} 
    9795ins { 
    98         background: #ffffcc; 
     96        background: #ffc; 
    9997        border: none; 
    10098        color: #333; 
     
    130128sup, 
    131129sub { 
     130        font-size: 10px; 
    132131        height: 0; 
    133132        line-height: 1; 
     133        position: relative; 
    134134        vertical-align: baseline; 
    135         position: relative; 
    136         font-size: 10px; 
    137135} 
    138136sup { 
     
    143141} 
    144142a:link { 
    145         color:#0066cc; 
     143        color: #06c; 
    146144} 
    147145a:visited { 
    148         color:#743399; 
     146        color: #743399; 
    149147} 
    150148a:active, 
     
    158156pre, 
    159157hr { 
    160         margin-bottom:24px; 
     158        margin-bottom: 24px; 
    161159} 
    162160ul ul, 
     
    164162ul ol, 
    165163ol ul { 
    166         margin-bottom:0; 
     164        margin-bottom: 0; 
    167165} 
    168166pre, 
     
    189187h6 { 
    190188        color: #000; 
     189        font-weight: normal; 
     190        line-height: 1.5em; 
    191191        margin: 0 0 20px 0; 
    192         line-height: 1.5em; 
    193         font-weight: normal; 
    194192} 
    195193h1 { 
     
    213211table { 
    214212        border: 1px solid #e7e7e7 !important; 
    215         text-align: left; 
    216         margin: 0 -1px 24px 0; 
    217         width: 100%; 
    218213        border-collapse: collapse; 
    219214        border-spacing: 0; 
     215        margin: 0 -1px 24px 0; 
     216        text-align: left; 
     217        width: 100%; 
    220218} 
    221219tr th, 
     
    233231        padding: 6px 24px; 
    234232} 
    235  
    236  
    237233img { 
    238234        margin: 0; 
    239         max-width: 640px; 
     235} 
     236img.size-auto, 
     237img.size-large, 
     238img.size-full, 
     239img.size-medium { 
     240        max-width: 100%; 
     241        height: auto; 
    240242} 
    241243.alignleft, 
     
    266268} 
    267269.wp-caption { 
     270        background: #f1f1f1; 
    268271        border: none; 
    269         background: #f1f1f1; 
     272        -khtml-border-radius: 0; 
     273        -moz-border-radius: 0; 
     274        -webkit-border-radius: 0; 
     275        border-radius: 0; 
    270276        color: #888; 
    271277        font-size: 12px; 
    272278        line-height: 18px; 
     279        margin-bottom: 20px; 
     280        max-width: 632px !important; /* prevent too-wide images from breaking layout */ 
     281        padding: 4px; 
    273282        text-align: center; 
    274         margin-bottom: 20px; 
    275         padding: 4px; 
    276         -moz-border-radius: 0; 
    277         -khtml-border-radius: 0; 
    278         -webkit-border-radius: 0; 
    279         border-radius: 0; 
    280283} 
    281284.wp-caption img { 
     
    286289} 
    287290.wp-smiley { 
    288         margin:0; 
    289 } 
     291        margin: 0; 
     292} 
  • trunk/blogs/wp-content/themes/twentyten/footer.php

    r1874 r1902  
    2424 
    2525                        <div id="site-info"> 
    26                                 <a href="<?php echo home_url( '/' ) ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"> 
     26                                <a href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"> 
    2727                                        <?php bloginfo( 'name' ); ?> 
    2828                                </a> 
     
    3131                        <div id="site-generator"> 
    3232                                <?php do_action( 'twentyten_credits' ); ?> 
    33                                 <a href="<?php echo esc_url( __('http://wordpress.org/', 'twentyten') ); ?>" 
    34                                                 title="<?php esc_attr_e('Semantic Personal Publishing Platform', 'twentyten'); ?>" rel="generator"> 
    35                                         <?php printf( __('Proudly powered by %s.', 'twentyten'), 'WordPress' ); ?> 
    36                                 </a> 
     33                                <a href="<?php echo esc_url( __( 'http://wordpress.org/', 'twentyten' ) ); ?>" title="<?php esc_attr_e( 'Semantic Personal Publishing Platform', 'twentyten' ); ?>" rel="generator"><?php printf( __( 'Proudly powered by %s.', 'twentyten' ), 'WordPress' ); ?></a> 
    3734                        </div><!-- #site-generator --> 
    3835 
  • trunk/blogs/wp-content/themes/twentyten/functions.php

    r1874 r1902  
    7878        add_editor_style(); 
    7979 
     80        // Post Format support. You can also use the legacy "gallery" or "asides" (note the plural) categories. 
     81        add_theme_support( 'post-formats', array( 'aside', 'gallery' ) ); 
     82 
    8083        // This theme uses post thumbnails 
    8184        add_theme_support( 'post-thumbnails' ); 
     
    102105 
    103106        // Your changeable header business starts here 
    104         define( 'HEADER_TEXTCOLOR', '' ); 
     107        if ( ! defined( 'HEADER_TEXTCOLOR' ) ) 
     108                define( 'HEADER_TEXTCOLOR', '' ); 
     109 
    105110        // No CSS, just IMG call. The %s is a placeholder for the theme template directory URI. 
    106         define( 'HEADER_IMAGE', '%s/images/headers/path.jpg' ); 
     111        if ( ! defined( 'HEADER_IMAGE' ) ) 
     112                define( 'HEADER_IMAGE', '%s/images/headers/path.jpg' ); 
    107113 
    108114        // The height and width of your custom header. You can hook into the theme's own filters to change these values. 
     
    117123 
    118124        // Don't support text inside the header image. 
    119         define( 'NO_HEADER_TEXT', true ); 
     125        if ( ! defined( 'NO_HEADER_TEXT' ) ) 
     126                define( 'NO_HEADER_TEXT', true ); 
    120127 
    121128        // Add a way for the custom header to be styled in the admin panel that controls 
     
    276283 * Remove inline styles printed when the gallery shortcode is used. 
    277284 * 
    278  * Galleries are styled by the theme in Twenty Ten's style.css. 
    279  * 
    280  * @since Twenty Ten 1.0 
     285 * Galleries are styled by the theme in Twenty Ten's style.css. This is just 
     286 * a simple filter call that tells WordPress to not use the default styles. 
     287 * 
     288 * @since Twenty Ten 1.2 
     289 */ 
     290add_filter( 'use_default_gallery_style', '__return_false' ); 
     291 
     292/** 
     293 * Deprecated way to remove inline styles printed when the gallery shortcode is used. 
     294 * 
     295 * This function is no longer needed or used. Use the use_default_gallery_style 
     296 * filter instead, as seen above. 
     297 * 
     298 * @since Twenty Ten 1.0 
     299 * @deprecated Deprecated in Twenty Ten 1.2 for WordPress 3.1 
     300 * 
    281301 * @return string The gallery style filter, with the styles themselves removed. 
    282302 */ 
     
    284304        return preg_replace( "#<style type='text/css'>(.*?)</style>#s", '', $css ); 
    285305} 
    286 add_filter( 'gallery_style', 'twentyten_remove_gallery_css' ); 
     306// Backwards compatibility with WordPress 3.0. 
     307if ( version_compare( $GLOBALS['wp_version'], '3.1', '<' ) ) 
     308        add_filter( 'gallery_style', 'twentyten_remove_gallery_css' ); 
    287309 
    288310if ( ! function_exists( 'twentyten_comment' ) ) : 
     
    309331                </div><!-- .comment-author .vcard --> 
    310332                <?php if ( $comment->comment_approved == '0' ) : ?> 
    311                         <em><?php _e( 'Your comment is awaiting moderation.', 'twentyten' ); ?></em> 
     333                        <em class="comment-awaiting-moderation"><?php _e( 'Your comment is awaiting moderation.', 'twentyten' ); ?></em> 
    312334                        <br /> 
    313335                <?php endif; ?> 
     
    333355        ?> 
    334356        <li class="post pingback"> 
    335                 <p><?php _e( 'Pingback:', 'twentyten' ); ?> <?php comment_author_link(); ?><?php edit_comment_link( __('(Edit)', 'twentyten'), ' ' ); ?></p> 
     357                <p><?php _e( 'Pingback:', 'twentyten' ); ?> <?php comment_author_link(); ?><?php edit_comment_link( __( '(Edit)', 'twentyten' ), ' ' ); ?></p> 
    336358        <?php 
    337359                        break; 
     
    425447 * function tied to the widgets_init action hook. 
    426448 * 
     449 * This function uses a filter (show_recent_comments_widget_style) new in WordPress 3.1 
     450 * to remove the default style. Using Twenty Ten 1.2 in WordPress 3.0 will show the styles, 
     451 * but they won't have any effect on the widget in default Twenty Ten styling. 
     452 * 
    427453 * @since Twenty Ten 1.0 
    428454 */ 
    429455function twentyten_remove_recent_comments_style() { 
    430         global $wp_widget_factory; 
    431         remove_action( 'wp_head', array( $wp_widget_factory->widgets['WP_Widget_Recent_Comments'], 'recent_comments_style' ) ); 
     456        add_filter( 'show_recent_comments_widget_style', '__return_false' ); 
    432457} 
    433458add_action( 'widgets_init', 'twentyten_remove_recent_comments_style' ); 
     
    435460if ( ! function_exists( 'twentyten_posted_on' ) ) : 
    436461/** 
    437  * Prints HTML with meta information for the current post—date/time and author. 
     462 * Prints HTML with meta information for the current post-date/time and author. 
    438463 * 
    439464 * @since Twenty Ten 1.0 
  • trunk/blogs/wp-content/themes/twentyten/header.php

    r1874 r1902  
    6868                                <?php 
    6969                                        // Check if this is a post or page, if it has a thumbnail, and if it's a big one 
    70                                         if ( is_singular() && 
     70                                        if ( is_singular() && current_theme_supports( 'post-thumbnails' ) && 
    7171                                                        has_post_thumbnail( $post->ID ) && 
    7272                                                        ( /* $src, $width, $height */ $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'post-thumbnail' ) ) && 
    7373                                                        $image[1] >= HEADER_IMAGE_WIDTH ) : 
    7474                                                // Houston, we have a new header image! 
    75                                                 echo get_the_post_thumbnail( $post->ID, 'post-thumbnail' ); 
    76                                         else : ?> 
     75                                                echo get_the_post_thumbnail( $post->ID ); 
     76                                        elseif ( get_header_image() ) : ?> 
    7777                                                <img src="<?php header_image(); ?>" width="<?php echo HEADER_IMAGE_WIDTH; ?>" height="<?php echo HEADER_IMAGE_HEIGHT; ?>" alt="" /> 
    7878                                        <?php endif; ?> 
  • trunk/blogs/wp-content/themes/twentyten/index.php

    r1874 r1902  
    55 * This is the most generic template file in a WordPress theme 
    66 * and one of the two required files for a theme (the other being style.css). 
    7  * It is used to display a page when nothing more specific matches a query.  
     7 * It is used to display a page when nothing more specific matches a query. 
    88 * E.g., it puts together the home page when no home.php file exists. 
    99 * Learn more: http://codex.wordpress.org/Template_Hierarchy 
  • trunk/blogs/wp-content/themes/twentyten/languages/twentyten.pot

    r1877 r1902  
    33msgid "" 
    44msgstr "" 
    5 "Project-Id-Version: Twenty Ten 1.1\n" 
     5"Project-Id-Version: Twenty Ten 1.2\n" 
    66"Report-Msgid-Bugs-To: http://wordpress.org/tag/twentyten\n" 
    7 "POT-Creation-Date: 2011-01-01 21:26:51+00:00\n" 
     7"POT-Creation-Date: 2011-02-22 08:27:25+00:00\n" 
    88"MIME-Version: 1.0\n" 
    99"Content-Type: text/plain; charset=UTF-8\n" 
     
    1313"Language-Team: LANGUAGE <LL@li.org>\n" 
    1414 
    15 #. #-#-#-#-#  twentyten.pot (Twenty Ten 1.1)  #-#-#-#-# 
     15#: loop-attachment.php:21 
     16msgid "Return to %s" 
     17msgstr "" 
     18 
     19#: loop-attachment.php:23 
     20msgid "<span class=\"meta-nav\">&larr;</span> %s" 
     21msgstr "" 
     22 
     23#: loop-attachment.php:32 
     24msgid "<span class=\"%1$s\">By</span> %2$s" 
     25msgstr "" 
     26 
     27#: loop-attachment.php:36 functions.php:476 
     28msgid "View all posts by %s" 
     29msgstr "" 
     30 
     31#: loop-attachment.php:43 
     32msgid "<span class=\"%1$s\">Published</span> %2$s" 
     33msgstr "" 
     34 
     35#: loop-attachment.php:53 
     36msgid "Full size is %s pixels" 
     37msgstr "" 
     38 
     39#: loop-attachment.php:56 
     40msgid "Link to full-size image" 
     41msgstr "" 
     42 
     43#: loop-attachment.php:63 loop-attachment.php:111 loop.php:100 loop.php:123 
     44#: loop.php:165 loop-page.php:30 loop-single.php:56 
     45msgid "Edit" 
     46msgstr "" 
     47 
     48#: loop-attachment.php:104 loop.php:115 loop.php:143 functions.php:248 
     49msgid "Continue reading <span class=\"meta-nav\">&rarr;</span>" 
     50msgstr "" 
     51 
     52#: loop-attachment.php:105 loop.php:144 loop-page.php:29 loop-single.php:34 
     53msgid "Pages:" 
     54msgstr "" 
     55 
     56#. #-#-#-#-#  twentyten.pot (Twenty Ten 1.2)  #-#-#-#-# 
    1657#. Theme URI of the plugin/theme 
    1758#: footer.php:33 
     
    1960msgstr "" 
    2061 
    21 #: footer.php:34 
     62#: footer.php:33 
    2263msgid "Semantic Personal Publishing Platform" 
    2364msgstr "" 
    2465 
    25 #: footer.php:35 
     66#: footer.php:33 
    2667msgid "Proudly powered by %s." 
    2768msgstr "" 
     
    76117msgstr "" 
    77118 
    78 #: loop.php:25 loop.php:173 
     119#: loop.php:25 loop.php:178 
    79120msgid "<span class=\"meta-nav\">&larr;</span> Older posts" 
    80121msgstr "" 
    81122 
    82 #: loop.php:26 loop.php:174 
     123#: loop.php:26 loop.php:179 
    83124msgid "Newer posts <span class=\"meta-nav\">&rarr;</span>" 
    84125msgstr "" 
     
    90131msgstr "" 
    91132 
    92 #: loop.php:60 loop.php:92 
     133#: loop.php:60 loop.php:95 loop.php:96 
    93134msgctxt "gallery category slug" 
    94135msgid "gallery" 
    95136msgstr "" 
    96137 
    97 #: loop.php:62 loop.php:83 loop.php:126 
     138#: loop.php:62 loop.php:83 loop.php:131 
    98139msgid "Permalink to %s" 
    99140msgstr "" 
    100141 
    101142#: loop.php:82 
    102 msgid "This gallery contains <a %1$s>%2$s photos</a>." 
    103 msgstr "" 
    104  
    105 #: loop.php:92 
     143msgid "This gallery contains <a %1$s>%2$s photo</a>." 
     144msgid_plural "This gallery contains <a %1$s>%2$s photos</a>." 
     145msgstr[0] "" 
     146msgstr[1] "" 
     147 
     148#: loop.php:93 
     149msgid "View Galleries" 
     150msgstr "" 
     151 
     152#: loop.php:93 loop.php:96 
     153msgid "More Galleries" 
     154msgstr "" 
     155 
     156#: loop.php:96 
    106157msgid "View posts in the Gallery category" 
    107158msgstr "" 
    108159 
    109 #: loop.php:92 
    110 msgid "More Galleries" 
    111 msgstr "" 
    112  
    113 #: loop.php:94 loop.php:117 loop.php:159 
     160#: loop.php:99 loop.php:122 loop.php:164 
    114161msgid "Leave a comment" 
    115162msgstr "" 
    116163 
    117 #: loop.php:94 loop.php:117 loop.php:159 
     164#: loop.php:99 loop.php:122 loop.php:164 
    118165msgid "1 Comment" 
    119166msgstr "" 
    120167 
    121 #: loop.php:94 loop.php:117 loop.php:159 
     168#: loop.php:99 loop.php:122 loop.php:164 
    122169msgid "% Comments" 
    123170msgstr "" 
    124171 
    125 #: loop.php:95 loop.php:118 loop.php:160 page.php:32 attachment.php:60 
    126 #: attachment.php:107 onecolumn-page.php:27 single.php:53 
    127 msgid "Edit" 
    128 msgstr "" 
    129  
    130 #: loop.php:101 
     172#: loop.php:106 
    131173msgctxt "asides category slug" 
    132174msgid "asides" 
    133175msgstr "" 
    134176 
    135 #: loop.php:110 loop.php:138 functions.php:241 attachment.php:100 
    136 msgid "Continue reading <span class=\"meta-nav\">&rarr;</span>" 
    137 msgstr "" 
    138  
    139 #: loop.php:139 page.php:31 attachment.php:101 onecolumn-page.php:26 
    140 #: single.php:31 
    141 msgid "Pages:" 
    142 msgstr "" 
    143  
    144 #: loop.php:146 
     177#: loop.php:151 
    145178msgid "<span class=\"%1$s\">Posted in</span> %2$s" 
    146179msgstr "" 
    147180 
    148 #: loop.php:155 
     181#: loop.php:160 
    149182msgid "<span class=\"%1$s\">Tagged</span> %2$s" 
    150183msgstr "" 
    151184 
    152 #: functions.php:97 
     185#: functions.php:100 
    153186msgid "Primary Navigation" 
    154187msgstr "" 
    155188 
    156 #: functions.php:133 
     189#: functions.php:140 
    157190msgid "Berries" 
    158191msgstr "" 
    159192 
    160 #: functions.php:139 
     193#: functions.php:146 
    161194msgid "Cherry Blossoms" 
    162195msgstr "" 
    163196 
    164 #: functions.php:145 
     197#: functions.php:152 
    165198msgid "Concave" 
    166199msgstr "" 
    167200 
    168 #: functions.php:151 
     201#: functions.php:158 
    169202msgid "Fern" 
    170203msgstr "" 
    171204 
    172 #: functions.php:157 
     205#: functions.php:164 
    173206msgid "Forest Floor" 
    174207msgstr "" 
    175208 
    176 #: functions.php:163 
     209#: functions.php:170 
    177210msgid "Inkwell" 
    178211msgstr "" 
    179212 
    180 #: functions.php:169 
     213#: functions.php:176 
    181214msgid "Path" 
    182215msgstr "" 
    183216 
    184 #: functions.php:175 
     217#: functions.php:182 
    185218msgid "Sunset" 
    186219msgstr "" 
    187220 
    188 #: functions.php:308 
     221#: functions.php:330 
    189222msgid "%s <span class=\"says\">says:</span>" 
    190223msgstr "" 
    191224 
    192 #: functions.php:311 
     225#: functions.php:333 
    193226msgid "Your comment is awaiting moderation." 
    194227msgstr "" 
    195228 
    196 #: functions.php:318 
     229#: functions.php:340 
    197230msgid "%1$s at %2$s" 
    198231msgstr "" 
    199232 
    200 #: functions.php:318 functions.php:335 
     233#: functions.php:340 functions.php:357 
    201234msgid "(Edit)" 
    202235msgstr "" 
    203236 
    204 #: functions.php:335 
     237#: functions.php:357 
    205238msgid "Pingback:" 
    206239msgstr "" 
    207240 
    208 #: functions.php:354 
     241#: functions.php:376 
    209242msgid "Primary Widget Area" 
    210243msgstr "" 
    211244 
    212 #: functions.php:356 
     245#: functions.php:378 
    213246msgid "The primary widget area" 
    214247msgstr "" 
    215248 
    216 #: functions.php:365 
     249#: functions.php:387 
    217250msgid "Secondary Widget Area" 
    218251msgstr "" 
    219252 
    220 #: functions.php:367 
     253#: functions.php:389 
    221254msgid "The secondary widget area" 
    222255msgstr "" 
    223256 
    224 #: functions.php:376 
     257#: functions.php:398 
    225258msgid "First Footer Widget Area" 
    226259msgstr "" 
    227260 
    228 #: functions.php:378 
     261#: functions.php:400 
    229262msgid "The first footer widget area" 
    230263msgstr "" 
    231264 
    232 #: functions.php:387 
     265#: functions.php:409 
    233266msgid "Second Footer Widget Area" 
    234267msgstr "" 
    235268 
    236 #: functions.php:389 
     269#: functions.php:411 
    237270msgid "The second footer widget area" 
    238271msgstr "" 
    239272 
    240 #: functions.php:398 
     273#: functions.php:420 
    241274msgid "Third Footer Widget Area" 
    242275msgstr "" 
    243276 
    244 #: functions.php:400 
     277#: functions.php:422 
    245278msgid "The third footer widget area" 
    246279msgstr "" 
    247280 
    248 #: functions.php:409 
     281#: functions.php:431 
    249282msgid "Fourth Footer Widget Area" 
    250283msgstr "" 
    251284 
    252 #: functions.php:411 
     285#: functions.php:433 
    253286msgid "The fourth footer widget area" 
    254287msgstr "" 
    255288 
    256 #: functions.php:442 
     289#: functions.php:467 
    257290msgid "" 
    258291"<span class=\"%1$s\">Posted on</span> %2$s <span class=\"meta-sep\">by</" 
     
    260293msgstr "" 
    261294 
    262 #: functions.php:451 attachment.php:33 
    263 msgid "View all posts by %s" 
    264 msgstr "" 
    265  
    266 #: functions.php:468 
     295#: functions.php:493 
    267296msgid "" 
    268297"This entry was posted in %1$s and tagged %2$s. Bookmark the <a href=\"%3$s\" " 
     
    270299msgstr "" 
    271300 
    272 #: functions.php:470 
     301#: functions.php:495 
    273302msgid "" 
    274303"This entry was posted in %1$s. Bookmark the <a href=\"%3$s\" title=" 
     
    276305msgstr "" 
    277306 
    278 #: functions.php:472 
     307#: functions.php:497 
    279308msgid "" 
    280309"Bookmark the <a href=\"%3$s\" title=\"Permalink to %4$s\" rel=\"bookmark" 
     
    294323msgstr "" 
    295324 
    296 #: author.php:37 single.php:40 
     325#: author.php:37 loop-single.php:43 
    297326msgid "About %s" 
    298 msgstr "" 
    299  
    300 #: attachment.php:18 
    301 msgid "Return to %s" 
    302 msgstr "" 
    303  
    304 #: attachment.php:20 
    305 msgid "<span class=\"meta-nav\">&larr;</span> %s" 
    306 msgstr "" 
    307  
    308 #: attachment.php:29 
    309 msgid "<span class=\"%1$s\">By</span> %2$s" 
    310 msgstr "" 
    311  
    312 #: attachment.php:40 
    313 msgid "<span class=\"%1$s\">Published</span> %2$s" 
    314 msgstr "" 
    315  
    316 #: attachment.php:50 
    317 msgid "Full size is %s pixels" 
    318 msgstr "" 
    319  
    320 #: attachment.php:53 
    321 msgid "Link to full-size image" 
    322327msgstr "" 
    323328 
     
    336341msgstr "" 
    337342 
     343#: loop-single.php:21 loop-single.php:61 
     344msgctxt "Previous post link" 
     345msgid "&larr;" 
     346msgstr "" 
     347 
     348#: loop-single.php:22 loop-single.php:62 
     349msgctxt "Next post link" 
     350msgid "&rarr;" 
     351msgstr "" 
     352 
     353#: loop-single.php:47 
     354msgid "View all posts by %s <span class=\"meta-nav\">&rarr;</span>" 
     355msgstr "" 
     356 
    338357#: archive.php:33 
    339358msgid "Daily Archives: <span>%s</span>" 
     
    350369#: archive.php:39 
    351370msgid "Blog Archives" 
    352 msgstr "" 
    353  
    354 #: single.php:18 single.php:58 
    355 msgctxt "Previous post link" 
    356 msgid "&larr;" 
    357 msgstr "" 
    358  
    359 #: single.php:19 single.php:59 
    360 msgctxt "Next post link" 
    361 msgid "&rarr;" 
    362 msgstr "" 
    363  
    364 #: single.php:44 
    365 msgid "View all posts by %s <span class=\"meta-nav\">&rarr;</span>" 
    366371msgstr "" 
    367372 
     
    390395"black, blue, white, two-columns, fixed-width, custom-header, custom-" 
    391396"background, threaded-comments, sticky-post, translation-ready, microformats, " 
    392 "rtl-language-support, editor-style" 
    393 msgstr "" 
     397"rtl-language-support, editor-style, custom-menu" 
     398msgstr "" 
  • trunk/blogs/wp-content/themes/twentyten/loop.php

    r1874 r1902  
    5656<?php while ( have_posts() ) : the_post(); ?> 
    5757 
    58 <?php /* How to display posts in the Gallery category. */ ?> 
     58<?php /* How to display posts of the Gallery format. The gallery category is the old way. */ ?> 
    5959 
    60         <?php if ( in_category( _x('gallery', 'gallery category slug', 'twentyten') ) ) : ?> 
     60        <?php if ( ( function_exists( 'get_post_format' ) && 'gallery' == get_post_format( $post->ID ) ) || in_category( _x( 'gallery', 'gallery category slug', 'twentyten' ) ) ) : ?> 
    6161                <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 
    6262                        <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2> 
     
    6969<?php if ( post_password_required() ) : ?> 
    7070                                <?php the_content(); ?> 
    71 <?php else : ?>                  
    72                                 <?php  
     71<?php else : ?> 
     72                                <?php 
    7373                                        $images = get_children( array( 'post_parent' => $post->ID, 'post_type' => 'attachment', 'post_mime_type' => 'image', 'orderby' => 'menu_order', 'order' => 'ASC', 'numberposts' => 999 ) ); 
    7474                                        if ( $images ) : 
     
    8080                                                        <a class="size-thumbnail" href="<?php the_permalink(); ?>"><?php echo $image_img_tag; ?></a> 
    8181                                                </div><!-- .gallery-thumb --> 
    82                                                 <p><em><?php printf( __( 'This gallery contains <a %1$s>%2$s photos</a>.', 'twentyten' ), 
     82                                                <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' ), 
    8383                                                                'href="' . get_permalink() . '" title="' . sprintf( esc_attr__( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ) . '" rel="bookmark"', 
    84                                                                 $total_images 
     84                                                                number_format_i18n( $total_images ) 
    8585                                                        ); ?></em></p> 
    8686                                <?php endif; ?> 
     
    9090 
    9191                        <div class="entry-utility"> 
    92                                 <a href="<?php echo get_term_link( _x('gallery', 'gallery category slug', 'twentyten'), 'category' ); ?>" title="<?php esc_attr_e( 'View posts in the Gallery category', 'twentyten' ); ?>"><?php _e( 'More Galleries', 'twentyten' ); ?></a> 
     92                        <?php if ( function_exists( 'get_post_format' ) && 'gallery' == get_post_format( $post->ID ) ) : ?> 
     93                                <a href="<?php echo get_post_format_link( 'gallery' ); ?>" title="<?php esc_attr_e( 'View Galleries', 'twentyten' ); ?>"><?php _e( 'More Galleries', 'twentyten' ); ?></a> 
    9394                                <span class="meta-sep">|</span> 
     95                        <?php elseif ( in_category( _x( 'gallery', 'gallery category slug', 'twentyten' ) ) ) : ?> 
     96                                <a href="<?php echo get_term_link( _x( 'gallery', 'gallery category slug', 'twentyten' ), 'category' ); ?>" title="<?php esc_attr_e( 'View posts in the Gallery category', 'twentyten' ); ?>"><?php _e( 'More Galleries', 'twentyten' ); ?></a> 
     97                                <span class="meta-sep">|</span> 
     98                        <?php endif; ?> 
    9499                                <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ); ?></span> 
    95100                                <?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="meta-sep">|</span> <span class="edit-link">', '</span>' ); ?> 
     
    97102                </div><!-- #post-## --> 
    98103 
    99 <?php /* How to display posts in the asides category */ ?> 
     104<?php /* How to display posts of the Aside format. The asides category is the old way. */ ?> 
    100105 
    101         <?php elseif ( in_category( _x('asides', 'asides category slug', 'twentyten') ) ) : ?> 
     106        <?php elseif ( ( function_exists( 'get_post_format' ) && 'aside' == get_post_format( $post->ID ) ) || in_category( _x( 'asides', 'asides category slug', 'twentyten' ) ) ) : ?> 
    102107                <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 
    103108 
  • trunk/blogs/wp-content/themes/twentyten/onecolumn-page.php

    r1874 r1902  
    1818                        <div id="content" role="main"> 
    1919 
    20 <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?> 
    21  
    22                                 <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 
    23                                         <h1 class="entry-title"><?php the_title(); ?></h1> 
    24                                         <div class="entry-content"> 
    25                                                 <?php the_content(); ?> 
    26                                                 <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'twentyten' ), 'after' => '</div>' ) ); ?> 
    27                                                 <?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="edit-link">', '</span>' ); ?> 
    28                                         </div><!-- .entry-content --> 
    29                                 </div><!-- #post-## --> 
    30  
    31                                 <?php comments_template( '', true ); ?> 
    32  
    33 <?php endwhile; ?> 
     20                        <?php 
     21                        /* Run the loop to output the page. 
     22                         * If you want to overload this in a child theme then include a file 
     23                         * called loop-page.php and that will be used instead. 
     24                         */ 
     25                         get_template_part( 'loop', 'page' ); 
     26                        ?> 
    3427 
    3528                        </div><!-- #content --> 
  • trunk/blogs/wp-content/themes/twentyten/page.php

    r1874 r1902  
    1818                        <div id="content" role="main"> 
    1919 
    20 <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?> 
    21  
    22                                 <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 
    23                                         <?php if ( is_front_page() ) { ?> 
    24                                                 <h2 class="entry-title"><?php the_title(); ?></h2> 
    25                                         <?php } else { ?> 
    26                                                 <h1 class="entry-title"><?php the_title(); ?></h1> 
    27                                         <?php } ?> 
    28  
    29                                         <div class="entry-content"> 
    30                                                 <?php the_content(); ?> 
    31                                                 <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'twentyten' ), 'after' => '</div>' ) ); ?> 
    32                                                 <?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="edit-link">', '</span>' ); ?> 
    33                                         </div><!-- .entry-content --> 
    34                                 </div><!-- #post-## --> 
    35  
    36                                 <?php comments_template( '', true ); ?> 
    37  
    38 <?php endwhile; ?> 
     20                        <?php 
     21                        /* Run the loop to output the page. 
     22                         * If you want to overload this in a child theme then include a file 
     23                         * called loop-page.php and that will be used instead. 
     24                         */ 
     25                        get_template_part( 'loop', 'page' ); 
     26                        ?> 
    3927 
    4028                        </div><!-- #content --> 
  • trunk/blogs/wp-content/themes/twentyten/rtl.css

    r1874 r1902  
    9595 
    9696/* Text elements */ 
    97 ul { 
     97ul, ol { 
    9898        margin: 0 1.5em 18px 0; 
    9999} 
     
    121121        font-style: normal; 
    122122} 
     123#branding img { 
     124        float: right; 
     125} 
    123126 
    124127/* =Menu 
  • trunk/blogs/wp-content/themes/twentyten/sidebar.php

    r1874 r1902  
    1919         */ 
    2020        if ( ! dynamic_sidebar( 'primary-widget-area' ) ) : ?> 
    21          
     21 
    2222                        <li id="search" class="widget-container widget_search"> 
    2323                                <?php get_search_form(); ?> 
  • trunk/blogs/wp-content/themes/twentyten/single.php

    r1874 r1902  
    1313                        <div id="content" role="main"> 
    1414 
    15 <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?> 
    16  
    17                                 <div id="nav-above" class="navigation"> 
    18                                         <div class="nav-previous"><?php previous_post_link( '%link', '<span class="meta-nav">' . _x( '&larr;', 'Previous post link', 'twentyten' ) . '</span> %title' ); ?></div> 
    19                                         <div class="nav-next"><?php next_post_link( '%link', '%title <span class="meta-nav">' . _x( '&rarr;', 'Next post link', 'twentyten' ) . '</span>' ); ?></div> 
    20                                 </div><!-- #nav-above --> 
    21  
    22                                 <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 
    23                                         <h1 class="entry-title"><?php the_title(); ?></h1> 
    24  
    25                                         <div class="entry-meta"> 
    26                                                 <?php twentyten_posted_on(); ?> 
    27                                         </div><!-- .entry-meta --> 
    28  
    29                                         <div class="entry-content"> 
    30                                                 <?php the_content(); ?> 
    31                                                 <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'twentyten' ), 'after' => '</div>' ) ); ?> 
    32                                         </div><!-- .entry-content --> 
    33  
    34 <?php if ( get_the_author_meta( 'description' ) ) : // If a user has filled out their description, show a bio on their entries  ?> 
    35                                         <div id="entry-author-info"> 
    36                                                 <div id="author-avatar"> 
    37                                                         <?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'twentyten_author_bio_avatar_size', 60 ) ); ?> 
    38                                                 </div><!-- #author-avatar --> 
    39                                                 <div id="author-description"> 
    40                                                         <h2><?php printf( esc_attr__( 'About %s', 'twentyten' ), get_the_author() ); ?></h2> 
    41                                                         <?php the_author_meta( 'description' ); ?> 
    42                                                         <div id="author-link"> 
    43                                                                 <a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>"> 
    44                                                                         <?php printf( __( 'View all posts by %s <span class="meta-nav">&rarr;</span>', 'twentyten' ), get_the_author() ); ?> 
    45                                                                 </a> 
    46                                                         </div><!-- #author-link --> 
    47                                                 </div><!-- #author-description --> 
    48                                         </div><!-- #entry-author-info --> 
    49 <?php endif; ?> 
    50  
    51                                         <div class="entry-utility"> 
    52                                                 <?php twentyten_posted_in(); ?> 
    53                                                 <?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="edit-link">', '</span>' ); ?> 
    54                                         </div><!-- .entry-utility --> 
    55                                 </div><!-- #post-## --> 
    56  
    57                                 <div id="nav-below" class="navigation"> 
    58                                         <div class="nav-previous"><?php previous_post_link( '%link', '<span class="meta-nav">' . _x( '&larr;', 'Previous post link', 'twentyten' ) . '</span> %title' ); ?></div> 
    59                                         <div class="nav-next"><?php next_post_link( '%link', '%title <span class="meta-nav">' . _x( '&rarr;', 'Next post link', 'twentyten' ) . '</span>' ); ?></div> 
    60                                 </div><!-- #nav-below --> 
    61  
    62                                 <?php comments_template( '', true ); ?> 
    63  
    64 <?php endwhile; // end of the loop. ?> 
     15                        <?php 
     16                        /* Run the loop to output the post. 
     17                         * If you want to overload this in a child theme then include a file 
     18                         * called loop-single.php and that will be used instead. 
     19                         */ 
     20                        get_template_part( 'loop', 'single' ); 
     21                        ?> 
    6522 
    6623                        </div><!-- #content --> 
  • trunk/blogs/wp-content/themes/twentyten/style.css

    r1874 r1902  
    44Description: 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. 
    55Author: the WordPress team 
    6 Version: 1.1 
    7 Tags: black, blue, white, two-columns, fixed-width, custom-header, custom-background, threaded-comments, sticky-post, translation-ready, microformats, rtl-language-support, editor-style 
     6Version: 1.2 
     7License: GNU General Public License 
     8License URI: license.txt 
     9Tags: black, blue, white, two-columns, fixed-width, custom-header, custom-background, threaded-comments, sticky-post, translation-ready, microformats, rtl-language-support, editor-style, custom-menu 
    810*/ 
    911 
     
    140142.reply, 
    141143.widget-title, 
    142 .wp-caption-text, 
     144.wp-caption-text { 
     145        font-family: "Helvetica Neue", Arial, Helvetica, "Nimbus Sans L", sans-serif; 
     146} 
    143147input[type=submit] { 
    144148        font-family: "Helvetica Neue", Arial, Helvetica, "Nimbus Sans L", sans-serif; 
     
    351355        float: right; 
    352356        font-style: italic; 
    353         margin: 14px 0 18px 0; 
     357        margin: 15px 0 18px 0; 
    354358        width: 220px; 
    355359} 
     
    359363        border-top: 4px solid #000; 
    360364        border-bottom: 1px solid #000; 
    361         clear: both; 
    362365        display: block; 
     366        float: left; 
    363367} 
    364368 
     
    637641} 
    638642.page-link { 
     643        clear: both; 
    639644        color: #000; 
    640645        font-weight: bold; 
     
    711716-------------------------------------------------------------- */ 
    712717 
     718.home #content .format-aside p, 
    713719.home #content .category-asides p { 
    714720        font-size: 14px; 
     
    717723        margin-top: 0; 
    718724} 
     725.home .hentry.format-aside, 
    719726.home .hentry.category-asides { 
    720727        padding: 0; 
    721728} 
     729.home #content .format-aside .entry-content, 
    722730.home #content .category-asides .entry-content { 
    723731        padding-top: 0; 
     
    728736-------------------------------------------------------------- */ 
    729737 
     738.format-gallery .size-thumbnail img, 
    730739.category-gallery .size-thumbnail img { 
    731740        border: 10px solid #f1f1f1; 
    732741        margin-bottom: 0; 
    733742} 
     743.format-gallery .gallery-thumb, 
    734744.category-gallery .gallery-thumb { 
    735745        float: left; 
     
    737747        margin-top: -4px; 
    738748} 
     749.home #content .format-gallery .entry-utility, 
    739750.home #content .category-gallery .entry-utility { 
    740751        padding-top: 4px; 
     
    760771-------------------------------------------------------------- */ 
    761772 
    762 #content img { 
    763         margin: 0; 
    764         height: auto; 
    765         max-width: 640px; 
    766         width: auto; 
    767 } 
    768 #content .attachment img { 
    769         max-width: 900px; 
    770 } 
    771 #content .alignleft, 
    772 #content img.alignleft { 
     773/* 
     774Resize images to fit the main content area. 
     775- Applies only to images uploaded via WordPress by targeting size-* classes. 
     776- Other images will be left alone. Use "size-auto" class to apply to other images. 
     777*/ 
     778img.size-auto, 
     779img.size-full, 
     780img.size-large, 
     781img.size-medium, 
     782.attachment img { 
     783        max-width: 100%; /* When images are too wide for containing element, force them to fit. */ 
     784        height: auto; /* Override height to match resized width for correct aspect ratio. */ 
     785} 
     786.alignleft, 
     787img.alignleft { 
    773788        display: inline; 
    774789        float: left; 
     
    776791        margin-top: 4px; 
    777792} 
    778 #content .alignright, 
    779 #content img.alignright { 
     793.alignright, 
     794img.alignright { 
    780795        display: inline; 
    781796        float: right; 
     
    783798        margin-top: 4px; 
    784799} 
    785 #content .aligncenter, 
    786 #content img.aligncenter { 
     800.aligncenter, 
     801img.aligncenter { 
    787802        clear: both; 
    788803        display: block; 
     
    790805        margin-right: auto; 
    791806} 
    792 #content img.alignleft, 
    793 #content img.alignright, 
    794 #content img.aligncenter { 
     807img.alignleft, 
     808img.alignright, 
     809img.aligncenter { 
    795810        margin-bottom: 12px; 
    796811} 
    797 #content .wp-caption { 
     812.wp-caption { 
    798813        background: #f1f1f1; 
    799814        line-height: 18px; 
    800815        margin-bottom: 20px; 
     816        max-width: 632px !important; /* prevent too-wide images from breaking layout */ 
    801817        padding: 4px; 
    802818        text-align: center; 
    803819} 
    804 #content .wp-caption img { 
     820.wp-caption img { 
    805821        margin: 5px 5px 0; 
    806822} 
    807 #content .wp-caption p.wp-caption-text { 
     823.wp-caption p.wp-caption-text { 
    808824        color: #888; 
    809825        font-size: 12px; 
    810826        margin: 5px; 
    811827} 
    812 #content .wp-smiley { 
     828.wp-smiley { 
    813829        margin: 0; 
    814830} 
    815 #content .gallery { 
     831.gallery { 
    816832        margin: 0 auto 18px; 
    817833} 
    818 #content .gallery .gallery-item { 
     834.gallery .gallery-item { 
    819835        float: left; 
    820836        margin-top: 0; 
     
    822838        width: 33%; 
    823839} 
    824 #content .gallery img { 
     840.gallery-columns-2 .gallery-item { 
     841        width: 50%; 
     842} 
     843.gallery-columns-4 .gallery-item { 
     844        width: 25%; 
     845} 
     846.gallery img { 
    825847        border: 2px solid #cfcfcf; 
    826848} 
    827 #content .gallery .gallery-caption { 
     849.gallery-columns-2 .attachment-medium { 
     850        max-width: 92%; 
     851        height: auto; 
     852} 
     853.gallery-columns-4 .attachment-thumbnail { 
     854        max-width: 84%; 
     855        height: auto; 
     856} 
     857.gallery .gallery-caption { 
    828858        color: #888; 
    829859        font-size: 12px; 
    830860        margin: 0 0 12px; 
    831861} 
    832 #content .gallery dl { 
     862.gallery dl { 
    833863        margin: 0; 
    834864} 
    835 #content .gallery img { 
     865.gallery img { 
    836866        border: 10px solid #f1f1f1; 
    837867} 
    838 #content .gallery br+br { 
     868.gallery br+br { 
    839869        display: none; 
    840870} 
    841 #content .attachment img { /* single attachment images should be centered */ 
     871#content .attachment img {/* single attachment images should be centered */ 
    842872        display: block; 
    843873        margin: 0 auto; 
     
    10871117        list-style: square; 
    10881118        margin-left: 1.3em; 
     1119} 
     1120.widget-area select { 
     1121        max-width: 100%; 
    10891122} 
    10901123.widget_search #s {/* This keeps the search inputs in line */ 
Note: See TracChangeset for help on using the changeset viewer.