Add WAI-ARIA landmark roles to default theme. Props peterkz. fixes #9408
git-svn-id: http://svn.automattic.com/wordpress/trunk@10945 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
02c77b8576
commit
08ae2f5ee2
|
@ -7,7 +7,7 @@
|
|||
get_header();
|
||||
?>
|
||||
|
||||
<div id="content" class="narrowcolumn">
|
||||
<div id="content" class="narrowcolumn" role="main">
|
||||
|
||||
<?php if (have_posts()) : ?>
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
?>
|
||||
|
||||
<hr />
|
||||
<div id="footer">
|
||||
<div id="footer" role="contentinfo">
|
||||
<!-- 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. -->
|
||||
<p>
|
||||
<?php bloginfo('name'); ?> is proudly powered by
|
||||
|
|
|
@ -36,7 +36,7 @@ if ( !empty($withcomments) && !is_single() ) {
|
|||
<div id="page">
|
||||
|
||||
|
||||
<div id="header">
|
||||
<div id="header" role="banner">
|
||||
<div id="headerimg">
|
||||
<h1><a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a></h1>
|
||||
<div class="description"><?php bloginfo('description'); ?></div>
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
get_header(); ?>
|
||||
|
||||
<div id="content" class="narrowcolumn">
|
||||
<div id="content" class="narrowcolumn" role="main">
|
||||
|
||||
<?php if (have_posts()) : ?>
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
get_header(); ?>
|
||||
|
||||
<div id="content" class="narrowcolumn">
|
||||
<div id="content" class="narrowcolumn" role="main">
|
||||
|
||||
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
|
||||
<div class="post" id="post-<?php the_ID(); ?>">
|
||||
|
@ -24,4 +24,4 @@ get_header(); ?>
|
|||
|
||||
<?php get_sidebar(); ?>
|
||||
|
||||
<?php get_footer(); ?>
|
||||
<?php get_footer(); ?>
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
get_header(); ?>
|
||||
|
||||
<div id="content" class="narrowcolumn">
|
||||
<div id="content" class="narrowcolumn" role="main">
|
||||
|
||||
<?php if (have_posts()) : ?>
|
||||
|
||||
|
@ -45,4 +45,4 @@ get_header(); ?>
|
|||
|
||||
<?php get_sidebar(); ?>
|
||||
|
||||
<?php get_footer(); ?>
|
||||
<?php get_footer(); ?>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* @subpackage Default_Theme
|
||||
*/
|
||||
?>
|
||||
<div id="sidebar">
|
||||
<div id="sidebar" role="complementary">
|
||||
<ul>
|
||||
<?php /* Widgetized sidebar, if you have the plugin installed. */
|
||||
if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?>
|
||||
|
@ -47,8 +47,10 @@
|
|||
|
||||
<?php } ?>
|
||||
|
||||
</li> <?php }?>
|
||||
|
||||
</li>
|
||||
<?php }?>
|
||||
</ul>
|
||||
<ul role="navigation">
|
||||
<?php wp_list_pages('title_li=<h2>Pages</h2>' ); ?>
|
||||
|
||||
<li><h2>Archives</h2>
|
||||
|
@ -58,7 +60,8 @@
|
|||
</li>
|
||||
|
||||
<?php wp_list_categories('show_count=1&title_li=<h2>Categories</h2>'); ?>
|
||||
|
||||
</ul>
|
||||
<ul>
|
||||
<?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?>
|
||||
<?php wp_list_bookmarks(); ?>
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
get_header();
|
||||
?>
|
||||
|
||||
<div id="content" class="widecolumn">
|
||||
<div id="content" class="widecolumn" role="main">
|
||||
|
||||
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
|
||||
|
||||
|
|
|
@ -118,7 +118,7 @@ function get_search_form() {
|
|||
if ( '' != locate_template(array('searchform.php'), true) )
|
||||
return;
|
||||
|
||||
$form = '<form method="get" id="searchform" action="' . get_option('home') . '/" >
|
||||
$form = '<form role="search" method="get" id="searchform" action="' . get_option('home') . '/" >
|
||||
<div><label class="hidden" for="s">' . __('Search for:') . '</label>
|
||||
<input type="text" value="' . attribute_escape(apply_filters('the_search_query', get_search_query())) . '" name="s" id="s" />
|
||||
<input type="submit" id="searchsubmit" value="'.attribute_escape(__('Search')).'" />
|
||||
|
|
Loading…
Reference in New Issue