WordPress.org

Make WordPress Core

Changeset 14549


Ignore:
Timestamp:
05/10/10 21:10:12 (5 years ago)
Author:
westi
Message:

Add ARIA landmark roles to TwentyTen. Fixes #13055 props demetris.

Location:
trunk/wp-content/themes/twentyten
Files:
15 edited

Legend:

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

    r13885 r14549  
    1212 
    1313    <div id="container"> 
    14         <div id="content"> 
     14        <div id="content" role="main"> 
    1515 
    1616            <div id="post-0" class="post error404 not-found"> 
  • trunk/wp-content/themes/twentyten/archive.php

    r14544 r14549  
    1717 
    1818        <div id="container"> 
    19             <div id="content"> 
     19            <div id="content" role="main"> 
    2020 
    2121<?php the_post(); ?> 
  • trunk/wp-content/themes/twentyten/attachment.php

    r14541 r14549  
    1212 
    1313        <div id="container"> 
    14             <div id="content"> 
     14            <div id="content" role="main"> 
    1515 
    1616<?php the_post(); ?> 
  • trunk/wp-content/themes/twentyten/author.php

    r14533 r14549  
    1212 
    1313        <div id="container"> 
    14             <div id="content"> 
     14            <div id="content" role="main"> 
    1515 
    1616<?php the_post(); ?> 
  • trunk/wp-content/themes/twentyten/category.php

    r14544 r14549  
    1212 
    1313        <div id="container"> 
    14             <div id="content"> 
     14            <div id="content" role="main"> 
    1515 
    1616                <h1 class="page-title"><?php 
  • trunk/wp-content/themes/twentyten/footer.php

    r14523 r14549  
    1313    </div><!-- #main --> 
    1414 
    15     <div id="footer"> 
     15    <div id="footer" role="contentinfo"> 
    1616        <div id="colophon"> 
    1717 
  • trunk/wp-content/themes/twentyten/header.php

    r14544 r14549  
    4646    <div id="header"> 
    4747        <div id="masthead"> 
    48             <div id="branding"> 
     48            <div id="branding" role="banner"> 
    4949                <?php $heading_tag = ( is_home() || is_front_page() )? 'h1' : 'div'; ?> 
    5050                <<?php echo $heading_tag; ?> id="site-title"> 
     
    6868            </div><!-- #branding --> 
    6969 
    70             <div id="access"> 
     70            <div id="access" role="navigation"> 
    7171                <div class="skip-link screen-reader-text"><a href="#content" title="<?php esc_attr_e( 'Skip to content', 'twentyten' ); ?>"><?php _e( 'Skip to content', 'twentyten' ); ?></a></div> 
    7272                <?php wp_nav_menu( array( 'sort_column' => 'menu_order', 'container_class' => 'menu-header' ) ); ?> 
  • trunk/wp-content/themes/twentyten/index.php

    r14433 r14549  
    1818 
    1919        <div id="container"> 
    20             <div id="content"> 
     20            <div id="content" role="main"> 
    2121 
    2222            <?php 
  • trunk/wp-content/themes/twentyten/onecolumn-page.php

    r13885 r14549  
    1515 
    1616        <div id="container" class="onecolumn"> 
    17             <div id="content"> 
     17            <div id="content" role="main"> 
    1818 
    1919<?php the_post(); ?> 
  • trunk/wp-content/themes/twentyten/page.php

    r13885 r14549  
    1717 
    1818        <div id="container"> 
    19             <div id="content"> 
     19            <div id="content" role="main"> 
    2020 
    2121<?php the_post(); ?> 
  • trunk/wp-content/themes/twentyten/search.php

    r13885 r14549  
    1212 
    1313        <div id="container"> 
    14             <div id="content"> 
     14            <div id="content" role="main"> 
    1515 
    1616<?php if ( have_posts() ) : ?> 
  • trunk/wp-content/themes/twentyten/sidebar-footer.php

    r13885 r14549  
    1717    ) : 
    1818?> 
    19             <div id="footer-widget-area"> 
     19            <div id="footer-widget-area" role="complementary"> 
    2020<?php if ( is_active_sidebar( 'first-footer-widget-area' ) ) : ?> 
    2121                    <div id="first" class="widget-area"> 
  • trunk/wp-content/themes/twentyten/sidebar.php

    r13885 r14549  
    99?> 
    1010 
    11         <div id="primary" class="widget-area"> 
     11        <div id="primary" class="widget-area" role="complementary"> 
    1212            <ul class="xoxo"> 
    1313<?php if ( ! dynamic_sidebar( 'primary-widget-area' ) ) : // begin primary widget area ?> 
     
    3636 
    3737<?php if ( is_active_sidebar( 'secondary-widget-area' ) ) : // Nothing here by default and design ?> 
    38         <div id="secondary" class="widget-area"> 
     38        <div id="secondary" class="widget-area" role="complementary"> 
    3939            <ul class="xoxo"> 
    4040                <?php dynamic_sidebar( 'secondary-widget-area' ); ?> 
  • trunk/wp-content/themes/twentyten/single.php

    r14544 r14549  
    1212 
    1313        <div id="container"> 
    14             <div id="content"> 
     14            <div id="content" role="main"> 
    1515 
    1616<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?> 
  • trunk/wp-content/themes/twentyten/tag.php

    r14544 r14549  
    1212 
    1313        <div id="container"> 
    14             <div id="content"> 
     14            <div id="content" role="main"> 
    1515 
    1616<?php the_post(); ?> 
Note: See TracChangeset for help on using the changeset viewer.