public function render()
{
if ($this->hasPages()) {
if ($this->simple) {
return sprintf('<ul class="pager">%s %s</ul>', $this->getPreviousButton(), $this->getNextButton());
} else {
return sprintf('<ul class="pagination">%s %s %s</ul>', $this->getPreviousButton(), $this->getLinks(), $this->getNextButton());
}
}
}