Core/Framework/Page/Template.php
final protected function getBreadcrumbs($data_only = false)
    {
        $breadcrumbs = $this->page->breadcrumbs->getBreadcrumbs();

        if ($data_only) {
            return $breadcrumbs;
        }

        // Add home button
        $text = $this->page->txt('home');

        if ($breadcrumbs) {
            $home_crumb = $this->page->breadcrumbs->createItem($text, BASEURL, $text);
        }
        else {
            $home_crumb = $this->page->breadcrumbs->createActiveItem($text, $text);
        }

        array_unshift($breadcrumbs, $home_crumb);

        ob_start();

        if ($breadcrumbs) {

            echo '<ol class="breadcrumb">';

            foreach ($breadcrumbs as $breadcrumb) {

                echo '<li';

                if ($breadcrumb->getActive()) {
                    echo ' class="active">' . $breadcrumb->getText();
                }
                else {
                    echo '><a href="' . $breadcrumb->getHref() . '">' . $breadcrumb->getText() . '</a>';
                }

                echo '</li>';
            }

            echo '</ol>';
        }

        return ob_get_clean();
    }
final protected function getBreadcrumbs($data_only = false)
    {
        $breadcrumbs = $this->page->breadcrumbs->getBreadcrumbs();

        if ($data_only) {
            return $breadcrumbs;
        }

        // Add home button
        $text = $this->page->txt('home');

        if ($breadcrumbs) {
            $home_crumb = $this->page->breadcrumbs->createItem($text, BASEURL, $text);
        }
        else {
            $home_crumb = $this->page->breadcrumbs->createActiveItem($text, $text);
        }

        array_unshift($breadcrumbs, $home_crumb);

        ob_start();

        if ($breadcrumbs) {

            echo '<ol class="breadcrumb">';

            foreach ($breadcrumbs as $breadcrumb) {

                echo '<li';

                if ($breadcrumb->getActive()) {
                    echo ' class="active">' . $breadcrumb->getText();
                }
                else {
                    echo '><a href="' . $breadcrumb->getHref() . '">' . $breadcrumb->getText() . '</a>';
                }

                echo '</li>';
            }

            echo '</ol>';
        }

        return ob_get_clean();
    }
final protected function getBreadcrumbs ( $ data_only = false ) { $ breadcrumbs = $ this -> page -> breadcrumbs -> getBreadcrumbs ( ) ; if ( $ data_only ) { return $ breadcrumbs ; } // Add home button $ text = $ this -> page -> txt ( 'home' ) ; if ( $ breadcrumbs ) { $ home_crumb = $ this -> page -> breadcrumbs -> createItem ( $ text , BASEURL , $ text ) ; } else { $ home_crumb = $ this -> page -> breadcrumbs -> createActiveItem ( $ text , $ text ) ; } array_unshift ( $ breadcrumbs , $ home_crumb ) ; ob_start ( ) ; if ( $ breadcrumbs ) { echo '<ol class="breadcrumb">' ; foreach ( $ breadcrumbs as $ breadcrumb ) { echo '<li' ; if ( $ breadcrumb -> getActive ( ) ) { echo ' class="active">' . $ breadcrumb -> getText ( ) ; } else { echo '><a href="' . $ breadcrumb -> getHref ( ) . '">' . $ breadcrumb -> getText ( ) . '</a>' ; } echo '</li>' ; } echo '</ol>' ; } return ob_get_clean ( ) ; }
Creates breadcrumb html content or returns it's data-

@param boolean $data_only
Set to true if you want to get get only the data without a generated html

@return string|array
Creates breadcrumb html content or returns it s data -