-
Notifications
You must be signed in to change notification settings - Fork 1
/
NivoSlider.php
executable file
·41 lines (37 loc) · 1.19 KB
/
NivoSlider.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
/**
* @copyright Copyright © Amilna, amilna.net, 2015
* @package yii2-yap
*/
namespace amilna\yap;
/**
* Widget renders a Nivo Slider widget.
*
* For example:
*
* use amilna\nivoslider\NivoSlider;
*
* echo NivoSlider::widget([
* 'dataProvider'=>$dataProvider, // active data provider or just array of image,url, title and description, exp: [["image"=>"test1.jpg","url"=>null],["image"=>"test2.jpg","url"=>null]]
* 'targetId'=>'nivoslider', //id of rendered nivoslider (the container will constructed by the widget with the given id)
* 'imageKey'=>'image', //model attribute to be used as background
* 'theme' => 'default', //available themes: default, bar, dark, light
* 'css' => '', // url of css to overide default css relative from @web
*
*
* // example to overide default options more options on http://docs.dev7studios.com/jquery-plugins/nivo-slider
* 'options'=>[
* 'effect'=> 'boxRandom',
* 'manualAdvance'=>false,
* 'controlNav'=> false
* ],
*
* ]);
*
* @author Amilna
* @see https://github.com/gilbitron/Nivo-Slider
* @package amilna\nivoslider
*/
class NivoSlider extends \amilna\nivoslider\NivoSlider
{
}