Quote:
Originally Posted by trache
Quick and dirty? Take out the code that references the actual prev/next page numbers leaving the code that displays or appends the current page number to the line of HTML you output from that function.
|
Do you mean this area?
This seems to be what prints the adjoining numbers to the current page.
PHP Code:
# See if we should any $spacer in connection to this link.
if ($i>0 AND $i<sizeof($pages)-1)
{
$prev = $pages[$i-1];
$next = $pages[$i+1];
# See if we should any $spacer *before* this link.
# (Don't add one if the last link is already a spacer.)
if ($prev < $curr-1 AND $links[sizeof($links)-1] != $space)
$links[] = $space;
}
# Add the link itself!
# If the link is not the active page, link it.
if ($curr != $active)
$links[] = '<a href="'.$pre_href.$curr.$post_href.'">'.$curr.'</a>';
# Else don't link it.
else
$links[] = '<strong class="active">'.$active.'</strong>';
if ($i>0 AND $i<sizeof($pages)-1)
{
# See if we should any $spacer *after* this link.
# (Don't add one if the last link is already a spacer.)
if ($next > $curr+1 AND $links[sizeof($links)-1] != $space)
$links[] = $space;