Correct pagination for user items - itemType
I use this one and it is working...
function osc_pagination_items_type( $extraParams = array () , $field = false )
{
if(osc_is_list_items()) {
$item_type = Params::getParam('itemType');
$url = osc_user_list_items_url('{PAGE}', $field) . '&itemType=' . $item_type;
$first_url = osc_user_list_items_url() . '?itemType=' . $item_type;
}
$params = array('total' => osc_search_total_pages(),
'selected' => osc_search_page(),
'url' => $url,
'first_url' => $first_url
);
if(is_array($extraParams) && !empty($extraParams)) {
foreach($extraParams as $key => $value) {
$params[$key] = $value;
}
}
$pagination = new Pagination($params);
return $pagination->doPagination();
}