From 76436c0029f5be153f805a1be03e17ea26309906 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Fri, 7 Nov 2008 07:33:43 +0000 Subject: Add automatic pagination. All you have to do is add pager ?> to your theme file and you get a well formed pager. Themes can customize this any way they want. A version that matches the mockup is provided in the default theme. --- themes/default/views/album.html.php | 8 +------- themes/default/views/pager.html.php | 28 ++++++++++++++++++++++++++++ 2 files changed, 29 insertions(+), 7 deletions(-) create mode 100644 themes/default/views/pager.html.php (limited to 'themes') diff --git a/themes/default/views/album.html.php b/themes/default/views/album.html.php index 0d181536..034c9a9e 100644 --- a/themes/default/views/album.html.php +++ b/themes/default/views/album.html.php @@ -27,10 +27,4 @@ -
- Items 1-10 of 34 - first - previous - - last -
+ pager() ?> diff --git a/themes/default/views/pager.html.php b/themes/default/views/pager.html.php new file mode 100644 index 00000000..bec06696 --- /dev/null +++ b/themes/default/views/pager.html.php @@ -0,0 +1,28 @@ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
-- cgit v1.2.3