WordPress.org

Make WordPress Core

Ticket #9408: default_theme_landmark_roles_valid.diff

File default_theme_landmark_roles_valid.diff, 2.6 KB (added by peterkz, 4 years ago)
  • wp-content/themes/default/sidebar.php

     
    4848                        <?php } ?> 
    4949 
    5050                        </li> <?php }?> 
     51                        </ul> 
     52                        <ul class="aria-navigation"> 
    5153 
    52                         <?php wp_list_pages('title_li=<h2>Pages</h2>' ); ?> 
     54                                <?php wp_list_pages('title_li=<h2>Pages</h2>' ); ?> 
    5355 
    54                         <li><h2>Archives</h2> 
    55                                 <ul> 
    56                                 <?php wp_get_archives('type=monthly'); ?> 
    57                                 </ul> 
    58                         </li> 
     56                                <li><h2>Archives</h2> 
     57                                        <ul> 
     58                                        <?php wp_get_archives('type=monthly'); ?> 
     59                                        </ul> 
     60                                </li> 
    5961 
    60                         <?php wp_list_categories('show_count=1&title_li=<h2>Categories</h2>'); ?> 
     62                                <?php wp_list_categories('show_count=1&title_li=<h2>Categories</h2>'); ?> 
     63                        </ul> 
     64                        <ul> 
    6165 
    6266                        <?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?> 
    6367                                <?php wp_list_bookmarks(); ?> 
  • wp-content/themes/default/page.php

     
    2424 
    2525<?php get_sidebar(); ?> 
    2626 
    27 <?php get_footer(); ?> 
    28  No newline at end of file 
     27<?php get_footer(); ?> 
  • wp-content/themes/default/js/aria-landmarks.js

     
     1$(document).ready(function() { 
     2                $("#header").attr("role","banner"); 
     3                $("#content").attr("role","main"); 
     4                $("#searchform").attr("role","search"); 
     5                $("#sidebar").attr("role","complementary"); 
     6                $("#footer").attr("role","contentinfo"); 
     7                $(".aria-navigation").attr("role","navigation"); 
     8});              
  • wp-content/themes/default/header.php

     
    1515<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" /> 
    1616<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" /> 
    1717 
     18 
    1819<style type="text/css" media="screen"> 
    1920 
    2021<?php 
     
    2930</style> 
    3031 
    3132<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?> 
    32  
     33<?php wp_enqueue_script('jquery'); ?> 
    3334<?php wp_head(); ?> 
     35<script type="text/javascript" src="<?php echo(get_bloginfo('template_directory')); ?>/js/aria-landmarks.js"></script> 
    3436</head> 
    3537<body <?php body_class(); ?>> 
    3638<div id="page">