More tidying.
[yaffs-website] / web / modules / contrib / slick / src / SlickSkin.php
1 <?php
2
3 namespace Drupal\slick;
4
5 use Drupal\Core\StringTranslation\StringTranslationTrait;
6
7 /**
8  * Implements SlickSkinInterface.
9  */
10 class SlickSkin implements SlickSkinInterface {
11
12   use StringTranslationTrait;
13
14   /**
15    * {@inheritdoc}
16    */
17   public function skins() {
18     $skins = [
19       'default' => [
20         'name' => 'Default',
21         'css' => [
22           'theme' => [
23             'css/theme/slick.theme--default.css' => [],
24           ],
25         ],
26       ],
27       'asnavfor' => [
28         'name' => 'Thumbnail: asNavFor',
29         'css' => [
30           'theme' => [
31             'css/theme/slick.theme--asnavfor.css' => [],
32           ],
33         ],
34         'description' => $this->t('Affected thumbnail navigation only.'),
35       ],
36       'classic' => [
37         'name' => 'Classic',
38         'description' => $this->t('Adds dark background color over white caption, only good for slider (single slide visible), not carousel (multiple slides visible), where small captions are placed over images.'),
39         'css' => [
40           'theme' => [
41             'css/theme/slick.theme--classic.css' => [],
42           ],
43         ],
44       ],
45       'fullscreen' => [
46         'name' => 'Full screen',
47         'description' => $this->t('Adds full screen display, works best with 1 slidesToShow.'),
48         'css' => [
49           'theme' => [
50             'css/theme/slick.theme--full.css' => [],
51             'css/theme/slick.theme--fullscreen.css' => [],
52           ],
53         ],
54       ],
55       'fullwidth' => [
56         'name' => 'Full width',
57         'description' => $this->t('Adds .slide__constrained wrapper to hold caption overlay within the max-container.'),
58         'css' => [
59           'theme' => [
60             'css/theme/slick.theme--full.css' => [],
61             'css/theme/slick.theme--fullwidth.css' => [],
62           ],
63         ],
64       ],
65       'grid' => [
66         'name' => 'Grid Foundation',
67         'description' => $this->t('Use slidesToShow > 1 to have more grid combination, only if you have considerable amount of grids, otherwise 1.'),
68         'css' => [
69           'theme' => [
70             'css/theme/slick.theme--grid.css' => [],
71           ],
72         ],
73       ],
74       'split' => [
75         'name' => 'Split',
76         'description' => $this->t('Puts image and caption side by side, requires any split layout option.'),
77         'css' => [
78           'theme' => [
79             'css/theme/slick.theme--split.css' => [],
80           ],
81         ],
82       ],
83     ];
84
85     foreach ($skins as $key => $skin) {
86       $skins[$key]['group'] = $key == 'asnavfor' ? 'thumbnail' : 'main';
87       $skins[$key]['provider'] = 'slick';
88     }
89
90     return $skins;
91   }
92
93 }