From 43fc29137d4b415c65bcb14efe37e6dab9dcedf4 Mon Sep 17 00:00:00 2001 From: plegall Date: Sat, 8 Jan 2005 00:18:39 +0000 Subject: - no "..." in navigation bar if page numbers are consecutive git-svn-id: http://piwigo.org/svn/trunk@678 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/functions_html.inc.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'include/functions_html.inc.php') diff --git a/include/functions_html.inc.php b/include/functions_html.inc.php index 303c9b6cd..f30523c34 100644 --- a/include/functions_html.inc.php +++ b/include/functions_html.inc.php @@ -110,7 +110,11 @@ function create_navigation_bar($url, $nb_element, $start, { $navbar.= ' 1 ...'; + $navbar.= '" class="'.$link_class.'">1'; + if ($cur_page > $pages_around + 2) + { + $navbar.= ' ...'; + } } // inspired from punbb source code @@ -139,7 +143,11 @@ function create_navigation_bar($url, $nb_element, $start, if ($cur_page < ($maximum - $pages_around)) { $temp_start = ($maximum - 1) * $nb_element_page; - $navbar.= ' ... '.$maximum.''; } -- cgit v1.2.3