protected function displayEntry(
        SwatNavBarEntry $entry,
        $show_link = true,
        $first = false
    ) {
        $title = $entry->title === null ? '' : $entry->title;
        $link = $this->getLink($entry);

        if ($link !== null && $show_link) {
            $a_tag = new SwatHtmlTag('a');
            $a_tag->href = $link;
            if ($first) {
                $a_tag->class = 'swat-navbar-first';
            }

            $a_tag->setContent($title, $entry->content_type);
            $a_tag->display();
        } else {
            $span_tag = new SwatHtmlTag('span');
            if ($first) {
                $span_tag->class = 'swat-navbar-first';
            }

            $span_tag->setContent($title, $entry->content_type);
            $span_tag->display();
        }
    }