aaronschmied / yii2-uikit
Uikit for Yii2
Installs: 77
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 9
Open Issues: 0
Language:CSS
Type:yii2-extension
Requires
- yiisoft/yii2: >=2.0.6
This package is auto-updated.
Last update: 2021-05-14 23:41:47 UTC
README
Widgets & assets for a lightweight and modular front-end framework UiKit
Installation of Yii2 Uikit Extension
The preferred way to install this extension is through composer. Just run
php composer.phar require --prefer-dist aaronschmied/yii2-uikit ^2.0
or add
"aaronschmied/yii2-uikit": "^2.0"
to the require section of your composer.json
file.
Usage exaple:
For example, including main UiKit css & js files in any view files
\aaronschmied\uikit\UikitAsset::register($this);
Uikit Slideshow widget examples:
- render slideshow from webroot path with images
<?= \aaronschmied\uikit\widgets\Slideshow::widget(['path' => '/images/somefolder/']) ?>
- render slideshow with custom slides
<?= \aaronschmied\uikit\widgets\Slideshow::widget(['slides' => [ '<div class="slide">Any content with some <a href="#">button</a> e.g.</div>' '<div class="pam_pam_slide-two">Another content with some <a href="#">button</a> e.g.</div>' ] ]); ?>
- render slideshow with overlays
<?= \aaronschmied\uikit\widgets\Slideshow::widget(['items' => [ ['img'=>'/link/to/img.jpg','overlay'=>'Any content with some <a href="#">button</a> e.g.'], ['img'=>'/link/to/img.jpg','overlay'=>'Any content with some <a href="#">button</a> e.g.'], ] ]); ?>