Skip to content
Browse files

_s: Use `<main>` element for main content.

  • Loading branch information...
1 parent 1f15c20 commit 810e499b9355e1635da11cde14ad401da3da5d15 @obenland obenland committed Jul 30, 2013
Showing with 22 additions and 21 deletions.
  1. +3 −2 404.php
  2. +2 −2 archive.php
  3. +1 −1 footer.php
  4. +1 −1 header.php
  5. +2 −2 image.php
  6. +1 −1 inc/jetpack.php
  7. +2 −2 index.php
  8. +2 −2 layouts/content-sidebar.css
  9. +2 −2 layouts/sidebar-content.css
  10. +2 −2 page.php
  11. +2 −2 search.php
  12. +2 −2 single.php
View
5 404.php
@@ -7,8 +7,9 @@
get_header(); ?>
+
<div id="primary" class="content-area">
- <div id="content" class="site-content" role="main">
+ <main id="main" class="site-main" role="main">
<section class="error-404 not-found">
<header class="page-header">
@@ -50,7 +51,7 @@
</div><!-- .page-content -->
</section><!-- .error-404 -->
- </div><!-- #content -->
+ </main><!-- #main -->
</div><!-- #primary -->
<?php get_footer(); ?>
View
4 archive.php
@@ -10,7 +10,7 @@
get_header(); ?>
<section id="primary" class="content-area">
- <div id="content" class="site-content" role="main">
+ <main id="main" class="site-main" role="main">
<?php if ( have_posts() ) : ?>
@@ -95,7 +95,7 @@
<?php endif; ?>
- </div><!-- #content -->
+ </main><!-- #main -->
</section><!-- #primary -->
<?php get_sidebar(); ?>
View
2 footer.php
@@ -8,7 +8,7 @@
*/
?>
- </div><!-- #main -->
+ </div><!-- #content -->
<footer id="colophon" class="site-footer" role="contentinfo">
<div class="site-info">
View
2 header.php
@@ -35,4 +35,4 @@
</nav><!-- #site-navigation -->
</header><!-- #masthead -->
- <div id="main" class="site-main">
+ <div id="content" class="site-content">
View
4 image.php
@@ -9,7 +9,7 @@
?>
<div id="primary" class="content-area image-attachment">
- <div id="content" class="site-content" role="main">
+ <main id="main" class="site-main" role="main">
<?php while ( have_posts() ) : the_post(); ?>
@@ -88,7 +88,7 @@
<?php endwhile; // end of the loop. ?>
- </div><!-- #content -->
+ </main><!-- #main -->
</div><!-- #primary -->
<?php get_footer(); ?>
View
2 inc/jetpack.php
@@ -12,7 +12,7 @@
*/
function _s_jetpack_setup() {
add_theme_support( 'infinite-scroll', array(
- 'container' => 'content',
+ 'container' => 'main',
'footer' => 'page',
) );
}
View
4 index.php
@@ -14,7 +14,7 @@
get_header(); ?>
<div id="primary" class="content-area">
- <div id="content" class="site-content" role="main">
+ <main id="main" class="site-main" role="main">
<?php if ( have_posts() ) : ?>
@@ -39,7 +39,7 @@
<?php endif; ?>
- </div><!-- #content -->
+ </main><!-- #main -->
</div><!-- #primary -->
<?php get_sidebar(); ?>
View
4 layouts/content-sidebar.css
@@ -8,10 +8,10 @@ Layout: Content-Sidebar
margin: 0 -25% 0 0;
width: 100%;
}
-.site-content {
+.site-main {
margin: 0 25% 0 0;
}
-.site-main .widget-area {
+.site-content .widget-area {
float: right;
overflow: hidden;
width: 25%;
View
4 layouts/sidebar-content.css
@@ -8,10 +8,10 @@ Layout: Sidebar-Content
margin: 0 0 0 -25%;
width: 100%;
}
-.site-content {
+.site-main {
margin: 0 0 0 25%;
}
-.site-main .widget-area {
+.site-content .widget-area {
float: left;
overflow: hidden;
width: 25%;
View
4 page.php
@@ -13,7 +13,7 @@
get_header(); ?>
<div id="primary" class="content-area">
- <div id="content" class="site-content" role="main">
+ <main id="main" class="site-main" role="main">
<?php while ( have_posts() ) : the_post(); ?>
@@ -27,7 +27,7 @@
<?php endwhile; // end of the loop. ?>
- </div><!-- #content -->
+ </main><!-- #main -->
</div><!-- #primary -->
<?php get_sidebar(); ?>
View
4 search.php
@@ -8,7 +8,7 @@
get_header(); ?>
<section id="primary" class="content-area">
- <div id="content" class="site-content" role="main">
+ <main id="main" class="site-main" role="main">
<?php if ( have_posts() ) : ?>
@@ -31,7 +31,7 @@
<?php endif; ?>
- </div><!-- #content -->
+ </main><!-- #main -->
</section><!-- #primary -->
<?php get_sidebar(); ?>
View
4 single.php
@@ -8,7 +8,7 @@
get_header(); ?>
<div id="primary" class="content-area">
- <div id="content" class="site-content" role="main">
+ <main id="main" class="site-main" role="main">
<?php while ( have_posts() ) : the_post(); ?>
@@ -24,7 +24,7 @@
<?php endwhile; // end of the loop. ?>
- </div><!-- #content -->
+ </main><!-- #main -->
</div><!-- #primary -->
<?php get_sidebar(); ?>

0 comments on commit 810e499

Please sign in to comment.
Something went wrong with that request. Please try again.