src/Ease/TWB/Carousel.php
public function addSlide($slide, $capHeading = '', $caption = '',
                             $default = false)
    {
        $item = new \Ease\Html\DivTag($slide, ['class' => 'item']);
        if ($default) {
            $item->addTagClass('active');
        }

        if ($capHeading || $caption) {
            $cpt = $item->addItem(new \Ease\Html\DivTag(null,
                    ['class' => 'carousel-caption']));
            if ($capHeading) {
                $cpt->addItem(new \Ease\Html\H4Tag($capHeading));
            }
            if ($caption) {
                $cpt->addItem(new \Ease\Html\PTag($caption));
            }
        }
        $to        = $this->indicators->getItemsCount();
        $indicator = new \Ease\Html\LiTag(null,
            ['data-target' => '#'.$this->name, 'data-slide-to' => $to]);
        if ($default) {
            $indicator->addTagClass('active');
            $this->active = $to;
        }
        $this->indicators->addItem($indicator);
        $this->inner->addItem($item);
    }
public function addSlide($slide, $capHeading = '', $caption = '',
                             $default = false)
    {
        $item = new \Ease\Html\DivTag($slide, ['class' => 'item']);
        if ($default) {
            $item->addTagClass('active');
        }

        if ($capHeading || $caption) {
            $cpt = $item->addItem(new \Ease\Html\DivTag(null,
                    ['class' => 'carousel-caption']));
            if ($capHeading) {
                $cpt->addItem(new \Ease\Html\H4Tag($capHeading));
            }
            if ($caption) {
                $cpt->addItem(new \Ease\Html\PTag($caption));
            }
        }
        $to        = $this->indicators->getItemsCount();
        $indicator = new \Ease\Html\LiTag(null,
            ['data-target' => '#'.$this->name, 'data-slide-to' => $to]);
        if ($default) {
            $indicator->addTagClass('active');
            $this->active = $to;
        }
        $this->indicators->addItem($indicator);
        $this->inner->addItem($item);
    }
Carousel Slide.

@param mixed|ImgTag $slide      body Image or something else
@param string       $capHeading
@param string       $caption
@param bool         $default    show slide by default