Browse code

Added checkbox plugin

Benjamin Roth authored on13/08/2015 16:26:24
Showing3 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,2 @@
1
+order deny,allow
2
+allow from all
0 3
\ No newline at end of file
1 4
new file mode 100644
... ...
@@ -0,0 +1,18 @@
1
+<?php
2
+
3
+/**
4
+ * Formstone for Contao
5
+ *
6
+ * Copyright (c) 2015 Benjamin Roth
7
+ *
8
+ * @license LGPL-3.0+
9
+ */
10
+
11
+
12
+/**
13
+ * Register the templates
14
+ */
15
+TemplateLoader::addFiles(array
16
+(
17
+	'j_formstone_checkbox' => 'system/modules/eSM_formstone/templates/widgets',
18
+));
0 19
new file mode 100644
... ...
@@ -0,0 +1,15 @@
1
+<?php
2
+
3
+$GLOBALS['TL_CSS'][] = '/system/modules/eSM_formstone/assets/lib/formstone/'.$GLOBALS['TL_ASSETS']['FORMSTONE'].'/css/checkbox.css';
4
+
5
+?>
6
+
7
+<script src="/system/modules/eSM_formstone/assets/lib/formstone/<?= $GLOBALS['TL_ASSETS']['FORMSTONE'] ?>/js/core.js"></script>
8
+<script src="/system/modules/eSM_formstone/assets/lib/formstone/<?= $GLOBALS['TL_ASSETS']['FORMSTONE'] ?>/js/touch.js"></script>
9
+<script src="/system/modules/eSM_formstone/assets/lib/formstone/<?= $GLOBALS['TL_ASSETS']['FORMSTONE'] ?>/js/checkbox.js"></script>
10
+
11
+<script>
12
+	$(function() {
13
+		$("input[type=checkbox], input[type=radio]").checkbox();
14
+	});
15
+</script>
0 16
\ No newline at end of file