protected function getLinks($options = array())
	{
		global $wp_query, $wp_rewrite;

		//use the query for paging
		$current = $wp_query->query_vars['paged'] > 1 ? $wp_query->query_vars['paged'] : 1;

		//set the "paginate_links" array to do what we would like it it.
		//Check the codex for examples http://codex.wordpress.org/Function_Reference/paginate_links
		$pagination = array(
			'base'     => @add_query_arg('paged', '%#%'),
			//'format' => '',
			'showall'  => false,
			'end_size' => $this->endSize,
			'mid_size' => $this->midSize,
			'total'    => $wp_query->max_num_pages,
			'current'  => $current,
			'type'     => 'array',
			'prev_text' => $this->defaults['prev_text'],
			'next_text' => $this->defaults['next_text'],
		);

		//build the paging links
		if ($wp_rewrite->using_permalinks())
		{
			$pagination['base'] = user_trailingslashit(trailingslashit(remove_query_arg('s', get_pagenum_link(1))) . 'page/%#%/', 'paged');
		}

		//more paging links
		if (!empty($wp_query->query_vars['s']))
		{
			$pagination['add_args'] = array('s' => urlencode(get_query_var('s')));
		}

		$aLinks = paginate_links($pagination);

		if (!$aLinks)
		{
			return null;
		}

		return $this->parseWpLinks($aLinks);

	}