bootstrap_italia-8.x-0.x-dev/components/components-0x/pagination/pagination-full.twig
components/components-0x/pagination/pagination-full.twig
{#
/**
* @file
* Template for full pagination component.
* Docs: https://italia.github.io/bootstrap-italia/docs/componenti/paginazione/
* Latest revision: v2.6.1
*
* Available config:
* - heading_id: Pagination heading ID.
* - items: List of pager items.
* - total_pages: Total number of pages.
* The list is keyed by the following elements:
* - first: Item for the first page; not present on the first page of results.
* - previous: Item for the previous page; not present on the first page
* of results.
* - next: Item for the next page; not present on the last page of results.
* - last: Item for the last page; not present on the last page of results.
* - pages: List of pages, keyed by page number.
* Sub-sub elements:
* items.first, items.previous, items.next, items.last, and each item inside
* items.pages contain the following elements:
* - href: URL with appropriate query parameters for the item.
* - attributes: A keyed list of HTML attributes for the item.
* - text: The visible text used for the item link, such as "‹ Previous"
* or "Next ›".
* - current: The page number of the current page.
* - ellipses: If there are more pages than the quantity allows, then an
* ellipsis before or after the listed pages may be present.
* - previous: Present if the currently visible list of pages does not start
* at the first page.
* - next: Present if the visible list of pages ends before the last page.
*
* @see template_preprocess_pager()
*/
#}
{% apply spaceless %}
{% include '@bi-bcl/deprecated.html.twig' with {
old: 'bootstrap_italia_components/pagination/pagination-full.twig',
new: 'bi-bcl/pagination/pagination.html.twig',
} %}
{# Redirect to new component #}
{% include '@bi-bcl/pagination/pagination.html.twig' with {
heading_id: heading_id,
items: items,
current: current,
ellipses: ellipses,
total_pages: total_pages,
alignment: 'center',
responsive: true,
jump_to_page: false,
show_first_last_page_link: true,
text_controls: false,
text_first_page: '1',
text_last_page: total_pages,
show_total_pages: false
} %}
{% endapply %}
