total; if ($this->page page; } if (!(int)$this->limit) { $limit = 10; } else { $limit = $this->limit; } $num_links = $this->num_links; $num_pages = ceil($total / $limit); $output = ''; if ($page > 1) { $output .= 'url) . '">' . $this->text_prev . ''; } if ($num_pages > 1) { if ($num_pages $num_pages) { $start -= ($end - $num_pages); $end = $num_pages; } } if ($start > 1) { $output .= '...'; } for ($i = $start; $i ' . $i . ''; } else { $output .= 'url) . '">' . $i . ''; } } if ($end ...'; } } if ($page url) . '">' . $this->text_next . ''; } return $output ? 'style_links . '">' . $output . '' : ''; } } ?>