Skip to content

Commit

Permalink
Add container for pagination buttons.
Browse files Browse the repository at this point in the history
This helps ensure that pagination buttons will stay grouped when forced to wrap.
  • Loading branch information
kimisgold committed Mar 21, 2024
1 parent c4e74b2 commit 218aa56
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions application/view/common/pagination.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ if (isset($query['sort_by_default'])) {
<span class="page-count"><?php echo sprintf($translate('of %s'), $pageCount); ?></span>
</form>

<div class="pagination-buttons">
<?php if ($currentPage != 1): ?>
<?php echo $this->hyperlink('', $previousPageUrl, ['class' => 'previous o-icon-prev button', 'title' => $translate('Previous'), 'aria-label' => $translate('Previous')]); ?>
<?php else: ?>
Expand All @@ -27,6 +28,7 @@ if (isset($query['sort_by_default'])) {
<?php else: ?>
<span class="next o-icon-next button inactive"></span>
<?php endif; ?>
</div>

<?php
$from = $offset + 1;
Expand Down

0 comments on commit 218aa56

Please sign in to comment.