PHP code example of ruwmapps / yii2_uikit3
1. Go to this page and download the library: Download ruwmapps/yii2_uikit3 library . Choose the download type require .
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once ('vendor/autoload.php' );
ruwmapps / yii2_uikit3 example snippets
\ruwmapps\yii2_uikit3\UikitAsset::register($this );
<? use ruwmapps \yii2_uikit3 \widgets \Slideshow ;
<? = Slideshow::widget(['path' => '/img/slideshow/' ,'ukSlideshow' => 'animation:fade; autoplay:true; autoplay-interval: 3000' ,'downLi' => 1 ]);
<? = Slideshow::widget(['images' => ['/img/slideshow/dark.jpg' ,'/img/slideshow/light.jpg' ],'ukSlideshow' => 'animation:fade; autoplay:true; autoplay-interval: 3000' ,'downLi' => 1 ]);
<? = Slideshow::widget(['items' => [
['img' =>'/img/slideshow/dark.jpg' ,'overlay' =>'<h3 class="uk-margin-remove">Заголовок</h3><p class="uk-margin-remove">Текст к первой картинке.</p>' ,'classOver' =>'uk-position-bottom uk-position-medium uk-text-center uk-light' ],
['img' =>'/img/slideshow/light.jpg' ,'overlay' =>'<h3 class="uk-margin-remove">Заголовок</h3><p class="uk-margin-remove">Текст ко второй картинке.</p>' ,'classOver' =>'uk-overlay uk-overlay-primary uk-position-bottom uk-text-center' ],
]
]);
php composer.phar