From 50a4c1460497c7c8c0d78f0ad3e34d0d9951220c Mon Sep 17 00:00:00 2001 From: cash Date: Thu, 9 Dec 2010 02:39:14 +0000 Subject: added ability to include pagination before and after a list git-svn-id: http://code.elgg.org/elgg/trunk@7577 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/layout/objects/list.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'views/default/layout/objects') diff --git a/views/default/layout/objects/list.php b/views/default/layout/objects/list.php index 2c3a8206e..9cbd85f0b 100644 --- a/views/default/layout/objects/list.php +++ b/views/default/layout/objects/list.php @@ -10,6 +10,7 @@ * @uses $vars['count'] Number of items in the complete list * @uses $vars['base_url'] Base URL of list (optional) * @uses $vars['pagination'] Show pagination? (default: true) + * @uses $vars['position'] Position of the pagination: before, after, or both * @uses $vars['full_view'] Show the full view of the items (default: false) * @uses $vars['list_class'] Additional CSS class for the '; } -if ($count) { +if ($position == 'before' || $position == 'both') { + $html = $nav . $html; +} + +if ($position == 'after' || $position == 'both') { $html .= $nav; } -- cgit v1.2.3