Fix for Fix for Twitter-like paging

  1. function joblist_views_mini_pager($tags = array(), $limit = 10, $element = 0, $parameters = array(), $quantity = 9) {
  2.   global $pager_page_array, $pager_total;
  3.  
  4.   // Calculate various markers within this pager piece:
  5.   // Middle is used to "center" pages around the current page.
  6.   $pager_middle = ceil($quantity / 2);
  7.   // current is the page we are currently paged to
  8.   $pager_current = $pager_page_array[$element] + 1;
  9.   // max is the maximum page number
  10.   $pager_max = $pager_total[$element];
  11.   // End of marker calculations.
  12.  
  13.  
  14.   $li_next = theme('pager_next', (isset($tags[3]) ? $tags[3] : t('Show more jobs')), $limit, $element, 1, $parameters);
  15.   if (empty($li_next)) {
  16.     $li_next = " ";
  17.   }
  18.  
  19.   if ($pager_total[$element] > 1) {
  20.     $items[] = array(
  21.       'class' => 'pager-next',
  22.       'data' => $li_next,
  23.     );
  24.        
  25.     return theme('item_list', $items, NULL, 'ul', array('class' => 'pager'));
  26.   }
  27. }

Submit Fix

Any tags you'd like to associate with your code, delimitered by commas (example: Views, CCK, Module, etc).
Select the syntax highlighting mode to use.