dd3v/yii2-unslider-widget

This package is abandoned and no longer maintained. No replacement package was suggested.

Fluid, flexible, fantastically minimal slider widget for Yii 2.

Installs: 465

Dependents: 0

Suggesters: 0

Security: 0

Stars: 4

Watchers: 1

Forks: 1

Open Issues: 0

Language:CSS

Type:yii2-extension

dev-master 2015-01-27 03:52 UTC

This package is not auto-updated.

Last update: 2020-01-20 17:25:57 UTC


README

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']
            ]
  ]]);