I finally got my pagination to work, but now the numbers are showing up vertically aligned. Is something from my code causing this? If this code doesn't give enough information, please let me know and I'll post the full code.
foreach (getPageList($number_of_pages, $whatIWant, 12) as $i)
{
if ($i == $whatIWant)
{
$pagination .= '<li class="active"><a href="?page='.$page. $i .
'"ng-click="progress()" class="goToTop">' .
$i . '</a></li>';
}
else if ($i == 0)
{
$pagination .= '<li>…</li>';
}
else
{
$pagination .= '<li class="active"><a href="?page='.$page. $i .
'"ng-click="progress()" class="goToTop">' .
$i . '</a></li>';
}
}
echo $pagination;