setSurroundCount(0); if ($pager->hasPrevious()) { echo '' . PHP_EOL; } echo '' . PHP_EOL; if ($pager->hasNext()) { echo '' . PHP_EOL; }