carousel

mail@pastecode.io avatar
unknown
php
2 years ago
1.1 kB
4
Indexable
Never
<?php
    use yii\bootstrap4\Carousel;
    use yii\bootstrap4\Html;
?>

<?php
    echo Carousel::widget([
        'items' => [
            [
                'content' => Html::img('@web/images/127prev3x4.jpg', ['class' => 'd-block w-100']),
                /*'caption' => '<h4>This is title</h4><p>This is the caption text</p>',*/
                'options' => [
                    'class' => 'carousel-item',
                ],
            ],
            [
                'content' => Html::img('@web/images/128prev3x4.jpg', ['class' => 'd-block w-100']),
                /*'caption' => '<h4>This is title</h4><p>This is the caption text</p>',*/
                'options' => [
                    'class' => 'carousel-item',
                ],
            ],
            [
                'content' => Html::img('@web/images/129prev3x4.jpg', ['class' => 'd-block w-100']),
                /*'caption' => '<h4>This is title</h4><p>This is the caption text</p>',*/
                'options' => [
                    'class' => 'carousel-item',
                ],
            ],
        ]
    ]);
?>