public static function carouselItem($content, $label, $caption, $htmlOptions = array())
    {
        self::addCssClass('item', $htmlOptions);
        $overlayOptions = TbArray::popValue('overlayOptions', $htmlOptions, array());
        self::addCssClass('carousel-caption', $overlayOptions);
        $labelOptions = TbArray::popValue('labelOptions', $htmlOptions, array());
        $captionOptions = TbArray::popValue('captionOptions', $htmlOptions, array());
        $url = TbArray::popValue('url', $htmlOptions, false);
        if ($url !== false) {
            $content = self::link($content, $url);
        }
        $output = self::openTag('div', $htmlOptions);
        $output .= $content;
        if (isset($label) || isset($caption)) {
            $output .= self::openTag('div', $overlayOptions);
            if ($label) {
                $output .= self::tag('h4', $labelOptions, $label);
            }
            if ($caption) {
                $output .= self::tag('p', $captionOptions, $caption);
            }
            $output .= '</div>';
        }
        $output .= '</div>';
        return $output;
    }
public static function carouselItem($content, $label, $caption, $htmlOptions = array())
    {
        self::addCssClass('item', $htmlOptions);
        $overlayOptions = TbArray::popValue('overlayOptions', $htmlOptions, array());
        self::addCssClass('carousel-caption', $overlayOptions);
        $labelOptions = TbArray::popValue('labelOptions', $htmlOptions, array());
        $captionOptions = TbArray::popValue('captionOptions', $htmlOptions, array());
        $url = TbArray::popValue('url', $htmlOptions, false);
        if ($url !== false) {
            $content = self::link($content, $url);
        }
        $output = self::openTag('div', $htmlOptions);
        $output .= $content;
        if (isset($label) || isset($caption)) {
            $output .= self::openTag('div', $overlayOptions);
            if ($label) {
                $output .= self::tag('h4', $labelOptions, $label);
            }
            if ($caption) {
                $output .= self::tag('p', $captionOptions, $caption);
            }
            $output .= '</div>';
        }
        $output .= '</div>';
        return $output;
    }
public static function carouselItem ( $ content , $ label , $ caption , $ htmlOptions = array ( ) ) { self :: addCssClass ( 'item' , $ htmlOptions ) ; $ overlayOptions = TbArray :: popValue ( 'overlayOptions' , $ htmlOptions , array ( ) ) ; self :: addCssClass ( 'carousel-caption' , $ overlayOptions ) ; $ labelOptions = TbArray :: popValue ( 'labelOptions' , $ htmlOptions , array ( ) ) ; $ captionOptions = TbArray :: popValue ( 'captionOptions' , $ htmlOptions , array ( ) ) ; $ url = TbArray :: popValue ( 'url' , $ htmlOptions , false ) ; if ( $ url !== false ) { $ content = self :: link ( $ content , $ url ) ; } $ output = self :: openTag ( 'div' , $ htmlOptions ) ; $ output .= $ content ; if ( isset ( $ label ) || isset ( $ caption ) ) { $ output .= self :: openTag ( 'div' , $ overlayOptions ) ; if ( $ label ) { $ output .= self :: tag ( 'h4' , $ labelOptions , $ label ) ; } if ( $ caption ) { $ output .= self :: tag ( 'p' , $ captionOptions , $ caption ) ; } $ output .= '</div>' ; } $ output .= '</div>' ; return $ output ; }
Generates a carousel item.
@param string $content the content.
@param string $label the item label text.
@param string $caption the item caption text.
@param array $htmlOptions additional HTML attributes.
@return string the generated item.
Generates a carousel item .