Browse code

Refactor and rewrite as contao bundle

Benjamin Roth authored on04/11/2022 22:32:32
Showing1 changed files
1 1
deleted file mode 100644
... ...
@@ -1,36 +0,0 @@
1
-<?php
2
-
3
-/**
4
- * Slick slider for Contao
5
- *
6
- * Copyright (c) 2016 Benjamin Roth
7
- *
8
- * @license LGPL-3.0+
9
- */
10
-
11
-
12
-/**
13
- * Asset version
14
- */
15
-$GLOBALS['TL_ASSETS']['SWIPERJS'] = '6.5.0';
16
-
17
-/**
18
- * Content elements
19
- */
20
-$GLOBALS['TL_CTE']['swiperSlider'] = array
21
-(
22
-  'swiperSliderStart'     => 'ContentSwiperSliderStart',
23
-  'swiperSliderStop'      => 'ContentSwiperSliderStop',
24
-  'swiperSliderSlideStart'=> 'ContentSwiperSliderSlideStart',
25
-  'swiperSliderSlideStop' => 'ContentSwiperSliderSlideStop',
26
-  'swiperSliderImage'     => 'ContentSwiperSliderImage'
27
-);
28
-
29
-/**
30
- * Wrapper elements
31
- */
32
-
33
-$GLOBALS['TL_WRAPPERS']['start'][] = 'swiperSliderStart';
34
-$GLOBALS['TL_WRAPPERS']['stop'][] = 'swiperSliderStop';
35
-$GLOBALS['TL_WRAPPERS']['start'][] = 'swiperSliderSlideStart';
36
-$GLOBALS['TL_WRAPPERS']['stop'][] = 'swiperSliderSlideStop';
Browse code

swiper.js version 6.5.0

Benjamin Roth authored on14/03/2021 15:29:46
Showing1 changed files
... ...
@@ -12,7 +12,7 @@
12 12
 /**
13 13
  * Asset version
14 14
  */
15
-$GLOBALS['TL_ASSETS']['SWIPERJS'] = '6.3.3';
15
+$GLOBALS['TL_ASSETS']['SWIPERJS'] = '6.5.0';
16 16
 
17 17
 /**
18 18
  * Content elements
Browse code

Fix wrong CTE wrapper configuration

Benjamin Roth authored on13/10/2020 20:04:47
Showing1 changed files
... ...
@@ -33,4 +33,4 @@ $GLOBALS['TL_CTE']['swiperSlider'] = array
33 33
 $GLOBALS['TL_WRAPPERS']['start'][] = 'swiperSliderStart';
34 34
 $GLOBALS['TL_WRAPPERS']['stop'][] = 'swiperSliderStop';
35 35
 $GLOBALS['TL_WRAPPERS']['start'][] = 'swiperSliderSlideStart';
36
-$GLOBALS['TL_WRAPPERS']['stop'][] = 'swiperSliderImage';
36
+$GLOBALS['TL_WRAPPERS']['stop'][] = 'swiperSliderSlideStop';
Browse code

swiper.js version 6.3.3

Benjamin Roth authored on13/10/2020 19:31:56
Showing1 changed files
... ...
@@ -12,7 +12,7 @@
12 12
 /**
13 13
  * Asset version
14 14
  */
15
-$GLOBALS['TL_ASSETS']['SWIPERJS'] = '5.4.0';
15
+$GLOBALS['TL_ASSETS']['SWIPERJS'] = '6.3.3';
16 16
 
17 17
 /**
18 18
  * Content elements
Browse code

Initial commit

Benjamin Roth authored on19/05/2020 21:59:44
Showing1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,36 @@
1
+<?php
2
+
3
+/**
4
+ * Slick slider for Contao
5
+ *
6
+ * Copyright (c) 2016 Benjamin Roth
7
+ *
8
+ * @license LGPL-3.0+
9
+ */
10
+
11
+
12
+/**
13
+ * Asset version
14
+ */
15
+$GLOBALS['TL_ASSETS']['SWIPERJS'] = '5.4.0';
16
+
17
+/**
18
+ * Content elements
19
+ */
20
+$GLOBALS['TL_CTE']['swiperSlider'] = array
21
+(
22
+  'swiperSliderStart'     => 'ContentSwiperSliderStart',
23
+  'swiperSliderStop'      => 'ContentSwiperSliderStop',
24
+  'swiperSliderSlideStart'=> 'ContentSwiperSliderSlideStart',
25
+  'swiperSliderSlideStop' => 'ContentSwiperSliderSlideStop',
26
+  'swiperSliderImage'     => 'ContentSwiperSliderImage'
27
+);
28
+
29
+/**
30
+ * Wrapper elements
31
+ */
32
+
33
+$GLOBALS['TL_WRAPPERS']['start'][] = 'swiperSliderStart';
34
+$GLOBALS['TL_WRAPPERS']['stop'][] = 'swiperSliderStop';
35
+$GLOBALS['TL_WRAPPERS']['start'][] = 'swiperSliderSlideStart';
36
+$GLOBALS['TL_WRAPPERS']['stop'][] = 'swiperSliderImage';