Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add aria-label attribute to navigation and main content regions

git-svn-id: http://textpattern.googlecode.com/svn/development/4.x@4179 2fea6a4d-a838-0410-917b-93a53c48e9d2
  • Loading branch information...
commit 564e3312f983ec53d2ccb674a79e82db576cdbe5 1 parent 302cbfc
@philwareham philwareham authored
View
2  textpattern/lib/txplib_head.php
@@ -139,7 +139,7 @@ function poweredit(elm)
$theme->set_state($area, $event, $bm, $message);
echo pluggable_ui('admin_side', 'header', $theme->header());
callback_event('admin_side', 'pagetop_end');
- echo '</header><!-- /txp-header --><div role="main" id="txp-main" class="txp-body">';
+ echo '</header><!-- /txp-header -->'.n.'<div role="main" id="txp-main" class="txp-body" aria-label="'.gTxt('main_content').'">';
}
// -------------------------------------------------------------
View
3  textpattern/theme/classic/classic.php
@@ -28,8 +28,7 @@ function header()
if (!$this->is_popup)
{
- $out[] = '<nav role="navigation">';
- $out[] = '<h2 class="txp-accessibility">'.gTxt('navigation').'</h2>';
+ $out[] = '<nav role="navigation" aria-label="'.gTxt('navigation').'">';
$out[] = '<div id="nav-primary" class="nav-tabs">';
$out[] = '<ul>';
View
3  textpattern/theme/hive/hive.php
@@ -70,8 +70,7 @@ function header()
if ($txp_user)
{
$out[] = '<p class="txp-logout"><a href="index.php?logout=1" onclick="return verify(\''.gTxt('are_you_sure').'\')">'.gTxt('logout').'</a></p>';
- $out[] = '<nav role="navigation">';
- $out[] = '<h2 class="txp-accessibility">'.gTxt('navigation').'</h2>';
+ $out[] = '<nav role="navigation" aria-label="'.gTxt('navigation').'">';
$out[] = '<div class="txp-nav">';
$out[] = '<ul class="data-dropdown">';
foreach ($this->menu as $tab)
View
2  textpattern/theme/remora/remora.php
@@ -25,7 +25,7 @@ function header()
{
global $txp_user;
$out[] = '<h1 class="txp-accessibility">'.htmlspecialchars($GLOBALS["prefs"]["sitename"]).'</h1>';
- $out[] = '<nav role="navigation" id="masthead">';
+ $out[] = '<nav role="navigation" id="masthead" aria-label="'.gTxt('navigation').'">';
$out[] = '<ul id="nav">';
foreach ($this->menu as $tab)
Please sign in to comment.
Something went wrong with that request. Please try again.