Completed
Push — master ( 4e80d2...27924e )
by Klochok
15:37
created

BannerCarousel::getPluginInit()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 14
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 14
rs 9.4285
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace hiqdev\themes\obaju\widgets;
4
5
class BannerCarousel extends OwlCarousel
6
{
7
    public $containerOptions = ['id' => 'main-slider'];
8
9
    public function getPluginInit()
10
    {
11
        return "
12
        $('#main-slider').owlCarousel({
13
            navigation: true, // Show next and prev buttons
14
            slideSpeed: 300,
15
            paginationSpeed: 400,
16
            autoPlay: true,
17
            stopOnHover: true,
18
            singleItem: true,
19
            afterInit: ''
20
        });
21
        ";
22
    }
23
}
24