Browse code

Remote Progress

Benjamin Roth authored on08/11/2022 13:28:37
Showing1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,83 @@
1
+<?php
2
+
3
+return array(
4
+	'label' => array(
5
+		'Button',
6
+		'Erzeugt einen oder mehrere Buttons als Standalone-Element',
7
+	),
8
+  'contentCategory' => 'links',
9
+	'types' => array('content'),
10
+	'standardFields' => array('cssID', 'headline'),
11
+	'fields' => array(
12
+    'linkAlign' => array(
13
+      'label' => array('Horizontale Button-Ausrichtung', ''),
14
+      'inputType' => 'select',
15
+      'options' => array(
16
+        '' => 'Linksbündig',
17
+        '-align-center' => 'Zentriert',
18
+        '-align-right' => 'Rechtsbündig',
19
+      ),
20
+      'eval' => array('tl_class' => 'w50'),
21
+    ),
22
+    'altLayout' => array(
23
+      'label' => array('Style', ''),
24
+      'inputType' => 'select',
25
+      'options' => array(
26
+        '' => 'Standard',
27
+        '-style-brown' => 'Braun',
28
+      ),
29
+      'eval' => array('tl_class' => 'w50'),
30
+    ),
31
+    'boxes' => array(
32
+      'label' => array('Buttons', ''),
33
+      'elementLabel' => 'Button %s',
34
+      'inputType' => 'list',
35
+      'fields' => array(
36
+        'linkLabel' => array(
37
+          'label' => array('Button-Text', ''),
38
+          'inputType' => 'text',
39
+          'eval' => array('tl_class' => 'w50'),
40
+        ),
41
+        'linkUrl' => array(
42
+          'label' => array('Button-URL', 'Beispiele: {{link_url::seitenalias}} (Alias, ID oder anderer Inserttag), http://example.com'),
43
+          'inputType' => 'url',
44
+          'eval' => array('tl_class' => 'w50'),
45
+        ),
46
+        'linkTitle' => array(
47
+          'label' => array('Button-Title', ''),
48
+          'inputType' => 'text',
49
+          'eval' => array('tl_class' => 'w50'),
50
+        ),
51
+        'newWindow' => array(
52
+          'label' => $GLOBALS['TL_LANG']['MSC']['target'],
53
+          'inputType' => 'checkbox',
54
+          'eval' => array('tl_class' => 'w50 m12'),
55
+        ),
56
+        'altLayout' => array(
57
+          'label' => array('Style', ''),
58
+          'inputType' => 'select',
59
+          'options' => array(
60
+            '' => 'Standard',
61
+            '-style-brown' => 'Braun',
62
+          ),
63
+          'eval' => array('tl_class' => 'w50'),
64
+        ),
65
+        'attributes' => array(
66
+          'label' => array('Benutzerdefinierte Button HTML-Attribute', ''),
67
+          'inputType' => 'text',
68
+          'eval' => array('tl_class' => 'clr w50'),
69
+        ),
70
+      ),
71
+    ),
72
+    'spacing' => array(
73
+      'label' => array('Abstand'),
74
+      'inputType' => 'group',
75
+    ),
76
+    'es_spacing' => array (
77
+      'inputType' => 'standardField'
78
+    ),
79
+    'es_padding' => array (
80
+      'inputType' => 'standardField'
81
+    ),
82
+  ),
83
+);