Ticket #17611: 17611b.diff
File 17611b.diff, 6.9 KB (added by , 13 years ago) |
---|
-
wp-content/themes/twentyeleven/header.php
71 71 <div id="page" class="hfeed"> 72 72 <header id="branding" role="banner"> 73 73 <hgroup> 74 <h1 id="site-title"><span><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></span></h1> 75 <h2 id="site-description"><?php bloginfo( 'description' ); ?></h2> 74 <?php $heading_tag = ( is_home() || is_front_page() ) ? 'h1' : 'div'; ?> 75 <<?php echo $heading_tag; ?> id="site-title"><span><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></span> 76 </<?php echo $heading_tag; ?>> 77 <div id="site-description"><?php bloginfo( 'description' ); ?></div> 76 78 </hgroup> 77 79 78 80 <?php … … 110 112 <?php endif; ?> 111 113 112 114 <nav id="access" role="navigation"> 113 < h1 class="assistive-text"><?php _e( 'Main menu', 'twentyeleven' ); ?></h1>115 <div class="assistive-text"><?php _e( 'Main menu', 'twentyeleven' ); ?></div> 114 116 <?php /* Allow screen readers / text browsers to skip the navigation menu and get right to the good stuff. */ ?> 115 117 <div class="skip-link"><a class="assistive-text" href="#content" title="<?php esc_attr_e( 'Skip to primary content', 'twentyeleven' ); ?>"><?php _e( 'Skip to primary content', 'twentyeleven' ); ?></a></div> 116 118 <div class="skip-link"><a class="assistive-text" href="#secondary" title="<?php esc_attr_e( 'Skip to secondary content', 'twentyeleven' ); ?>"><?php _e( 'Skip to secondary content', 'twentyeleven' ); ?></a></div> -
wp-content/themes/twentyeleven/sidebar.php
16 16 <?php if ( ! dynamic_sidebar( 'sidebar-1' ) ) : ?> 17 17 18 18 <aside id="archives" class="widget"> 19 <h 1 class="widget-title"><?php _e( 'Archives', 'twentyeleven' ); ?></h1>19 <h3 class="widget-title"><?php _e( 'Archives', 'twentyeleven' ); ?></h3> 20 20 <ul> 21 21 <?php wp_get_archives( array( 'type' => 'monthly' ) ); ?> 22 22 </ul> 23 23 </aside> 24 24 25 25 <aside id="meta" class="widget"> 26 <h 1 class="widget-title"><?php _e( 'Meta', 'twentyeleven' ); ?></h1>26 <h3 class="widget-title"><?php _e( 'Meta', 'twentyeleven' ); ?></h3> 27 27 <ul> 28 28 <?php wp_register(); ?> 29 29 <li><?php wp_loginout(); ?></li> -
wp-content/themes/twentyeleven/functions.php
372 372 'id' => 'sidebar-1', 373 373 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 374 374 'after_widget' => "</aside>", 375 'before_title' => '<h 1class="widget-title">',376 'after_title' => '</h 1>',375 'before_title' => '<h3 class="widget-title">', 376 'after_title' => '</h3>', 377 377 ) ); 378 378 379 379 register_sidebar( array( … … 382 382 'description' => __( 'The sidebar for the optional Showcase Template', 'twentyeleven' ), 383 383 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 384 384 'after_widget' => "</aside>", 385 'before_title' => '<h 1class="widget-title">',386 'after_title' => '</h 1>',385 'before_title' => '<h3 class="widget-title">', 386 'after_title' => '</h3>', 387 387 ) ); 388 388 389 389 register_sidebar( array( … … 392 392 'description' => __( 'An optional widget area for your site footer', 'twentyeleven' ), 393 393 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 394 394 'after_widget' => "</aside>", 395 'before_title' => '<h 1class="widget-title">',396 'after_title' => '</h 1>',395 'before_title' => '<h3 class="widget-title">', 396 'after_title' => '</h3>', 397 397 ) ); 398 398 399 399 register_sidebar( array( … … 402 402 'description' => __( 'An optional widget area for your site footer', 'twentyeleven' ), 403 403 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 404 404 'after_widget' => "</aside>", 405 'before_title' => '<h 1class="widget-title">',406 'after_title' => '</h 1>',405 'before_title' => '<h3 class="widget-title">', 406 'after_title' => '</h3>', 407 407 ) ); 408 408 409 409 register_sidebar( array( … … 412 412 'description' => __( 'An optional widget area for your site footer', 'twentyeleven' ), 413 413 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 414 414 'after_widget' => "</aside>", 415 'before_title' => '<h 1class="widget-title">',416 'after_title' => '</h 1>',415 'before_title' => '<h3 class="widget-title">', 416 'after_title' => '</h3>', 417 417 ) ); 418 418 } 419 419 add_action( 'widgets_init', 'twentyeleven_widgets_init' ); … … 426 426 427 427 if ( $wp_query->max_num_pages > 1 ) : ?> 428 428 <nav id="<?php echo $nav_id; ?>"> 429 < h1 class="assistive-text"><?php _e( 'Post navigation', 'twentyeleven' ); ?></h1>429 <div class="assistive-text"><?php _e( 'Post navigation', 'twentyeleven' ); ?></div> 430 430 <div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">←</span> Older posts', 'twentyeleven' ) ); ?></div> 431 431 <div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">→</span>', 'twentyeleven' ) ); ?></div> 432 432 </nav><!-- #nav-above --> -
wp-content/themes/twentyeleven/comments.php
28 28 <?php // You can start editing here -- including this comment! ?> 29 29 30 30 <?php if ( have_comments() ) : ?> 31 <h 2id="comments-title">31 <h3 id="comments-title"> 32 32 <?php 33 33 printf( _n( 'One thought on “%2$s”', '%1$s thoughts on “%2$s”', get_comments_number(), 'twentyeleven' ), 34 34 number_format_i18n( get_comments_number() ), '<span>' . get_the_title() . '</span>' ); 35 35 ?> 36 </h 2>36 </h3> 37 37 38 38 <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?> 39 39 <nav id="comment-nav-above"> … … 57 57 58 58 <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?> 59 59 <nav id="comment-nav-below"> 60 < h1 class="assistive-text"><?php _e( 'Comment navigation', 'twentyeleven' ); ?></h1>60 <div class="assistive-text"><?php _e( 'Comment navigation', 'twentyeleven' ); ?></div> 61 61 <div class="nav-previous"><?php previous_comments_link( __( '← Older Comments', 'twentyeleven' ) ); ?></div> 62 62 <div class="nav-next"><?php next_comments_link( __( 'Newer Comments →', 'twentyeleven' ) ); ?></div> 63 63 </nav>