Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions admin/themes/default/collections/browse.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
?>

<?php if (total_records('Collection') > 0): ?>
<?php echo pagination_links(['attributes' => ['aria-label' => __('Top pagination')]]); ?>
<?php echo pagination_links(['attributes' => ['aria-label' => __('Pagination')]]); ?>
<?php if (is_allowed('Collections', 'add')): ?>
<a href="<?php echo html_escape(url('collections/add')); ?>" class="green button">
<?php echo __('Add a Collection'); ?>
Expand Down Expand Up @@ -85,7 +85,7 @@
</table>
</div>

<?php echo pagination_links(['attributes' => ['aria-label' => __('Bottom pagination')]]); ?>
<?php echo pagination_links(['attributes' => ['aria-label' => __('Pagination')]]); ?>
<?php if (is_allowed('Collections', 'add')): ?>
<a href="<?php echo html_escape(url('collections/add')); ?>" class="green button"><?php echo __('Add a Collection'); ?></a>
<?php endif; ?>
Expand Down
2 changes: 1 addition & 1 deletion admin/themes/default/common/appearance-nav.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<nav id="section-nav" class="navigation vertical" role="navigation">
<nav id="section-nav" class="navigation vertical" role="navigation" aria-label="<?php echo __('Appearance'); ?>">
<?php
$navArray = [
[
Expand Down
2 changes: 1 addition & 1 deletion admin/themes/default/common/content-nav.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<nav id="content-nav" class="two columns" role="navigation" aria-label="<?php echo __('Main Menu'); ?>">
<nav id="content-nav" class="two columns" role="navigation" aria-label="<?php echo __('Content'); ?>">
<button type="button" id="content-nav-toggle" class="mobile-menu" data-target=".navigation" aria-expanded="false" title="<?php echo __('Main Menu'); ?>"><span class="sr-only"><?php echo __('Main Menu'); ?> <?php echo __('Current Page'); ?> </span><?php echo $title; ?></button>
<?php
$mainNav = [
Expand Down
4 changes: 2 additions & 2 deletions admin/themes/default/common/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@

<?php echo body_tag(['id' => @$bodyid, 'class' => @$bodyclass]); ?>

<header role="banner">
<header>
<a href="#content" id="skipnav"><?php echo __('Skip to main content'); ?></a>
<?php fire_plugin_hook('admin_header_top', ['view'=>$this]); ?>
<div id="site-title" class="two columns">
<?php echo link_to_home_page(option('site_title'), ['target' => '_blank']); ?>
</div>
<button id="mobile-navbar-toggle" class="mobile-menu" data-target="#global-nav" title="<?php echo __('Admin'); ?>" aria-label="<?php echo __('Admin'); ?>" aria-expanded="false"><span class="admin-icon" aria-role="hidden"></span></button>

<nav id="global-nav">
<nav id="global-nav" aria-label="<?php echo __('Admin'); ?>">
<?php echo common('global-nav'); ?>

<ul id="user-nav">
Expand Down
4 changes: 2 additions & 2 deletions admin/themes/default/item-types/browse.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<?php echo link_to('item-types', 'add', __('Add an Item Type'), ['class'=>'add green button']); ?>
<?php endif ?>

<?php echo pagination_links(['attributes' => ['aria-label' => __('Top pagination')]]); ?>
<?php echo pagination_links(['attributes' => ['aria-label' => __('Pagination')]]); ?>

<p class="without-item-type">
<?php if ($totalItemsWithoutType):
Expand Down Expand Up @@ -54,7 +54,7 @@
<?php echo link_to('item-types', 'add', __('Add an Item Type'), ['class'=>'add green button']); ?>
<?php endif ?>

<?php echo pagination_links(['attributes' => ['aria-label' => __('Bottom pagination')]]); ?>
<?php echo pagination_links(['attributes' => ['aria-label' => __('Pagination')]]); ?>

<p class="without-item-type"><?php echo $withoutTypeMessage; ?></p>

Expand Down
4 changes: 2 additions & 2 deletions admin/themes/default/items/browse.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
?>

<?php if ($total_results): ?>
<?php echo pagination_links(['attributes' => ['aria-label' => __('Top pagination')]]); ?>
<?php echo pagination_links(['attributes' => ['aria-label' => __('Pagination')]]); ?>
<?php if (is_allowed('Items', 'add')): ?>
<a href="<?php echo html_escape(url('items/add')); ?>" class="add full-width-mobile button green"><?php echo __('Add an Item'); ?></a>
<?php endif; ?>
Expand Down Expand Up @@ -149,7 +149,7 @@
</div>
</form>

<?php echo pagination_links(['attributes' => ['aria-label' => __('Bottom pagination')]]); ?>
<?php echo pagination_links(['attributes' => ['aria-label' => __('Pagination')]]); ?>
<?php if (is_allowed('Items', 'add')): ?>
<a href="<?php echo html_escape(url('items/add')); ?>" class="add full-width-mobile button green"><?php echo __('Add an Item'); ?></a>
<?php endif; ?>
Expand Down
6 changes: 5 additions & 1 deletion admin/themes/default/items/search.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@
);
echo $this->partial('items/search-form.php',
[
'formAttributes' => ['id'=>'advanced-search-form'],
'formAttributes' => [
'id' => 'advanced-search-form',
'role' => 'search',
'aria-label' => __('Items')
],
'useSidebar' => true
]
);
Expand Down
4 changes: 2 additions & 2 deletions admin/themes/default/search/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
?>
<?php echo search_filters(); ?>
<?php if ($total_results): ?>
<?php echo pagination_links(['attributes' => ['aria-label' => __('Top pagination')]]); ?>
<?php echo pagination_links(['attributes' => ['aria-label' => __('Pagination')]]); ?>
<table id="search-results">
<thead>
<tr>
Expand Down Expand Up @@ -33,7 +33,7 @@
<?php endforeach; ?>
</tbody>
</table>
<?php echo pagination_links(['attributes' => ['aria-label' => __('Bottom pagination')]]); ?>
<?php echo pagination_links(['attributes' => ['aria-label' => __('Pagination')]]); ?>
<?php else: ?>
<div id="no-results">
<p><?php echo __('Your query returned no results.');?></p>
Expand Down
2 changes: 1 addition & 1 deletion admin/themes/default/users/browse.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
<button id="search-users-button"><?php echo __('Search users'); ?></button>
</form>

<?php echo pagination_links(['attributes' => ['aria-label' => __('Top pagination')]]); ?>
<?php echo pagination_links(['attributes' => ['aria-label' => __('Pagination')]]); ?>
<div class="table-responsive">
<table id="users">
<thead>
Expand Down
2 changes: 1 addition & 1 deletion application/views/helpers/SearchForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public function searchForm(array $options = [])
$options['form_attributes']['id'] = 'search-form';
}
if (!isset($options['form_attributes']['aria-label'])) {
$options['form_attributes']['aria-label'] = __('Search');
$options['form_attributes']['aria-label'] = option('site_title');
}
$options['form_attributes']['method'] = 'get';

Expand Down
4 changes: 2 additions & 2 deletions application/views/scripts/collections/browse.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
?>

<h1><?php echo $pageTitle; ?> <?php echo __('(%s total)', $total_results); ?></h1>
<?php echo pagination_links(['attributes' => ['aria-label' => __('Top pagination')]]); ?>
<?php echo pagination_links(['attributes' => ['aria-label' => __('Pagination')]]); ?>

<?php
$sortLinks[__('Title')] = 'Dublin Core,Title';
Expand Down Expand Up @@ -46,7 +46,7 @@

<?php endforeach; ?>

<?php echo pagination_links(['attributes' => ['aria-label' => __('Bottom pagination')]]); ?>
<?php echo pagination_links(['attributes' => ['aria-label' => __('Pagination')]]); ?>

<?php fire_plugin_hook('public_collections_browse', ['collections' => $collections, 'view' => $this]); ?>

Expand Down
2 changes: 1 addition & 1 deletion application/views/scripts/common/footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<footer role="contentinfo">

<nav id="bottom-nav">
<nav id="bottom-nav" aria-label="<?php echo __('Footer'); ?>">
<?php echo public_nav_main(); ?>
</nav>

Expand Down
2 changes: 1 addition & 1 deletion application/views/scripts/common/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@

<div id="site-title"><?php echo link_to_home_page(theme_logo()); ?></div>

<nav id="top-nav" role="navigation">
<nav id="top-nav" aria-label="<?php __('Main menu'); ?>">
<?php echo public_nav_main(); ?>
</nav>

Expand Down
6 changes: 3 additions & 3 deletions application/views/scripts/items/browse.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@

<h1><?php echo $pageTitle;?> <?php echo __('(%s total)', $total_results); ?></h1>

<nav class="items-nav navigation secondary-nav">
<nav class="items-nav navigation secondary-nav" aria-label="<?php echo __('Items'); ?>">
<?php echo public_nav_items(); ?>
</nav>

<?php echo item_search_filters(); ?>

<?php echo pagination_links(['attributes' => ['aria-label' => __('Top pagination')]]); ?>
<?php echo pagination_links(['attributes' => ['aria-label' => __('Pagination')]]); ?>

<?php if ($total_results > 0): ?>

Expand Down Expand Up @@ -54,7 +54,7 @@
</div><!-- end class="item hentry" -->
<?php endforeach; ?>

<?php echo pagination_links(['attributes' => ['aria-label' => __('Bottom pagination')]]); ?>
<?php echo pagination_links(['attributes' => ['aria-label' => __('Pagination')]]); ?>

<div id="outputs">
<span class="outputs-label"><?php echo __('Output Formats'); ?></span>
Expand Down
12 changes: 8 additions & 4 deletions application/views/scripts/items/search.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,16 @@

<h1><?php echo $pageTitle; ?></h1>

<nav class="items-nav navigation secondary-nav">
<nav class="items-nav navigation secondary-nav" aria-label="<?php echo __('Items'); ?>">
<?php echo public_nav_items(); ?>
</nav>

<?php echo $this->partial('items/search-form.php',
['formAttributes' =>
['id' => 'advanced-search-form']]); ?>
<?php echo $this->partial('items/search-form.php', [
'formAttributes' => [
'id' => 'advanced-search-form',
'role' => 'search',
'aria-label' => __('Items')
]
]); ?>

<?php echo foot(); ?>
2 changes: 1 addition & 1 deletion application/views/scripts/items/tags.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<h1><?php echo $pageTitle; ?></h1>

<nav class="navigation items-nav secondary-nav">
<nav class="navigation items-nav secondary-nav" aria-label="<?php echo __('Items'); ?>">
<?php echo public_nav_items(); ?>
</nav>

Expand Down
4 changes: 2 additions & 2 deletions application/views/scripts/search/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<h1><?php echo $pageTitle; ?></h1>
<?php echo search_filters(); ?>
<?php if ($total_results): ?>
<?php echo pagination_links(['attributes' => ['aria-label' => __('Top pagination')]]); ?>
<?php echo pagination_links(['attributes' => ['aria-label' => __('Pagination')]]); ?>
<table id="search-results">
<thead>
<tr>
Expand Down Expand Up @@ -34,7 +34,7 @@
<?php endforeach; ?>
</tbody>
</table>
<?php echo pagination_links(['attributes' => ['aria-label' => __('Bottom pagination')]]); ?>
<?php echo pagination_links(['attributes' => ['aria-label' => __('Pagination')]]); ?>
<?php else: ?>
<div id="no-results">
<p><?php echo __('Your query returned no results.');?></p>
Expand Down
Loading