Skip to content

Instantly share code, notes, and snippets.

@SCIF
Created August 3, 2012 02:38
Show Gist options
  • Save SCIF/3243759 to your computer and use it in GitHub Desktop.
Save SCIF/3243759 to your computer and use it in GitHub Desktop.
Fuel's paginatin config for building bootstrap-styled pagination
$config = array(
'pagination_url' => 'http://localhost/fuel/welcome/index/',
'total_items' => $count,
'per_page' => $per_page,
'offset' => $offset,
'uri_segment' => 2,
'template' => array(
'wrapper_start' => '<div class="pagination"><ul>',
'wrapper_end' => '</ul></div>',
'page_start' => '',
'page_end' => '',
'previous_start' => '<li class="previous"> ',
'previous_end' => ' </li>',
'previous_inactive_start' => ' <li class="previous disabled"><a>',
'previous_inactive_end' => ' </a></li>',
'previous_mark' => '← ',
'next_start' => '<li class="next">',
'next_end' => '</li>',
'next_inactive_start' => '<li class="next disabled"><a>',
'next_inactive_end' => '<a></li>',
'next_mark' => ' →',
'active_start' => '<li class="active"><a>',
'active_end' => '</a></li>',
'regular_start' => '<li>',
'regular_end' => '</li>',
),
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment