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 @@ // ?> + +// @mamouneyya +// in order to add 'first' & 'last' navigation buttons for item pages. code inspired from GreyDragon Wind theme + if ($page_type == "item"): { + if ($item): + $parent = $item->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; +?> +