function _pagerer_get_total in Pagerer 7
Return total number of pages or items in the pager.
Depending on $variables['display'], return a number either in pages or in items.
Parameters
array $variables: theme's variables
array $markers: precalculated markers for the pager
Return value
int total number of pages or items in the pager
3 calls to _pagerer_get_total()
- _pagerer_get_page_text in ./
pagerer.module - Return textual elements for a 'page' element in the pager.
- _pagerer_itemize_page_links in ./
pagerer.module - Return rendered items representing the links to 'page' elements in the pager.
- _pagerer_theme_handler in ./
pagerer.module - Pagerer's theme handler.
File
- ./
pagerer.module, line 1725 - Pagerer
Code
function _pagerer_get_total($variables, $markers) {
switch ($variables['display']) {
case 'items':
case 'item_ranges':
return $markers['pager_item_max'];
case 'pages':
default:
return $markers['pager_max'];
}
}