From: cash Date: Thu, 9 Dec 2010 02:39:14 +0000 (+0000) Subject: added ability to include pagination before and after a list X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=50a4c1460497c7c8c0d78f0ad3e34d0d9951220c;p=lorea%2Felgg.git 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 --- 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; }