function theme_views_litepager in Views Litepager 6.2
Theming function for rendering the Lite pager This code is based on theme_pager()
1 theme call to theme_views_litepager()
- views_litepager_preprocess_views_view in ./
views_litepager.module - Preprocess function for the primary view template Add the Lite pager to the View template
File
- ./
views_litepager.module, line 79
Code
function theme_views_litepager($tags, $limit, $element, $parameters = array()) {
global $pager_page_array, $pager_total;
$li_first = theme('pager_first', isset($tags[0]) ? $tags[0] : t('« first'), $limit, $element, $parameters);
$li_previous = theme('pager_previous', isset($tags[1]) ? $tags[1] : t('‹ previous'), $limit, $element, 1, $parameters);
$li_next = theme('pager_next', isset($tags[3]) ? $tags[3] : t('next ›'), $limit, $element, 1, $parameters);
if ($pager_total[$element] > 1) {
if ($li_first) {
$items[] = array(
'class' => 'pager-first',
'data' => $li_first,
);
}
if ($li_previous) {
$items[] = array(
'class' => 'pager-previous',
'data' => $li_previous,
);
}
// End generation.
if ($li_next) {
$items[] = array(
'class' => 'pager-next',
'data' => $li_next,
);
}
return theme('item_list', $items, NULL, 'ul', array(
'class' => 'pager',
));
}
}