Hi Support,
I have this problem, pagination number no display correctly after the page 7... the number are not showing in sequence.
You can view my site URL: http://amberbrooktoys.com/brands/djeco?start=108
Thanks,
Sam
if(count($list['pages']) >= 7) {
$founded = false;
for($i = 1; $i <= count($list['pages']); $i++) {
if($list['pages'][$i]['active'] != 1) {
$founded = $i;
break;
}
}
for($i = 1; $i <= count($list['pages']); $i++) {
if($i == 1 && $founded > $i + 2) {
$html .= '<li><span>…</span></li>';
}
if($i == count($list['pages']) && $founded < $i - 2) {
$html .= '<li><span>…</span></li>';
}
if($i >= $founded - 2 && $i <= $founded + 2) {
$html .= '<li>'.$list['pages'][$i]['data'].'</li>';
}
}
} else {
for($i = 1; $i <= count($list['pages']); $i++) {
$html .= '<li>'.$list['pages'][$i]['data'].'</li>';
}
}
for($i = 1; $i <= count($list['pages']); $i++) {
$html .= '<li>'.$list['pages'][$i]['data'].'</li>';
}
