Skip to content
This repository has been archived by the owner on Sep 16, 2019. It is now read-only.

Commit

Permalink
Merge pull request #1061 from olefredrik/fix-current-page-pagination
Browse files Browse the repository at this point in the history
Fix pagination
  • Loading branch information
olefredrik committed Aug 29, 2017
2 parents 28b64ce + 56cd191 commit 42f9a68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/foundation.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ function foundationpress_pagination() {
'type' => 'list',
) );

$paginate_links = str_replace( "<ul class='page-numbers'>", "<ul class='pagination text-center'>", $paginate_links );
$paginate_links = str_replace( "<ul class='page-numbers'>", "<ul class='pagination text-center' role='navigation' aria-label='Pagination'>", $paginate_links );
$paginate_links = str_replace( '<li><span class="page-numbers dots">', "<li><a href='#'>", $paginate_links );
$paginate_links = str_replace( "<li><span class='page-numbers current'>", "<li class='current'><a href='#'>", $paginate_links );
$paginate_links = str_replace( '</span>', '</a>', $paginate_links );
$paginate_links = str_replace( "<li><span class='page-numbers current'>", "<li class='current'>", $paginate_links );
$paginate_links = str_replace( "<li><a href='#'>&hellip;</a></li>", "<li><span class='dots'>&hellip;</span></li>", $paginate_links );
$paginate_links = preg_replace( '/\s*page-numbers/', '', $paginate_links );

Expand Down

0 comments on commit 42f9a68

Please sign in to comment.