Bug 25166: Add "aria-hidden = true" to Font Awesome icons in the OPAC
[koha.git] / koha-tmpl / opac-tmpl / bootstrap / en / includes / page-numbers.inc
1 [% USE raw %]
2 [% IF ( PAGE_NUMBERS ) %]
3     <nav class="pagination pagination-small noprint" aria-label="Search results pagination">
4         [% IF hits_to_paginate < total %]
5             <h6>[% hits_to_paginate | html %] of [% total | html %] results loaded, refine your search to view other records</h6>
6         [% END %]
7         <ul>
8             [% IF ( previous_page_offset.defined ) %]
9                 <li class="page-first">
10                     <a href="/cgi-bin/koha/opac-search.pl?[% query_cgi | $raw %][% limit_cgi | $raw %][% IF ( sort_by ) %]&amp;sort_by=[% sort_by | uri %][% END %][% IF results_per_page %]&amp;count=[% results_per_page | uri %][% END %]" aria-label="Go to the first page"><i class="fa fa-fw fa-angle-double-left" aria-hidden="true"></i>  First</a>
11                 </li>
12                 <li class="page-prev">
13                     <a href="/cgi-bin/koha/opac-search.pl?[% query_cgi | $raw %][% limit_cgi | $raw %]&amp;offset=[% previous_page_offset | uri %][% IF ( sort_by ) %]&amp;sort_by=[% sort_by | uri %][% END %][% IF results_per_page %]&amp;count=[% results_per_page | uri %][% END %]" aria-label="Go to the previous page"> <i class="fa fa-fw fa-angle-left" aria-hidden="true"></i>  Previous</a>
14                 </li>
15             [% END %]
16             [% FOREACH PAGE_NUMBER IN PAGE_NUMBERS %]
17                 [% IF ( PAGE_NUMBER.highlight ) %]
18                     <li class="active">
19                         <a class="page-num current" href="#" aria-disabled="true" aria-label="Current page: Page [% PAGE_NUMBER.pg | html %]" aria-current="true">[% PAGE_NUMBER.pg | html %]</a>
20                     </li>
21                 [% ELSE %]
22                     <li class="page-num">
23                         <a href="/cgi-bin/koha/opac-search.pl?[% query_cgi | $raw %][% limit_cgi | $raw %]&amp;offset=[% PAGE_NUMBER.offset | uri %][% IF ( sort_by ) %]&amp;sort_by=[% sort_by | uri %][% END %][% IF results_per_page %]&amp;count=[% results_per_page | uri %][% END %]" aria-label="Go to page [% PAGE_NUMBER.pg | html %]">[% PAGE_NUMBER.pg | html %]</a>
24                     </li>
25                 [% END %]
26             [% END %]
27             [% IF ( next_page_offset ) %]
28                 <li class="page-next">
29                     <a href="/cgi-bin/koha/opac-search.pl?[% query_cgi | $raw %][% limit_cgi | $raw %]&amp;offset=[% next_page_offset | uri %][% IF ( sort_by ) %]&amp;sort_by=[% sort_by | uri %][% END %][% IF results_per_page %]&amp;count=[% results_per_page | uri %][% END %]" aria-label="Go to the next page">Next <i class="fa fa-fw fa-angle-double-right" aria-hidden="true"></i></a>
30                 </li>
31                 <li class="page-last">
32                     <a href="/cgi-bin/koha/opac-search.pl?[% query_cgi | $raw %][% limit_cgi | $raw %]&amp;offset=[% last_page_offset | uri %][% IF ( sort_by ) %]&amp;sort_by=[% sort_by | uri %][% END %][% IF results_per_page %]&amp;count=[% results_per_page | uri %][% END %]" aria-label="Go to the last page">Last <i class="fa fa-fw fa-angle-double-right" aria-hidden="true"></i></a>
33                 </li>
34             [% END %]
35         </ul>
36     </nav>
37 [% END %]