Creo que seria asi:
Código PHP:
Ver original<div id="pagination" style="width:900px">
<?php
// set page value for pagination
$page = isset($_GET['page']) ?
$_GET['page'] : 1;
// display previous button
if($page > 1){
$previous = $page - 1;
echo '<span><a class="page" href="searchresults.php?page=' .safe_int($previous) .'"><i class="icon-caret-left"></i></a></span>';
}
// display page numbers if more then 1 page
if(isset($page_info) && $page_info['pages'] > 1){ for($i=1; $i <= $page_info['pages']; $i++){
if($i == $page){
echo "<span><a class='page' href='searchresults.php?page=" .safe_int($i) ."' style='color: red;'><strong>" .safe_int($i) ."</strong></a></span>";
}else{
echo "<span><a class='page' href='searchresults.php?page=" .safe_int($i) ."'>" .safe_int($i) ."</a></span>";
}
}
}
// display next button
if($page < $page_info['pages']){
$next = $page + 1;
echo '<span><a class="page" href="searchresults.php?page=' .safe_int($next) .'"><i class="icon-caret-right"></i></a></span>';
}
}
?>
</div>
espero que sirva, saludos!