Browse code

Restructure template folder to use Contao template dir structure

Benjamin Roth authored on10/03/2016 11:24:31
Showing3 changed files
... ...
@@ -16,5 +16,5 @@
16 16
  */
17 17
 TemplateLoader::addFiles(array
18 18
 (
19
-	'j_waypoints' => 'system/modules/eSM_waypoints/templates',
19
+	'j_waypoints' => 'system/modules/eSM_waypoints/templates/jquery',
20 20
 ));
21 21
deleted file mode 100644
... ...
@@ -1,21 +0,0 @@
1
-<script src="system/modules/eSM_waypoints/assets/lib/waypoints/<?php echo WAYPOINTS; ?>/assets/js/jquery.waypoints.min.js"></script>
2
-<script>
3
-	(function($) {
4
-		$(document).ready(function() {
5
-
6
-			var waypoint = {
7
-
8
-				header: new Waypoint({
9
-					element: $('#container'),
10
-					handler: function(direction) {
11
-						if (direction == 'down') {
12
-							$('#header').addClass('shrink');
13
-						} else {
14
-							$('#header').removeClass('shrink');
15
-						}
16
-					}
17
-				})
18
-			};
19
-		});
20
-	})(jQuery);
21
-</script>
22 0
new file mode 100644
... ...
@@ -0,0 +1,21 @@
1
+<script src="system/modules/eSM_waypoints/assets/lib/waypoints/<?php echo WAYPOINTS; ?>/assets/js/jquery.waypoints.min.js"></script>
2
+<script>
3
+	(function($) {
4
+		$(document).ready(function() {
5
+
6
+			var waypoint = {
7
+
8
+				header: new Waypoint({
9
+					element: $('#container'),
10
+					handler: function(direction) {
11
+						if (direction == 'down') {
12
+							$('#header').addClass('shrink');
13
+						} else {
14
+							$('#header').removeClass('shrink');
15
+						}
16
+					}
17
+				})
18
+			};
19
+		});
20
+	})(jQuery);
21
+</script>