Changeset 17739
- Timestamp:
- 04/28/2011 10:13:38 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/themes/twentyeleven/functions.php
r17738 r17739 73 73 function twentyeleven_setup() { 74 74 75 /** 76 * Make theme available for translation 77 * Translations can be filed in the /languages/ directory 75 /* Make Twenty Eleven available for translation. 76 * Translations can be added to the /languages/ directory. 78 77 * If you're building a theme based on Twenty Eleven, use a find and replace 79 * to change 'twentyeleven' to the name of your theme in all the template files 78 * to change 'twentyeleven' to the name of your theme in all the template files. 80 79 */ 81 80 load_theme_textdomain( 'twentyeleven', TEMPLATEPATH . '/languages' ); … … 86 85 require_once( $locale_file ); 87 86 88 /** 89 * Load up our theme options page 90 */ 87 // Load up our theme options page and related code. 91 88 require( dirname( __FILE__ ) . '/inc/theme-options.php' ); 92 89 93 /** 94 * Grab Twenty Eleven's Custom Widgets 95 */ 90 // Grab Twenty Eleven's Epherma widget. 96 91 require( dirname( __FILE__ ) . '/inc/widgets.php' ); 97 92 98 /** 99 * Add default posts and comments RSS feed links to head 100 */ 93 // Add default posts and comments RSS feed links to <head>. 101 94 add_theme_support( 'automatic-feed-links' ); 102 95 103 /** 104 * This theme uses wp_nav_menu() in one location. 105 */ 106 register_nav_menus( array( 107 'primary' => __( 'Primary Menu', 'twentyeleven' ), 108 ) ); 96 // This theme uses wp_nav_menu() in one location. 97 register_nav_menu( 'primary', __( 'Primary Menu', 'twentyeleven' ) ); 109 98 110 99 /** … … 477 466 $count++; 478 467 468 $class = ''; 469 479 470 switch ( $count ) { 480 471 case '1': 481 472 $class = 'one'; 482 473 break; 483 484 474 case '2': 485 475 $class = 'two'; 486 476 break; 487 488 477 case '3': 489 478 $class = 'three'; 490 479 break; 491 492 default: 493 $class = ''; 494 break; 495 } 496 497 if ( '' != $class ) 480 } 481 482 if ( $class ) 498 483 echo 'class="' . $class . '"'; 499 484 } … … 546 531 547 532 <?php if ( $comment->comment_approved == '0' ) : ?> 548 <em ><?php _e( 'Your comment is awaiting moderation.', 'twentyeleven' ); ?></em>533 <em class="comment-awaiting-moderation"><?php _e( 'Your comment is awaiting moderation.', 'twentyeleven' ); ?></em> 549 534 <br /> 550 535 <?php endif; ?>
Note: See TracChangeset
for help on using the changeset viewer.