bootstrap_italia-8.x-0.x-dev/templates/base/pager.html.twig
templates/base/pager.html.twig
{# /** * @file * Theme override to display a pager. * * Available variables: * - heading_id: Pagination heading ID. * - items: List of pager items. * 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. * - total_pages: Total number of pages. * - pager_alignment (string) (default: '') * - options ["", "center", "end"] * - pager_responsive (boolean) (default: true) * - pager_jump_to_page (boolean) (default: false) * - pager_show_first_last_page_link (boolean) (default: true) * - pager_text_controls (boolean) (default: false) * - pager_show_total_pages (boolean) (default: false) * * @see template_preprocess_pager() */ #} {% include '@bi-bcl/pagination/pagination.html.twig' with { heading_id: heading_id, items: items, current: current, ellipses: ellipses, total_pages: total_pages, alignment: pager_alignment, responsive: pager_responsive, jump_to_page: pager_jump_to_page, show_first_last_page_link: pager_show_first_last_page_link, text_controls: pager_text_controls, text_first_page: pager_text_controls ? items.first.text : '1', text_last_page: pager_text_controls ? items.last.text : total_pages, text_previous: pager_text_controls ? tems.previous.text : '', text_next: pager_text_controls ? items.next.text : '', show_total_pages: pager_show_total_pages } %}