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,421 @@
1
+<?php
2
+// rsce_my_element_config.php
3
+return array(
4
+    'label' => array('Custom | 50% Spalte & mehrere Boxen auf gleicher Höhe auf anderer Spalte', ''),
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
+        'row' => array(
144
+            'label' => array('Zeilen', ''),
145
+            'elementLabel' => '%s. Zeile',
146
+            'inputType' => 'list',
147
+            'minItems' => 1,
148
+            'maxItems' => 10,
149
+            'fields' => array(
150
+                'animation_type' => array(
151
+                    'label' => array(
152
+                        'de' => array('Art der Einblendeanimation', 'Siehe https://animate.style/ für Beispiele'),
153
+                    ),
154
+                    'inputType' => 'select',
155
+                    'options' => array(
156
+                        /* Fading entrances  */
157
+                        'animate__fadeInUp' => 'fadeInUp (Meistens Standard)',
158
+                        'no-animation' => 'Keine Animation',
159
+                        'animate__fadeIn' => 'fadeIn',
160
+                        'animate__fadeInDown' => 'fadeInDown',
161
+                        'animate__fadeInDownBig' => 'fadeInDownBig',
162
+                        'animate__fadeInLeft' => 'fadeInLeft',
163
+                        'animate__fadeInLeftBig' => 'fadeInLeftBig',
164
+                        'animate__fadeInRight' => 'fadeInRight',
165
+                        'animate__fadeInRightBig' => 'fadeInRightBig',
166
+                        'animate__fadeInUpBig' => 'fadeInUpBig',
167
+                        'animate__fadeInTopLeft' => 'fadeInTopLeft',
168
+                        'animate__fadeInTopRight' => 'fadeInTopRight',
169
+                        'animate__fadeInBottomLeft' => 'fadeInBottomLeft',
170
+                        'animate__fadeInBottomRight' => 'fadeInBottomRight',
171
+                        /* Attention seekers  */
172
+                        'animate__bounce' => 'bounce',
173
+                        'animate__flash' => 'flash',
174
+                        'animate__pulse' => 'pulse',
175
+                        'animate__rubberBand' => 'rubberBand',
176
+                        'animate__shakeX' => 'shakeX',
177
+                        'animate__shakeY' => 'shakeY',
178
+                        'animate__headShake' => 'headShake',
179
+                        'animate__swing' => 'swing',
180
+                        'animate__tada' => 'tada',
181
+                        'animate__wobble' => 'wobble',
182
+                        'animate__jello' => 'jello',
183
+                        'animate__heartBeat' => 'heartBeat',
184
+                        /* Back entrances */
185
+                        'animate__backInDown' => 'backInDown',
186
+                        'animate__backInLeft' => 'backInLeft',
187
+                        'animate__backInRight' => 'backInRight',
188
+                        'animate__backInUp' => 'backInUp',
189
+                        /* Back exits */
190
+                        'animate__backOutDown' => 'backOutDown',
191
+                        'animate__backOutLeft' => 'backOutLeft',
192
+                        'animate__backOutRight' => 'backOutRight',
193
+                        'animate__backOutUp' => 'backOutUp',
194
+                        /* Bouncing entrances  */
195
+                        'animate__bounceIn' => 'bounceIn',
196
+                        'animate__bounceInDown' => 'bounceInDown',
197
+                        'animate__bounceInLeft' => 'bounceInLeft',
198
+                        'animate__bounceInRight' => 'bounceInRight',
199
+                        'animate__bounceInUp' => 'bounceInUp',
200
+                        /* Bouncing exits  */
201
+                        'animate__bounceOut' => 'bounceOut',
202
+                        'animate__bounceOutDown' => 'bounceOutDown',
203
+                        'animate__bounceOutLeft' => 'bounceOutLeft',
204
+                        'animate__bounceOutRight' => 'bounceOutRight',
205
+                        'animate__bounceOutUp' => 'bounceOutUp',
206
+                        /* Fading exits */
207
+                        'animate__fadeOut' => 'fadeOut',
208
+                        'animate__fadeOutDown' => 'fadeOutDown',
209
+                        'animate__fadeOutDownBig' => 'fadeOutDownBig',
210
+                        'animate__fadeOutLeft' => 'fadeOutLeft',
211
+                        'animate__fadeOutLeftBig' => 'fadeOutLeftBig',
212
+                        'animate__fadeOutRight' => 'fadeOutRight',
213
+                        'animate__fadeOutRightBig' => 'fadeOutRightBig',
214
+                        'animate__fadeOutUp' => 'fadeOutUp',
215
+                        'animate__fadeOutUpBig' => 'fadeOutUpBig',
216
+                        'animate__fadeOutTopLeft' => 'fadeOutTopLeft',
217
+                        'animate__fadeOutTopRight' => 'fadeOutTopRight',
218
+                        'animate__fadeOutBottomRight' => 'fadeOutBottomRight',
219
+                        'animate__fadeOutBottomLeft' => 'fadeOutBottomLeft',
220
+                        /* Flippers */
221
+                        'animate__flip' => 'flip',
222
+                        'animate__flipInX' => 'flipInX',
223
+                        'animate__flipInY' => 'flipInY',
224
+                        'animate__flipOutX' => 'flipOutX',
225
+                        'animate__flipOutY' => 'flipOutY',
226
+                        /* Lightspeed */
227
+                        'animate__lightSpeedInRight' => 'lightSpeedInRight',
228
+                        'animate__lightSpeedInLeft' => 'lightSpeedInLeft',
229
+                        'animate__lightSpeedOutRight' => 'lightSpeedOutRight',
230
+                        'animate__lightSpeedOutLeft' => 'lightSpeedOutLeft',
231
+                        /* Rotating entrances */
232
+                        'animate__rotateIn' => 'rotateIn',
233
+                        'animate__rotateInDownLeft' => 'rotateInDownLeft',
234
+                        'animate__rotateInDownRight' => 'rotateInDownRight',
235
+                        'animate__rotateInUpLeft' => 'rotateInUpLeft',
236
+                        'animate__rotateInUpRight' => 'rotateInUpRight',
237
+                        /* Rotating exits */
238
+                        'animate__rotateOut' => 'rotateOut',
239
+                        'animate__rotateOutDownLeft' => 'rotateOutDownLeft',
240
+                        'animate__rotateOutDownRight' => 'rotateOutDownRight',
241
+                        'animate__rotateOutUpLeft' => 'rotateOutUpLeft',
242
+                        'animate__rotateOutUpRight' => 'rotateOutUpRight',
243
+                        /* Specials */
244
+                        'animate__hinge' => 'hinge',
245
+                        'animate__jackInTheBox' => 'jackInTheBox',
246
+                        'animate__rollIn' => 'rollIn',
247
+                        'animate__rollOut' => 'rollOut',
248
+                        /* Zooming entrances */
249
+                        'animate__zoomIn' => 'zoomIn',
250
+                        'animate__zoomInDown' => 'zoomInDown',
251
+                        'animate__zoomInLeft' => 'zoomInLeft',
252
+                        'animate__zoomInRight' => 'zoomInRight',
253
+                        'animate__zoomInUp' => 'zoomInUp',
254
+                        /* Zooming exits */
255
+                        'animate__zoomOut' => 'zoomOut',
256
+                        'animate__zoomOutDown' => 'zoomOutDown',
257
+                        'animate__zoomOutLeft' => 'zoomOutLeft',
258
+                        'animate__zoomOutRight' => 'zoomOutRight',
259
+                        'animate__zoomOutUp' => 'zoomOutUp',
260
+                        /* Sliding entrances */
261
+                        'animate__slideInDown' => 'slideInDown',
262
+                        'animate__slideInLeft' => 'slideInLeft',
263
+                        'animate__slideInRight' => 'slideInRight',
264
+                        'animate__slideInUp' => 'slideInUp',
265
+                        /* Sliding exits */
266
+                        'animate__slideOutDown' => 'slideOutDown',
267
+                        'animate__slideOutLeft' => 'slideOutLeft',
268
+                        'animate__slideOutRight' => 'slideOutRight',
269
+                        'animate__slideOutUp' => 'slideOutUp',
270
+                    ),
271
+                    'eval' => array('chosen' => 'true')
272
+                ),
273
+                'swapcolumns' => array(
274
+                    'label' => array('Spalten tauschen', ''),
275
+                    'inputType' => 'checkbox',
276
+                ),
277
+                'main_image' => array(
278
+                    'label' => array('Boxen-Bild', ''),
279
+                    'inputType' => 'fileTree',
280
+                    'eval' => array(
281
+                        'multiple' => true,
282
+                        'fieldType' => 'checkbox',
283
+                        'filesOnly' => true,
284
+                        'extensions' => 'jpg,jpeg,png,svg',
285
+                    ),
286
+                ),
287
+                'main_url' => array(
288
+                    'label' => array('Link', ''),
289
+                    'inputType' => 'url',
290
+                ),
291
+                'main_headline_type' => array(
292
+                    'label' => array(
293
+                        'de' => array('Typ der Überschrift', ''),
294
+                    ),
295
+                    'inputType' => 'select',
296
+                    'options' => array(
297
+                        'h1' => 'H1',
298
+                        'h2' => 'H2',
299
+                        'h3' => 'H3',
300
+                        'h4' => 'H4',
301
+                        'h5' => 'H5',
302
+                    ),
303
+                ),
304
+                'main_headline' => array(
305
+                    'label' => array('Überschrift', ''),
306
+                    'inputType' => 'text',
307
+                    'eval' => array('allowHtml' => true),
308
+                ),
309
+                'main_onlystyle' => array(
310
+                    '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'),
311
+                    'inputType' => 'checkbox',
312
+                ),
313
+                'main_subline' => array(
314
+                    'label' => array('Subline', ''),
315
+                    'inputType' => 'text',
316
+                ),
317
+                'main_content' => array(
318
+                    'label' => array('Text', ''),
319
+                    'inputType' => 'textarea',
320
+                    'eval' => array('rte' => 'tinyMCE'),
321
+                ),
322
+                'boxes' => array(
323
+                    'label' => array('Boxen (rechts)', ''),
324
+                    'elementLabel' => '%s. Box',
325
+                    'inputType' => 'list',
326
+                    'minItems' => 1,
327
+                    'maxItems' => 4,
328
+                    'fields' => array(
329
+                        'animation_type' => array(
330
+                            'label' => array(
331
+                                'de' => array('Art der Einblendeanimation', 'Siehe https://animate.style/ für Beispiele'),
332
+                            ),
333
+                            'inputType' => 'select',
334
+                            'options' => array(
335
+                                'options' => array(
336
+                                    'animate__fadeInUp' => 'fade-up (Standard)',
337
+                                    'no-animation' => 'Keine Animation',
338
+                                    'animate__fade' => 'fade',
339
+                                    'animate__fadeDown' => 'fade-down',
340
+                                    'animate__fadeLeft' => 'fade-left',
341
+                                    'animate__fadeRight' => 'fade-right',
342
+                                    'animate__fadeUpRight' => 'fade-up-right',
343
+                                    'animate__fadeUpLeft' => 'fade-up-left',
344
+                                    'animate__fadeDownRight' => 'fade-down-right',
345
+                                    'animate__fadeDownLeft' => 'fade-down-left',
346
+                                    'animate__flipUp' => 'flip-up',
347
+                                    'animate__flipDown' => 'flip-down',
348
+                                    'animate__flipLeft' => 'flip-left',
349
+                                    'animate__flipRight' => 'flip-right',
350
+                                    'animate__slideUp' => 'slide-up',
351
+                                    'animate__slideDown' => 'slide-down',
352
+                                    'animate__slideLeft' => 'slide-left',
353
+                                    'animate__slideRight' => 'slide-right',
354
+                                    'animate__zoomIn' => 'zoom-in',
355
+                                    'animate__zoomInUp' => 'zoom-in-up',
356
+                                    'animate__zoomInDown' => 'zoom-in-down',
357
+                                    'animate__zoomInLeft' => 'zoom-in-left',
358
+                                    'animate__zoomInRight' => 'zoom-in-right',
359
+                                    'animate__zoomOut' => 'zoom-out',
360
+                                    'animate__zoomOutUp' => 'zoom-out-up',
361
+                                    'animate__zoomOutDown' => 'zoom-out-down',
362
+                                    'animate__zoomOutLeft' => 'zoom-out-left',
363
+                                    'animate__zoomOutRight' => 'zoom-out-right'
364
+                                ),
365
+                            ),
366
+                        ),
367
+                        'image' => array(
368
+                            'label' => array('Boxen-Bild', ''),
369
+                            'inputType' => 'fileTree',
370
+                            'eval' => array(
371
+                                'multiple' => true,
372
+                                'fieldType' => 'checkbox',
373
+                                'filesOnly' => true,
374
+                                'extensions' => 'jpg,jpeg,png,svg',
375
+                            ),
376
+                        ),
377
+                        'url' => array(
378
+                            'label' => array('Link', ''),
379
+                            'inputType' => 'url',
380
+                        ),
381
+                        'headline_type' => array(
382
+                            'label' => array(
383
+                                'de' => array('Typ der Überschrift', ''),
384
+                            ),
385
+                            'inputType' => 'select',
386
+                            'options' => array(
387
+                                'h1' => 'H1',
388
+                                'h2' => 'H2',
389
+                                'h3' => 'H3',
390
+                                'h4' => 'H4',
391
+                                'h5' => 'H5',
392
+                            ),
393
+                        ),
394
+                        'headline' => array(
395
+                            'label' => array('Überschrift', ''),
396
+                            'inputType' => 'text',
397
+                            'eval' => array('allowHtml' => true),
398
+                        ),
399
+                        'onlystyle' => array(
400
+                            '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'),
401
+                            'inputType' => 'checkbox',
402
+                        ),
403
+                        'topline' => array(
404
+                            'label' => array('Topline', 'Text oberhalb der Überschrift'),
405
+                            'inputType' => 'text',
406
+                        ),
407
+                        'subline' => array(
408
+                            'label' => array('Subline', 'Text unterhalb der Überschrift'),
409
+                            'inputType' => 'text',
410
+                        ),
411
+                        'content' => array(
412
+                            'label' => array('Text', ''),
413
+                            'inputType' => 'textarea',
414
+                            'eval' => array('rte' => 'tinyMCE'),
415
+                        ),
416
+                    ),
417
+                ),
418
+            ),
419
+        ),
420
+    ),
421
+);