public static function breadcrumbs($links, $htmlOptions = array())
    {
        $divider = TbArray::popValue('divider', $htmlOptions, '/');
        self::addCssClass('breadcrumb', $htmlOptions);
        $output = self::openTag('ul', $htmlOptions);
        foreach ($links as $label => $url) {
            if (is_string($label)) {
                $output .= self::openTag('li');
                $output .= self::link($label, $url);
                $output .= self::tag('span', array('class' => 'divider'), $divider);
                $output .= '</li>';
            } else {
                $output .= self::tag('li', array('class' => 'active'), $url);
            }
        }
        $output .= '</ul>';
        return $output;
    }
public static function breadcrumbs($links, $htmlOptions = array())
    {
        $divider = TbArray::popValue('divider', $htmlOptions, '/');
        self::addCssClass('breadcrumb', $htmlOptions);
        $output = self::openTag('ul', $htmlOptions);
        foreach ($links as $label => $url) {
            if (is_string($label)) {
                $output .= self::openTag('li');
                $output .= self::link($label, $url);
                $output .= self::tag('span', array('class' => 'divider'), $divider);
                $output .= '</li>';
            } else {
                $output .= self::tag('li', array('class' => 'active'), $url);
            }
        }
        $output .= '</ul>';
        return $output;
    }
public static function breadcrumbs ( $ links , $ htmlOptions = array ( ) ) { $ divider = TbArray :: popValue ( 'divider' , $ htmlOptions , '/' ) ; self :: addCssClass ( 'breadcrumb' , $ htmlOptions ) ; $ output = self :: openTag ( 'ul' , $ htmlOptions ) ; foreach ( $ links as $ label => $ url ) { if ( is_string ( $ label ) ) { $ output .= self :: openTag ( 'li' ) ; $ output .= self :: link ( $ label , $ url ) ; $ output .= self :: tag ( 'span' , array ( 'class' => 'divider' ) , $ divider ) ; $ output .= '</li>' ; } else { $ output .= self :: tag ( 'li' , array ( 'class' => 'active' ) , $ url ) ; } } $ output .= '</ul>' ; return $ output ; }
Generates a breadcrumb menu.
@param array $links the breadcrumb links.
@param array $htmlOptions additional HTML attributes.
@return string the generated breadcrumb.
Generates a breadcrumb menu .