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,362 @@
1
+<?php
2
+// rsce_my_element_config.php
3
+return array(
4
+    'label' => array('Custom | Boxen mit Zahlen', ''),
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
+
21
+
22
+        'bg_image' => array(
23
+            'label' => array('Bild', ''),
24
+            'inputType' => 'fileTree',
25
+            'eval' => array(
26
+                'multiple' => false,
27
+                'fieldType' => 'radio',
28
+                'filesOnly' => true,
29
+                'extensions' => 'jpg,jpeg,png,svg',
30
+            ),
31
+        ),
32
+
33
+        'size_bg' => array(
34
+            'label' => array('Bildbreite und Bildhöhe', ''),
35
+            'inputType' => 'imageSize',
36
+            'options' => System::getImageSizes(),
37
+            'reference' => &$GLOBALS['TL_LANG']['MSC'],
38
+            'eval' => array(
39
+                'rgxp' => 'digit',
40
+                'includeBlankOption' => true,
41
+            ),
42
+        ),
43
+
44
+
45
+        'animation_type' => array(
46
+            'label' => array(
47
+                'de' => array('Art der Einblendeanimation', 'Siehe https://animate.style/ für Beispiele'),
48
+            ),
49
+            'inputType' => 'select',
50
+            'options' => array(
51
+                /* Fading entrances  */
52
+                'animate__fadeInUp' => 'fadeInUp (Meistens Standard)',
53
+                'no-animation' => 'Keine Animation',
54
+                'animate__fadeIn' => 'fadeIn',
55
+                'animate__fadeInDown' => 'fadeInDown',
56
+                'animate__fadeInDownBig' => 'fadeInDownBig',
57
+                'animate__fadeInLeft' => 'fadeInLeft',
58
+                'animate__fadeInLeftBig' => 'fadeInLeftBig',
59
+                'animate__fadeInRight' => 'fadeInRight',
60
+                'animate__fadeInRightBig' => 'fadeInRightBig',
61
+                'animate__fadeInUpBig' => 'fadeInUpBig',
62
+                'animate__fadeInTopLeft' => 'fadeInTopLeft',
63
+                'animate__fadeInTopRight' => 'fadeInTopRight',
64
+                'animate__fadeInBottomLeft' => 'fadeInBottomLeft',
65
+                'animate__fadeInBottomRight' => 'fadeInBottomRight',
66
+                /* Attention seekers  */
67
+                'animate__bounce' => 'bounce',
68
+                'animate__flash' => 'flash',
69
+                'animate__pulse' => 'pulse',
70
+                'animate__rubberBand' => 'rubberBand',
71
+                'animate__shakeX' => 'shakeX',
72
+                'animate__shakeY' => 'shakeY',
73
+                'animate__headShake' => 'headShake',
74
+                'animate__swing' => 'swing',
75
+                'animate__tada' => 'tada',
76
+                'animate__wobble' => 'wobble',
77
+                'animate__jello' => 'jello',
78
+                'animate__heartBeat' => 'heartBeat',
79
+                /* Back entrances */
80
+                'animate__backInDown' => 'backInDown',
81
+                'animate__backInLeft' => 'backInLeft',
82
+                'animate__backInRight' => 'backInRight',
83
+                'animate__backInUp' => 'backInUp',
84
+                /* Back exits */
85
+                'animate__backOutDown' => 'backOutDown',
86
+                'animate__backOutLeft' => 'backOutLeft',
87
+                'animate__backOutRight' => 'backOutRight',
88
+                'animate__backOutUp' => 'backOutUp',
89
+                /* Bouncing entrances  */
90
+                'animate__bounceIn' => 'bounceIn',
91
+                'animate__bounceInDown' => 'bounceInDown',
92
+                'animate__bounceInLeft' => 'bounceInLeft',
93
+                'animate__bounceInRight' => 'bounceInRight',
94
+                'animate__bounceInUp' => 'bounceInUp',
95
+                /* Bouncing exits  */
96
+                'animate__bounceOut' => 'bounceOut',
97
+                'animate__bounceOutDown' => 'bounceOutDown',
98
+                'animate__bounceOutLeft' => 'bounceOutLeft',
99
+                'animate__bounceOutRight' => 'bounceOutRight',
100
+                'animate__bounceOutUp' => 'bounceOutUp',
101
+                /* Fading exits */
102
+                'animate__fadeOut' => 'fadeOut',
103
+                'animate__fadeOutDown' => 'fadeOutDown',
104
+                'animate__fadeOutDownBig' => 'fadeOutDownBig',
105
+                'animate__fadeOutLeft' => 'fadeOutLeft',
106
+                'animate__fadeOutLeftBig' => 'fadeOutLeftBig',
107
+                'animate__fadeOutRight' => 'fadeOutRight',
108
+                'animate__fadeOutRightBig' => 'fadeOutRightBig',
109
+                'animate__fadeOutUp' => 'fadeOutUp',
110
+                'animate__fadeOutUpBig' => 'fadeOutUpBig',
111
+                'animate__fadeOutTopLeft' => 'fadeOutTopLeft',
112
+                'animate__fadeOutTopRight' => 'fadeOutTopRight',
113
+                'animate__fadeOutBottomRight' => 'fadeOutBottomRight',
114
+                'animate__fadeOutBottomLeft' => 'fadeOutBottomLeft',
115
+                /* Flippers */
116
+                'animate__flip' => 'flip',
117
+                'animate__flipInX' => 'flipInX',
118
+                'animate__flipInY' => 'flipInY',
119
+                'animate__flipOutX' => 'flipOutX',
120
+                'animate__flipOutY' => 'flipOutY',
121
+                /* Lightspeed */
122
+                'animate__lightSpeedInRight' => 'lightSpeedInRight',
123
+                'animate__lightSpeedInLeft' => 'lightSpeedInLeft',
124
+                'animate__lightSpeedOutRight' => 'lightSpeedOutRight',
125
+                'animate__lightSpeedOutLeft' => 'lightSpeedOutLeft',
126
+                /* Rotating entrances */
127
+                'animate__rotateIn' => 'rotateIn',
128
+                'animate__rotateInDownLeft' => 'rotateInDownLeft',
129
+                'animate__rotateInDownRight' => 'rotateInDownRight',
130
+                'animate__rotateInUpLeft' => 'rotateInUpLeft',
131
+                'animate__rotateInUpRight' => 'rotateInUpRight',
132
+                /* Rotating exits */
133
+                'animate__rotateOut' => 'rotateOut',
134
+                'animate__rotateOutDownLeft' => 'rotateOutDownLeft',
135
+                'animate__rotateOutDownRight' => 'rotateOutDownRight',
136
+                'animate__rotateOutUpLeft' => 'rotateOutUpLeft',
137
+                'animate__rotateOutUpRight' => 'rotateOutUpRight',
138
+                /* Specials */
139
+                'animate__hinge' => 'hinge',
140
+                'animate__jackInTheBox' => 'jackInTheBox',
141
+                'animate__rollIn' => 'rollIn',
142
+                'animate__rollOut' => 'rollOut',
143
+                /* Zooming entrances */
144
+                'animate__zoomIn' => 'zoomIn',
145
+                'animate__zoomInDown' => 'zoomInDown',
146
+                'animate__zoomInLeft' => 'zoomInLeft',
147
+                'animate__zoomInRight' => 'zoomInRight',
148
+                'animate__zoomInUp' => 'zoomInUp',
149
+                /* Zooming exits */
150
+                'animate__zoomOut' => 'zoomOut',
151
+                'animate__zoomOutDown' => 'zoomOutDown',
152
+                'animate__zoomOutLeft' => 'zoomOutLeft',
153
+                'animate__zoomOutRight' => 'zoomOutRight',
154
+                'animate__zoomOutUp' => 'zoomOutUp',
155
+                /* Sliding entrances */
156
+                'animate__slideInDown' => 'slideInDown',
157
+                'animate__slideInLeft' => 'slideInLeft',
158
+                'animate__slideInRight' => 'slideInRight',
159
+                'animate__slideInUp' => 'slideInUp',
160
+                /* Sliding exits */
161
+                'animate__slideOutDown' => 'slideOutDown',
162
+                'animate__slideOutLeft' => 'slideOutLeft',
163
+                'animate__slideOutRight' => 'slideOutRight',
164
+                'animate__slideOutUp' => 'slideOutUp',
165
+            ),
166
+            'eval' => array('chosen' => 'true')
167
+        ),
168
+        'boxes' => array(
169
+            'label' => array('Boxen', ''),
170
+            'elementLabel' => '%s. Box',
171
+            'inputType' => 'list',
172
+            'minItems' => 1,
173
+            'maxItems' => 999,
174
+            'fields' => array(
175
+                'animation_type' => array(
176
+                    'label' => array(
177
+                        'de' => array('Art der Einblendeanimation', 'Siehe https://animate.style/ für Beispiele'),
178
+                    ),
179
+                    'inputType' => 'select',
180
+                    'options' => array(
181
+                        /* Fading entrances  */
182
+                        'animate__fadeInUp' => 'fadeInUp (Meistens Standard)',
183
+                        'no-animation' => 'Keine Animation',
184
+                        'animate__fadeIn' => 'fadeIn',
185
+                        'animate__fadeInDown' => 'fadeInDown',
186
+                        'animate__fadeInDownBig' => 'fadeInDownBig',
187
+                        'animate__fadeInLeft' => 'fadeInLeft',
188
+                        'animate__fadeInLeftBig' => 'fadeInLeftBig',
189
+                        'animate__fadeInRight' => 'fadeInRight',
190
+                        'animate__fadeInRightBig' => 'fadeInRightBig',
191
+                        'animate__fadeInUpBig' => 'fadeInUpBig',
192
+                        'animate__fadeInTopLeft' => 'fadeInTopLeft',
193
+                        'animate__fadeInTopRight' => 'fadeInTopRight',
194
+                        'animate__fadeInBottomLeft' => 'fadeInBottomLeft',
195
+                        'animate__fadeInBottomRight' => 'fadeInBottomRight',
196
+                        /* Attention seekers  */
197
+                        'animate__bounce' => 'bounce',
198
+                        'animate__flash' => 'flash',
199
+                        'animate__pulse' => 'pulse',
200
+                        'animate__rubberBand' => 'rubberBand',
201
+                        'animate__shakeX' => 'shakeX',
202
+                        'animate__shakeY' => 'shakeY',
203
+                        'animate__headShake' => 'headShake',
204
+                        'animate__swing' => 'swing',
205
+                        'animate__tada' => 'tada',
206
+                        'animate__wobble' => 'wobble',
207
+                        'animate__jello' => 'jello',
208
+                        'animate__heartBeat' => 'heartBeat',
209
+                        /* Back entrances */
210
+                        'animate__backInDown' => 'backInDown',
211
+                        'animate__backInLeft' => 'backInLeft',
212
+                        'animate__backInRight' => 'backInRight',
213
+                        'animate__backInUp' => 'backInUp',
214
+                        /* Back exits */
215
+                        'animate__backOutDown' => 'backOutDown',
216
+                        'animate__backOutLeft' => 'backOutLeft',
217
+                        'animate__backOutRight' => 'backOutRight',
218
+                        'animate__backOutUp' => 'backOutUp',
219
+                        /* Bouncing entrances  */
220
+                        'animate__bounceIn' => 'bounceIn',
221
+                        'animate__bounceInDown' => 'bounceInDown',
222
+                        'animate__bounceInLeft' => 'bounceInLeft',
223
+                        'animate__bounceInRight' => 'bounceInRight',
224
+                        'animate__bounceInUp' => 'bounceInUp',
225
+                        /* Bouncing exits  */
226
+                        'animate__bounceOut' => 'bounceOut',
227
+                        'animate__bounceOutDown' => 'bounceOutDown',
228
+                        'animate__bounceOutLeft' => 'bounceOutLeft',
229
+                        'animate__bounceOutRight' => 'bounceOutRight',
230
+                        'animate__bounceOutUp' => 'bounceOutUp',
231
+                        /* Fading exits */
232
+                        'animate__fadeOut' => 'fadeOut',
233
+                        'animate__fadeOutDown' => 'fadeOutDown',
234
+                        'animate__fadeOutDownBig' => 'fadeOutDownBig',
235
+                        'animate__fadeOutLeft' => 'fadeOutLeft',
236
+                        'animate__fadeOutLeftBig' => 'fadeOutLeftBig',
237
+                        'animate__fadeOutRight' => 'fadeOutRight',
238
+                        'animate__fadeOutRightBig' => 'fadeOutRightBig',
239
+                        'animate__fadeOutUp' => 'fadeOutUp',
240
+                        'animate__fadeOutUpBig' => 'fadeOutUpBig',
241
+                        'animate__fadeOutTopLeft' => 'fadeOutTopLeft',
242
+                        'animate__fadeOutTopRight' => 'fadeOutTopRight',
243
+                        'animate__fadeOutBottomRight' => 'fadeOutBottomRight',
244
+                        'animate__fadeOutBottomLeft' => 'fadeOutBottomLeft',
245
+                        /* Flippers */
246
+                        'animate__flip' => 'flip',
247
+                        'animate__flipInX' => 'flipInX',
248
+                        'animate__flipInY' => 'flipInY',
249
+                        'animate__flipOutX' => 'flipOutX',
250
+                        'animate__flipOutY' => 'flipOutY',
251
+                        /* Lightspeed */
252
+                        'animate__lightSpeedInRight' => 'lightSpeedInRight',
253
+                        'animate__lightSpeedInLeft' => 'lightSpeedInLeft',
254
+                        'animate__lightSpeedOutRight' => 'lightSpeedOutRight',
255
+                        'animate__lightSpeedOutLeft' => 'lightSpeedOutLeft',
256
+                        /* Rotating entrances */
257
+                        'animate__rotateIn' => 'rotateIn',
258
+                        'animate__rotateInDownLeft' => 'rotateInDownLeft',
259
+                        'animate__rotateInDownRight' => 'rotateInDownRight',
260
+                        'animate__rotateInUpLeft' => 'rotateInUpLeft',
261
+                        'animate__rotateInUpRight' => 'rotateInUpRight',
262
+                        /* Rotating exits */
263
+                        'animate__rotateOut' => 'rotateOut',
264
+                        'animate__rotateOutDownLeft' => 'rotateOutDownLeft',
265
+                        'animate__rotateOutDownRight' => 'rotateOutDownRight',
266
+                        'animate__rotateOutUpLeft' => 'rotateOutUpLeft',
267
+                        'animate__rotateOutUpRight' => 'rotateOutUpRight',
268
+                        /* Specials */
269
+                        'animate__hinge' => 'hinge',
270
+                        'animate__jackInTheBox' => 'jackInTheBox',
271
+                        'animate__rollIn' => 'rollIn',
272
+                        'animate__rollOut' => 'rollOut',
273
+                        /* Zooming entrances */
274
+                        'animate__zoomIn' => 'zoomIn',
275
+                        'animate__zoomInDown' => 'zoomInDown',
276
+                        'animate__zoomInLeft' => 'zoomInLeft',
277
+                        'animate__zoomInRight' => 'zoomInRight',
278
+                        'animate__zoomInUp' => 'zoomInUp',
279
+                        /* Zooming exits */
280
+                        'animate__zoomOut' => 'zoomOut',
281
+                        'animate__zoomOutDown' => 'zoomOutDown',
282
+                        'animate__zoomOutLeft' => 'zoomOutLeft',
283
+                        'animate__zoomOutRight' => 'zoomOutRight',
284
+                        'animate__zoomOutUp' => 'zoomOutUp',
285
+                        /* Sliding entrances */
286
+                        'animate__slideInDown' => 'slideInDown',
287
+                        'animate__slideInLeft' => 'slideInLeft',
288
+                        'animate__slideInRight' => 'slideInRight',
289
+                        'animate__slideInUp' => 'slideInUp',
290
+                        /* Sliding exits */
291
+                        'animate__slideOutDown' => 'slideOutDown',
292
+                        'animate__slideOutLeft' => 'slideOutLeft',
293
+                        'animate__slideOutRight' => 'slideOutRight',
294
+                        'animate__slideOutUp' => 'slideOutUp',
295
+                    ),
296
+                    'eval' => array('chosen' => 'true')
297
+                ),
298
+                'headline_type' => array(
299
+                    'label' => array(
300
+                        'de' => array('Typ der Überschrift', 'für linke Spalte'),
301
+                    ),
302
+                    'inputType' => 'select',
303
+                    'options' => array(
304
+                        'h1' => 'H1 (Haupt-Headline für SEO, darf nur 1x vorkommen)',
305
+                        'h2' => 'H2 (Sollte H1 thematisch untergeordnet sein)',
306
+                        'h3' => 'H3 (Sollte H2 thematisch untergeordnet sein)',
307
+                        'h4' => 'H4',
308
+                        'h5' => 'H5',
309
+                    ),
310
+                ),
311
+                'headline' => array(
312
+                    'label' => array('Überschrift', 'für linke Spalte'),
313
+                    'inputType' => 'text',
314
+                ),
315
+                'onlystyle' => array(
316
+                    'label' => array('Text nur als Überschrift darstellen (hat dementsprechend keinen Einfluss auf SEO)', 'macht Sinn wenn man z. B. eine H3 unterhalb einer H1 anzeigen möchte, ohne dass eine H2 existiert'),
317
+                    'inputType' => 'checkbox',
318
+                ),
319
+                'image' => array(
320
+                    'label' => array('Bild', ''),
321
+                    'inputType' => 'fileTree',
322
+                    'eval' => array(
323
+                        'multiple' => false,
324
+                        'fieldType' => 'radio',
325
+                        'filesOnly' => true,
326
+                        'extensions' => 'jpg,jpeg,png,svg',
327
+                    ),
328
+                ),
329
+
330
+                'size' => array(
331
+                    'label' => array('Bildbreite und Bildhöhe', ''),
332
+                    'inputType' => 'imageSize',
333
+                    'options' => System::getImageSizes(),
334
+                    'reference' => &$GLOBALS['TL_LANG']['MSC'],
335
+                    'eval' => array(
336
+                        'rgxp' => 'digit',
337
+                        'includeBlankOption' => true,
338
+                    ),
339
+                ),
340
+
341
+                'text_left_1' => array(
342
+                    'label' => array('Zahl linke Spalte', ''),
343
+                    'inputType' => 'text',
344
+                ),
345
+                'text_left_2' => array(
346
+                    'label' => array('Mengenangabe', ''),
347
+                    'inputType' => 'text',
348
+                ),
349
+                'text_right_1' => array(
350
+                    'label' => array('Text rechte Spalte (oben)', ''),
351
+                    'inputType' => 'textarea',
352
+                    'eval' => array('rte' => 'tinyMCE', 'tl_class' => 'clr'),
353
+                ),
354
+                'text_right_2' => array(
355
+                    'label' => array('Text rechte Spalte (unten)', ''),
356
+                    'inputType' => 'textarea',
357
+                    'eval' => array('rte' => 'tinyMCE', 'tl_class' => 'clr'),
358
+                ),
359
+            ),
360
+        ),
361
+    ),
362
+);