Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suppress link for current page in full width display #27

Open
apmuthu opened this issue Aug 15, 2020 · 0 comments
Open

Suppress link for current page in full width display #27

apmuthu opened this issue Aug 15, 2020 · 0 comments

Comments

@apmuthu
Copy link

apmuthu commented Aug 15, 2020

In the full width display, the current page button needs to have it's link suppressed.

/src/JasonGrimes/Paginator.php Line 289 needs to be changed from

                $html .= '<li' . ($page['isCurrent'] ? ' class="active"' : '') . '><a href="' . htmlspecialchars($page['url']) . '">' . htmlspecialchars($page['num']) . '</a></li>';

to:

                $html .= '<li' . ($page['isCurrent'] ? ' class="active"><a href="#' : '><a href="' . htmlspecialchars($page['url'])) . '">' . htmlspecialchars($page['num']) . '</a></li>';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant