public function limit($options = false)
{
if (false !== $this->callback('limit', $options)) {
return null;
}
if (false === $options || !is_array($options) || empty($options)) {
$options = array(10, 25, 50, 100, 200);
}
if (!in_array($this->limit, $options) && -1 != $this->limit) {
$this->limit = $options[1];
}
foreach ($options as $option) {
if ($option == $this->limit) {
echo ' <span class="page-numbers current">' . esc_html($option) . '</span>';
} else {
echo ' <a href="' . esc_url(pods_query_arg(array('limit' => $option), array('orderby' . $this->num, 'orderby_dir' . $this->num, 'search' . $this->num, 'filter_*', 'page' . $this->num), $this->exclusion())) . '">' . esc_html($option) . '</a>';
}
}
}