pagination.php 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <?php
  2. /**
  3. * Part of the Fuel framework.
  4. *
  5. * @package Fuel
  6. * @version 1.5
  7. * @author Fuel Development Team
  8. * @license MIT License
  9. * @copyright 2010 - 2013 Fuel Development Team
  10. * @link http://fuelphp.com
  11. */
  12. /**
  13. * NOTICE:
  14. *
  15. * If you need to make modifications to the default configuration, copy
  16. * this file to your app/config folder, and make them in there.
  17. *
  18. * This will allow you to upgrade fuel without losing your custom config.
  19. */
  20. return array(
  21. // the active pagination template
  22. 'active' => 'default',
  23. // default FuelPHP pagination template, compatible with pre-1.4 applications
  24. 'default' => array(
  25. 'wrapper' => "<div class=\"pagination\">\n\t{pagination}\n</div>\n",
  26. 'first' => "<span class=\"first\">\n\t{link}\n</span>\n",
  27. 'first-link' => "\t\t<a href=\"{uri}\">{page}</a>\n",
  28. 'previous' => "<span class=\"previous\">\n\t{link}\n</span>\n",
  29. 'previous-link' => "\t\t<a href=\"{uri}\">{page}</a>\n",
  30. 'previous-inactive' => "<span class=\"previous-inactive\">\n\t{link}\n</span>\n",
  31. 'previous-inactive-link' => "\t\t<a href=\"{uri}\">{page}</a>\n",
  32. 'regular' => "<span>\n\t{link}\n</span>\n",
  33. 'regular-link' => "\t\t<a href=\"{uri}\">{page}</a>\n",
  34. 'active' => "<span class=\"active\">\n\t{link}\n</span>\n",
  35. 'active-link' => "\t\t<a href=\"{uri}\">{page}</a>\n",
  36. 'next' => "<span class=\"next\">\n\t{link}\n</span>\n",
  37. 'next-link' => "\t\t<a href=\"{uri}\">{page}</a>\n",
  38. 'next-inactive' => "<span class=\"next-inactive\">\n\t{link}\n</span>\n",
  39. 'next-inactive-link' => "\t\t<a href=\"{uri}\">{page}</a>\n",
  40. 'last' => "<span class=\"last\">\n\t{link}\n</span>\n",
  41. 'last-link' => "\t\t<a href=\"{uri}\">{page}</a>\n",
  42. ),
  43. // Twitter bootstrap 2.x template
  44. 'bootstrap' => array(
  45. 'wrapper' => "<div class=\"pagination\">\n\t<ul>{pagination}\n\t</ul>\n</div>\n",
  46. 'first' => "\n\t\t<li>{link}</li>",
  47. 'first-link' => "<a href=\"{uri}\">{page}</a>",
  48. 'previous' => "\n\t\t<li>{link}</li>",
  49. 'previous-link' => "<a href=\"{uri}\">{page}</a>",
  50. 'previous-inactive' => "\n\t\t<li class=\"disabled\">{link}</li>",
  51. 'previous-inactive-link' => "<a href=\"{uri}\">{page}</a>",
  52. 'regular' => "\n\t\t<li>{link}</li>",
  53. 'regular-link' => "<a href=\"{uri}\">{page}</a>",
  54. 'active' => "\n\t\t<li class=\"active\">{link}</li>",
  55. 'active-link' => "<a href=\"{uri}\">{page}</a>",
  56. 'next' => "\n\t\t<li>{link}</li>",
  57. 'next-link' => "<a href=\"{uri}\">{page}</a>",
  58. 'next-inactive' => "\n\t\t<li class=\"disabled\">{link}</li>",
  59. 'next-inactive-link' => "<a href=\"{uri}\">{page}</a>",
  60. 'last' => "\n\t\t<li>{link}</li>",
  61. 'last-link' => "<a href=\"{uri}\">{page}</a>",
  62. ),
  63. );