public function numbers($link, $current, $reversed = false)
    {
        $r = '';
        $range = floor(($this->max_items - 1) / 2);
        if (!$this->max_items) {
            $page_nums = range(1, $this->pages());
        } else {
            $lower_limit = max($this->get - $range, 1);
            $upper_limit = min($this->pages(), $this->get + $range);
            $page_nums = range($lower_limit, $upper_limit);
        }

        if ($reversed) {
            $page_nums = array_reverse($page_nums);
        }

        foreach ($page_nums as $i) {
            if ($this->get == $i) {
                $r .= str_replace('{nr}', $i, $current);
            } else {
                $r .= str_replace('{nr}', $i, $link);
            }
        }
        return $r;
    }