Make WordPress Core


Ignore:
Timestamp:
05/21/2010 06:56:27 PM (16 years ago)
Author:
nacin
Message:

In Twenty Ten, final pass on inline docs et al. props jorbin, zeo. fixes #12695.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentyten/functions.php

    r14709 r14786  
    3232 * </code>
    3333 *
    34  * For more information on hooks, see http://codex.wordpress.org/Plugin_API.
     34 * For more information on hooks, actions, and filters, see http://codex.wordpress.org/Plugin_API.
    3535 *
    3636 * @package WordPress
    … …  
    111111
    112112        // We'll be using post thumbnails for custom header images on posts and pages.
    113         // We want them to be 940 pixels wide by 198 pixels tall (larger images will be auto-cropped to fit).
     113        // We want them to be 940 pixels wide by 198 pixels tall.
     114        // Larger images will be auto-cropped to fit, smaller ones will be ignored. See header.php.
    114115        set_post_thumbnail_size( HEADER_IMAGE_WIDTH, HEADER_IMAGE_HEIGHT, true );
    115116
    … …  
    134135                        'url' => '%s/images/headers/cherryblossoms.jpg',
    135136                        'thumbnail_url' => '%s/images/headers/cherryblossoms-thumbnail.jpg',
    136                         /* translators: header image description */                     
     137                        /* translators: header image description */
    137138                        'description' => __( 'Cherry Blossoms', 'twentyten' )
    138139                ),
    … …  
    140141                        'url' => '%s/images/headers/concave.jpg',
    141142                        'thumbnail_url' => '%s/images/headers/concave-thumbnail.jpg',
    142                         /* translators: header image description */                     
     143                        /* translators: header image description */
    143144                        'description' => __( 'Concave', 'twentyten' )
    144145                ),
    … …  
    146147                        'url' => '%s/images/headers/fern.jpg',
    147148                        'thumbnail_url' => '%s/images/headers/fern-thumbnail.jpg',
    148                         /* translators: header image description */                     
     149                        /* translators: header image description */
    149150                        'description' => __( 'Fern', 'twentyten' )
    150151                ),
    … …  
    152153                        'url' => '%s/images/headers/forestfloor.jpg',
    153154                        'thumbnail_url' => '%s/images/headers/forestfloor-thumbnail.jpg',
    154                         /* translators: header image description */                     
     155                        /* translators: header image description */
    155156                        'description' => __( 'Forest Floor', 'twentyten' )
    156157                ),
    … …  
    158159                        'url' => '%s/images/headers/inkwell.jpg',
    159160                        'thumbnail_url' => '%s/images/headers/inkwell-thumbnail.jpg',
    160                         /* translators: header image description */                     
     161                        /* translators: header image description */
    161162                        'description' => __( 'Inkwell', 'twentyten' )
    162163                ),
    … …  
    164165                        'url' => '%s/images/headers/path.jpg',
    165166                        'thumbnail_url' => '%s/images/headers/path-thumbnail.jpg',
    166                         /* translators: header image description */                     
     167                        /* translators: header image description */
    167168                        'description' => __( 'Path', 'twentyten' )
    168169                ),
    … …  
    170171                        'url' => '%s/images/headers/sunset.jpg',
    171172                        'thumbnail_url' => '%s/images/headers/sunset-thumbnail.jpg',
    172                         /* translators: header image description */                     
     173                        /* translators: header image description */
    173174                        'description' => __( 'Sunset', 'twentyten' )
    174175                )
    … …  
    289290                        <?php echo get_avatar( $comment, 40 ); ?>
    290291                        <?php printf( __( '%s <span class="says">says:</span>', 'twentyten' ), sprintf( '<cite class="fn">%s</cite>', get_comment_author_link() ) ); ?>
    291                 </div>
     292                </div><!-- .comment-author .vcard -->
    292293                <?php if ( $comment->comment_approved == '0' ) : ?>
    293294                        <em><?php _e( 'Your comment is awaiting moderation.', 'twentyten' ); ?></em>
    … …  
    300301                                printf( __( '%1$s at %2$s', 'twentyten' ), get_comment_date(),  get_comment_time() ); ?></a><?php edit_comment_link( __( '(Edit)', 'twentyten' ), ' ' );
    301302                        ?>
    302                 </div>
     303                </div><!-- .comment-meta .commentmetadata -->
    303304
    304305                <div class="comment-body"><?php comment_text(); ?></div>
    … …  
    306307                <div class="reply">
    307308                        <?php comment_reply_link( array_merge( $args, array( 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>
    308                 </div>
    309         </div>
     309                </div><!-- .reply -->
     310        </div><!-- #comment-##  -->
    310311
    311312        <?php else : ?>
    … …  
    326327 */
    327328function twentyten_widgets_init() {
    328         // Area 1
     329        // Area 1, located at the top of the sidebar.
    329330        register_sidebar( array(
    330331                'name' => __( 'Primary Widget Area', 'twentyten' ),
    … …  
    337338        ) );
    338339
    339         // Area 2
     340        // Area 2, located below the Primary Widget Area in the sidebar. Empty by default.
    340341        register_sidebar( array(
    341342                'name' => __( 'Secondary Widget Area', 'twentyten' ),
    … …  
    348349        ) );
    349350
    350         // Area 3
     351        // Area 3, located in the footer. Empty by default.
    351352        register_sidebar( array(
    352353                'name' => __( 'First Footer Widget Area', 'twentyten' ),
    … …  
    359360        ) );
    360361
    361         // Area 4
     362        // Area 4, located in the footer. Empty by default.
    362363        register_sidebar( array(
    363364                'name' => __( 'Second Footer Widget Area', 'twentyten' ),
    … …  
    370371        ) );
    371372
    372         // Area 5
     373        // Area 5, located in the footer. Empty by default.
    373374        register_sidebar( array(
    374375                'name' => __( 'Third Footer Widget Area', 'twentyten' ),
    … …  
    381382        ) );
    382383
    383         // Area 6
     384        // Area 6, located in the footer. Empty by default.
    384385        register_sidebar( array(
    385386                'name' => __( 'Fourth Footer Widget Area', 'twentyten' ),
    … …  
    423424                        get_the_date()
    424425                ),
    425                 sprintf( '</span> <span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s">%3$s</a></span>', 
     426                sprintf( '</span> <span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s">%3$s</a></span>',
    426427                        get_author_posts_url( get_the_author_meta( 'ID' ) ),
    427428                        sprintf( esc_attr__( 'View all posts by %s', 'twentyten' ), get_the_author() ),
    … …  
    429430                )
    430431        );
    431        
    432432}
    433433endif;
    … …  
    454454                get_permalink(),
    455455                the_title_attribute( 'echo=0' )
    456         );     
    457 }
    458 endif;
     456        );
     457}
     458endif;
Note: See TracChangeset for help on using the changeset viewer.