WordPress.org

Make WordPress Core

Changeset 10945


Ignore:
Timestamp:
04/16/09 16:42:32 (5 years ago)
Author:
ryan
Message:

Add WAI-ARIA landmark roles to default theme. Props peterkz. fixes #9408

Location:
trunk
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/default/archive.php

    r9577 r10945  
    88?> 
    99 
    10     <div id="content" class="narrowcolumn"> 
     10    <div id="content" class="narrowcolumn" role="main"> 
    1111 
    1212        <?php if (have_posts()) : ?> 
  • trunk/wp-content/themes/default/footer.php

    r8999 r10945  
    77 
    88<hr /> 
    9 <div id="footer"> 
     9<div id="footer" role="contentinfo"> 
    1010<!-- If you'd like to support WordPress, having the "powered by" link somewhere on your blog is the best way; it's our only promotion or advertising. --> 
    1111    <p> 
  • trunk/wp-content/themes/default/header.php

    r10485 r10945  
    3737 
    3838 
    39 <div id="header"> 
     39<div id="header" role="banner"> 
    4040    <div id="headerimg"> 
    4141        <h1><a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a></h1> 
  • trunk/wp-content/themes/default/index.php

    r9234 r10945  
    77get_header(); ?> 
    88 
    9     <div id="content" class="narrowcolumn"> 
     9    <div id="content" class="narrowcolumn" role="main"> 
    1010 
    1111    <?php if (have_posts()) : ?> 
  • trunk/wp-content/themes/default/page.php

    r8999 r10945  
    77get_header(); ?> 
    88 
    9     <div id="content" class="narrowcolumn"> 
     9    <div id="content" class="narrowcolumn" role="main"> 
    1010 
    1111        <?php if (have_posts()) : while (have_posts()) : the_post(); ?> 
  • trunk/wp-content/themes/default/search.php

    r9234 r10945  
    77get_header(); ?> 
    88 
    9     <div id="content" class="narrowcolumn"> 
     9    <div id="content" class="narrowcolumn" role="main"> 
    1010 
    1111    <?php if (have_posts()) : ?> 
  • trunk/wp-content/themes/default/sidebar.php

    r9234 r10945  
    55 */ 
    66?> 
    7     <div id="sidebar"> 
     7    <div id="sidebar" role="complementary"> 
    88        <ul> 
    99            <?php   /* Widgetized sidebar, if you have the plugin installed. */ 
     
    4848            <?php } ?> 
    4949 
    50             </li> <?php }?> 
    51  
     50            </li> 
     51        <?php }?> 
     52        </ul>  
     53        <ul role="navigation"> 
    5254            <?php wp_list_pages('title_li=<h2>Pages</h2>' ); ?> 
    5355 
     
    5961 
    6062            <?php wp_list_categories('show_count=1&title_li=<h2>Categories</h2>'); ?> 
    61  
     63        </ul> 
     64        <ul> 
    6265            <?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?> 
    6366                <?php wp_list_bookmarks(); ?> 
  • trunk/wp-content/themes/default/single.php

    r10690 r10945  
    88?> 
    99 
    10     <div id="content" class="widecolumn"> 
     10    <div id="content" class="widecolumn" role="main"> 
    1111 
    1212    <?php if (have_posts()) : while (have_posts()) : the_post(); ?> 
  • trunk/wp-includes/general-template.php

    r10931 r10945  
    119119        return; 
    120120 
    121     $form = '<form method="get" id="searchform" action="' . get_option('home') . '/" > 
     121    $form = '<form role="search" method="get" id="searchform" action="' . get_option('home') . '/" > 
    122122    <div><label class="hidden" for="s">' . __('Search for:') . '</label> 
    123123    <input type="text" value="' . attribute_escape(apply_filters('the_search_query', get_search_query())) . '" name="s" id="s" /> 
Note: See TracChangeset for help on using the changeset viewer.