Skip to content

Commit

Permalink
Fix pagination markup
Browse files Browse the repository at this point in the history
refs #5543
  • Loading branch information
lippserd committed Sep 30, 2015
1 parent 7e81b00 commit a1d6711
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions application/views/scripts/mixedPagination.phtml
Expand Up @@ -13,15 +13,15 @@ if ($this->pageCount <= 1) return;
($this->current - 1) * $this->itemCountPerPage,
$this->totalItemCount
) ?>
<li>
<li class="nav-item">
<a href="<?= Url::fromRequest()->overwriteParams(array('page' => $this->previous)) ?>"
title="<?= $label ?>"
aria-label="<?= $label ?>">
<?= $this->icon('angle-double-left') ?>
</a>
</li>
<?php else: ?>
<li class="disabled" aria-hidden="true">
<li class="nav-item disabled" aria-hidden="true">
<span>
<span class="sr-only"><?= $this->translate('Previous page') ?></span>
<?= $this->icon('angle-double-left') ?>
Expand All @@ -30,7 +30,7 @@ if ($this->pageCount <= 1) return;
<?php endif ?>
<?php foreach ($this->pagesInRange as $page): ?>
<?php if ($page === '...'): ?>
<li class="disabled">
<li class="nav-item disabled">
<span>...</span>
</li>
<?php else: ?>
Expand All @@ -46,7 +46,7 @@ if ($this->pageCount <= 1) return;
$this->totalItemCount
);
?>
<li<?= $page === $this->current ? ' class="active"' : '' ?>>
<li<?= $page === $this->current ? ' class="active nav-item"' : ' class="nav-item"' ?>>
<a href="<?= Url::fromRequest()->overwriteParams(array('page' => $page)) ?>"
title="<?= $label ?>"
aria-label="<?= $label ?>">
Expand All @@ -62,15 +62,15 @@ if ($this->pageCount <= 1) return;
($this->current + 1) * $this->itemCountPerPage,
$this->totalItemCount
) ?>
<li>
<li class="nav-item">
<a href="<?= Url::fromRequest()->overwriteParams(array('page' => $this->next)) ?>"
title="<?= $label ?>"
aria-label="<?= $label ?>">
<?= $this->icon('angle-double-right') ?>
</a>
</li>
<?php else: ?>
<li class="disabled" aria-hidden="true">
<li class="disabled nav-item" aria-hidden="true">
<span>
<span class="sr-only"><?= $this->translate('Next page') ?></span>
<?= $this->icon('angle-double-right') ?>
Expand Down

0 comments on commit a1d6711

Please sign in to comment.