Skip to content

Fluid, flexible, fantastically minimal slider widget for Yii 2

License

Notifications You must be signed in to change notification settings

cybercog/yii2-unslider-widget

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yii2-unslider-widget

Fluid, flexible, fantastically minimal slider widget for Yii 2

screenshot

Installation

Add the following to require section of your composer.json:

dd3v/yii2-unslider-widget": "*"

and run composer install.

Usage

  use dd3v\unslider\Unslider;
  echo Unslider::widget([
      'options' => [
          'dots' => false,
          'keys' => true,
          'fluid' => true
       ],
       'slides' => [
            [
                'img' => 'http://unslider.com/img/sunset.jpg',
                'title' => 'Yii PHP Framework',
                'body' => 'Unslider widget for Yii 2',
                'button' => ['title' => 'Download', 'href' => '#help', 'class' => 'btn']
            ],
            [
                'img' => 'http://unslider.com/img/subway.jpg',
                'title' => 'Another image',
                'body' => 'description',
                'button' => ['title' => 'Download', 'href' => '#help', 'class' => 'btn']
            ]
  ]]);

About

Fluid, flexible, fantastically minimal slider widget for Yii 2

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published