Skip to content

Commit 6216818

Browse files
committed
removed code for custom pager
1 parent ef7bf11 commit 6216818

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

a11y-add-on-for-facetwp.php

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -139,19 +139,6 @@ function a11y_addon_transform_facet_markup( $output, $params ) {
139139

140140
$output = str_replace('class=', $id_string, $output);
141141

142-
/*
143-
//do we want this?
144-
case 'pager':
145-
// put links in a list with nav element
146-
$output = str_replace( '<div', '<nav aria-labelledby="resource-paging-heading"><h3 class="screen-reader-text" id="resource-paging-heading">' . esc_html__( 'Results Pages', 'afwp' ) . '</h3><ul', $output );
147-
$output = str_replace( '</div>', '</ul></nav>', $output );
148-
$output = str_replace( '<a', '<li><a', $output );
149-
$output = str_replace( '</a>', '</a></li>', $output );
150-
// add tabindex to valid links only for keyboard accessibility
151-
$output = str_replace( 'data-page', 'tabindex="0" data-page', $output );
152-
break;
153-
*/
154-
155142
}
156143

157144
return $output;

0 commit comments

Comments
 (0)