diff --git a/themes/finna2/templates/Helpers/pagination-simple-search.phtml b/themes/finna2/templates/Helpers/pagination-simple-search.phtml new file mode 100644 index 00000000000..031d47358be --- /dev/null +++ b/themes/finna2/templates/Helpers/pagination-simple-search.phtml @@ -0,0 +1,32 @@ + +pageCount): ?> + params['results']; + $ulAttrs = $this->htmlAttributes(['class' => 'pagination-simple']); + if ($results->getOptions()->loadResultsWithJsEnabled()) { + $ulAttrs->add('class', 'js-pagination-simple'); + } + ?> + + + diff --git a/themes/finna2/templates/Helpers/pagination-simple.phtml b/themes/finna2/templates/Helpers/pagination-simple.phtml index f9968e7fade..39b93bf2c81 100644 --- a/themes/finna2/templates/Helpers/pagination-simple.phtml +++ b/themes/finna2/templates/Helpers/pagination-simple.phtml @@ -1,3 +1,9 @@ +params['results'] ?? null) { + echo $this->render('Helpers/pagination-simple-search.phtml'); + return; + } +?> pageCount): ?>