Browse code

Initial commit

Benjamin Roth authored on16/03/2023 20:22:35
Showing1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,183 @@
1
+<?php
2
+// rsce_my_element_config.php
3
+return array(
4
+    'label' => array('Custom | Runde Boxen mit Icon / Bild sowie Verlinkung', ''),
5
+    'types' => array('content'),
6
+    'contentCategory' => 'texts',
7
+    'moduleCategory' => 'miscellaneous',
8
+    'standardFields' => array('headline', 'cssID'),
9
+    'wrapper' => array(
10
+        'type' => 'none',
11
+    ),
12
+    'fields' => array(
13
+        'topline' => array(
14
+            'label' => array('Topline', 'Text oberhalb der Überschrift'),
15
+            'inputType' => 'text',
16
+        ), 'subline' => array(
17
+            'label' => array('Subline', 'Text unterhalb der Überschrift'),
18
+            'inputType' => 'text',
19
+        ),
20
+        'animation_type' => array(
21
+            'label' => array(
22
+                'de' => array('Art der Einblendeanimation', 'Siehe https://animate.style/ für Beispiele'),
23
+            ),
24
+            'inputType' => 'select',
25
+            'options' => array(
26
+                /* Fading entrances  */
27
+                'animate__fadeInUp' => 'fadeInUp (Meistens Standard)',
28
+                'no-animation' => 'Keine Animation',
29
+                'animate__fadeIn' => 'fadeIn',
30
+                'animate__fadeInDown' => 'fadeInDown',
31
+                'animate__fadeInDownBig' => 'fadeInDownBig',
32
+                'animate__fadeInLeft' => 'fadeInLeft',
33
+                'animate__fadeInLeftBig' => 'fadeInLeftBig',
34
+                'animate__fadeInRight' => 'fadeInRight',
35
+                'animate__fadeInRightBig' => 'fadeInRightBig',
36
+                'animate__fadeInUpBig' => 'fadeInUpBig',
37
+                'animate__fadeInTopLeft' => 'fadeInTopLeft',
38
+                'animate__fadeInTopRight' => 'fadeInTopRight',
39
+                'animate__fadeInBottomLeft' => 'fadeInBottomLeft',
40
+                'animate__fadeInBottomRight' => 'fadeInBottomRight',
41
+                /* Attention seekers  */
42
+                'animate__bounce' => 'bounce',
43
+                'animate__flash' => 'flash',
44
+                'animate__pulse' => 'pulse',
45
+                'animate__rubberBand' => 'rubberBand',
46
+                'animate__shakeX' => 'shakeX',
47
+                'animate__shakeY' => 'shakeY',
48
+                'animate__headShake' => 'headShake',
49
+                'animate__swing' => 'swing',
50
+                'animate__tada' => 'tada',
51
+                'animate__wobble' => 'wobble',
52
+                'animate__jello' => 'jello',
53
+                'animate__heartBeat' => 'heartBeat',
54
+                /* Back entrances */
55
+                'animate__backInDown' => 'backInDown',
56
+                'animate__backInLeft' => 'backInLeft',
57
+                'animate__backInRight' => 'backInRight',
58
+                'animate__backInUp' => 'backInUp',
59
+                /* Back exits */
60
+                'animate__backOutDown' => 'backOutDown',
61
+                'animate__backOutLeft' => 'backOutLeft',
62
+                'animate__backOutRight' => 'backOutRight',
63
+                'animate__backOutUp' => 'backOutUp',
64
+                /* Bouncing entrances  */
65
+                'animate__bounceIn' => 'bounceIn',
66
+                'animate__bounceInDown' => 'bounceInDown',
67
+                'animate__bounceInLeft' => 'bounceInLeft',
68
+                'animate__bounceInRight' => 'bounceInRight',
69
+                'animate__bounceInUp' => 'bounceInUp',
70
+                /* Bouncing exits  */
71
+                'animate__bounceOut' => 'bounceOut',
72
+                'animate__bounceOutDown' => 'bounceOutDown',
73
+                'animate__bounceOutLeft' => 'bounceOutLeft',
74
+                'animate__bounceOutRight' => 'bounceOutRight',
75
+                'animate__bounceOutUp' => 'bounceOutUp',
76
+                /* Fading exits */
77
+                'animate__fadeOut' => 'fadeOut',
78
+                'animate__fadeOutDown' => 'fadeOutDown',
79
+                'animate__fadeOutDownBig' => 'fadeOutDownBig',
80
+                'animate__fadeOutLeft' => 'fadeOutLeft',
81
+                'animate__fadeOutLeftBig' => 'fadeOutLeftBig',
82
+                'animate__fadeOutRight' => 'fadeOutRight',
83
+                'animate__fadeOutRightBig' => 'fadeOutRightBig',
84
+                'animate__fadeOutUp' => 'fadeOutUp',
85
+                'animate__fadeOutUpBig' => 'fadeOutUpBig',
86
+                'animate__fadeOutTopLeft' => 'fadeOutTopLeft',
87
+                'animate__fadeOutTopRight' => 'fadeOutTopRight',
88
+                'animate__fadeOutBottomRight' => 'fadeOutBottomRight',
89
+                'animate__fadeOutBottomLeft' => 'fadeOutBottomLeft',
90
+                /* Flippers */
91
+                'animate__flip' => 'flip',
92
+                'animate__flipInX' => 'flipInX',
93
+                'animate__flipInY' => 'flipInY',
94
+                'animate__flipOutX' => 'flipOutX',
95
+                'animate__flipOutY' => 'flipOutY',
96
+                /* Lightspeed */
97
+                'animate__lightSpeedInRight' => 'lightSpeedInRight',
98
+                'animate__lightSpeedInLeft' => 'lightSpeedInLeft',
99
+                'animate__lightSpeedOutRight' => 'lightSpeedOutRight',
100
+                'animate__lightSpeedOutLeft' => 'lightSpeedOutLeft',
101
+                /* Rotating entrances */
102
+                'animate__rotateIn' => 'rotateIn',
103
+                'animate__rotateInDownLeft' => 'rotateInDownLeft',
104
+                'animate__rotateInDownRight' => 'rotateInDownRight',
105
+                'animate__rotateInUpLeft' => 'rotateInUpLeft',
106
+                'animate__rotateInUpRight' => 'rotateInUpRight',
107
+                /* Rotating exits */
108
+                'animate__rotateOut' => 'rotateOut',
109
+                'animate__rotateOutDownLeft' => 'rotateOutDownLeft',
110
+                'animate__rotateOutDownRight' => 'rotateOutDownRight',
111
+                'animate__rotateOutUpLeft' => 'rotateOutUpLeft',
112
+                'animate__rotateOutUpRight' => 'rotateOutUpRight',
113
+                /* Specials */
114
+                'animate__hinge' => 'hinge',
115
+                'animate__jackInTheBox' => 'jackInTheBox',
116
+                'animate__rollIn' => 'rollIn',
117
+                'animate__rollOut' => 'rollOut',
118
+                /* Zooming entrances */
119
+                'animate__zoomIn' => 'zoomIn',
120
+                'animate__zoomInDown' => 'zoomInDown',
121
+                'animate__zoomInLeft' => 'zoomInLeft',
122
+                'animate__zoomInRight' => 'zoomInRight',
123
+                'animate__zoomInUp' => 'zoomInUp',
124
+                /* Zooming exits */
125
+                'animate__zoomOut' => 'zoomOut',
126
+                'animate__zoomOutDown' => 'zoomOutDown',
127
+                'animate__zoomOutLeft' => 'zoomOutLeft',
128
+                'animate__zoomOutRight' => 'zoomOutRight',
129
+                'animate__zoomOutUp' => 'zoomOutUp',
130
+                /* Sliding entrances */
131
+                'animate__slideInDown' => 'slideInDown',
132
+                'animate__slideInLeft' => 'slideInLeft',
133
+                'animate__slideInRight' => 'slideInRight',
134
+                'animate__slideInUp' => 'slideInUp',
135
+                /* Sliding exits */
136
+                'animate__slideOutDown' => 'slideOutDown',
137
+                'animate__slideOutLeft' => 'slideOutLeft',
138
+                'animate__slideOutRight' => 'slideOutRight',
139
+                'animate__slideOutUp' => 'slideOutUp',
140
+            ),
141
+            'eval' => array('chosen' => 'true')
142
+        ),
143
+        'backgroundcolor' => array(
144
+            'label' => array('Hintergrundfarbe', 'Im Hexformat, z. B. #000 für schwarz (Standard: weiß)'),
145
+            'inputType' => 'text',
146
+            'eval' => array('tl_class' => 'w50'),
147
+        ),
148
+        'linkcolor' => array(
149
+            'label' => array('Schriftfarbe', 'Im Hexformat, z. B. #000 für schwarz (Standard: Hauptfarbe)'),
150
+            'inputType' => 'text',
151
+            'eval' => array('tl_class' => 'w50'),
152
+        ),
153
+        'galery' => array(
154
+            'label' => array('Boxen', ''),
155
+            'elementLabel' => '%s. Box',
156
+            'inputType' => 'list',
157
+            'minItems' => 1,
158
+            'maxItems' => 99,
159
+            'fields' => array(
160
+                'img' => array(
161
+                    'label' => array('Bild', ''),
162
+                    'inputType' => 'fileTree',
163
+                    'eval' => array(
164
+                        'multiple' => false,
165
+                        'fieldType' => 'radio',
166
+                        'filesOnly' => true,
167
+                        'extensions' => 'jpg,jpeg,png,svg',
168
+                    ),
169
+                ),
170
+                'text' => array(
171
+                    'label' => array('Text', ''),
172
+                    'inputType' => 'text',
173
+                    'eval' => array('tl_class' => 'w50'),
174
+                ),
175
+                'url' => array(
176
+                    'label' => array('URL', ''),
177
+                    'inputType' => 'url',
178
+                    'eval' => array('tl_class' => 'w50'),
179
+                ),
180
+            ),
181
+        ),
182
+    ),
183
+);