Adding function that display a "6 of 10" label

skala
Julio Montoya 13 years ago
parent 21c52457a1
commit f2cd874cda
  1. 15
      main/inc/lib/display.lib.php

@ -1777,4 +1777,19 @@ class Display
$html .= '</ul></div>';
return $html;
}
/**
* @param int $current
* @param int $total
* @return null
*/
public static function paginationIndicator($current, $total)
{
$html = null;
if (!empty($current) && !empty($total)) {
$label = sprintf(get_lang('PaginationXofY'), $current, $total);
$html = self::url($label, '#', array('class' => 'btn disabled'));
}
return $html;
}
}
Loading…
Cancel
Save