Lines Matching refs:pages
386 $pages[] = 1; // first always
387 $pages[] = $lastpage; // last page always
388 $pages[] = $currentpage; // current page always
391 $pages[] = 2; // second and ..
392 $pages[] = $lastpage-1; // one before last
396 if($currentpage-1 > 0) $pages[] = $currentpage-1;
397 if($currentpage-2 > 0) $pages[] = $currentpage-2;
398 if($currentpage-3 > 0) $pages[] = $currentpage-3;
399 if($currentpage+1 < $lastpage) $pages[] = $currentpage+1;
400 if($currentpage+2 < $lastpage) $pages[] = $currentpage+2;
401 if($currentpage+3 < $lastpage) $pages[] = $currentpage+3;
403 $pages = array_unique($pages);
404 sort($pages);
413 foreach($pages as $page) {