protected function renderSlide($slideConfig = [])
    {
        $imageOptions = ArrayHelper::getValue($slideConfig, 'image', []);
        $imageSrc = ArrayHelper::remove($imageOptions, 'src', null);
        if (!$imageSrc) {
            return '';
        }

        $caption = $this->renderCaption(ArrayHelper::getValue($slideConfig, 'caption', false));
        $options = ArrayHelper::getValue($slideConfig, 'options', []);
        $options = ArrayHelper::merge($this->slideOptions, $options);

        $html[] = Html::beginTag('li', $options);
        $html[] = Html::img($imageSrc, $imageOptions);
        $html[] = $caption;
        $html[] = Html::endTag('li');
        return implode("\n", $html);
    }
protected function renderSlide($slideConfig = [])
    {
        $imageOptions = ArrayHelper::getValue($slideConfig, 'image', []);
        $imageSrc = ArrayHelper::remove($imageOptions, 'src', null);
        if (!$imageSrc) {
            return '';
        }

        $caption = $this->renderCaption(ArrayHelper::getValue($slideConfig, 'caption', false));
        $options = ArrayHelper::getValue($slideConfig, 'options', []);
        $options = ArrayHelper::merge($this->slideOptions, $options);

        $html[] = Html::beginTag('li', $options);
        $html[] = Html::img($imageSrc, $imageOptions);
        $html[] = $caption;
        $html[] = Html::endTag('li');
        return implode("\n", $html);
    }
protected function renderSlide ( $ slideConfig = [ ] ) { $ imageOptions = ArrayHelper :: getValue ( $ slideConfig , 'image' , [ ] ) ; $ imageSrc = ArrayHelper :: remove ( $ imageOptions , 'src' , null ) ; if ( ! $ imageSrc ) { return '' ; } $ caption = $ this -> renderCaption ( ArrayHelper :: getValue ( $ slideConfig , 'caption' , false ) ) ; $ options = ArrayHelper :: getValue ( $ slideConfig , 'options' , [ ] ) ; $ options = ArrayHelper :: merge ( $ this -> slideOptions , $ options ) ; $ html [ ] = Html :: beginTag ( 'li' , $ options ) ; $ html [ ] = Html :: img ( $ imageSrc , $ imageOptions ) ; $ html [ ] = $ caption ; $ html [ ] = Html :: endTag ( 'li' ) ; return implode ( "\n" , $ html ) ; }
Renders a single slide.

@param array $slideConfig the configuration for the slide
@return string the slide's markup
Renders a single slide .