Changeset 14786 for trunk/wp-content/themes/twentyten/functions.php
- Timestamp:
- 05/21/2010 06:56:27 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/wp-content/themes/twentyten/functions.php (modified) (21 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/themes/twentyten/functions.php
r14709 r14786 32 32 * </code> 33 33 * 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. 35 35 * 36 36 * @package WordPress … … 111 111 112 112 // 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. 114 115 set_post_thumbnail_size( HEADER_IMAGE_WIDTH, HEADER_IMAGE_HEIGHT, true ); 115 116 … … 134 135 'url' => '%s/images/headers/cherryblossoms.jpg', 135 136 'thumbnail_url' => '%s/images/headers/cherryblossoms-thumbnail.jpg', 136 /* translators: header image description */ 137 /* translators: header image description */ 137 138 'description' => __( 'Cherry Blossoms', 'twentyten' ) 138 139 ), … … 140 141 'url' => '%s/images/headers/concave.jpg', 141 142 'thumbnail_url' => '%s/images/headers/concave-thumbnail.jpg', 142 /* translators: header image description */ 143 /* translators: header image description */ 143 144 'description' => __( 'Concave', 'twentyten' ) 144 145 ), … … 146 147 'url' => '%s/images/headers/fern.jpg', 147 148 'thumbnail_url' => '%s/images/headers/fern-thumbnail.jpg', 148 /* translators: header image description */ 149 /* translators: header image description */ 149 150 'description' => __( 'Fern', 'twentyten' ) 150 151 ), … … 152 153 'url' => '%s/images/headers/forestfloor.jpg', 153 154 'thumbnail_url' => '%s/images/headers/forestfloor-thumbnail.jpg', 154 /* translators: header image description */ 155 /* translators: header image description */ 155 156 'description' => __( 'Forest Floor', 'twentyten' ) 156 157 ), … … 158 159 'url' => '%s/images/headers/inkwell.jpg', 159 160 'thumbnail_url' => '%s/images/headers/inkwell-thumbnail.jpg', 160 /* translators: header image description */ 161 /* translators: header image description */ 161 162 'description' => __( 'Inkwell', 'twentyten' ) 162 163 ), … … 164 165 'url' => '%s/images/headers/path.jpg', 165 166 'thumbnail_url' => '%s/images/headers/path-thumbnail.jpg', 166 /* translators: header image description */ 167 /* translators: header image description */ 167 168 'description' => __( 'Path', 'twentyten' ) 168 169 ), … … 170 171 'url' => '%s/images/headers/sunset.jpg', 171 172 'thumbnail_url' => '%s/images/headers/sunset-thumbnail.jpg', 172 /* translators: header image description */ 173 /* translators: header image description */ 173 174 'description' => __( 'Sunset', 'twentyten' ) 174 175 ) … … 289 290 <?php echo get_avatar( $comment, 40 ); ?> 290 291 <?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 --> 292 293 <?php if ( $comment->comment_approved == '0' ) : ?> 293 294 <em><?php _e( 'Your comment is awaiting moderation.', 'twentyten' ); ?></em> … … 300 301 printf( __( '%1$s at %2$s', 'twentyten' ), get_comment_date(), get_comment_time() ); ?></a><?php edit_comment_link( __( '(Edit)', 'twentyten' ), ' ' ); 301 302 ?> 302 </div> 303 </div><!-- .comment-meta .commentmetadata --> 303 304 304 305 <div class="comment-body"><?php comment_text(); ?></div> … … 306 307 <div class="reply"> 307 308 <?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-## --> 310 311 311 312 <?php else : ?> … … 326 327 */ 327 328 function twentyten_widgets_init() { 328 // Area 1 329 // Area 1, located at the top of the sidebar. 329 330 register_sidebar( array( 330 331 'name' => __( 'Primary Widget Area', 'twentyten' ), … … 337 338 ) ); 338 339 339 // Area 2 340 // Area 2, located below the Primary Widget Area in the sidebar. Empty by default. 340 341 register_sidebar( array( 341 342 'name' => __( 'Secondary Widget Area', 'twentyten' ), … … 348 349 ) ); 349 350 350 // Area 3 351 // Area 3, located in the footer. Empty by default. 351 352 register_sidebar( array( 352 353 'name' => __( 'First Footer Widget Area', 'twentyten' ), … … 359 360 ) ); 360 361 361 // Area 4 362 // Area 4, located in the footer. Empty by default. 362 363 register_sidebar( array( 363 364 'name' => __( 'Second Footer Widget Area', 'twentyten' ), … … 370 371 ) ); 371 372 372 // Area 5 373 // Area 5, located in the footer. Empty by default. 373 374 register_sidebar( array( 374 375 'name' => __( 'Third Footer Widget Area', 'twentyten' ), … … 381 382 ) ); 382 383 383 // Area 6 384 // Area 6, located in the footer. Empty by default. 384 385 register_sidebar( array( 385 386 'name' => __( 'Fourth Footer Widget Area', 'twentyten' ), … … 423 424 get_the_date() 424 425 ), 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>', 426 427 get_author_posts_url( get_the_author_meta( 'ID' ) ), 427 428 sprintf( esc_attr__( 'View all posts by %s', 'twentyten' ), get_the_author() ), … … 429 430 ) 430 431 ); 431 432 432 } 433 433 endif; … … 454 454 get_permalink(), 455 455 the_title_attribute( 'echo=0' ) 456 ); 457 } 458 endif; 456 ); 457 } 458 endif;
Note: See TracChangeset
for help on using the changeset viewer.