Browse Source

adding ARIA role="article" on articles

eddiemachado 14 năm trước cách đây
mục cha
commit
78b8375dc2
11 tập tin đã thay đổi với 10 bổ sung10 xóa
  1. 1 1
      archive.php
  2. 1 1
      author.php
  3. BIN
      favicon.ico
  4. 1 1
      footer.php
  5. 1 1
      index.php
  6. 1 1
      page-custom.php
  7. 1 1
      page.php
  8. 1 1
      search.php
  9. 1 1
      single-custom_type.php
  10. 1 1
      single.php
  11. 1 1
      taxonomy-custom_cat.php

+ 1 - 1
archive.php

@@ -32,7 +32,7 @@
 
 					<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
 					
-					<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?>>
+					<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?> role="article">
 						
 						<header>
 							

+ 1 - 1
author.php

@@ -18,7 +18,7 @@
 					
 					<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
 					
-					<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?>>
+					<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?> role="article">
 						
 						<header>
 							

BIN
favicon.ico


+ 1 - 1
footer.php

@@ -1,4 +1,4 @@
-<footer role="contentinfo">
+			<footer role="contentinfo">
 			
 				<div id="inner-footer" class="clearfix">
 					

+ 1 - 1
index.php

@@ -6,7 +6,7 @@
 
 					<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
 					
-					<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?>>
+					<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?> role="article">
 						
 						<header>
 							

+ 1 - 1
page-custom.php

@@ -12,7 +12,7 @@ Template Name: Custom Page Example
 
 					<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
 					
-					<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?>>
+					<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?> role="article">
 						
 						<header>
 							

+ 1 - 1
page.php

@@ -6,7 +6,7 @@
 
 					<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
 					
-					<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?>>
+					<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?> role="article">
 						
 						<header>
 							

+ 1 - 1
search.php

@@ -8,7 +8,7 @@
 
 					<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
 					
-					<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?>>
+					<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?> role="article">
 						
 						<header>
 							

+ 1 - 1
single-custom_type.php

@@ -21,7 +21,7 @@ single-bookmarks.php
 
 					<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
 					
-					<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?>>
+					<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?> role="article">
 						
 						<header>
 							

+ 1 - 1
single.php

@@ -6,7 +6,7 @@
 
 					<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
 					
-					<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?>>
+					<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?> role="article">
 						
 						<header>
 							

+ 1 - 1
taxonomy-custom_cat.php

@@ -23,7 +23,7 @@ taxonomy-shoes.php
 
 					<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
 					
-					<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?>>
+					<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?> role="article">
 						
 						<header>