From b4a451b089950e1139ec9b4b03426ca0a8c7256f Mon Sep 17 00:00:00 2001 From: mamouneyya Date: Sat, 21 Aug 2010 11:35:18 +0800 Subject: [PATCH] add 'first' & 'last' navigation buttons for item pages. code inspired from GreyDragon Wind theme --- themes/browny_wind/views/paginator.html.php | 37 +++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/themes/browny_wind/views/paginator.html.php b/themes/browny_wind/views/paginator.html.php index 5034c965..33850cb1 100644 --- a/themes/browny_wind/views/paginator.html.php +++ b/themes/browny_wind/views/paginator.html.php @@ -26,6 +26,23 @@ // ?> +parent(); + endif; + $current_page = $position; + $total_pages = $total; + $siblings = $item->parent()->children(); + for ($i = 1; $i <= $total; $i++): + $_pagelist[$i] = $siblings[$i-1]->url(); + endfor; + } + endif; +?> +