Skip to content

Commit

Permalink
Make sidebar pagination consistent with standard pagination markup.
Browse files Browse the repository at this point in the history
  • Loading branch information
kimisgold committed Mar 6, 2024
1 parent 3076bc2 commit 5fa4551
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion application/asset/css/style.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions application/asset/sass/_screen.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1007,6 +1007,7 @@ nav.pagination input[type="text"],
line-height: $base-line-height;
vertical-align: top;
background-size: .4088 * $base-font-size;
width: auto;
}

nav.pagination .button {
Expand Down
6 changes: 4 additions & 2 deletions application/view/common/sidebar-pagination.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
$translate = $this->plugin('translate');
?>
<nav class="pagination" role="navigation">
<input type="text" name="page" class="page-input-top" value="<?php echo $currentPage; ?>" size="4" data-pagination-url="<?php echo $this->escapeHtml($pagelessUrl); ?>" <?php echo ($pageCount == 1) ? 'readonly' : ''; ?> aria-label="<?php echo $translate('Page'); ?>">
<span class="page-count"><?php echo sprintf($translate('of %s'), $pageCount); ?></span>
<form method="GET" action="">
<input type="text" name="page" class="page-input-top" value="<?php echo $currentPage; ?>" size="4" data-pagination-url="<?php echo $this->escapeHtml($pagelessUrl); ?>" <?php echo ($pageCount == 1) ? 'readonly' : ''; ?> aria-label="<?php echo $translate('Page'); ?>">
<span class="page-count"><?php echo sprintf($translate('of %s'), $pageCount); ?></span>
</form>

<?php if ($currentPage != 1): ?>
<?php echo $this->hyperlink('', $previousPageUrl, ['class' => 'previous o-icon-prev button', 'title' => $translate('Previous'), 'aria-label' => $translate('Previous')]); ?>
Expand Down

0 comments on commit 5fa4551

Please sign in to comment.