Swat/SwatNavBar.php
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();
        }
    }
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();
        }
    }
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 ( ) ; } }
Displays an entry in this navigational bar

@param SwatNavBarEntry $entry the entry to display.
@param boolean $link whether or not to hyperlink the given entry if the
entry has a link set.
@param boolean $first whether or not this entry should be displayed as
the first entry.
Displays an entry in this navigational bar