pageCount): ?> pageCount > 3 && $this->results->getOptions()->firstLastNavigationSupported(); $navAttrs = $this->htmlAttributes(['aria-label' => $this->translate('pagination_label')]); if ($this->results->getOptions()->loadResultsWithJsEnabled()) { $navAttrs->add('class', 'js-pagination'); if ($this->top) { $navAttrs->add('class', 'js-pagination__top'); } } ?> > htmlAttributes(['class' => 'pagination']); if ($this->top) { $ulAttrs->add('class', 'pagination-top'); } if ($className = $this->options['className'] ?? '') { $ulAttrs->add('class', $className); } ?> > previous)): ?> render( 'Helpers/pagination-item.phtml', [ 'results' => $this->results, 'current' => $this->current, 'page' => 1, 'liClasses' => ['page-first'], 'label' => $this->translate('page_first'), 'contentHtml' => '[1]', ] ) ?> render( 'Helpers/pagination-item.phtml', [ 'results' => $this->results, 'current' => $this->current, 'page' => $this->previous, 'liClasses' => ['page-prev'], 'label' => $this->translate('page_prev'), 'contentHtml' => $this->icon('page-prev') . ' ' . $this->transEsc('Prev'), ] ) ?> pagesInRange) > 1): ?> pagesInRange as $page): ?> render( 'Helpers/pagination-item.phtml', [ 'results' => $this->results, 'current' => $this->current, 'page' => $page, 'label' => $this->translate('page_num', ['%%page%%' => $page]), 'contentHtml' => $this->escapeHtml($page), ] ) ?> next)): ?> render( 'Helpers/pagination-item.phtml', [ 'results' => $this->results, 'current' => $this->current, 'page' => $this->next, 'liClasses' => ['page-next'], 'label' => $this->translate('page_next'), 'contentHtml' => $this->transEsc('Next') . ' ' . $this->icon('page-next'), ] ) ?> render( 'Helpers/pagination-item.phtml', [ 'results' => $this->results, 'current' => $this->current, 'page' => $this->last, 'liClasses' => ['page-last'], 'label' => $this->translate('page_last'), 'contentHtml' => '[' . $this->escapeHtml($this->pageCount) . ']', ] ) ?>