Skip to content

Commit

Permalink
added support HTML5 tag main
Browse files Browse the repository at this point in the history
  • Loading branch information
adammacias committed Jan 5, 2015
1 parent 8ec4023 commit 86e8244
Show file tree
Hide file tree
Showing 11 changed files with 22 additions and 22 deletions.
4 changes: 2 additions & 2 deletions 404.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
get_header(); ?>

<div id="primary" class="<?php echo odin_classes_page_full(); ?>">
<div id="content" class="site-content" role="main">
<main id="main" class="site-main" role="main">

<header class="page-header">
<h1 class="page-title"><?php _e( 'Not Found', 'odin' ); ?></h1>
Expand All @@ -21,7 +21,7 @@
<?php get_search_form(); ?>
</div><!-- .page-content -->

</div><!-- #content -->
</main><!-- #main -->
</div><!-- #primary -->

<?php
Expand Down
4 changes: 2 additions & 2 deletions archive.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
get_header(); ?>

<section id="primary" class="<?php echo odin_classes_page_sidebar(); ?>">
<div id="content" class="site-content" role="main">
<main id="main" class="site-main" role="main">

<?php if ( have_posts() ) : ?>

Expand Down Expand Up @@ -65,7 +65,7 @@

endif;
?>
</div><!-- #content -->
</main><!-- #main -->
</section><!-- #primary -->

<?php
Expand Down
4 changes: 2 additions & 2 deletions audio.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
get_header(); ?>

<div id="primary" class="<?php echo odin_classes_page_sidebar(); ?>">
<div id="content" role="main">
<main id="main" class="site-main" role="main">

<?php while ( have_posts() ) : the_post(); $metadata = wp_get_attachment_metadata(); ?>
<article <?php post_class(); ?>>
Expand All @@ -34,7 +34,7 @@
</article>
<?php endwhile; ?>

</div><!-- #content -->
</main><!-- #main -->
</div><!-- #primary -->

<?php
Expand Down
4 changes: 2 additions & 2 deletions author.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
get_header(); ?>

<section id="primary" class="<?php echo odin_classes_page_sidebar(); ?>">
<div id="content" class="site-content" role="main">
<main id="main" class="site-main" role="main">

<?php if ( have_posts() ) : ?>

Expand Down Expand Up @@ -67,7 +67,7 @@

endif;
?>
</div><!-- #content -->
</main><!-- #main -->
</section><!-- #primary -->

<?php
Expand Down
4 changes: 2 additions & 2 deletions category.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
get_header(); ?>

<section id="primary" class="<?php echo odin_classes_page_sidebar(); ?>">
<div id="content" class="site-content" role="main">
<main id="main" class="site-main" role="main">

<?php if ( have_posts() ) : ?>

Expand Down Expand Up @@ -49,7 +49,7 @@

endif;
?>
</div><!-- #content -->
</main><!-- #main -->
</section><!-- #primary -->

<?php
Expand Down
4 changes: 2 additions & 2 deletions image.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
get_header(); ?>

<div id="primary" class="<?php echo odin_classes_page_sidebar(); ?>">
<div id="content" role="main">
<main id="main" class="site-main" role="main">

<?php while ( have_posts() ) : the_post(); ?>
<article <?php post_class(); ?>>
Expand Down Expand Up @@ -44,7 +44,7 @@
</article>
<?php endwhile; ?>

</div><!-- #content -->
</main><!-- #main -->
</div><!-- #primary -->

<?php
Expand Down
4 changes: 2 additions & 2 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
get_header(); ?>

<div id="primary" class="<?php echo odin_classes_page_sidebar(); ?>">
<div id="content" class="site-content" role="main">
<main id="main" class="site-main" role="main">

<?php
if ( have_posts() ) :
Expand All @@ -42,7 +42,7 @@
endif;
?>

</div><!-- #content -->
</main><!-- #content -->
</div><!-- #primary -->

<?php
Expand Down
4 changes: 2 additions & 2 deletions page-sidebar.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
?>

<div id="primary" class="<?php echo odin_classes_page_sidebar(); ?>">
<div id="content" class="site-content" role="main">
<main id="main" class="site-main" role="main">

<?php
// Start the Loop.
Expand All @@ -28,7 +28,7 @@
endwhile;
?>

</div><!-- #content -->
</main><!-- #main -->
</div><!-- #primary -->

<?php
Expand Down
4 changes: 2 additions & 2 deletions page.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
get_header(); ?>

<div id="primary" class="<?php echo odin_classes_page_full(); ?>">
<div id="content" class="site-content" role="main">
<main id="main" class="site-main" role="main">

<?php
// Start the Loop.
Expand All @@ -29,7 +29,7 @@
endwhile;
?>

</div><!-- #content -->
</main><!-- #main -->
</div><!-- #primary -->

<?php
Expand Down
4 changes: 2 additions & 2 deletions search.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
get_header(); ?>

<div id="primary" class="<?php echo odin_classes_page_sidebar(); ?>">
<div id="content" class="site-content" role="main">
<main id="main" class="site-main" role="main">

<?php if ( have_posts() ) : ?>

Expand Down Expand Up @@ -40,7 +40,7 @@
endif;
?>

</div><!-- #content -->
</main><!-- #main -->
</section><!-- #primary -->

</div><!-- #primary -->
Expand Down
4 changes: 2 additions & 2 deletions single.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
get_header(); ?>

<div id="primary" class="<?php echo odin_classes_page_sidebar(); ?>">
<div id="content" class="site-content" role="main">
<main id="main" class="site-main" role="main">
<?php
// Start the Loop.
while ( have_posts() ) : the_post();
Expand All @@ -27,7 +27,7 @@
endif;
endwhile;
?>
</div><!-- #content -->
</main><!-- #main -->
</div><!-- #primary -->

<?php
Expand Down

0 comments on commit 86e8244

Please sign in to comment.