1 | <?php |
||
11 | class OwlCarousel extends Widget |
||
12 | { |
||
13 | /** |
||
14 | * Items (div, a, img, span, li etc.) |
||
15 | * @var array |
||
16 | */ |
||
17 | public $items = []; |
||
18 | |||
19 | public $formatter; |
||
20 | |||
21 | /** |
||
22 | * Container element (div, ul etc.) |
||
23 | * @var string |
||
24 | */ |
||
25 | public $containerTag = 'div'; |
||
26 | |||
27 | public $wrapperTag = 'div'; |
||
28 | |||
29 | /** |
||
30 | * Only the class owl-carousel is mandatory to apply proper styles |
||
31 | * NOTE: The owl-theme class is optional, but without it, you will need to style navigation features on your own. |
||
32 | * @var array |
||
33 | */ |
||
34 | protected $defaultContainerOptions = ['class' => 'owl-carousel owl-theme']; |
||
35 | |||
36 | public $containerOptions = []; |
||
37 | |||
38 | public function init() |
||
44 | |||
45 | public function run() |
||
56 | |||
57 | /** |
||
58 | * @return string |
||
59 | */ |
||
60 | public function getPluginInit() |
||
64 | |||
65 | protected function initCarouselJs() |
||
71 | } |
||
72 |