Swat/SwatNavBar.php
public function display()
    {
        if (!$this->visible) {
            return;
        }

        parent::display();

        $count = count($this);
        $i = 1;

        $container_tag = $this->getContainerTag();
        $container_tag->open();

        foreach ($this->entries as $entry) {
            // display separator
            if ($i > 1) {
                echo SwatString::minimizeEntities($this->separator);
            }

            // link all entries or link all but the last entry
            $link = $this->link_last_entry || $i < $count;

            $this->displayEntry($entry, $link, $i === 1);

            $i++;
        }

        $container_tag->close();
    }
public function display()
    {
        if (!$this->visible) {
            return;
        }

        parent::display();

        $count = count($this);
        $i = 1;

        $container_tag = $this->getContainerTag();
        $container_tag->open();

        foreach ($this->entries as $entry) {
            // display separator
            if ($i > 1) {
                echo SwatString::minimizeEntities($this->separator);
            }

            // link all entries or link all but the last entry
            $link = $this->link_last_entry || $i < $count;

            $this->displayEntry($entry, $link, $i === 1);

            $i++;
        }

        $container_tag->close();
    }
public function display ( ) { if ( ! $ this -> visible ) { return ; } parent :: display ( ) ; $ count = count ( $ this ) ; $ i = 1 ; $ container_tag = $ this -> getContainerTag ( ) ; $ container_tag -> open ( ) ; foreach ( $ this -> entries as $ entry ) { // display separator if ( $ i > 1 ) { echo SwatString :: minimizeEntities ( $ this -> separator ) ; } // link all entries or link all but the last entry $ link = $ this -> link_last_entry || $ i < $ count ; $ this -> displayEntry ( $ entry , $ link , $ i === 1 ) ; $ i ++ ; } $ container_tag -> close ( ) ; }
Displays this navigational bar

Displays each entry separated by a special character and outputs
navbar entries with links as anchor tags.
Displays this navigational bar