public static function carouselIndicators($target, $numSlides, $htmlOptions = array())
    {
        self::addCssClass('carousel-indicators', $htmlOptions);
        $output = self::openTag('ol', $htmlOptions);
        for ($i = 0; $i < $numSlides; $i++) {
            $itemOptions = array('data-target' => $target, 'data-slide-to' => $i);
            if ($i === 0) {
                $itemOptions['class'] = 'active';
            }
            $output .= self::tag('li', $itemOptions, '', true);
        }
        $output .= '</ol>';
        return $output;
    }
public static function carouselIndicators($target, $numSlides, $htmlOptions = array())
    {
        self::addCssClass('carousel-indicators', $htmlOptions);
        $output = self::openTag('ol', $htmlOptions);
        for ($i = 0; $i < $numSlides; $i++) {
            $itemOptions = array('data-target' => $target, 'data-slide-to' => $i);
            if ($i === 0) {
                $itemOptions['class'] = 'active';
            }
            $output .= self::tag('li', $itemOptions, '', true);
        }
        $output .= '</ol>';
        return $output;
    }
public static function carouselIndicators ( $ target , $ numSlides , $ htmlOptions = array ( ) ) { self :: addCssClass ( 'carousel-indicators' , $ htmlOptions ) ; $ output = self :: openTag ( 'ol' , $ htmlOptions ) ; for ( $ i = 0 ; $ i < $ numSlides ; $ i ++ ) { $ itemOptions = array ( 'data-target' => $ target , 'data-slide-to' => $ i ) ; if ( $ i === 0 ) { $ itemOptions [ 'class' ] = 'active' ; } $ output .= self :: tag ( 'li' , $ itemOptions , '' , true ) ; } $ output .= '</ol>' ; return $ output ; }
Generates an indicator for the carousel.
@param string $target the CSS selector for the target element.
@param integer $numSlides the number of slides.
@param array $htmlOptions additional HTML attributes.
@return string the generated indicators.
Generates an indicator for the carousel .