123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135 |
- <?php
- /**
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- // @codingStandardsIgnoreFile
- ?>
- <?php
- /**
- * Pager template
- *
- * @see \Magento\Theme\Block\Html\Pager
- */
- ?>
- <?php if ($block->getCollection()->getSize()): ?>
- <?php if ($block->getUseContainer()): ?>
- <div class="pager">
- <?php endif ?>
- <?php if ($block->getShowAmounts()): ?>
- <p class="toolbar-amount">
- <span class="toolbar-number">
- <?php if ($block->getLastPageNum()>1): ?>
- <?= /* @escapeNotVerified */ __('Items %1 to %2 of %3 total', $block->getFirstNum(), $block->getLastNum(), $block->getTotalNum()) ?>
- <?php elseif ($block->getTotalNum() == 1): ?>
- <?= /* @escapeNotVerified */ __('%1 Item', $block->getTotalNum()) ?>
- <?php else: ?>
- <?= /* @escapeNotVerified */ __('%1 Item(s)', $block->getTotalNum()) ?>
- <?php endif; ?>
- </span>
- </p>
- <?php endif ?>
- <?php if ($block->getLastPageNum()>1): ?>
- <div class="pages">
- <strong class="label pages-label" id="paging-label"><?= /* @escapeNotVerified */ __('Page') ?></strong>
- <ul class="items pages-items" aria-labelledby="paging-label">
- <?php if (!$block->isFirstPage()): ?>
- <li class="item pages-item-previous">
- <?php $text = $block->getAnchorTextForPrevious() ? $block->getAnchorTextForPrevious() : '';?>
- <a class="<?= /* @escapeNotVerified */ $text ? 'link ' : 'action ' ?> previous" href="<?= /* @escapeNotVerified */ $block->getPreviousPageUrl() ?>" title="<?= /* @escapeNotVerified */ $text ? $text : __('Previous') ?>">
- <span class="label"><?= /* @escapeNotVerified */ __('Page') ?></span>
- <span><?= /* @escapeNotVerified */ $text ? $text : __('Previous') ?></span>
- </a>
- </li>
- <?php endif;?>
- <?php if ($block->canShowFirst()): ?>
- <li class="item">
- <a class="page first" href="<?= /* @escapeNotVerified */ $block->getFirstPageUrl() ?>">
- <span class="label"><?= /* @escapeNotVerified */ __('Page') ?></span>
- <span>1</span>
- </a>
- </li>
- <?php endif;?>
- <?php if ($block->canShowPreviousJump()): ?>
- <li class="item">
- <a class="page previous jump" title="" href="<?= /* @escapeNotVerified */ $block->getPreviousJumpUrl() ?>">
- <span>...</span>
- </a>
- </li>
- <?php endif;?>
- <?php foreach ($block->getFramePages() as $_page): ?>
- <?php if ($block->isPageCurrent($_page)): ?>
- <li class="item current">
- <strong class="page">
- <span class="label"><?= /* @escapeNotVerified */ __('You\'re currently reading page') ?></span>
- <span><?= /* @escapeNotVerified */ $_page ?></span>
- </strong>
- </li>
- <?php else: ?>
- <li class="item">
- <a href="<?= /* @escapeNotVerified */ $block->getPageUrl($_page) ?>" class="page">
- <span class="label"><?= /* @escapeNotVerified */ __('Page') ?></span>
- <span><?= /* @escapeNotVerified */ $_page ?></span>
- </a>
- </li>
- <?php endif;?>
- <?php endforeach;?>
- <?php if ($block->canShowNextJump()): ?>
- <li class="item">
- <a class="page next jump" title="" href="<?= /* @escapeNotVerified */ $block->getNextJumpUrl() ?>">
- <span>...</span>
- </a>
- </li>
- <?php endif;?>
- <?php if ($block->canShowLast()): ?>
- <li class="item">
- <a class="page last" href="<?= /* @escapeNotVerified */ $block->getLastPageUrl() ?>">
- <span class="label"><?= /* @escapeNotVerified */ __('Page') ?></span>
- <span><?= /* @escapeNotVerified */ $block->getLastPageNum() ?></span>
- </a>
- </li>
- <?php endif;?>
- <?php if (!$block->isLastPage()): ?>
- <li class="item pages-item-next">
- <?php $text = $block->getAnchorTextForNext() ? $block->getAnchorTextForNext() : '';?>
- <a class="<?= /* @escapeNotVerified */ $text ? 'link ' : 'action ' ?> next" href="<?= /* @escapeNotVerified */ $block->getNextPageUrl() ?>" title="<?= /* @escapeNotVerified */ $text ? $text : __('Next') ?>">
- <span class="label"><?= /* @escapeNotVerified */ __('Page') ?></span>
- <span><?= /* @escapeNotVerified */ $text ? $text : __('Next') ?></span>
- </a>
- </li>
- <?php endif;?>
- </ul>
- </div>
- <?php endif; ?>
- <?php if ($block->isShowPerPage()): ?>
- <div class="limiter">
- <strong class="limiter-label"><?= /* @escapeNotVerified */ __('Show') ?></strong>
- <select id="limiter" data-mage-init='{"redirectUrl": {"event":"change"}}' class="limiter-options">
- <?php foreach ($block->getAvailableLimit() as $_key => $_limit): ?>
- <option value="<?= /* @escapeNotVerified */ $block->getLimitUrl($_key) ?>"<?php if ($block->isLimitCurrent($_key)): ?>
- selected="selected"<?php endif ?>>
- <?= /* @escapeNotVerified */ $_limit ?>
- </option>
- <?php endforeach; ?>
- </select>
- <span class="limiter-text"><?= /* @escapeNotVerified */ __('per page') ?></span>
- </div>
- <?php endif ?>
- <?php if ($block->getUseContainer()): ?>
- </div>
- <?php endif ?>
- <?php endif ?>
|