public function finalize()
    {
        Part::twBootstrapize();
        if (is_null($this->active) && $this->getItemsCount() ) { //We need one slide active
            $this->indicators->getFirstPart()->setTagClass('active');
            $this->inner->getFirstPart()->addTagClass('active');
        }
        $this->inner->addItem(
            new \Ease\Html\ATag(
                '#'.$this->getTagID(),
                [
                new \Ease\Html\Span(null,
                    ['class' => 'glyphicon glyphicon-chevron-left', 'aria-hidden' => 'true']),
                new \Ease\Html\Span(_('Previous'), ['class' => 'sr-only']),
                ],
                ['class' => 'left carousel-control', 'data-slide' => 'prev', 'role' => 'button']
            )
        );
        $this->inner->addItem(
            new \Ease\Html\ATag(
                '#'.$this->getTagID(),
                [
                new \Ease\Html\Span(null,
                    ['class' => 'glyphicon glyphicon-chevron-right', 'aria-hidden' => 'true']),
                new \Ease\Html\Span(_('Next'), ['class' => 'sr-only']),
                ],
                ['class' => 'right carousel-control', 'data-slide' => 'next', 'role' => 'button']
            )
        );
        if ($this->getTagProperty('data-ride') != 'carousel') {
            $this->addJavaScript('$(\'#'.$this->name.'\').carousel();', null,
                true);
        }
    }
public function finalize()
    {
        Part::twBootstrapize();
        if (is_null($this->active) && $this->getItemsCount() ) { //We need one slide active
            $this->indicators->getFirstPart()->setTagClass('active');
            $this->inner->getFirstPart()->addTagClass('active');
        }
        $this->inner->addItem(
            new \Ease\Html\ATag(
                '#'.$this->getTagID(),
                [
                new \Ease\Html\Span(null,
                    ['class' => 'glyphicon glyphicon-chevron-left', 'aria-hidden' => 'true']),
                new \Ease\Html\Span(_('Previous'), ['class' => 'sr-only']),
                ],
                ['class' => 'left carousel-control', 'data-slide' => 'prev', 'role' => 'button']
            )
        );
        $this->inner->addItem(
            new \Ease\Html\ATag(
                '#'.$this->getTagID(),
                [
                new \Ease\Html\Span(null,
                    ['class' => 'glyphicon glyphicon-chevron-right', 'aria-hidden' => 'true']),
                new \Ease\Html\Span(_('Next'), ['class' => 'sr-only']),
                ],
                ['class' => 'right carousel-control', 'data-slide' => 'next', 'role' => 'button']
            )
        );
        if ($this->getTagProperty('data-ride') != 'carousel') {
            $this->addJavaScript('$(\'#'.$this->name.'\').carousel();', null,
                true);
        }
    }
public function finalize ( ) { Part :: twBootstrapize ( ) ; if ( is_null ( $ this -> active ) && $ this -> getItemsCount ( ) ) { //We need one slide active $ this -> indicators -> getFirstPart ( ) -> setTagClass ( 'active' ) ; $ this -> inner -> getFirstPart ( ) -> addTagClass ( 'active' ) ; } $ this -> inner -> addItem ( new \ Ease \ Html \ ATag ( '#' . $ this -> getTagID ( ) , [ new \ Ease \ Html \ Span ( null , [ 'class' => 'glyphicon glyphicon-chevron-left' , 'aria-hidden' => 'true' ] ) , new \ Ease \ Html \ Span ( _ ( 'Previous' ) , [ 'class' => 'sr-only' ] ) , ] , [ 'class' => 'left carousel-control' , 'data-slide' => 'prev' , 'role' => 'button' ] ) ) ; $ this -> inner -> addItem ( new \ Ease \ Html \ ATag ( '#' . $ this -> getTagID ( ) , [ new \ Ease \ Html \ Span ( null , [ 'class' => 'glyphicon glyphicon-chevron-right' , 'aria-hidden' => 'true' ] ) , new \ Ease \ Html \ Span ( _ ( 'Next' ) , [ 'class' => 'sr-only' ] ) , ] , [ 'class' => 'right carousel-control' , 'data-slide' => 'next' , 'role' => 'button' ] ) ) ; if ( $ this -> getTagProperty ( 'data-ride' ) != 'carousel' ) { $ this -> addJavaScript ( '$(\'#' . $ this -> name . '\').carousel();' , null , true ) ; } }
Add Navigation buttons.
Add Navigation buttons .