protected function element($element, $page, $text, $disabled)
        {
            $class = "{$element}_page";

            if (is_null($text)) {
                $text = Lang::line("pagination.{$element}")->get($this->language);
            }

            // Each consumer of this method provides a "disabled" Closure which can
            // be used to determine if the element should be a span element or an
            // actual link. For example, if the current page is the first page,
            // the "first" element should be a span instead of a link.
            if ($disabled($this->page, $this->last)) {
                return '<li' . Html::attributes(array('class'=>"{$class} disabled")).'><a href="#">' . Inflector::utf8($text) . '</a></li>';
            } else {
                return $this->link($page, $text, $class);
            }
        }