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 #979 from codenamesrk/master
Browse files Browse the repository at this point in the history
Update Pagination Centered
  • Loading branch information
olefredrik authored Apr 17, 2017
2 parents 8b86cf9 + 8ade91e commit d4520c6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions library/foundation.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function foundationpress_pagination() {
'type' => 'list',
) );

$paginate_links = str_replace( "<ul class='page-numbers'>", "<ul class='pagination'>", $paginate_links );
$paginate_links = str_replace( "<ul class='page-numbers'>", "<ul class='pagination text-center'>", $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 );
Expand All @@ -35,9 +35,7 @@ function foundationpress_pagination() {

// Display the pagination if more than one page is found.
if ( $paginate_links ) {
echo '<div class="pagination-centered">';
echo $paginate_links;
echo '</div><!--// end .pagination -->';
}
}
endif;
Expand Down

0 comments on commit d4520c6

Please sign in to comment.