This hasn’t been fully tested yet, but this should give you the ability to have pagination with links like this example
  
You can also customize the the amount of links on each end with new variables
$config['show_first_int'] = '3';
$config['show_last_int'] = '3';
Library below which extends ci’s pagination class.
File Attached. If you find bugs let me know.