public function pages($config = array())
    {
        $config = new ModelPaginator($config);
        $config->append(array(
            'url'      => null,
            'total'    => 0,
            'display'  => 2,
            'offset'   => 0,
            'limit'    => 0,
            'show_limit' => true,
            'show_count' => false
        ))->append(array(
            'show_pages' => $config->count !== 1
        ));

        $pages = $config->pages;

        $html = '';

        $html .= $pages->previous->active ? '<li>'.$this->page($pages->previous, $config->url).'</li>' : '';

        $previous = null;
        foreach ($pages->offsets as $page)
        {
            if ($previous && $page->page - $previous->page > 1) {
                $html .= '<li class="k-is-disabled"><span>&hellip;</span></li>';
            }

            $html .= '<li class="'.($page->active && !$page->current ? '' : 'k-is-active').'">';
            $html .= $this->page($page, $config->url);
            $html .= '</li>';

            $previous = $page;
        }

        $html  .= $pages->next->active ? '<li>'.$this->page($pages->next, $config->url).'</li>' : '';

        return $html;
    }